/* ===================================
   Haybi - Luxe Kinetic Hybrid Design System
   Premium dark hero + vibrant purple content sections
   =================================== */

/* ===================================
   CSS Variables - Luxe Kinetic Hybrid Palette
   =================================== */
:root {
    /* Dark Hero Colors */
    --hero-bg: #0F0F13;
    --hero-bg-light: #1A1A23;
    --hero-glass: rgba(37, 37, 47, 0.6);

    /* Purple Brand Colors - Matched to Haybi Logo */
    --purple-primary: #7C3AED;
    --purple-dark: #6D28D9;
    --purple-light: #8B5CF6;
    --purple-lighter: #A78BFA;
    --purple-darker: #5B21B6;
    --purple-vibrant: #8B5CF6;

    /* Legacy primary mappings (for backward compatibility) */
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #8B5CF6;
    --primary-darker: #5B21B6;

    /* Accent Colors (Deep Purple - Brand Consistent) */
    --gold-primary: #6B1DC3;
    --gold-light: #8B4BD6;
    --gold-dark: #5A18A5;

    /* Success/Utility */
    --teal: #2DD4BF;
    --coral: #FB7185;
    --secondary: #10B981;
    --secondary-dark: #059669;

    /* Status Colors */
    --error: #EF4444;
    --success: #10B981;

    /* Text Colors */
    --text-hero: #FAFAFA;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;

    /* Grayscale */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-purple-tint: rgba(139, 92, 246, 0.05);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow-purple: 0 0 40px rgba(124, 58, 237, 0.35);
    --shadow-glow-gold: 0 0 40px rgba(107, 29, 195, 0.3);

    /* Typography - Editorial Feel */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: -apple-system, 'Segoe UI', ui-monospace, monospace;

    /* Type Scale with clamp() for fluid sizing */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: clamp(1.5rem, 3vw, 1.875rem);
    --font-size-4xl: clamp(1.75rem, 4vw, 2.25rem);
    --font-size-5xl: clamp(2.5rem, 8vw, 5rem);
    --font-size-hero: clamp(3rem, 10vw, 6rem);

    /* Transitions (Material Design 3) */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--purple-primary);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

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

/* ===================================
   View Transitions API
   =================================== */
@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.5s;
}

/* ===================================
   Accessibility Enhancements
   =================================== */

/* Focus Visible Styles */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--gold-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-float,
    .phone-mockup,
    .app-icon-squircle {
        animation: none !important;
    }

    .hero::before,
    .hero::after {
        animation: none !important;
    }

    .text-gradient {
        animation: none !important;
        background: var(--gold-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --purple-primary: #5B21B6;
        --gray-600: #374151;
    }

    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }

    .merchant-card,
    .feature-card {
        border: 2px solid var(--gray-300);
    }
}

/* ===================================
   Navigation - Transparent to Solid
   =================================== */
.navbar {
    background: transparent;
    padding: var(--spacing-md) 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 19, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: var(--spacing-sm) 0;
}

/* Progressive enhancement for blur */
@supports (backdrop-filter: blur(10px)) {
    .navbar.scrolled {
        backdrop-filter: blur(10px);
        background: rgba(15, 15, 19, 0.85);
    }
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: var(--font-size-xl);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--font-size-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-icon-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.logo:hover .logo-icon,
.logo:hover .logo-icon-img {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(107, 29, 195, 0.5);
}

.logo-text {
    color: var(--text-hero);
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--text-hero);
}

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

.nav-link-special {
    background: transparent;
    color: var(--gold-primary) !important;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    border: 2px solid var(--gold-primary);
    transition: all var(--transition-base);
}

.nav-link-special::after {
    display: none;
}

.nav-link-special:hover {
    background: var(--gold-primary);
    color: var(--hero-bg) !important;
    transform: translateY(-1px);
}

/* Hide Register CTA until user scrolls */
.nav-register-cta {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar.scrolled .nav-register-cta {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: var(--spacing-sm);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-hero);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-bg);
    padding: 100px var(--spacing-xl) var(--spacing-xl);
    z-index: 999;
}

.mobile-menu a {
    display: block;
    padding: var(--spacing-lg);
    color: var(--text-hero);
    font-size: var(--font-size-xl);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.4s; }

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* ===================================
   Hero Section - Dark Theme
   =================================== */
.hero {
    padding: calc(var(--spacing-3xl) + 60px) 0 var(--spacing-3xl);
    background: linear-gradient(180deg, var(--hero-bg) 0%, var(--hero-bg-light) 100%);
    color: var(--text-hero);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Animated gradient mesh overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(107, 29, 195, 0.1) 0%, transparent 50%);
    animation: meshMove 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes meshMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(10px, -10px) scale(1.02);
    }
    66% {
        transform: translate(-10px, 10px) scale(0.98);
    }
}

/* Grain texture overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* App Icon (Squircle Style) */
.app-icon-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: var(--spacing-lg);
}

.app-icon-squircle {
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
    border-radius: 26%;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
    box-shadow: var(--shadow-xl), 0 10px 40px rgba(124, 58, 237, 0.4);
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px;
    animation: iconFloat 3s ease-in-out infinite, fadeInScale 0.6s ease-out;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.app-icon-squircle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl), var(--shadow-glow-gold);
}

/* Hero Label */
.hero-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--font-size-hero);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--purple-light), #A78BFA, var(--purple-primary), var(--purple-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

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

.hero-tagline {
    font-family: var(--font-body);
    font-size: var(--font-size-2xl);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.7;
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Stats - Dark Glass Card */
.hero-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--hero-glass);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    animation: scaleIn 0.5s ease-out calc(0.8s + var(--delay, 0s)) both;
    min-width: 100px;
}

.stat-item:nth-child(1) { --delay: 0s; }
.stat-item:nth-child(2) { --delay: 0.1s; }
.stat-item:nth-child(3) { --delay: 0.2s; }

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

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-glow-purple);
    border-color: var(--purple-light);
}

.stat-number {
    font-family: var(--font-mono);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gold-primary);
}

.stat-label {
    font-size: var(--font-size-sm);
    opacity: 0.7;
    margin-top: var(--spacing-xs);
}

/* Hero CTA - Gold Theme */
.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn-primary, .btn-secondary {
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-size-lg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
    min-height: 44px;
    min-width: 44px;
}

/* Shimmer effect for primary button */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(107, 29, 195, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(107, 29, 195, 0.5);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.01);
    transition-duration: 0.1s;
}

.btn-secondary {
    background: transparent;
    color: var(--text-hero);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px) scale(1.03);
}

.btn-secondary:active {
    transform: translateY(-2px) scale(1.01);
    transition-duration: 0.1s;
}

/* Button Loading States */
.btn-primary.loading,
.btn-secondary.loading,
button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
    cursor: not-allowed;
}

.btn-primary.loading::after,
.btn-secondary.loading::after,
button.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: buttonSpinner 0.6s linear infinite;
}

.btn-primary.loading::after {
    border-top-color: var(--hero-bg);
}

.btn-secondary.loading::after {
    border-top-color: white;
}

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

/* Disabled state */
.btn-primary:disabled:not(.loading),
.btn-secondary:disabled:not(.loading),
button:disabled:not(.loading) {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.hero-note {
    font-size: var(--font-size-sm);
    opacity: 0.6;
    animation: fadeInUp 0.8s ease-out 1s both;
}

/* ===================================
   Phone Mockup - Dark Theme
   =================================== */
.phone-mockup {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 40px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset -2px -2px 4px rgba(255, 255, 255, 0.03),
        inset 2px 2px 4px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(124, 58, 237, 0.2);
    padding: 4px;
    border: 6px solid #0a0a0a;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phone-mockup:hover {
    transform: translateY(-10px) rotateY(-5deg) rotateX(5deg);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(124, 58, 237, 0.3),
        0 0 40px rgba(107, 29, 195, 0.2);
}

/* Phone Screen - Dark Theme */
.phone-screen {
    background: linear-gradient(180deg, #1a1a2e 0%, #16162a 100%);
    border-radius: 30px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.05),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
}

/* Screen glare animation */
.phone-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 45%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 55%,
        transparent 100%
    );
    animation: screenGlare 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 50;
}

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

/* Power Button Screen - Dark */
.power-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.power-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.power-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 24px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.power-button:hover {
    transform: scale(1.1);
}

.power-button:active {
    transform: scale(0.95);
}

.power-icon {
    width: 64px;
    height: 64px;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 20px rgba(107, 29, 195, 0.5));
    animation: powerPulse 2s ease-in-out infinite;
}

.power-text {
    color: var(--gold-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.8;
    animation: textFade 2s ease-in-out infinite;
}

@keyframes powerPulse {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(107, 29, 195, 0.5));
    }
    50% {
        opacity: 0.6;
        filter: drop-shadow(0 0 30px rgba(107, 29, 195, 0.8));
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
}

/* Splash Screen - matches Flutter HaybiBrandColors.splashGradient */
.splash-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #1E1B4B 0%, #5B21B6 50%, #6D28D9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Column layout */
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 82%;
}

/* Centered square card — subtle rounding matching the app */
.splash-video-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
}

/* Video fills wrapper fully — no scale gap */
.splash-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* "Haybi" — matches GoogleFonts.poppins(fontSize: 38, fontWeight: w700, letterSpacing: 6) */
.splash-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 6px;
    margin: 0 0 6px 0;
}

/* "Play. Earn. Win." — matches GoogleFonts.nunito(fontSize: 16, fontWeight: w600, letterSpacing: 2) */
.splash-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 2px;
    margin: 0;
}

/* Phone notch - Dark */
.phone-screen::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    opacity: 0.5;
    z-index: 10;
}

.app-preview {
    padding: var(--spacing-lg) var(--spacing-md);
    padding-top: 30px;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
}

.app-preview::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.app-logo {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
    color: white;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--font-size-lg);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
    overflow: hidden;
}

.app-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.points-badge {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: var(--hero-bg);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-sm);
    box-shadow: 0 2px 8px rgba(107, 29, 195, 0.3);
}

.app-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Merchant Cards - Dark Theme */
.merchant-card {
    background: #262637;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
    transform: translateZ(0);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.merchant-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: var(--purple-light);
}

.merchant-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.merchant-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3a3a4a;
    border-radius: var(--radius-md);
}

.merchant-name {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: #FAFAFA;
}

.merchant-distance {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
}

.points-earn {
    background: var(--teal);
    color: var(--hero-bg);
    padding: 4px var(--spacing-md);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-xs);
}

/* Spin Preview - Dark Theme */
.spin-preview {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spin-text {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.spin-button-mini {
    font-size: var(--font-size-lg);
}

/* Interactive States - Dark Theme */
.merchant-card.interactive {
    cursor: pointer;
    user-select: none;
}

.merchant-card.interactive:active {
    transform: scale(0.98);
}

.merchant-card.checked-in {
    opacity: 0.5;
    pointer-events: none;
    background: #1e1e2e;
}

.merchant-card.checked-in .points-earn {
    background: var(--gray-600);
}

.merchant-card.checking-in {
    animation: checkInPulse 0.6s ease-out;
}

@keyframes checkInPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
    }
    100% {
        transform: scale(1);
    }
}

/* Points Badge Animation */
.points-badge.updating {
    animation: pointsPulse 0.5s ease-out;
}

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

/* Points Notification - Dark Theme */
.points-notification {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--teal), #14b8a6);
    color: var(--hero-bg);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-sm);
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.4);
    animation: slideInRight 0.3s ease-out, slideOutRight 0.3s ease-in 2.7s forwards;
    z-index: 10;
    pointer-events: none;
}

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

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

/* Spin States */
.spin-preview.interactive {
    cursor: pointer;
    transition: all var(--transition-base);
}

.spin-preview.interactive:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.spin-preview.spinning {
    animation: spinPulse 1s ease-in-out infinite;
}

@keyframes spinPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05) rotate(180deg);
    }
}

.spin-preview.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Demo Control Buttons */
.demo-controls {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
}

.reset-demo-btn,
.sound-toggle-btn {
    background: var(--hero-glass);
    color: var(--text-hero);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    opacity: 0.7;
}

.reset-demo-btn:hover,
.sound-toggle-btn:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--gold-primary);
}

.sound-toggle-btn.muted {
    opacity: 0.4;
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ===================================
   Spin Wheel View - Dark Theme
   =================================== */
.spin-wheel-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 50%, var(--purple-darker) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.spin-wheel-view.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.spin-wheel-title {
    color: white;
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.roulette-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: var(--spacing-lg) 0;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
    transition: transform 0.1s ease-out;
}

.wheel-segment {
    transition: opacity 0.3s ease;
}

.segment-text {
    font-size: 14px;
    font-weight: 700;
    fill: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    user-select: none;
}

.wheel-center {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wheel-center:hover .wheel-center-circle {
    filter: drop-shadow(0 4px 15px rgba(107, 29, 195, 0.6));
}

.wheel-center:active {
    transform: scale(0.95);
}

.wheel-center-circle {
    fill: var(--gold-primary);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.wheel-center-text {
    font-size: 16px;
    font-weight: 800;
    fill: var(--hero-bg);
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid var(--gold-primary);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    z-index: 5;
    animation: pointerBounce 1s ease-in-out infinite;
}

@keyframes pointerBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.spin-action-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: var(--hero-bg);
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--radius-full);
    border: none;
    font-size: var(--font-size-lg);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(107, 29, 195, 0.4);
    transition: all var(--transition-base);
    margin-top: var(--spacing-lg);
}

.spin-action-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(107, 29, 195, 0.5);
}

.spin-action-btn:active {
    transform: translateY(0) scale(1);
}

.spin-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.back-to-merchants {
    color: white;
    font-size: var(--font-size-sm);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.back-to-merchants:hover {
    opacity: 1;
    color: var(--gold-light);
}

/* Spin Result Popup - Dark Theme */
.spin-result-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #1a1a2e;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 20;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spin-result-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.result-title {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #FAFAFA;
    margin-bottom: var(--spacing-sm);
}

.result-points {
    font-family: var(--font-mono);
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: var(--spacing-lg);
}

.result-close-btn {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-full);
    border: none;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.result-close-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* Confetti */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 15;
    animation: confettiFall 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes confettiFall {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) rotate(720deg) scale(0);
        opacity: 0;
    }
}

/* "Luxe Kinetic Hybrid" confetti color palette */
.confetti.gold { background: var(--gold-primary); }
.confetti.teal { background: var(--teal); }
.confetti.purple { background: var(--purple-light); }
.confetti.gold-light { background: var(--gold-light); }
/* Legacy color classes for backwards compatibility */
.confetti.green { background: var(--teal); }
.confetti.blue { background: var(--purple-primary); }
.confetti.yellow { background: var(--gold-primary); }
.confetti.pink { background: var(--gold-light); }

.confetti.star {
    border-radius: 0;
    width: 10px;
    height: 10px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ===================================
   Features Section - Light with Purple Accents
   =================================== */
.features {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
}

/* Subtle purple gradient at top for transition */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-primary), var(--gold-primary));
    border-radius: 2px;
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
}

/* Bento Grid for Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    transition: transform var(--transition-bounce),
                box-shadow var(--transition-base),
                border-color var(--transition-base);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(124, 58, 237, 0.08),
        transparent
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.feature-card:hover::before {
    left: 150%;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(124, 58, 237, 0.15);
    border-color: var(--purple-primary);
}

.feature-card:active {
    transform: translateY(-10px) scale(1.01);
    transition-duration: 0.1s;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    display: block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 5px 15px rgba(124, 58, 237, 0.3));
}

.feature-title {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   How It Works Section - Light with Timeline
   =================================== */
.how-it-works {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
    position: relative;
}

/* Subtle purple gradient at top */
.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.02) 0%, transparent 100%);
    pointer-events: none;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    position: relative;
}


.step {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-bounce),
                box-shadow var(--transition-base);
    will-change: transform;
    z-index: 1;
}

.step::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-primary), var(--gold-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step:hover::after {
    transform: scaleX(1);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2);
}

.step:active {
    transform: translateY(-8px);
    transition-duration: 0.1s;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    line-height: 1;
    text-align: center;
    margin: 0 auto var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(107, 29, 195, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.step:hover .step-number {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 8px 25px rgba(107, 29, 195, 0.5);
}

.step-title {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .steps::before {
        display: none;
    }
}

/* ===================================
   What Can You Earn Section
   =================================== */
.rewards-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, rgba(139, 92, 246, 0.06) 100%);
    position: relative;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.reward-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.reward-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.reward-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.12);
    border-color: var(--purple-light);
}

.reward-card:hover::after {
    opacity: 1;
}

.reward-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(139, 92, 246, 0.06) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-base), background var(--transition-base);
}

.reward-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--purple-primary);
    stroke: var(--purple-primary);
}

.reward-card:hover .reward-card-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.reward-card-title {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.reward-card-description {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}

@media (max-width: 1024px) {
    .rewards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .rewards-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Merchants Section - Purple Gradient
   =================================== */
.merchants {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 50%, var(--purple-darker) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Background animation dots */
.merchants::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: merchantDots 20s linear infinite;
    opacity: 0.5;
}

@keyframes merchantDots {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 30px;
    }
}

.merchants .section-header {
    position: relative;
    z-index: 1;
}

.merchants .section-title {
    color: white;
}

.merchants .section-title::after {
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
}

.merchants .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.merchants-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.category-chip {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-weight: 500;
    color: white;
    transition: transform var(--transition-bounce),
                box-shadow var(--transition-base),
                background var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.category-chip:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--gold-primary);
}

.category-chip:active {
    transform: translateY(-3px) scale(1.05);
    transition-duration: 0.1s;
}

.chip-active {
    background: var(--gold-primary) !important;
    color: var(--hero-bg) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(107, 29, 195, 0.4) !important;
}

.merchant-cta {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    margin-top: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.merchant-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--gold-primary);
}

.merchant-cta h3 {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
}

.merchant-cta p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.merchant-cta .btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: #ffffff;
}

/* ===================================
   Download Section - Light with Gold Accents
   =================================== */
.download {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

/* Subtle purple gradient at edges */
.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.download-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.download-title {
    font-family: var(--font-display);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.download-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Download Stats */
.download-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md) 0;
}

.download-stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    animation: fadeInUp 0.6s ease-out backwards;
}

.download-stat-item:nth-child(1) {
    animation-delay: 0.2s;
}

.download-stat-item:nth-child(2) {
    animation-delay: 0.4s;
}

.download-stat-icon {
    font-size: var(--font-size-xl);
}

.download-stat-item strong {
    font-family: var(--font-mono);
    color: var(--gold-dark);
    font-weight: 700;
}

.download-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.store-button {
    background: var(--hero-bg);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    min-height: 44px;
}

.store-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
    transition: left 0.5s;
}

.store-button:hover::before {
    left: 100%;
}

.store-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--purple-primary);
}

.store-button.coming-soon {
    opacity: 0.5;
    pointer-events: none;
}

.store-icon {
    font-size: var(--font-size-2xl);
}

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

.store-label {
    font-size: var(--font-size-xs);
    opacity: 0.6;
}

.store-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.download-note {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ===================================
   Footer - Dark Charcoal
   =================================== */
.footer {
    background: var(--hero-bg-light);
    color: var(--text-hero);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-md);
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--gray-400);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.footer-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--gray-400);
    transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.social-link:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-heading {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-column a {
    color: var(--gray-400);
    transition: color var(--transition-base);
    position: relative;
    display: inline-block;
}

.footer-column a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--purple-light);
    transition: width var(--transition-base);
}

.footer-column a:hover {
    color: white;
}

.footer-column a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal a {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
}

.footer-legal a:hover {
    color: var(--purple-light);
}

.footer-copyright {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Live Users Indicator
   =================================== */
.live-users-indicator {
    position: absolute;
    top: 85px;
    right: 20px;
    background: var(--hero-glass);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.5s ease-out;
    z-index: 10;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.6);
}

@keyframes livePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.live-text strong {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--gold-primary);
}

/* ===================================
   Page Loading Animation
   =================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(107, 29, 195, 0.3);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gold-primary);
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* ===================================
   Scroll Progress Bar - Gold
   =================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: var(--font-size-lg);
    }
}

/* ===================================
   CTA Pulse Effect
   =================================== */
.cta-pulse {
    position: relative;
    animation: ctaPulseGlow 2s ease-in-out infinite;
}

@keyframes ctaPulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(107, 29, 195, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(107, 29, 195, 0.6), 0 0 0 4px rgba(107, 29, 195, 0.2);
    }
}

/* Icon Pulse Animation */
@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* ===================================
   Staggered Entry Animations
   =================================== */
.animate-fade-in-1 {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.animate-fade-in-2 {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.15s backwards;
}

.animate-fade-in-3 {
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
}

.animate-fade-in-4 {
    animation: fadeInUp 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.45s backwards;
}

.animate-fade-in-5 {
    animation: fadeInUp 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s backwards;
}

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

.animate-fade-right {
    animation: fadeInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
}

.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.stat-item.animate-in {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.feature-card.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Merchant Card Stagger Animation */
.merchant-card.interactive {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Skeleton Loading States
   =================================== */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--purple-primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-error {
    color: var(--error);
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* ===================================
   Responsive - Hero Section
   =================================== */
@media (max-width: 768px) {
    .hero {
        padding: calc(var(--spacing-3xl) + 80px) 0 var(--spacing-3xl);
        min-height: auto;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }

    .app-icon-container {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 90px;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-visual {
        padding-bottom: 60px;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
        padding: 3px;
        border: 5px solid #0a0a0a;
    }

    .phone-screen {
        border-radius: 32px;
    }

    .demo-controls {
        bottom: -40px;
    }

    /* Scale app-preview content for 240px phone */
    .app-preview {
        padding: 22px 10px 10px;
    }

    .app-logo {
        width: 28px;
        height: 28px;
    }

    .points-badge {
        font-size: 11px;
        padding: 3px 9px;
    }

    .merchant-card {
        padding: 9px 10px;
    }

    .merchant-icon {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    .merchant-info {
        gap: 8px;
    }

    .merchant-name {
        font-size: 12px;
    }

    .merchant-distance {
        font-size: 10px;
    }

    .points-earn {
        font-size: 10px;
        padding: 3px 8px;
    }

    .app-content {
        gap: 8px;
    }

    .spin-preview {
        padding: 12px 10px;
    }

    .spin-text {
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .spin-button-mini {
        font-size: 13px;
    }

    .spin-wheel-view {
        padding: 10px;
    }

    .roulette-container {
        width: 155px;
        height: 155px;
        margin: 30px 0 10px;
    }

    .wheel-pointer {
        top: -12px;
        border-left: 11px solid transparent;
        border-right: 11px solid transparent;
        border-top: 18px solid var(--gold-primary);
    }

    .spin-wheel-title {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .spin-action-btn {
        font-size: 14px;
        padding: 10px 0;
        width: 75%;
        margin-top: 10px;
        letter-spacing: 1px;
    }

    .back-to-merchants {
        font-size: 11px;
        margin-top: 8px;
    }

    .reset-demo-btn,
    .sound-toggle-btn {
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-md);
    }

    .live-users-indicator {
        top: 75px;
        right: 10px;
        font-size: var(--font-size-xs);
        padding: 6px var(--spacing-sm);
    }
}

/* ===================================
   480px Breakpoint for Small Phones (Indian Market)
   =================================== */
@media (max-width: 480px) {
    :root {
        --font-size-hero: clamp(2rem, 12vw, 3.5rem);
        --font-size-4xl: clamp(1.5rem, 5vw, 2rem);
    }

    .hero {
        padding: calc(var(--spacing-2xl) + 70px) 0 var(--spacing-xl);
    }

    .hero-label {
        font-size: var(--font-size-xs);
        letter-spacing: 0.15em;
    }

    .hero-tagline {
        font-size: var(--font-size-lg);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-stats {
        gap: var(--spacing-sm);
    }

    .stat-item {
        min-width: 80px;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .stat-number {
        font-size: var(--font-size-xl);
    }

    .stat-label {
        font-size: var(--font-size-xs);
    }

    .btn-primary,
    .btn-secondary {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-base);
        width: 100%;
    }

    .hero-visual {
        padding-bottom: 60px;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    /* Scale app-preview content for 200px phone */
    .app-preview {
        padding: 18px 9px 9px;
    }

    .app-logo {
        width: 26px;
        height: 26px;
    }

    .points-badge {
        font-size: 10px;
        padding: 3px 7px;
    }

    .merchant-card {
        padding: 8px 9px;
    }

    .merchant-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .merchant-info {
        gap: 7px;
    }

    .merchant-name {
        font-size: 11px;
    }

    .merchant-distance {
        font-size: 9px;
    }

    .points-earn {
        font-size: 9px;
        padding: 3px 6px;
    }

    .app-content {
        gap: 7px;
    }

    .spin-preview {
        padding: 10px 9px;
    }

    .spin-text {
        font-size: 11px;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .spin-button-mini {
        font-size: 12px;
    }

    .spin-wheel-view {
        padding: 10px 8px;
    }

    .roulette-container {
        width: 130px;
        height: 130px;
        margin: 25px 0 8px;
    }

    .wheel-pointer {
        top: -10px;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-top: 15px solid var(--gold-primary);
    }

    .spin-wheel-title {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .spin-action-btn {
        font-size: 13px;
        padding: 9px 0;
        width: 70%;
        margin-top: 8px;
        letter-spacing: 1px;
    }

    .back-to-merchants {
        font-size: 10px;
        margin-top: 6px;
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .section-subtitle {
        font-size: var(--font-size-base);
    }

    .feature-card,
    .step {
        padding: var(--spacing-lg);
    }

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

    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-xl);
    }

    .category-chip {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }

    .merchant-cta {
        padding: var(--spacing-lg);
    }

    .merchant-cta h3 {
        font-size: var(--font-size-xl);
    }

    .download-title {
        font-size: var(--font-size-3xl);
    }

    .download-stat-item {
        font-size: var(--font-size-sm);
    }

    .store-button {
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .footer-content {
        gap: var(--spacing-xl);
    }

    .footer-heading {
        font-size: var(--font-size-base);
    }
}

/* ===================================
   Performance: Disable Heavy Animations on Low-End Devices
   =================================== */
@media (prefers-reduced-motion: reduce) {
    .cta-pulse {
        animation: none !important;
    }

    .live-dot {
        animation: none !important;
    }

    .iconPulse {
        animation: none !important;
    }

    .hero::before {
        animation: none !important;
    }

    .phone-screen::after {
        animation: none !important;
    }
}

/* Optimize for touch devices */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .step:hover,
    .category-chip:hover,
    .phone-mockup:hover {
        transform: none;
    }

    .feature-card:active,
    .step:active {
        transform: scale(0.98);
    }

    /* Disable blur on mobile for performance */
    .navbar.scrolled {
        backdrop-filter: none;
        background: rgba(15, 15, 19, 0.98);
    }

    .category-chip {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.2);
    }
}

/* ===================================
   Store Registration Page
   =================================== */
.register-hero {
    padding: calc(var(--spacing-3xl) + 60px) 0 var(--spacing-2xl);
    background: linear-gradient(135deg, var(--hero-bg) 0%, var(--hero-bg-light) 100%);
    color: white;
}

.register-title {
    font-family: var(--font-display);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.register-subtitle {
    font-size: var(--font-size-xl);
    text-align: center;
    opacity: 0.9;
    margin-bottom: var(--spacing-2xl);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-item {
    background: var(--hero-glass);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    display: flex;
    gap: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-icon {
    font-size: 2rem;
}

.benefit-text h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
}

.benefit-text p {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

/* Form Section */
.form-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-light);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Horizontal wizard layout — sidebar + content */
.form-container.wizard-horizontal {
    max-width: 1060px;
    display: grid;
    grid-template-columns: 260px 1fr;
    padding: 0;
    overflow: hidden;
    gap: 0;
    min-height: 640px;
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.form-title {
    font-family: var(--font-display);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.form-subtitle {
    color: var(--text-secondary);
}

.form-section-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: var(--spacing-xl) 0 var(--spacing-lg);
    color: var(--text-primary);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--gray-200);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-700);
}

.required {
    color: var(--error);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input.error, .form-select.error, .form-textarea.error {
    border-color: var(--error);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    display: block;
    color: var(--error);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.phone-input-group {
    display: flex;
    gap: var(--spacing-sm);
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-md);
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--gray-700);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
    color: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-lg);
    font-weight: 700;
    transition: all var(--transition-base);
    margin-top: var(--spacing-lg);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.btn-submit:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
}

.form-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-md);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: var(--spacing-lg);
    }

    .form-container.wizard-horizontal {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

/* Next Steps Timeline */
.next-steps {
    padding: var(--spacing-3xl) 0;
    background: white;
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

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

.timeline-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: var(--hero-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 4px 15px rgba(107, 29, 195, 0.3);
}

.timeline-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.timeline-description {
    color: var(--text-secondary);
}

/* Next Steps — new card-based markup */
.next-steps-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 6px 32px rgba(109, 40, 217, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #ede9fe;
    padding: 48px 40px;
    max-width: 960px;
    margin: 0 auto;
}

.next-steps-header {
    text-align: center;
    margin-bottom: 40px;
}

.next-steps-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.next-steps-divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-primary), var(--purple-light));
    border-radius: 100px;
    margin: 0 auto;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    text-align: center;
    padding: 24px 16px;
    background: #faf8ff;
    border-radius: 16px;
    border: 1px solid #ede9fe;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.12);
}

.step-badge {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto 16px;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 768px) {
    .next-steps-card {
        padding: 32px 20px;
        margin: 0 12px;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .process-timeline {
        grid-template-columns: 1fr;
    }

    .next-steps-card {
        margin: 0 8px;
        padding: 28px 16px;
    }
}

/* Success Page */
.success-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-light);
    min-height: 70vh;
}

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

.success-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-lg);
}

.success-title {
    font-family: var(--font-display);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.success-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.success-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.detail-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: left;
}

.detail-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.detail-list {
    list-style: none;
}

.detail-list li {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    color: var(--gray-700);
}

.list-icon {
    font-size: var(--font-size-xl);
}

.application-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-200);
}

.info-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.status-pending {
    color: var(--gold-dark) !important;
    font-weight: 600 !important;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--purple-primary);
    font-weight: 500;
}

.success-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

@media (max-width: 768px) {
    .success-details {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }
}

/* ===================================
   Legal Pages (Terms, Privacy, Support)
   =================================== */
.legal-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-page main {
    flex: 1;
}

.legal-hero {
    background: linear-gradient(135deg, var(--hero-bg) 0%, var(--hero-bg-light) 100%);
    color: white;
    padding: calc(var(--spacing-3xl) + 60px) 0 var(--spacing-2xl);
    text-align: center;
}

.legal-hero h1 {
    font-family: var(--font-display);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.legal-hero p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.legal-content {
    padding: var(--spacing-3xl) 0;
    background: white;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.legal-toc {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    border: 1px solid var(--gray-200);
}

.legal-toc h2 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-md);
}

.legal-toc ul {
    list-style: none;
}

.legal-toc a {
    color: var(--purple-primary);
    text-decoration: none;
}

.legal-toc a:hover {
    text-decoration: underline;
}

.legal-section {
    margin-bottom: var(--spacing-2xl);
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.legal-section h3 {
    font-size: var(--font-size-xl);
    margin: var(--spacing-lg) 0 var(--spacing-md);
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.legal-section ul {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.legal-section li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   FAQ Accordion (Help Center)
   =================================== */

.faq-accordion {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    transition: background var(--transition-base);
    font-family: inherit;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.open {
    max-height: 2000px;
}

.faq-answer-content {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    border-top: 1px solid var(--gray-200);
}

.faq-answer-content p {
    margin-bottom: 0.75rem;
}

.faq-answer-content ul {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.faq-answer-content li {
    margin-bottom: 0.35rem;
}

.faq-answer-content a {
    color: var(--purple-primary);
}

.faq-answer-content strong {
    color: var(--text-primary);
}

/* Contact Banner */
.contact-banner {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-banner h2 {
    color: white;
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
}

.contact-banner p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.contact-banner a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

/* ===================================
   Pricing Section
   =================================== */

.pricing-section {
    background: #DDD6FE;
    padding: 0 0 80px;
    position: relative;
}

/* Special Offer Banner */
.pricing-offer-banner {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-light) 100%);
    color: #fff;
    text-align: center;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 64px;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.28);
}

.offer-badge {
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.offer-text {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.offer-text strong {
    font-weight: 700;
}

/* Section Header — card style */
.pricing-header {
    text-align: center;
    margin-bottom: 36px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(109, 40, 217, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #c4b5fd;
    padding: 40px 48px;
}

.pricing-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.pricing-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    align-items: start;
}

/* Pricing Card Base */
.pricing-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(109, 40, 217, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    border: 1px solid #ddd6fe;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Most Popular Card */
.pricing-card-popular {
    border: 2px solid var(--purple-primary);
    box-shadow: 0 8px 36px rgba(124, 58, 237, 0.18);
    transform: scale(1.035);
}

.pricing-card-popular:hover {
    transform: scale(1.035) translateY(-6px);
    box-shadow: 0 22px 52px rgba(124, 58, 237, 0.26);
}

.popular-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-lighter));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 100px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

/* Accent Top Bar */
.pricing-card-accent {
    height: 4px;
    width: 100%;
}

.accent-blue    { background: linear-gradient(90deg, #2563EB, #60A5FA); }
.accent-purple  { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.accent-teal    { background: linear-gradient(90deg, #0D9488, #34D399); }
.accent-gold    { background: linear-gradient(90deg, #D97706, #FBBF24); }

/* Card Body */
.pricing-card-body {
    padding: 28px 26px 26px;
}

.plan-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
    line-height: 1;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.015em;
}

/* Price display */
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 1px;
    margin-bottom: 14px;
}

.plan-currency {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--purple-primary);
    line-height: 1;
    margin-top: 4px;
}

.plan-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.04em;
}

.plan-period {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 3px;
    align-self: flex-end;
    padding-bottom: 4px;
}

.plan-custom-text {
    font-size: 1.55rem;
    font-weight: 800;
    background: linear-gradient(135deg, #D97706, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    display: block;
    padding: 6px 0 10px;
}

.plan-description {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.55;
}

/* Feature List */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.plan-features li {
    font-size: 0.86rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.plan-features .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Buttons */
.plan-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    text-decoration: none;
    background: var(--gray-100);
    color: var(--text-primary);
    border: 1.5px solid var(--gray-200);
    box-sizing: border-box;
}

.plan-btn:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--text-primary);
}

.plan-btn-popular {
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.plan-btn-popular:hover {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-primary));
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.48);
    transform: translateY(-2px);
    color: #fff;
}

.plan-btn-teal {
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.plan-btn-teal:hover {
    background: linear-gradient(135deg, #0F766E, #0D9488);
    box-shadow: 0 8px 22px rgba(13, 148, 136, 0.42);
    transform: translateY(-2px);
    color: #fff;
}

.plan-btn-custom {
    background: linear-gradient(135deg, #D97706, #F59E0B);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.plan-btn-custom:hover {
    background: linear-gradient(135deg, #B45309, #D97706);
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.42);
    transform: translateY(-2px);
    color: #fff;
}

/* Responsive — 2-col tablet */
@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pricing-card-popular {
        transform: scale(1);
    }

    .pricing-card-popular:hover {
        transform: translateY(-6px);
    }
}

/* Responsive — 1-col mobile */
@media (max-width: 640px) {
    .pricing-section {
        padding-bottom: 56px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pricing-offer-banner {
        margin-bottom: 44px;
        flex-direction: column;
        gap: 8px;
    }

    .pricing-header {
        padding: 28px 20px;
        margin-left: 8px;
        margin-right: 8px;
        border-radius: 16px;
    }

    .pricing-card {
        margin-left: 8px;
        margin-right: 8px;
    }

    .pricing-title {
        font-size: 1.75rem;
    }
}

/* ================================================================
 * Multi-Step Wizard — Horizontal Sidebar Layout
 * ================================================================ */

/* ── Sidebar ── */
.wizard-sidebar {
    background: #faf8ff;
    border-right: 1px solid #ede9fe;
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
}

.wizard-sidebar-inner {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
}

/* ── Sidebar step item ── */
.wizard-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.wizard-step:hover {
    background: rgba(107, 29, 195, 0.05);
}

/* Icon circle wrapper */
.wizard-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.wizard-step-num {
    font-weight: 700;
    font-size: 0.9rem;
    color: #9ca3af;
    transition: color 0.3s ease;
    line-height: 1;
}

.wizard-step-check {
    display: none;
    color: white;
    line-height: 1;
}

/* Step text */
.wizard-step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wizard-step-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #6b7280;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.wizard-step-desc {
    font-size: 0.74rem;
    color: #9ca3af;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* ── Active state ── */
.wizard-step.active {
    background: rgba(107, 29, 195, 0.08);
}

.wizard-step.active .wizard-step-icon {
    background: linear-gradient(135deg, #6B1DC3, #8B44F0);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(107, 29, 195, 0.35);
}

.wizard-step.active .wizard-step-num {
    color: white;
}

.wizard-step.active .wizard-step-label {
    color: #6B1DC3;
}

.wizard-step.active .wizard-step-desc {
    color: #7c3aed;
}

/* ── Completed state ── */
.wizard-step.completed .wizard-step-icon {
    background: #10b981;
    border-color: transparent;
}

.wizard-step.completed .wizard-step-num {
    display: none;
}

.wizard-step.completed .wizard-step-check {
    display: flex;
}

.wizard-step.completed .wizard-step-label {
    color: #059669;
}

.wizard-step.completed .wizard-step-desc {
    color: #6ee7b7;
}

/* ── Vertical connectors ── */
.wizard-step-connector-v {
    width: 2.5px;
    height: 28px;
    background: #e5e7eb;
    margin-left: 35px; /* centers under 40px icon */
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.wizard-step-connector-v.completed {
    background: #10b981;
}

/* ── Right content area ── */
.wizard-content {
    padding: 36px 40px;
    overflow-y: auto;
}

/* Step panels */
.wizard-panel {
    display: none;
    animation: fadeInStep 0.25s ease;
}

.wizard-panel.active {
    display: block;
}

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

/* Navigation row */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 12px;
}

.wizard-nav .btn-submit {
    width: auto;
    margin-top: 0;
    padding: 14px 28px;
    flex-shrink: 0;
}

.btn-back {
    padding: 14px 24px;
    border-radius: var(--radius-lg, 12px);
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-back:hover {
    border-color: #6B1DC3;
    color: #6B1DC3;
}

/* ── Mobile: sidebar collapses to top compact bar ── */
@media (max-width: 768px) {
    .wizard-sidebar {
        border-right: none;
        border-bottom: 1px solid #ede9fe;
        padding: 16px 20px;
        flex-direction: row;
        overflow-x: auto;
    }

    .wizard-sidebar-inner {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 0;
        width: 100%;
    }

    .wizard-step {
        flex-direction: column;
        gap: 6px;
        padding: 8px 12px;
        min-width: 0;
        flex: 1;
    }

    .wizard-step-text {
        align-items: center;
    }

    .wizard-step-desc {
        display: none;
    }

    .wizard-step-label {
        font-size: 0.72rem;
        text-align: center;
    }

    .wizard-step-icon {
        width: 34px;
        height: 34px;
    }

    .wizard-step-num {
        font-size: 0.82rem;
    }

    .wizard-step-connector-v {
        width: auto;
        height: 2.5px;
        flex: 1;
        margin-left: 0;
        min-width: 16px;
        align-self: center;
        margin-top: -18px; /* align to icon row */
    }

    .wizard-content {
        padding: 24px 20px;
    }
}

/* ── Photo upload zone ── */
.file-upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
    border-color: #6B1DC3;
    background: #f5f0ff;
}

.file-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-upload-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    pointer-events: none;
}

.file-upload-title {
    font-weight: 700;
    font-size: 1rem;
    color: #374151;
    margin-bottom: 4px;
    pointer-events: none;
}

.file-upload-hint {
    font-size: 0.82rem;
    color: #9ca3af;
    pointer-events: none;
}

.file-upload-hint strong {
    color: #6B1DC3;
}

/* Photo preview grid */
.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.file-preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.file-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1;
    transition: background 0.2s;
}

.file-preview-remove:hover {
    background: #ef4444;
}

/* ── Document upload cards ── */
.doc-card {
    border-radius: 16px;
    border: 1.5px solid #e5e7eb;
    background: white;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.doc-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.doc-card.has-file {
    border-color: #d1fae5;
}

/* Card header row */
.doc-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.doc-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-card-icon--purple {
    background: #f3f0ff;
    color: #7c3aed;
}

.doc-card-icon--blue {
    background: #eff6ff;
    color: #3b82f6;
}

.doc-card-icon--teal {
    background: #f0fdfa;
    color: #14b8a6;
}

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

.doc-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
}

.doc-card-desc {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 1px;
}

.doc-card-badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
}

.doc-card-badge--success {
    background: #d1fae5;
    color: #059669;
}

/* Dropzone inside card */
.doc-card-dropzone {
    padding: 16px 20px 20px;
    position: relative;
    cursor: pointer;
}

.doc-card-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.doc-card-dropzone-inner {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    pointer-events: none;
}

.doc-card-dropzone:hover .doc-card-dropzone-inner,
.doc-card-dropzone-inner.dragover {
    border-color: #c4b5fd;
    background: #faf8ff;
}

.doc-card-upload-icon {
    margin-bottom: 10px;
}

.doc-card-upload-text {
    font-weight: 600;
    font-size: 0.88rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.doc-card-upload-hint {
    font-size: 0.76rem;
    color: #b0b5bd;
}

/* File info row (shown after upload) */
.doc-card-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #faf8ff;
    border-top: 1px solid #f3f4f6;
}

.doc-card-filename {
    flex: 1;
    font-size: 0.84rem;
    font-weight: 600;
    color: #4b5563;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doc-card-replace {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #7c3aed;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.doc-card-replace:hover {
    background: #f3f0ff;
}

/* Security notice */
.doc-security-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 8px;
    margin-bottom: 8px;
}

.doc-security-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #9ca3af;
}

.doc-security-notice strong {
    color: #374151;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

/* Legacy compat — keep old .doc-upload-row for other pages if used */
.doc-upload-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 12px;
    position: relative;
    cursor: pointer;
}

.doc-upload-row:hover {
    border-color: #6B1DC3;
    background: #f5f0ff;
}

.doc-upload-row.has-file {
    border-color: #10b981;
    background: #f0fdf4;
}

.doc-upload-row input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.doc-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    pointer-events: none;
}

.doc-info {
    flex: 1;
    pointer-events: none;
}

.doc-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.optional-badge {
    font-size: 0.68rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 2px 7px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.doc-hint {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 2px;
}

.doc-status {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    pointer-events: none;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doc-upload-row.has-file .doc-status {
    color: #10b981;
}

.doc-btn {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid #6B1DC3;
    background: white;
    color: #6B1DC3;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.doc-upload-row:hover .doc-btn {
    background: #6B1DC3;
    color: white;
}

.section-note {
    font-size: 0.83rem;
    color: #6b7280;
    text-align: left;
    margin-bottom: 20px;
    background: #faf8ff;
    border-radius: 10px;
    padding: 10px 16px;
    border: 1px solid #ede9fe;
}

@media (max-width: 600px) {
    .wizard-nav {
        flex-direction: column-reverse;
    }

    .wizard-nav .btn-submit,
    .wizard-nav .btn-back {
        width: 100%;
        text-align: center;
    }
}

/* ── Operating Hours Grid ───────────────────────────────────────── */
.oh-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.oh-row {
    display: grid;
    grid-template-columns: 110px 1fr auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
}

.oh-row.oh-row-closed {
    background: #fafafa;
    border-color: #f3f4f6;
}

.oh-row.oh-row-closed .oh-time-input {
    opacity: 0.35;
}

.oh-day {
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    min-width: 90px;
}

.oh-row.oh-row-closed .oh-day {
    color: #9ca3af;
}

.oh-time-input {
    width: 100%;
    padding: 6px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #374151;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}

.oh-time-input:focus {
    border-color: #6B1DC3;
    background: #fff;
}

.oh-sep {
    font-size: 0.85rem;
    color: #9ca3af;
    flex-shrink: 0;
    text-align: center;
    width: 14px;
}

.oh-closed-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.oh-closed-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #6B1DC3;
    cursor: pointer;
}

@media (max-width: 600px) {
    .oh-row {
        grid-template-columns: 80px 1fr auto 1fr;
        grid-template-rows: auto auto;
        gap: 6px;
    }
    .oh-closed-label {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}
