:root {
    /* Ultra Premium Dark Theme */
    --bg-color: #03050a; /* True deep black/navy */
    --surface-color: #0b111a;
    --surface-float: rgba(16, 23, 38, 0.7);
    
    /* Vibrant Gold & Emerald */
    --primary: #f59e0b; /* Amber */
    --primary-glow: rgba(245, 158, 11, 0.4);
    --secondary: #10b981; /* Emerald */
    
    /* Typography Colors */
    --text-pure: #ffffff;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    
    /* Forms */
    --input-bg: #111827;
    --border-color: #1e293b;
    --border-focus: #f59e0b;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: clip;
    width: 100%;
}
html {
    scroll-behavior: smooth;
}

/* --- Layout --- */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- Left Side: Brand Showcase --- */
.brand-showcase {
    flex: 1.2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5% 6%;
    background-image: url('https://images.unsplash.com/photo-1529699211952-734e80c4d42b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.brand-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Rich dark cinematic gradient */
    background: linear-gradient(135deg, rgba(3, 5, 10, 0.9) 0%, rgba(3, 5, 10, 0.6) 50%, rgba(3, 5, 10, 0.4) 100%);
    backdrop-filter: grayscale(0.2);
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 48px; /* Adjust height based on preference */
    width: auto;
    filter: drop-shadow(0 0 12px var(--primary-glow));
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.hero-text-container {
    margin-top: auto;
    margin-bottom: auto; /* Vertically center */
    max-width: 550px;
}

.hero-text-container h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-pure);
    letter-spacing: -1.5px;
}

.hero-text-container h1 span {
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b 0%, #fde68a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 4.5rem;
    letter-spacing: -2px;
    display: block;
    margin-top: 2px;
}

.hero-text-container p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

.features {
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.3);
}

.feature-icon {
    color: var(--primary);
    font-size: 1.1rem;
}

/* --- Right Side: Form Container --- */
.form-container {
    flex: 0.8;
    background-color: var(--bg-color); /* pure black/navy */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    z-index: 5;
}

.form-wrapper {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 2;
}

.mobile-logo {
    display: none;
    margin-bottom: 32px;
    align-items: center;
    justify-content: center;
}
.mobile-logo .brand-logo {
    height: 56px;
}

.header {
    margin-bottom: 40px;
}

.header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-pure);
    letter-spacing: -0.5px;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
}

.form-row {
    display: flex;
    gap: 16px;
}

.half-width {
    flex: 1;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.form-group:focus-within label {
    color: var(--primary);
}

.input-wrapper {
    position: relative;
}

.icon-left {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    pointer-events: none;
}

.form-control {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 20px 16px 52px;
    font-size: 1rem;
    color: var(--text-pure);
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

/* Touch targets for mobile */
@media (max-width: 850px) {
    .form-control { height: 56px; }
}

.form-control::placeholder {
    color: #475569;
    font-weight: 400;
}

.form-control:hover {
    border-color: #334155;
    background-color: #162032;
}

.form-control:focus {
    border-color: var(--border-focus);
    background-color: #162032;
    box-shadow: 0 0 0 3px var(--primary-glow);
    transform: translateY(-2px); /* Premium float effect */
}

.form-group:focus-within .icon-left {
    color: var(--primary);
}

/* Form Animation */
#chessForm {
    opacity: 0;
    animation: slideUpFade 0.6s var(--ease-out-expo) forwards;
}

@keyframes slideUpFade {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- Submit Button --- */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .arrow-icon {
    transform: translateX(6px);
}

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

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4);
}

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

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 10px rgba(245, 158, 11, 0.3);
}

.terms-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 24px;
}

.terms-text a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.terms-text a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ─── Countdown Timer ──────────────────────────────────── */
.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 14px 18px;
    min-width: 68px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
    transition: transform 0.2s ease;
}

.cd-unit:hover {
    transform: translateY(-2px);
}

.cd-unit::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

.cd-num {
    font-family: var(--font-body);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
}

.cd-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

.cd-sep {
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(245, 158, 11, 0.4);
    align-self: center;
    margin-bottom: 18px;
    animation: sepBlink 1s infinite;
}

@keyframes sepBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* urgent red pulse when < 1 hour left */
.cd-unit.urgent {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.04) 100%);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
    animation: urgentPulse 1s infinite;
}

.cd-unit.urgent .cd-num {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.cd-unit.urgent::before {
    background: linear-gradient(90deg, transparent, #ef4444, transparent);
}

@keyframes urgentPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15); }
    50% { box-shadow: 0 4px 30px rgba(239, 68, 68, 0.35); }
}

@media (max-width: 480px) {
    .cd-unit { min-width: 54px; padding: 10px 12px; }
    .cd-num { font-size: 1.7rem; }
    .cd-sep { font-size: 1.4rem; }
}

/* --- Status Messages --- */
.status-message {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    animation: slideUpFade 0.6s ease forwards;
    margin-bottom: 24px;
}

.status-icon {
    font-size: 2.8rem;
    color: #ef4444;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.3));
}

.success-icon {
    color: var(--secondary);
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

.status-message h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-pure);
}

.status-message p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Success Overlay --- */
.success-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 5, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1000;
}

.success-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.success-content {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s var(--ease-out-expo);
}

.success-overlay.active .success-content {
    transform: scale(1) translateY(0);
}

.check-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.success-content h2 {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 12px;
    color: var(--text-pure);
}

.ok-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-pure);
    padding: 16px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ok-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 8px 20px var(--primary-glow);
}

/* Loading state for button */
.fa-spinner {
    margin-left: 10px;
}

/* --- Telegram Join Button --- */
.telegram-link-container {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.telegram-link-container p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(36, 161, 222, 0.1);
    color: #24a1de; /* Official Telegram Blue */
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(36, 161, 222, 0.3);
    transition: all 0.3s ease;
    width: 100%;
}

.telegram-btn i {
    font-size: 1.2rem;
}

.telegram-btn:hover {
    background: rgba(36, 161, 222, 0.2);
    border-color: rgba(36, 161, 222, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(36, 161, 222, 0.2);
}

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

/* --- WhatsApp Join Button --- */
.telegram-btn.whatsapp-btn {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.telegram-btn.whatsapp-btn i {
    color: #25d366;
}

.telegram-btn.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.55);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
    color: #25d366;
}

/* ─── Premium Top Banner ────────────────────────────────── */
.urgency-banner {
    background: rgba(3, 5, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.urgency-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pulse-ring {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    flex-shrink: 0;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -4px;
    width: 16px;
    height: 16px;
    background-color: rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    animation: pulseAnim 2s infinite ease-in-out;
}

@keyframes pulseAnim {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ─── Live Counter ──────────────────────────────────── */
.live-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 30px;
    width: fit-content;
}

.live-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
    flex-shrink: 0;
}

.live-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.5);
    animation: livePing 1.5s ease-out infinite;
}

@keyframes livePing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* ─── Stats Strip ───────────────────────────────────── */
.stats-strip {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 18px 24px;
    margin: 24px 0 20px;
    max-width: 420px;
}

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

.stat-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* ─── How it Works ──────────────────────────────────── */
.how-it-works {
    max-width: 420px;
    margin-bottom: 24px;
}

.hiw-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.hiw-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.hiw-step:hover {
    border-color: rgba(245, 158, 11, 0.2);
}

.hiw-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #03050a;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.hiw-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hiw-text strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hiw-text span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ─── Trust Badges ──────────────────────────────────── */
.trust-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.trust-badge i {
    font-size: 0.75rem;
}

/* ─── Form Progress Bar ─────────────────────────────── */
.form-progress-container {
    margin-bottom: 28px;
}

.form-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

#progressPercent {
    color: var(--primary);
    transition: all 0.3s ease;
}

.form-progress-track {
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #f59e0b);
    border-radius: 100px;
    transition: width 0.5s var(--ease-out-expo);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* ─── Field Validation Checkmark ───────────────────── */
.input-wrapper .field-check {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #10b981;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.input-wrapper.is-valid .field-check {
    opacity: 1;
    color: #10b981;
    transform: translateY(-50%) scale(1.1);
}

.input-wrapper.is-loading .field-check {
    opacity: 1;
    color: #f59e0b; /* Orange for loading state */
    transform: translateY(-50%) scale(1.1);
}

.input-wrapper.is-invalid .field-check {
    opacity: 1;
    color: #ef4444; /* Red color for error */
    transform: translateY(-50%) scale(1.1);
}

.input-wrapper.is-valid .form-control {
    border-color: rgba(16, 185, 129, 0.4);
}

.input-wrapper.is-invalid .form-control {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ─── Security Assurance ────────────────────────────── */
.security-assurance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 14px;
    margin-bottom: 4px;
}

.security-assurance i {
    color: #10b981;
    font-size: 0.85rem;
}

/* ==========================================================================
   MOBILE & RESPONSIVE PERFECTION
   ========================================================================== */

@media (max-width: 1100px) {
    .brand-showcase {
        padding: 5% 4%;
    }
    .hero-text-container h1 { font-size: 4rem; }
    .hero-text-container h1 span { font-size: 3rem; }
    .form-container { flex: 1; padding: 30px; }
}

@media (max-width: 850px) {
    /* Stack them beautifully */
    .app-layout {
        flex-direction: column;
        background-color: var(--bg-color);
    }
    
    .brand-showcase {
        flex: none;
        height: 55vh; /* Fixed height for image area */
        min-height: 460px;
        padding: 40px 20px;
        position: relative;
    }

    /* Seamless fade out to the body background */
    .brand-overlay {
        background: linear-gradient(180deg, rgba(3, 5, 10, 0.5) 0%, rgba(3, 5, 10, 0.8) 60%, var(--bg-color) 100%);
    }
    
    .brand-content {
        align-items: center; /* Center align text on mobile */
        text-align: center;
        justify-content: flex-start;
        padding-top: 20px;
    }
    
    .logo {
        display: none; /* Hide on top, show in the form card */
    }
    
    .hero-text-container {
        margin: 0; /* Reset margins */
    }
    
    .hero-text-container h1 { 
        font-size: 3.2rem; 
        margin-bottom: 16px;
    }
    .hero-text-container h1 span { 
        font-size: 2.4rem; 
    }
    
    .hero-text-container p {
        font-size: 1.05rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .features, .testimonials, .stats-strip, .how-it-works {
        display: none;
    }

    .live-counter {
        margin: 0 auto 20px auto; /* Center on mobile */
    }
    
    /* The Form Panel -> Frosted Glass Floating Card */
    .form-container {
        flex: none;
        width: 100%;
        padding: 0 16px 40px 16px;
        background: transparent; /* Remove background */
        box-shadow: none; /* Remove shadows from container */
        z-index: 10;
        margin-top: -80px; /* Pull it up over the hero image */
    }
    
    .form-wrapper {
        background: var(--surface-float);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 36px 24px;
        border-radius: 28px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
        margin: 0 auto;
    }
    
    .mobile-logo {
        display: flex;
        justify-content: center;
    }
    
    .header {
        text-align: center;
        margin-bottom: 32px;
    }
    
    .header h2 { font-size: 2rem; }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .brand-showcase {
        height: 50vh;
        min-height: 400px;
    }

    .hero-text-container h1 { font-size: 2.8rem; }
    .hero-text-container h1 span { font-size: 2.1rem; }
    
    .form-container {
        margin-top: -60px; 
    }

    .form-wrapper {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .header h2 { font-size: 1.8rem; }
    
    /* Bigger target boxes for easier tapping on small phones */
    .form-control {
        font-size: 16px; /* Prevents auto zoom */
        padding: 18px 18px 18px 52px;
    }
    
    .icon-left {
        font-size: 1.2rem;
        left: 22px;
    }
    
    .submit-btn {
        padding: 20px;
        font-size: 1.15rem;
    }
}

/* ═══════════════════════════════════════════════════════
   PROMO CODE SYSTEM
   ═══════════════════════════════════════════════════════ */

/* ─── Apply Button (sits next to input) ─────────────── */
.apply-btn {
    padding: 0 22px;
    height: 54px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 14px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.apply-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.15));
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
}

.apply-btn:active:not(:disabled) {
    transform: translateY(0px);
}

.apply-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.apply-btn.applied {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
}

/* ─── Promo Status Text ─────────────────────────────── */
#promoStatus {
    font-size: 0.8rem;
    font-weight: 500;
    min-height: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

#promoStatus.status-success {
    color: #10b981;
}

#promoStatus.status-error {
    color: #ef4444;
}

#promoStatus.status-loading {
    color: var(--primary);
}

/* ─── Discount Badge (shown on submit button) ───────── */
.discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

/* ─── Promo Popup Overlay ───────────────────────────── */
.promo-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 5, 10, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1100;
}

.promo-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.promo-popup-box {
    background: rgba(11, 17, 26, 0.85); /* Rich glass background */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle silver rim */
    border-radius: 32px;
    padding: 50px 40px 40px;
    text-align: center;
    max-width: 420px;
    width: 92%;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8),
                0 0 0 1px rgba(245, 158, 11, 0.2),
                inset 0 0 80px rgba(245, 158, 11, 0.05);
    transform: scale(0.88) translateY(30px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.promo-popup-overlay.active .promo-popup-box {
    transform: scale(1) translateY(0);
}

/* Shimmer top border */
.promo-popup-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f59e0b, #fde68a, #ffffff, #fde68a, #f59e0b, transparent);
    animation: premiumShimmer 3s ease-in-out infinite;
    box-shadow: 0 0 20px #f59e0b;
}

@keyframes premiumShimmer {
    0%   { transform: translateX(-100%); opacity: 0; }
    50%  { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.promo-popup-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
    line-height: 1;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    animation: premiumPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, floatEmoji 3s ease-in-out infinite 0.6s;
}

@keyframes premiumPopIn {
    0%   { transform: scale(0) rotate(-20deg) translateY(20px); opacity: 0; }
    100% { transform: scale(1) rotate(0deg) translateY(0); opacity: 1; }
}
@keyframes floatEmoji {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.promo-popup-box h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-pure);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.promo-popup-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.promo-discount-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 100px;
    padding: 12px 28px;
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 900;
    color: #fde68a;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15), inset 0 2px 10px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Shine effect over the pill */
.promo-discount-pill::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: pillShine 3s infinite;
}
@keyframes pillShine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.promo-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.promo-original-price {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    text-decoration-color: rgba(239, 68, 68, 0.6);
}

.promo-final-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #10b981;
    letter-spacing: -0.5px;
}

.promo-popup-close-btn {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 18px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
    position: relative;
    overflow: hidden;
}

.promo-popup-close-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
    border-color: rgba(255,255,255,0.4);
}

/* ─── Promo Row Input Flex Container ────────────────── */
.promo-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.promo-input-row .input-wrapper {
    flex: 1;
}

@media (max-width: 850px) {
    .apply-btn { height: 56px; }
}

@media (max-width: 480px) {
    .promo-popup-box { padding: 36px 24px 28px; }
    .promo-popup-emoji { font-size: 3rem; }
    .promo-popup-box h3 { font-size: 1.4rem; }
}

/* --- UPI Payment Card Styles --- */
.upi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(198, 168, 124, 0.25);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    animation: slideUpFade 0.5s var(--ease-out-expo) forwards;
}

.upi-card:hover {
    border-color: rgba(198, 168, 124, 0.45);
    box-shadow: 0 12px 40px 0 rgba(198, 168, 124, 0.08);
}

.upi-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.upi-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 20px;
}

.upi-id-copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.upi-id-copy-row:hover {
    border-color: var(--border-focus);
}

.upi-id-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    word-break: break-all;
}

.upi-copy-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upi-copy-btn:hover {
    background: rgba(198, 168, 124, 0.15);
    color: #ffffff;
}

.upi-copy-btn:active {
    transform: scale(0.92);
}

.upi-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(198, 168, 124, 0.2);
    border-radius: 12px;
}

.upi-qr-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upi-qr-code {
    width: 150px;
    height: 150px;
    background: white;
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.upi-qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upi-utr-wrapper {
    margin-bottom: 0;
}

.upi-utr-wrapper label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.upi-validation-msg {
    font-size: 0.78rem;
    font-weight: 500;
    color: #ef4444;
    margin-top: 6px;
    display: none;
}