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

:root {
    /* Black and White Gaming Palette */
    --primary-color: #FFFFFF;          /* White */
    --primary-dark: #E0E0E0;           /* Light Gray */
    --secondary-color: #000000;        /* Black */
    --accent-color: #FFFFFF;           /* White */
    --success-color: #FFFFFF;          /* White */
    --warning-color: #808080;          /* Gray */
    --danger-color: #FF3333;           /* Keep Red for countdown */
    
    /* Backgrounds - Black and White Theme */
    --bg-primary: #000000;             /* Black */
    --bg-secondary: #1A1A1A;           /* Dark Gray */
    --bg-tertiary: #2D2D2D;            /* Medium Gray */
    --bg-card: #1A1A1A;                /* Dark Gray Card */
    --bg-modal: #1A1A1A;               /* Dark Gray Modal */
    
    /* Text Colors - High Contrast */
    --text-primary: #FFFFFF;           /* Bright White */
    --text-secondary: #FFFFFF;         /* Bright White */
    --text-muted: #CCCCCC;             /* Light Gray */
    --text-accent: #FFFFFF;            /* White */
    
    /* Rarity Colors - Black and White */
    --legendary-color: #FFFFFF;           /* White */
    --legendary-glow: rgba(255, 255, 255, 0.8);
    --epic-color: #FFFFFF;                /* White */
    --epic-glow: rgba(255, 255, 255, 0.7);
    --rare-color: #FFFFFF;                /* White */
    --rare-glow: rgba(255, 255, 255, 0.7);
    --secret-color: #FFFFFF;              /* White */
    --secret-glow: rgba(255, 255, 255, 0.8);
    --og-color: #FFFFFF;                  /* White */
    --og-glow: rgba(255, 255, 255, 0.8);
    
    /* Shadows - White Glow */
    --shadow-sm: 0 0 10px rgba(255, 255, 255, 0.3);
    --shadow-md: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 10px rgba(255, 255, 255, 0.2);
    --shadow-lg: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    --shadow-xl: 0 0 40px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
    
    /* Black and White Gradients */
    --gradient-primary: linear-gradient(135deg, #FFFFFF, #E0E0E0, #CCCCCC);
    --gradient-hero: linear-gradient(135deg, #FFFFFF 0%, #E0E0E0 50%, #CCCCCC 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-gaming: linear-gradient(45deg, #FFFFFF, #E0E0E0, #CCCCCC, #B0B0B0, #808080);
    
    /* Animation Duration */
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Fonts */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 20, 147, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 212, 255, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    background-position: center;
}

/* Mobile Background Centering */
@media (max-width: 768px) {
    body {
        background-size: contain;
        background-position: center;
        background-attachment: fixed;
        background-repeat: no-repeat;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== iOS REDIRECT POPUP ===== */
.ios-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-popup-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.ios-popup-content {
    position: relative;
    background: var(--gradient-card);
    border: 2px solid rgba(57, 255, 20, 0.3);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: none;
    animation: slideInUp 0.5s ease forwards;
}

.ios-gif-container {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
}

.ios-instruction-gif {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.ios-instruction-text {
    margin-bottom: 2rem;
}

.ios-instruction-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.ios-instruction-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ios-instruction-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.ios-understand-btn {
    width: 100%;
    margin-top: 1rem;
    background: #39FF14 !important;
    color: #000000 !important;
    border: 2px solid #39FF14 !important;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.6) !important;
}

.ios-understand-btn:hover {
    background: #CCFF00 !important;
    border-color: #CCFF00 !important;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.8) !important;
}

/* Responsive iOS popup */
@media (max-width: 480px) {
    .ios-popup-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .ios-instruction-text h3 {
        font-size: 1.25rem;
    }
    
    .ios-instruction-text p {
        font-size: 0.9rem;
    }
}



/* ===== HERO SECTION ===== */
.hero {
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: var(--accent-color);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, #FF1493, #00D4FF, #FFD700, #39FF14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: textGlow 2s ease-in-out infinite alternate;
    font-weight: 900;
    display: block;
}

@keyframes textGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.countdown {
    color: #FF3333;
    font-weight: 700;
    font-family: var(--font-heading);
    background: rgba(255, 51, 51, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.8);
}

.hero-cta {
    margin-top: 3rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-normal) ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #FF1493, #00D4FF);
    color: #FFFFFF;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    border-radius: 50px;
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6), 0 0 10px rgba(0, 212, 255, 0.4);
    font-weight: 800;
    text-transform: uppercase;
    font-family: 'Fredoka', var(--font-primary);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-shadow: -2px -2px 0 #000000, 2px -2px 0 #000000, -2px 2px 0 #000000, 2px 2px 0 #000000, -2px 0 0 #000000, 2px 0 0 #000000, 0 -2px 0 #000000, 0 2px 0 #000000;
}

.btn-primary:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.8), 0 0 15px rgba(0, 212, 255, 0.6);
}

.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6), 0 0 10px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-claim {
    background: linear-gradient(135deg, #00D4FF, #39FF14);
    color: #FFFFFF;
    padding: 1.5rem 2rem;
    font-size: 1.05rem;
    border-radius: 50px;
    display: block;
    margin: 0 auto;
    width: fit-content;
    cursor: pointer;
    z-index: 10;
    position: relative;
    border: 3px solid #FFD700;
    outline: none;
    font-weight: 800;
    text-transform: uppercase;
    font-family: 'Fredoka', var(--font-primary);
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 10px rgba(57, 255, 20, 0.4);
    transition: all 0.3s ease;
    text-shadow: -2px -2px 0 #000000, 2px -2px 0 #000000, -2px 2px 0 #000000, 2px 2px 0 #000000, -2px 0 0 #000000, 2px 0 0 #000000, 0 -2px 0 #000000, 0 2px 0 #000000;
    min-width: 150px;
    min-height: 50px;
}

.btn-claim:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 15px rgba(57, 255, 20, 0.6);
}

.btn-claim:active {
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 10px rgba(57, 255, 20, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #FF1493, #FFD700);
    color: #FFFFFF;
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    border-radius: 50px;
    border: 3px solid #00D4FF;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6), 0 0 10px rgba(255, 215, 0, 0.4);
    font-weight: 800;
    text-transform: uppercase;
    font-family: 'Fredoka', var(--font-primary);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-shadow: -2px -2px 0 #000000, 2px -2px 0 #000000, -2px 2px 0 #000000, 2px 2px 0 #000000, -2px 0 0 #000000, 2px 0 0 #000000, 0 -2px 0 #000000, 0 2px 0 #000000;
}

.btn-success:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.8), 0 0 15px rgba(255, 215, 0, 0.6);
}

.btn-success:active {
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6), 0 0 10px rgba(255, 215, 0, 0.4);
}

/* ===== ANIMATED BACKGROUND ITEMS ===== */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
    display: none;
}

.bg-item-img {
    display: none;
}

.bg-item-img img {
    display: none;
}

.bg-item-img.gaming {
    display: none;
}

.bg-item-img.gaming img {
    display: none;
}

/* ===== FLOATING ELEMENTS ===== */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.4;
    animation: float var(--duration, 8s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.floating-item:nth-child(1) { top: 20%; left: 10%; }
.floating-item:nth-child(2) { top: 60%; right: 15%; }
.floating-item:nth-child(3) { top: 30%; right: 30%; }
.floating-item:nth-child(4) { top: 80%; left: 20%; }
.floating-item:nth-child(5) { top: 10%; left: 60%; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

/* ===== SECTIONS ===== */
.items-section {
    padding: 2rem 0 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Poppins', var(--font-heading);
    font-size: clamp(1.75rem, 6vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.1;
}

.logo-line-1 {
    color: #FFFFFF;
    -webkit-text-stroke: 2px #000000;
    text-shadow: 
        -2px -2px 0 #000000,
        2px -2px 0 #000000,
        -2px 2px 0 #000000,
        2px 2px 0 #000000;
}

.logo-line-2 {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1.5px #000000;
}

.section-title i {
    color: var(--accent-color);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ===== COUNTDOWN TIMER ===== */
.countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.countdown-label {
    font-size: 1rem;
    font-weight: 800;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6);
    animation: pulseGold 2s ease-in-out infinite;
    will-change: transform, opacity;
}

.countdown-timer {
    font-size: 1.75rem;
    font-weight: 900;
    color: #FF1111;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #FF1111;
    animation: neonFlicker 0.5s infinite;
    will-change: box-shadow;
}

.countdown-prefix {
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.countdown-warning {
    font-size: 0.875rem;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: blinkWarning 1.5s ease-in-out infinite;
    will-change: opacity;
}

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

@keyframes blinkWarning {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

#countdown-display {
    font-family: 'Courier New', monospace;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-shadow: 
        0 0 10px #FF1111,
        0 0 20px #FF3333,
        0 0 30px #FF3333;
    will-change: text-shadow;
}

@keyframes neonFlicker {
    0%, 100% {
        text-shadow: 
            0 0 10px #FF1111,
            0 0 20px #FF3333,
            0 0 30px #FF3333;
        box-shadow: 0 0 20px rgba(255, 17, 17, 0.6);
    }
    50% {
        text-shadow: 
            0 0 5px #FF1111,
            0 0 15px #FF3333;
        box-shadow: 0 0 15px rgba(255, 17, 17, 0.4);
    }
}

/* ===== ITEMS GRID ===== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.item-card {
    background: rgba(26, 26, 26, 0.9);
    border-radius: var(--radius-xl);
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(0, 212, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 15px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.9);
}

.item-card:hover::before {
    opacity: 1;
}

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

.rarity-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rarity-badge.legendary {
    background: rgba(255, 215, 0, 0.2);
    color: var(--legendary-color);
    border: 1px solid var(--legendary-color);
}

.rarity-badge.epic {
    background: rgba(147, 51, 234, 0.2);
    color: var(--epic-color);
    border: 1px solid var(--epic-color);
}

.rarity-badge.rare {
    background: rgba(59, 130, 246, 0.2);
    color: var(--rare-color);
    border: 1px solid var(--rare-color);
}

.rarity-badge.secret {
    background: rgba(255, 20, 147, 0.3);
    color: #FFFFFF;
    border: 1px solid var(--secret-color);
    text-shadow: 0 0 8px var(--secret-color);
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

.rarity-badge.og {
    background: rgba(255, 215, 0, 0.3);
    color: #FFFFFF;
    border: 1px solid var(--og-color);
    text-shadow: 0 0 8px var(--og-color);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stock-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.item-image {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(0, 212, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.3), 0 0 10px rgba(0, 212, 255, 0.2);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: none;
}

.item-card:hover .item-image img {
    transform: none;
}

.item-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transition: none;
    display: none;
}

.item-card[data-rarity="legendary"]:hover .item-glow {
    background: none;
    opacity: 0;
    display: none;
}

.item-card[data-rarity="epic"]:hover .item-glow {
    background: none;
    opacity: 0;
    display: none;
}

.item-card[data-rarity="rare"]:hover .item-glow {
    background: none;
    opacity: 0;
    display: none;
}

.item-card[data-rarity="secret"]:hover .item-glow {
    background: none;
    opacity: 0;
    display: none;
}

.item-card[data-rarity="og"]:hover .item-glow {
    background: none;
    opacity: 0;
    display: none;
}

.item-info {
    text-align: center;
    margin-bottom: 1rem;
}

.item-name {
    font-family: 'Fredoka', var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.item-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.original-price {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.free-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success-color);
    font-family: var(--font-heading);
}

/* ===== LOAD MORE SECTION ===== */
.load-more-section {
    text-align: center;
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.social-proof-content {
    text-align: center;
}

.social-proof-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

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

.testimonial {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.testimonial-avatar i {
    font-size: 1.5rem;
    color: white;
}

.testimonial-content p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.testimonial-author {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

.footer-brand i {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--duration-normal) ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative; 
    background: var(--bg-modal);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 3px solid #39FF14;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.55), 0 0 20px rgba(0, 212, 255, 0.3);
    transform: scale(0.9);
    transition: transform var(--duration-normal) ease;
}

.btn-submit {
    background: linear-gradient(90deg, #22C55E 0%, #16A34A 100%);
    color: #FFFFFF;
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 18px;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

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

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(34, 197, 94, 0.55);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.4);
}

/* Username modal – light style inspired by screenshot */
#username-modal .modal-content {
    background: #FFFFFF;
    border: 2px solid #E5E7EB; /* subtle grey */
    box-shadow: 0 25px 60px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.6);
}

#generation-modal .modal-content {
    background: #FFFFFF;
    border: 2px solid #E5E7EB; /* match username modal */
    box-shadow: 0 25px 60px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.6);
}

#username-modal .modal-body {
    padding-top: 0.5rem;
}

.simple-modal-title {
    font-family: 'Fredoka', var(--font-heading);
    color: #111827;
    font-weight: 900;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
}

.simple-modal-note {
    background: #DAEFD1; /* soft green */
    color: #2F5233;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    font-weight: 700;
    text-align: left;
    margin: 0 auto 1rem auto;
}

/* Light input inside username modal */
#username-modal .form-group label {
    color: #111827;
}

#username-modal .form-group input {
    background: #FFFFFF;
    border: 2px solid #000000; /* black inner border */
    color: #111827;
    box-shadow: 0 0 0 2px #000000; /* black outline ring */
    font-size: 1.25rem;
    border-radius: 16px;
}

#username-modal .form-group input::placeholder {
    color: #9CA3AF;
}

#username-modal .form-group input:focus {
    border-color: #000000; /* keep black border */
    /* black outline + emerald soft outer ring */
    box-shadow: 0 0 0 2px #000000, 0 0 0 6px rgba(16, 185, 129, 0.15);
}

.modal.active .modal-content {
    transform: scale(1);
}

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

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.modal-item-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.65);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.modal-item-image-wrapper {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

.modal-item-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0.6;
}

#modal-item-image {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

.modal-item-info {
    text-align: center;
}

.modal-item-info h4,
.modal-item-info p {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-item-info span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.modal-item-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-item-title span {
    color: #FFFFFF;
    font-weight: 800;
}

.animate-preview {
    animation: previewPop 0.6s ease forwards;
}

@keyframes previewPop {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    60% {
        transform: scale(1.08);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-group input {
    width: 100%;
    background: rgba(57, 255, 20, 0.05);
    border: 2px solid rgba(57, 255, 20, 0.3);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--duration-normal) ease;
}

.form-group input:focus {
    outline: none;
    border-color: #39FF14;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

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

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.trust-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.15), rgba(0, 212, 255, 0.15));
    border: 1px solid rgba(57, 255, 20, 0.4);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #39FF14;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.trust-message i {
    color: #39FF14;
}

.modal-disclaimer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: rgba(57, 255, 20, 0.15);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border-left: 3px solid #39FF14;
}

.modal-disclaimer i {
    color: #39FF14;
}

.modal-footer {
    margin-top: 2rem;
}

/* ===== GENERATION MODAL ===== */
.generation-modal {
    text-align: center;
}

.ring-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0.5rem auto 1.25rem auto;
}

.progress-ring {
    transform: rotate(-90deg);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}

.ring-bg {
    fill: none;
    stroke: #E5E7EB;
    stroke-width: 10;
}

.ring-progress {
    fill: none;
    stroke: url(#ringGradient);
    stroke: #22C55E;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 439.6; /* 2πr, r=70 */
    stroke-dashoffset: 439.6;
    transition: stroke-dashoffset 0.25s ease;
}

.ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
}

.ring-center img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 12px;
    border: 2px solid #000000;
    box-shadow: 0 0 0 6px rgba(16,185,129,0.12);
}

.ring-percent {
    font-family: 'Fredoka', var(--font-heading);
    font-weight: 900;
    color: #111827;
    font-size: 1.1rem;
}

.loading-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 440px;
    margin: 0.5rem auto 1rem auto;
    padding: 0;
    list-style: none;
}

.loading-steps .step {
    font-weight: 700;
    color: #6B7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loading-steps .step .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E5E7EB;
    box-shadow: inset 0 0 0 2px #D1D5DB;
}

.loading-steps .step.active {
    color: #111827;
}
.loading-steps .step.active .dot {
    background: #22C55E;
    box-shadow: 0 0 10px rgba(34,197,94,0.5);
}
.loading-steps .step.done {
    color: #10B981;
}
.loading-steps .step.done .dot {
    background: #10B981;
}

.sparkles {
    position: relative;
    width: 160px;
    height: 0;
    margin: 0 auto;
}
.sparkles span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 8px rgba(34,197,94,0.75);
    animation: sparkle 1.2s ease-in-out infinite;
}
.sparkles span:nth-child(1){ left:10px; top:-10px; animation-delay:0s;}
.sparkles span:nth-child(2){ left:140px; top:-8px; animation-delay:.2s;}
.sparkles span:nth-child(3){ left:80px; top:-16px; animation-delay:.4s;}
.sparkles span:nth-child(4){ left:40px; top:-18px; animation-delay:.6s;}
.sparkles span:nth-child(5){ left:120px; top:-20px; animation-delay:.8s;}
.sparkles span:nth-child(6){ left:60px; top:-22px; animation-delay:1s;}

@keyframes sparkle {
    0%,100% { transform: translateY(0) scale(1); opacity: .9; }
    50% { transform: translateY(-8px) scale(1.2); opacity: 0.4; }
}

.btn-submit.bounce {
    animation: bounceIn 1s ease forwards, pulseGreen 1.5s ease-in-out infinite 1s, glowPulse 2s ease-in-out infinite 1s;
}

@keyframes bounceIn {
    0% { transform: translateY(12px) scale(.95); opacity: 0; }
    60% { transform: translateY(-6px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); }
}

@keyframes pulseGreen {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4), 0 0 20px rgba(34, 197, 94, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 16px 40px rgba(34, 197, 94, 0.6), 0 0 30px rgba(34, 197, 94, 0.5);
    }
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4), 0 0 20px rgba(34, 197, 94, 0.3), inset 0 0 20px rgba(34, 197, 94, 0.1);
    }
    50% { 
        box-shadow: 0 16px 40px rgba(34, 197, 94, 0.7), 0 0 40px rgba(34, 197, 94, 0.6), inset 0 0 30px rgba(34, 197, 94, 0.2);
    }
}

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

/* Hide steps and sparkles if a cleaner look is desired */
.loading-steps,
.sparkles {
    display: none !important;
}
.generation-header {
    margin-bottom: 2rem;
}

.generation-header h3 {
    font-family: 'Fredoka', var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.5rem;
    color: #FF7A18; /* orange heading */
    font-weight: 900;
    text-transform: none;
}

.generation-percent {
    font-family: 'Fredoka', var(--font-heading);
    color: #FF7A18;
    font-weight: 900;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 0.75rem;
}

.generation-item {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000; /* match username input black border */
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12), 0 10px 28px rgba(0, 0, 0, 0.12); /* soft green outer ring */
}

.generation-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    background: #E5E7EB; /* light gray */
    border-radius: var(--radius-full);
    height: 22px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid #D1D5DB; /* gray-300 outline */
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
}

.progress-fill {
    background: linear-gradient(90deg, #16A34A 0%, #22C55E 100%); /* emerald greens */
    background-size: 100% 100%;
    animation: none;
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 0 rgba(0,0,0,0.25);
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12), 0 0 10px rgba(34, 197, 94, 0.35);
}

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

.progress-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    text-align: center;
}

.generation-modal .progress-container {
    display: none !important; /* Hide bar – keep only circular loader */
}

.generation-status {
    margin-top: 0.75rem;
    text-align: center;
}

.generation-status .urgent {
    color: #111827; /* near-black */
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.generation-status .sub {
    color: #6B7280; /* slate-500 */
    font-weight: 700;
    display: inline-block;
    margin-left: 6px;
}

.generation-status .warn {
    color: #EF4444; /* red */
    font-weight: 900;
    margin-top: 0.25rem;
    display: block;
}

.generation-status .countdown {
    display: block;
    margin-top: 0.25rem;
    font-weight: 900;
    color: #FF7A18; /* orange like example */
    letter-spacing: 0.5px;
    font-family: 'Fredoka', var(--font-heading);
    font-size: clamp(1.25rem, 4vw, 2.25rem);
    text-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.generation-status i {
    color: #39FF14;
    font-size: 1.2rem;
}

.generation-status strong {
    font-weight: 800;
    text-transform: uppercase;
}

.generation-status span {
    display: inline-block;
}

/* ===== RECENT CLAIMS NOTIFICATION ===== */
.recent-claims {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--bg-modal);
    border: 2px solid rgba(57, 255, 20, 0.3);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: none;
    z-index: 1500;
    min-width: 300px;
    transform: translateX(-100%);
    transition: transform var(--duration-slow) ease;
}

.recent-claims.show {
    transform: translateX(0);
}

.recent-claim-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recent-claim-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-claim-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.recent-claim-avatar i {
    color: white;
    font-size: 1.125rem;
}

.recent-claim-text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.recent-claim-text strong {
    color: var(--text-primary);
}

.recent-claim-text span {
    color: var(--primary-color);
    font-weight: 500;
}

.recent-claim-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Optimize base font size for mobile readability */
    html {
        font-size: 16px;
    }
    
    :root {
        --container-padding: 1.25rem;
    }
    
    .container {
        padding: 0 var(--container-padding);
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-stats {
        gap: 1rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: clamp(2.25rem, 8vw, 3.5rem);
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .item-card {
        padding: 1rem;
        border-radius: 14px;
        display: grid;
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem 1rem;
        align-items: start;
    }
    
    .item-header {
        display: none;
    }
    
    .item-image {
        width: 100px;
        height: 100px;
        margin: 0;
        flex-shrink: 0;
        grid-column: 1;
        grid-row: 1;
    }
    
    .btn-claim {
        padding: 2rem 2.5rem;
        font-size: 1.25rem;
        background: #39FF14;
        color: #FFFFFF;
        border: 4px solid #FFFFFF;
        border-radius: 50px;
        flex-shrink: 0;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        box-shadow: none;
        font-weight: 900;
        min-width: 160px;
        min-height: 65px;
        line-height: 1.3;
        letter-spacing: 0.5px;
        text-shadow: -2px -2px 0 #000000, 2px -2px 0 #000000, -2px 2px 0 #000000, 2px 2px 0 #000000, -2px 0 0 #000000, 2px 0 0 #000000, 0 -2px 0 #000000, 0 2px 0 #000000;
    }
    
    .item-info {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 0;
    }
    
    .item-name {
        font-size: 1.2rem;
        margin: 0;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4;
        font-weight: 700;
        text-align: left;
    }
    
    .btn-claim:hover {
        background: #39FF14;
        box-shadow: none;
    }
    
    .rarity-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .stock-count {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .section-title {
        font-size: clamp(2.25rem, 7vw, 3rem);
        flex-direction: column;
        gap: 0.5rem;
        line-height: 1.2;
        font-weight: 900;
    }
    
    .countdown-timer {
        font-size: 1.6rem;
        padding: 0.75rem 1.75rem;
    }
    
    .countdown-prefix {
        font-size: 0.85rem;
        font-weight: 700;
    }
    
    #countdown-display {
        font-size: 1.6rem;
        font-weight: 900;
    }
    
    .countdown-warning {
        font-size: 0.95rem;
        font-weight: 700;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .modal-content {
        padding: 1.75rem;
        width: 92%;
        max-width: 500px;
    }
    
    .simple-modal-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .simple-modal-note {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    #username-modal .form-group input {
        font-size: 1.125rem;
        padding: 1rem 1.25rem;
    }
    
    .btn-submit {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .recent-claims {
        left: 1rem;
        right: 1rem;
        min-width: auto;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem; 
    }
}

@media (max-width: 480px) {
    /* Optimize for small phones */
    html {
        font-size: 16px;
    }
    
    .hero {
        padding: 4rem 0 2rem;
    }
    
    /* Optimized countdown timer for small phones */
    .countdown-wrapper {
        margin-top: 0.75rem;
        gap: 0.5rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
        letter-spacing: 0.08em;
    }
    
    .countdown-timer {
        font-size: 1.25rem;
        padding: 0.5rem 1.25rem;
    }
    
    .countdown-prefix {
        font-size: 0.7rem;
    }
    
    #countdown-display {
        font-size: 1.25rem;
        letter-spacing: 0.1em;
        text-shadow: 
            0 0 5px #FF1111,
            0 0 10px #FF1111,
            0 0 15px #FF3333,
            0 0 20px #FF3333;
    }
    
    .countdown-warning {
        font-size: 0.8rem;
    }
    
    /* Center the helper note on mobile */
    #username-modal .simple-modal-note {
        text-align: center;
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .items-section {
        padding: 2rem 0;
    }
    
    .social-proof {
        padding: 3rem 0;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .item-card {
        padding: 0.875rem;
        border-radius: 12px;
        display: grid;
        grid-template-columns: 90px 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem 0.875rem;
        align-items: start;
    }
    
    .item-header {
        display: none;
    }
    
    .item-image {
        width: 90px;
        height: 90px;
        margin: 0;
        flex-shrink: 0;
        grid-column: 1;
        grid-row: 1;
    }
    
    .btn-claim {
        padding: 2.25rem 2.25rem;
        font-size: 1.3rem;
        background: #39FF14;
        color: #FFFFFF;
        border: 4px solid #FFFFFF;
        border-radius: 50px;
        flex-shrink: 0;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        box-shadow: none;
        font-weight: 900;
        min-width: 170px;
        min-height: 70px;
        line-height: 1.3;
        letter-spacing: 0.5px;
        text-shadow: -2px -2px 0 #000000, 2px -2px 0 #000000, -2px 2px 0 #000000, 2px 2px 0 #000000, -2px 0 0 #000000, 2px 0 0 #000000, 0 -2px 0 #000000, 0 2px 0 #000000;
    }
    
    .item-info {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 0;
    }
    
    .item-name {
        font-size: 1.15rem;
        line-height: 1.35;
        margin: 0;
        font-weight: 700;
        text-align: left;
    }
    
    .btn-claim:hover {
        background: #39FF14;
        box-shadow: none;
    }
    
    .rarity-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
    
    .stock-count {
        font-size: 0.6rem;
        padding: 0.15rem 0.35rem;
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.2;
        font-weight: 900;
    }
    
    .countdown-timer {
        font-size: 1.4rem;
        padding: 0.65rem 1.5rem;
    }
    
    .countdown-prefix {
        font-size: 0.75rem;
        font-weight: 700;
    }
    
    #countdown-display {
        font-size: 1.4rem;
        font-weight: 900;
    }
    
    .countdown-warning {
        font-size: 0.85rem;
        font-weight: 700;
    }
    
    .items-section {
        padding: 1.5rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 90%;
    }
    
    .simple-modal-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .simple-modal-note {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }
    
    #username-modal .form-group input {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    .btn-submit {
        padding: 0.9rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .generation-header h3 {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }
    
    .generation-percent {
        font-size: clamp(0.95rem, 3vw, 1.25rem);
    }
    
    .ring-wrap {
        width: 140px;
        height: 140px;
    }
    
    .ring-center img {
        width: 64px;
        height: 64px;
    }
    
    .ring-percent {
        font-size: 1rem;
    }
    
    .testimonial {
        flex-direction: column;
        text-align: center;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Scroll animations */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.6s ease forwards;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

.will-change {
    will-change: transform, opacity;
}

/* Optimize background animations */
.bg-item-img {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    .bg-item-img {
        animation: none !important;
        opacity: 0.02 !important;
    }
}

/* Pause animations when not visible */
@media (prefers-reduced-motion: no-preference) {
    .bg-item-img:nth-child(odd) {
        animation-play-state: running;
    }
}

/* ===== CPA LOCKER CENTERING ===== */
/* Center the offer wall/locker perfectly on screen */
body.locker-active {
    overflow: hidden;
}

#bGHlLk, 
#content-locker,
.offer-wall-container,
iframe[src*="offers"],
iframe[src*="locker"],
div[id*="locker"]:not(.items-section),
div[class*="locker"],
div[id*="offer"]:not(.items-section),
div[class*="offer"]:not(.items-section) {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999999 !important;
    margin: 0 !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
}

/* Ensure the locker backdrop is full screen */
div[id*="locker-backdrop"],
div[class*="locker-backdrop"],
div[id*="offer-backdrop"],
div[class*="offer-backdrop"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999998 !important;
}

/* Mobile locker centering */
@media (max-width: 768px) {
    #bGHlLk, 
    #content-locker,
    .offer-wall-container,
    iframe[src*="offers"],
    iframe[src*="locker"],
    div[id*="locker"]:not(.items-section),
    div[class*="locker"],
    div[id*="offer"]:not(.items-section),
    div[class*="offer"]:not(.items-section) {
        max-width: 95vw !important;
        max-height: 95vh !important;
        width: 95vw !important;
    }
}

/* ===== ACCESSIBILITY ===== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --bg-primary: #000000;
        --bg-secondary: #000000;
    }
}