/* ============================================
   NEON DRIFT CAFÉ — LOYALTY PROGRAM STYLES
   ============================================ */

/* Cursor Trail Canvas */
.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Loyalty Page Header */
.loyalty-header {
    position: relative;
    padding: 8rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.header-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.2) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--neon-cyan);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Statistics Section */
.stats-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 0, 110, 0.05) 50%, transparent 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    position: relative;
    padding: 2.5rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 1rem;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 245, 255, 0.2);
}

.stat-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card:hover .stat-glow {
    opacity: 1;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
    line-height: 1;
}

.stat-label {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* How It Works */
.how-it-works {
    padding: 4rem 2rem;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 250px;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 1rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--neon-pink);
    transform: scale(1.02);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: var(--neon-purple);
    color: white;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 1rem;
}

.step-icon {
    font-size: 3rem;
    margin: 1rem 0;
}

.step-card h3 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--neon-cyan);
    animation: arrow-pulse 1.5s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

/* Membership Tiers */
.tiers-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(157, 0, 255, 0.05) 50%, transparent 100%);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.tier-card {
    position: relative;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-10px);
}

.tier-basic:hover {
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.15);
    border-color: var(--neon-cyan);
}

.tier-pro:hover {
    box-shadow: 0 20px 40px rgba(255, 0, 110, 0.2);
    border-color: var(--neon-pink);
}

.tier-vip:hover {
    box-shadow: 0 20px 40px rgba(157, 0, 255, 0.25);
    border-color: var(--neon-purple);
}

.featured-tier {
    border: 2px solid var(--neon-pink);
    transform: scale(1.05);
}

.featured-tier:hover {
    transform: scale(1.05) translateY(-10px);
}

.tier-badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: var(--neon-pink);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 1rem;
    text-transform: uppercase;
}

.tier-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glow);
    margin-bottom: 1.5rem;
}

.tier-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tier-basic h3 { color: var(--neon-cyan); }
.tier-pro h3 { color: var(--neon-pink); }
.tier-vip h3 { color: var(--neon-purple); }

.tier-price {
    font-size: 2rem;
    font-weight: 700;
}

.tier-price span {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.tier-benefits {
    list-style: none;
    margin-bottom: 1.5rem;
}

.tier-benefits li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.tier-benefits li:last-child {
    border-bottom: none;
}

.tier-btn {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.875rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tier-btn:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg);
    border-color: var(--neon-cyan);
}

.btn-primary {
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    color: white;
}

.btn-primary:hover {
    background: #ff3385;
    box-shadow: 0 0 30px rgba(255, 0, 110, 0.5);
}

.btn-premium {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border: none;
    color: white;
}

.btn-premium:hover {
    box-shadow: 0 0 40px rgba(157, 0, 255, 0.5);
}

/* Rewards Section */
.rewards-section {
    padding: 4rem 2rem;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reward-card {
    position: relative;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.reward-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
}

.reward-card.exclusive {
    border-color: var(--neon-pink);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 0, 110, 0.1) 100%);
}

.reward-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.5rem;
    background: var(--neon-pink);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.reward-image {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-icon {
    font-size: 2.5rem;
}

.reward-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.reward-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.reward-cost {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.cost-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

.cost-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Leaderboard */
.leaderboard-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 245, 255, 0.03) 50%, transparent 100%);
}

.leaderboard {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 1rem;
    overflow: hidden;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 60px 1fr 120px 100px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 245, 255, 0.1);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-cyan);
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 100px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.leaderboard-row:hover {
    background: rgba(0, 245, 255, 0.05);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.top-3 {
    background: rgba(255, 215, 0, 0.05);
}

.rank-col {
    font-size: 1.25rem;
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

.name-col {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.avatar {
    width: 32px;
    height: 32px;
    background: var(--neon-cyan);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.credits-col {
    font-family: var(--font-display);
    color: var(--neon-cyan);
}

.tier-col {
    font-size: 0.625rem;
}

.tier-badge-vip {
    color: var(--neon-purple);
}

.tier-badge-pro {
    color: var(--neon-pink);
}

/* CTA Section */
.loyalty-cta {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.loyalty-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.signup-form input {
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-glow);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.signup-form input:focus {
    outline: none;
    border-color: var(--neon-cyan);
}

.signup-form input::placeholder {
    color: var(--text-muted);
}

.signup-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pulse-glow {
    animation: btn-pulse 2s ease-in-out infinite;
}

@keyframes btn-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 245, 255, 0.6); }
}

/* Responsive */
@media (max-width: 768px) {
    .loyalty-header {
        padding: 6rem 1rem 2rem;
    }
    
    .header-glow {
        width: 400px;
        height: 400px;
    }
    
    .loyalty-header h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .loyalty-header p {
        font-size: 0.95rem;
    }
    
    .tier-badge {
        margin-top: 1rem;
        padding: 0.4rem 0.875rem;
        font-size: 0.8rem;
    }
    
    /* Stats Section Mobile */
    .stats-section {
        padding: 2rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* How It Works Mobile */
    .how-it-works {
        padding: 2rem 1rem;
    }
    
    .how-it-works .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .step-card {
        min-width: auto;
        padding: 1.5rem;
    }
    
    .step-icon {
        font-size: 2.5rem;
        margin: 0.75rem 0;
    }
    
    .step-card h3 {
        font-size: 1rem;
    }
    
    .step-card p {
        font-size: 0.9rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    /* Tiers Section Mobile */
    .tiers-section {
        padding: 2rem 1rem;
    }
    
    .tiers-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .tiers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tier-card {
        padding: 1.5rem;
    }
    
    .featured-tier {
        transform: none;
        order: -1;
    }
    
    .featured-tier:hover {
        transform: translateY(-10px);
    }
    
    .tier-header {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .tier-header h3 {
        font-size: 1.25rem;
    }
    
    .tier-price {
        font-size: 1.75rem;
    }
    
    .tier-benefits li {
        padding: 0.625rem 0;
        font-size: 0.9rem;
    }
    
    .tier-btn {
        padding: 0.875rem;
        min-height: 44px;
    }
    
    /* Rewards Section Mobile */
    .rewards-section {
        padding: 2rem 1rem;
    }
    
    .rewards-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .rewards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .reward-card {
        padding: 1rem;
    }
    
    .reward-image {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }
    
    .reward-icon {
        font-size: 2rem;
    }
    
    .reward-card h3 {
        font-size: 0.95rem;
    }
    
    .reward-desc {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .cost-value {
        font-size: 1.25rem;
    }
    
    /* Leaderboard Mobile */
    .leaderboard-section {
        padding: 2rem 1rem;
    }
    
    .leaderboard-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .leaderboard {
        border-radius: 0.75rem;
    }
    
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 40px 1fr 80px;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .leaderboard-header {
        font-size: 0.65rem;
    }
    
    .rank-col {
        font-size: 1rem;
    }
    
    .name-col {
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .avatar {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .credits-col {
        font-size: 0.9rem;
    }
    
    .tier-col {
        display: none;
    }
    
    /* CTA Section Mobile */
    .loyalty-cta {
        padding: 3rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
    }
    
    .signup-form {
        margin-top: 1.5rem;
    }
    
    .signup-form input {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .signup-form .cta-button {
        min-height: 44px;
    }
    
    .signup-note {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .loyalty-header {
        padding: 5rem 0.75rem 1.5rem;
    }
    
    .header-glow {
        width: 300px;
        height: 300px;
    }
    
    .loyalty-header h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 1.25rem 0.75rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .reward-card {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .reward-image {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .reward-card h3 {
        font-size: 0.9rem;
    }
    
    .reward-desc {
        font-size: 0.8rem;
    }
    
    .stats-section,
    .how-it-works,
    .tiers-section,
    .rewards-section,
    .leaderboard-section,
    .loyalty-cta {
        padding: 1.5rem 0.75rem;
    }
}
