/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Notification Modal Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0118;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* ===== NEW MODERN HERO SECTION ===== */
.new-hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0118 0%, #1a0b2e 50%, #2d1b4e 100%);
    padding-bottom: 0;
}

/* Animated Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}

/* Navigation */
.hero-nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease;
}

.badge-icon {
    font-size: 1.25rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-heading {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* CTA Button */
.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary-new {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.btn-primary-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.4);
}

.btn-primary-new:active {
    transform: translateY(-1px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.hero-footnote {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Stats Section */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

/* Features Showcase */
.features-showcase {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 6rem auto 0;
    padding: 0 2rem 4rem;
}

.feature-item {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease both;
}

.feature-item:nth-child(1) { animation-delay: 1s; }
.feature-item:nth-child(2) { animation-delay: 1.1s; }
.feature-item:nth-child(3) { animation-delay: 1.2s; }
.feature-item:nth-child(4) { animation-delay: 1.3s; }
.feature-item:nth-child(5) { animation-delay: 1.4s; }
.feature-item:nth-child(6) { animation-delay: 1.5s; }

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.feature-icon-new {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.4));
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-nav {
        padding: 1.5rem 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        font-size: 0.875rem;
    }
    
    .hero-heading {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-divider {
        width: 50px;
        height: 1px;
    }
    
    .features-showcase {
        grid-template-columns: 1fr;
    }
    
    .btn-primary-new {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}


.btn-discord {
    background: #5865F2;
    color: white;
    border: none;
    padding: 18px 48px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 60px;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

.btn-discord:active {
    transform: translateY(0);
}

.discord-icon {
    width: 28px;
    height: 28px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    font-size: 1.05em;
    opacity: 0.9;
    line-height: 1.5;
}

/* ===== PAGE SYSTEM ===== */
.page {
    display: none;
    min-height: 100vh;
    width: 100%;
    animation: fadeIn 0.4s ease-in-out;
}

.page.active {
    display: block;
}

#home.page.active {
    display: block;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(76, 175, 80, 0.5); }
    100% { box-shadow: 0 0 25px rgba(76, 175, 80, 0.8); }
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== TYPOGRAPHY ===== */
.logo {
    font-size: 4em;
    font-weight: 900;
    margin: 40px 0 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    letter-spacing: 2px;
}

h1 {
    font-size: 2.5em;
    margin: 30px 0 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h2 {
    font-size: 1.8em;
    margin: 20px 0 15px;
    font-weight: 600;
}

h3 {
    font-size: 1.4em;
    margin: 15px 0 10px;
    font-weight: 500;
}

p {
    margin: 10px 0;
    font-size: 1.1em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin: 20px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-logout, .btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin: 20px 10px;
}

.btn-logout:hover, .btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.redeem-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 10px;
}

.redeem-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* ===== FORM ELEMENTS ===== */
input, select {
    display: block;
    margin: 15px auto;
    padding: 15px 20px;
    width: 100%;
    max-width: 350px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    text-align: center;
    font-size: 1em;
    background: rgba(255,255,255,0.95);
    color: #333;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
    background: white;
}

input::placeholder {
    color: #999;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    backdrop-filter: blur(10px);
    padding: 20px;
    font-size: 1.8em;
    font-weight: 700;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    text-align: center;
    letter-spacing: 1px;
}

/* ===== FOOTER ===== */
.footer > * {
    pointer-events: auto;
}

/* ===== PROFILE SECTION ===== */
.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    margin: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    object-fit: cover;
}

.grey-text {
    color: #e0e0e0;
    font-size: 0.95em;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    animation: slideDown 0.5s ease;
    max-width: 500px;
    width: 100%;
}

.profile-found {
    margin-top: 30px;
    animation: bounceIn 0.6s ease;
}

/* ===== MENU GRID ===== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 30px auto;
    width: 100%;
    padding: 0 20px;
}

.menu-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 25px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* ===== PROGRESS BAR ===== */
.progress-section {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
}

.progress-section p {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255,255,255,0.3);
    border-radius: 15px;
    overflow: hidden;
    margin: 15px auto;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0%;
    transition: width 1s ease;
    animation: glow 2s infinite alternate;
}

.target-section {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.target-section select {
    width: auto;
    min-width: 150px;
    margin: 0;
}

/* ===== REWARDS GRID ===== */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
}

.reward-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 200px;
}

.reward-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.reward-item span {
    font-size: 1.3em;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.reward-item p {
    font-size: 1.1em;
    margin: 10px 0;
}

.daily-reward {
    background: linear-gradient(135deg, rgba(255,193,7,0.3) 0%, rgba(255,152,0,0.3) 100%);
    border-color: rgba(255,193,7,0.5);
}

/* ===== SCRATCH CARD ===== */
.scratch-card {
    max-width: 350px;
    margin: 30px auto;
    padding: 25px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

#scratch-canvas {
    border: 3px solid rgba(255,255,255,0.5);
    border-radius: 15px;
    cursor: pointer;
    background: #333;
    display: block;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.code-text {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #333;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 700;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    word-break: break-all;
}

/* ===== FAQ ===== */
.faq-grid {
    max-width: 700px;
    margin: 30px auto;
    width: 100%;
    padding: 0 20px;
}

.faq-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    margin: 15px 0;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1.1em;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] summary {
    background: rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.faq-item p {
    padding: 20px;
    margin: 0;
}

.faq-item a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.faq-item a:hover {
    color: #8BC34A;
    text-decoration: underline;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
}

.product-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-card h4 {
    padding: 15px 15px 5px;
    font-size: 1.2em;
    font-weight: 700;
}

.product-card p {
    padding: 5px 15px 15px;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    color: #333;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.4s ease;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.modal h2, .modal h3 {
    color: #667eea;
    margin-bottom: 20px;
}

.modal img {
    max-width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
}

/* ===== ACCOUNT FORM ===== */
.account-form {
    max-width: 400px;
    margin: 30px auto;
    text-align: left;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

.account-form label {
    display: block;
    margin: 20px 0;
    font-weight: 600;
    font-size: 1.1em;
}

.account-form input {
    width: 100%;
    margin-top: 8px;
    text-align: left;
}

.account-form button {
    width: 100%;
    margin: 15px 0;
}

/* ===== LOYALTY CARD ===== */
.card-container {
    perspective: 1500px;
    margin: 60px auto;
    max-width: 400px;
}

.loyalty-card {
    width: 100%;
    max-width: 380px;
    height: 240px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    cursor: pointer;
    margin: 0 auto;
}

.loyalty-card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #e6e6e6 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333;
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-front .card-brand {
    font-size: 2em;
    font-weight: 900;
    text-align: right;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-front span:first-child {
    font-size: 1.3em;
    font-weight: 700;
}

.barcode {
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

.card-back h4 {
    font-size: 1.1em;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.card-back p {
    margin: 10px 0;
    font-size: 1em;
}

/* ===== DEBIT CARD GRADIENTS ===== */
.debit-card-front, .debit-card-back {
    backface-visibility: hidden;
    color: white !important;
}

.debit-card-front *,
.debit-card-back * {
    color: white !important;
}

/* Card gradient variations */
.gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.gradient-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.gradient-6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.gradient-7 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.gradient-8 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.gradient-9 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.gradient-10 { background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%); }

/* ===== LOADING SCREENS ===== */
.loading-text, .confirm-step p {
    font-size: 1.5em;
    margin: 30px 0;
    font-weight: 600;
}

.spinner {
    border: 5px solid rgba(255,255,255,0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
    margin: 30px auto;
}

.spinner.large {
    width: 80px;
    height: 80px;
    border-width: 6px;
}

.confirm-step {
    transition: opacity 0.5s ease;
}

.confirm-step.hidden {
    opacity: 0;
    position: absolute;
}

.reset-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 400% 400%;
    animation: gradientShift 5s ease infinite;
    z-index: -1;
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}

/* Ensure readable text on white backgrounds (NOT on debit cards) */
.bg-white:not(.debit-card-front):not(.debit-card-back) h2, 
.bg-white:not(.debit-card-front):not(.debit-card-back) h3, 
.bg-white:not(.debit-card-front):not(.debit-card-back) h4,
.bg-white:not(.debit-card-front):not(.debit-card-back) .text-2xl,
.bg-white:not(.debit-card-front):not(.debit-card-back) .font-bold {
    color: #1f2937 !important;
}

.bg-white:not(.debit-card-front):not(.debit-card-back) label,
.bg-white:not(.debit-card-front):not(.debit-card-back) .text-sm,
.bg-white:not(.debit-card-front):not(.debit-card-back) p:not(.text-blue-600):not(.text-red-500):not(.text-green-500) {
    color: #4b5563 !important;
}

.bg-white:not(.debit-card-front):not(.debit-card-back) .faq-question span,
.bg-white:not(.debit-card-front):not(.debit-card-back) .font-semibold:not(.text-blue-600):not(.text-blue-700) {
    color: #111827 !important;
}

/* Ensure input fields have black text */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    color: #000000 !important;
}

/* Keep button and link colors */
.bg-white button,
.bg-white a {
    color: inherit !important;
}

/* ===== SIGNUP FLOW STYLES ===== */
.signup-flow {
    background: #ffffff;
    min-height: 100vh;
}

.signup-container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

.signup-left {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.signup-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s infinite;
}

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

.signup-logo {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.signup-tagline {
    font-size: 1.3em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.progress-dots {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.progress-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.progress-dots .dot.active {
    background: white;
    box-shadow: 0 0 20px rgba(255,255,255,0.6);
}

.signup-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.signup-right.slide-in {
    animation: slideInRight 0.6s ease-out;
}

.form-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 500px;
    width: 100%;
    border: 1px solid #f0f0f0;
}

.form-card h2 {
    color: #2d3748;
    font-size: 2em;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #718096;
    margin-bottom: 30px;
    font-size: 1.05em;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.modern-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1em;
    color: #2d3748;
    background: #f7fafc;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.modern-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.modern-input::placeholder {
    color: #a0aec0;
}

.input-hint {
    display: block;
    color: #a0aec0;
    font-size: 0.85em;
    margin-top: 6px;
}

.btn-modern {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-modern:active {
    transform: translateY(0);
}

/* Loading States */
.loading-content {
    text-align: center;
    color: #2d3748;
}

.loading-spinner-modern {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

/* Large Loading Spinner for Redemption */
.loading-spinner-large {
    width: 80px;
    height: 80px;
    border: 6px solid #f3f4f6;
    border-top-color: #8b5cf6;
    border-right-color: #ec4899;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h2 {
    color: #2d3748;
    margin-bottom: 10px;
}

.loading-content p {
    color: #718096;
}

.profile-found-modern {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-img-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.profile-found-modern h2 {
    color: #2d3748;
    font-size: 2em;
    margin-bottom: 10px;
}

.success-text {
    color: #48bb78;
    font-size: 1.2em;
    font-weight: 600;
}

.confirmation-card {
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.confirm-step.active {
    opacity: 1;
    position: relative;
}

.confirm-step h3 {
    color: #2d3748;
    font-size: 1.5em;
    margin-bottom: 10px;
    margin-top: 20px;
}

.confirm-step p {
    color: #718096;
}

/* Welcome Card Styles */
.welcome-card {
    text-align: center;
}

.welcome-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease-out;
}

.welcome-card h2 {
    color: #2d3748;
    font-size: 2.2em;
    margin-bottom: 15px;
}

.welcome-card h2 #welcome-name {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message {
    color: #718096;
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.welcome-features {
    background: #f7fafc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.welcome-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    color: #4a5568;
    font-size: 1.05em;
}

.feature-emoji {
    font-size: 1.5em;
}

/* Select dropdown styling */
.modern-input[type="select"],
select.modern-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

select.modern-input option {
    padding: 10px;
}

/* Terms Modal */
.terms-modal {
    max-width: 800px;
    max-height: 90vh;
}

.terms-content {
    line-height: 1.6;
}

.terms-content p {
    margin-bottom: 0.5rem;
}

.terms-content h3 {
    color: #2d3748;
}

/* Scrollbar styling for terms content */
.terms-content::-webkit-scrollbar {
    width: 8px;
}

.terms-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .signup-container {
        flex-direction: column;
    }
    
    .signup-left {
        min-height: 300px;
        padding: 40px;
    }
    
    .signup-right {
        padding: 40px 20px;
    }
    
    .form-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .logo-large { font-size: 3.5em; }
    .hero-title { font-size: 2.2em; }
    .hero-subtitle { font-size: 1.1em; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .btn-discord { padding: 16px 40px; font-size: 1.1em; }
    .logo { font-size: 3em; }
    h1 { font-size: 2em; }
    .header { font-size: 1.4em; padding: 15px; }
    .menu-grid { grid-template-columns: 1fr; }
    .rewards-grid { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; }
    .page { padding: 60px 15px 30px; }
}

@media (max-width: 480px) {
    .logo-large { font-size: 2.5em; }
    .hero-title { font-size: 1.8em; }
    .hero-subtitle { font-size: 1em; padding: 0 10px; }
    .btn-discord { padding: 14px 32px; font-size: 1em; }
    .feature-card { padding: 30px 20px; }
    .feature-icon { font-size: 2.5em; }
    .feature-card h3 { font-size: 1.3em; }
    .logo { font-size: 2.5em; }
    h1 { font-size: 1.6em; }
    .btn-primary { padding: 12px 30px; font-size: 1em; }
    
    .signup-logo {
        font-size: 2em;
    }
    
    .signup-tagline {
        font-size: 1.1em;
    }
    
    .form-card h2 {
        font-size: 1.5em;
    }
    
    .form-card {
        padding: 25px;
    }
}

/* ===== MODERN DASHBOARD LAYOUT ===== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
    animation: fadeIn 0.6s ease;
}

.dashboard-sidebar {
    width: clamp(240px, 20vw, 280px);
    background: linear-gradient(180deg, #1a0b2e 0%, #2d1b4e 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sidebar-header {
    padding: clamp(1rem, 3vw, 2rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-label {
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-footer {
    padding: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.logout-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 77, 77, 0.2);
}

.dashboard-main {
    margin-left: clamp(240px, 20vw, 280px);
    flex: 1;
    padding: clamp(1rem, 3vw, 2rem);
    min-height: 100vh;
    animation: fadeInUp 0.6s ease;
}

.dashboard-section {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.content-subtitle {
    font-size: clamp(0.813rem, 1.5vw, 0.875rem);
    color: #6b7280;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: #718096;
    font-size: 0.875rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.dashboard-content {
    animation: fadeInUp 0.4s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: clamp(12px, 2vw, 16px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: scaleIn 0.5s ease backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
}

.stat-purple .stat-icon {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

.stat-blue .stat-icon {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.stat-green .stat-icon {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.stat-orange .stat-icon {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.stat-details {
    flex: 1;
}

.stat-label {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: #1f2937;
}

.section-card {
    background: white;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: clamp(12px, 2vw, 16px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.section-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    animation: fadeInDown 0.5s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.content-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #e5e7eb;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: clamp(10px, 1.5vw, 12px);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease backwards;
}

.action-card:nth-child(1) { animation-delay: 0.1s; }
.action-card:nth-child(2) { animation-delay: 0.2s; }
.action-card:nth-child(3) { animation-delay: 0.3s; }
.action-card:nth-child(4) { animation-delay: 0.4s; }

.action-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.2);
}

.action-icon {
    font-size: clamp(2.5rem, 4vw, 3rem);
    display: block;
    margin-bottom: 1rem;
}

.action-label {
    font-size: clamp(0.938rem, 1.5vw, 1rem);
    font-weight: 600;
    color: #1f2937;
}

.action-purple {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #c084fc;
}

.action-purple:hover {
    border-color: #a855f7;
    box-shadow: 0 8px 16px rgba(168, 85, 247, 0.3);
}

.action-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #60a5fa;
}

.action-blue:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.action-pink {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #f472b6;
}

.action-pink:hover {
    border-color: #ec4899;
    box-shadow: 0 8px 16px rgba(236, 72, 153, 0.3);
}

.action-orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border-color: #fb923c;
}

.action-orange:hover {
    border-color: #f97316;
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
}

.action-card h3 {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.action-card p {
    font-size: clamp(0.813rem, 1.5vw, 0.875rem);
    color: #6b7280;
}

.points-display {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
}

.points-info {
    flex: 1;
}

.points-label {
    font-size: clamp(0.813rem, 1.5vw, 0.875rem);
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.points-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.points-progress {
    flex: 2;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.8s ease;
    border-radius: 999px;
}

.progress-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.reward-card {
    background: white;
    border: 2px solid #e5e7eb;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: clamp(12px, 2vw, 16px);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease backwards;
}

.reward-card:nth-child(1) { animation-delay: 0.1s; }
.reward-card:nth-child(2) { animation-delay: 0.2s; }
.reward-card:nth-child(3) { animation-delay: 0.3s; }
.reward-card:nth-child(4) { animation-delay: 0.4s; }

.reward-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.reward-card.featured {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
}

.reward-badge, .reward-cost {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.reward-card.featured .reward-badge {
    background: #f59e0b;
}

.reward-icon {
    font-size: clamp(2.5rem, 4vw, 3rem);
    display: block;
    margin-bottom: 1rem;
}

.reward-title {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.reward-desc {
    font-size: clamp(0.813rem, 1.5vw, 0.875rem);
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.reward-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reward-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.reward-btn:hover::before {
    width: 300px;
    height: 300px;
}

.reward-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.loading-text {
    text-align: center;
    color: #6b7280;
    padding: 3rem;
}

.card-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
}

.loyalty-card-modern {
    width: 400px;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
    margin-bottom: 1rem;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.8s;
    border-radius: 16px;
    padding: 2rem;
}

.card-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-back {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a0b2e 100%);
    color: white;
    transform: rotateY(180deg);
}

.loyalty-card-modern.flipped .card-front {
    transform: rotateY(180deg);
}

.loyalty-card-modern.flipped .card-back {
    transform: rotateY(0);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-logo {
    font-size: 2rem;
}

.card-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.card-number {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.card-holder {
    display: flex;
    gap: 2rem;
}

.card-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 1rem;
    font-weight: 600;
}

.card-stripe {
    width: 100%;
    height: 50px;
    background: #000;
    margin: -2rem -2rem 1rem;
}

.card-info {
    padding: 1rem;
}

.card-hint {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.settings-group {
    margin-bottom: 2rem;
}

.setting-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.setting-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s ease;
}

.setting-input:focus {
    outline: none;
    border-color: #667eea;
}

.setting-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.setting-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.danger-zone {
    border-top: 2px solid #fee2e2;
    padding-top: 2rem;
}

.danger-title {
    color: #dc2626;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.danger-btn {
    padding: 0.75rem 1.5rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.danger-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 1024px) {
    .dashboard-main {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        position: fixed;
        left: -280px;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .dashboard-sidebar.mobile-open {
        left: 0;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .dashboard-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .mobile-menu-btn {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 998;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        border: none;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .points-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .points-value {
        font-size: 2rem;
    }
    
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .section-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 0.75rem;
    }
    
    .content-header h2 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin: 0 auto 0.75rem;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .action-card {
        padding: 1.5rem;
    }
    
    .section-card {
        padding: 1rem;
    }
    
    .settings-group .flex {
        flex-direction: column;
    }
    
    .settings-group button {
        width: 100%;
    }
}

/* ===== DEBIT CARD STYLES ===== */
.debit-card {
    aspect-ratio: 1.586;
    min-height: 240px;
}

.debit-card-front, .debit-card-back {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff !important;
}

.debit-card-front *, .debit-card-back * {
    color: #ffffff !important;
}

/* Card gradient variations - assigned based on account ID */
.gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.gradient-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.gradient-6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.gradient-7 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.gradient-8 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.gradient-9 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.gradient-10 { background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%); }

.debit-card-front.flipped {
    transform: rotateY(180deg);
}

/* ===== FOOTER FIX ===== */
/* Footer stays at bottom */
/* ===== TEXT COLOR FIXES ===== */
.faq-question,
.faq-question span {
    color: #000 !important;
}

.settings-group input[type="text"],
.settings-group input[type="email"],
.settings-group input[type="password"],
.settings-group select {
    color: #000 !important;
}

.settings-group label {
    color: #000 !important;
}

/* Progress bar target visualization */
.progress-target-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.4);
    transition: left 0.3s ease;
    pointer-events: none;
}

.progress-current-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    transition: left 0.3s ease;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Target buttons */
.target-btn {
    color: #000 !important;
    background: #fff;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.target-btn.active {
    border-color: #3b82f6;
    background: #dbeafe;
}

/* Verification modal */
.verification-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.verification-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.verification-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Goodbye animation */
.goodbye-animation {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

.goodbye-content {
    text-align: center;
    color: white;
    padding: 2rem;
    animation: slideUp 1s ease;
}

.goodbye-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Copy button */
.copy-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.copy-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Linked account displays */
.linked-account-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.linked-account-display img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.linked-account-info {
    flex: 1;
}

.linked-account-info .username {
    font-weight: 600;
    color: #111827;
}

.linked-account-info .display-name {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ===== ADDITIONAL MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    /* Loyalty card mobile sizing */
    .debit-card {
        min-height: 200px;
    }
    
    #card-front, #card-back {
        padding: 1rem !important;
        font-size: 0.875rem;
    }
    
    #card-front img {
        width: 32px !important;
        height: 32px !important;
    }
    
    #card-front h3 {
        font-size: 1.25rem !important;
    }
    
    /* Verification modal mobile */
    .verification-content {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .verification-input {
        font-size: 1.25rem;
        padding: 0.5rem;
    }
    
    /* Account settings mobile */
    .linked-account-display {
        flex-direction: row;
        text-align: left;
    }
    
    .settings-group .flex {
        flex-direction: column;
    }
    
    .settings-group button {
        width: 100%;
    }
    
    .settings-group .space-y-2 input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Goodbye animation mobile */
    .goodbye-content h1 {
        font-size: 4rem;
    }
    
    .goodbye-content h2 {
        font-size: 2rem;
    }
    
    .goodbye-content p {
        font-size: 1rem;
    }
    
    /* Copy button mobile */
    .copy-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    /* Reward code mobile */
    #reward-code {
        font-size: 1.5rem !important;
        word-break: break-all;
    }
    
    /* FAQ mobile */
    .faq-question span {
        font-size: 0.875rem;
    }
    
    /* Progress bars mobile */
    .progress-bar-container {
        height: 12px;
    }
    
    .progress-target-line,
    .progress-current-line {
        width: 3px;
    }
    
    /* Footer mobile fix */
    .footer {
        font-size: 0.75rem;
        padding: 12px 8px;
        position: relative;
        margin-top: 2rem;
    }
    
    /* Touch targets */
    button, .btn-modern, .nav-item {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Sidebar mobile improvements */
    .sidebar-nav {
        padding: 1rem 0;
    }
    
    .nav-item {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .nav-icon {
        font-size: 1.5rem;
    }
    
    /* Card animations smoother on mobile */
    #loyalty-card {
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    .verification-input {
        font-size: 1.125rem;
        letter-spacing: 0.25rem;
    }
    
    .debit-card {
        min-height: 180px;
    }
    
    #card-front, #card-back {
        padding: 0.75rem !important;
        font-size: 0.75rem;
    }
    
    #card-number-24 {
        font-size: 0.625rem;
    }
    
    .goodbye-content h1 {
        font-size: 3rem;
    }
    
    .goodbye-content h2 {
        font-size: 1.5rem;
    }
    
    #reward-code {
        font-size: 1.25rem !important;
    }
}

