/* ============================================
   Design System & Variables
   ============================================ */
:root {
    /* Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2035;
    --bg-card-hover: #1f2847;
    --bg-glass: rgba(26, 32, 53, 0.85);

    --text-primary: #f0f4ff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-primary: #6366f1;
    --accent-primary-light: #818cf8;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a78bfa;

    --success: #10b981;
    --success-light: #34d399;
    --success-bg: rgba(16, 185, 129, 0.1);

    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-bg: rgba(245, 158, 11, 0.1);

    --danger: #ef4444;
    --danger-light: #f87171;
    --danger-bg: rgba(239, 68, 68, 0.1);

    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);

    /* Platform colors */
    --youtube: #ff0000;
    --google: #4285f4;
    --tiktok: #00f2ea;
    --facebook: #1877f2;
    --instagram-gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    --shopee: #ee4d2d;
    --lazada: #0f146d;
    --chatgpt: #10a37f;

    /* Borders */
    --border-color: rgba(99, 102, 241, 0.15);
    --border-color-hover: rgba(99, 102, 241, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px 0;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #020617;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--accent-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-tertiary);
}

/* ============================================
   Particles Background
   ============================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
}

.particles canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Background glows */
.bg-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 2;
    animation: glowFloat 20s ease-in-out infinite alternate;
}

.bg-glow-1 { top: -10%; left: -10%; animation-delay: 0s; }
.bg-glow-2 { bottom: -10%; right: -10%; background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%); animation-delay: -5s; }

@keyframes glowFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 5vh) scale(1.1); }
}

/* Grain overlay for texture */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    mix-blend-mode: overlay;
}

/* ============================================
   Moon Background & Search Title
   ============================================ */
.moon-hero {
    position: fixed;
    top: 60px;
    right: 50px;
    width: 120px;
    height: 120px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: planetaryFloat 30s ease-in-out infinite alternate;
}

.survey-search-bar {
    position: absolute;
    bottom: 25%;
    right: 25px;
    width: auto;
    min-width: 210px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.survey-search-bar i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.search-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-text span {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
}

@keyframes moonFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(15px) scale(1.02); }
}

/* ============================================
   3D Earth Container
   ============================================ */
.earth-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 300px;
    z-index: 4;
    cursor: grab;
    pointer-events: auto;
    animation: planetaryFloat 40s ease-in-out infinite alternate-reverse;
    /* Ensure no square clipping */
    overflow: visible;
}

.earth-container:active {
    cursor: grabbing;
}

#earth-canvas, .moon-3d {
    width: 100%;
    height: 100%;
    overflow: visible;
    background: transparent !important;
    border: none !important;
}

#earth-canvas canvas, .moon-3d canvas {
    border-radius: 50%; /* Just to be safe, though not needed if transparency works */
}

@keyframes planetaryFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, 20px) rotate(1deg); }
    66% { transform: translate(-10px, 15px) rotate(-1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.earth-container:hover .earth-label {
    color: var(--accent-primary-light);
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Responsive Earth */
@media (max-width: 1024px) {
    .earth-container {
        width: 150px;
        height: 150px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .earth-container {
        display: none; /* Hide on small mobile to save performance */
    }
}

/* ============================================
   Orion Constellation
   ============================================ */
.constellation-orion {
    position: fixed;
    top: 100px;
    left: 40px;
    width: 150px;
    height: 225px;
    z-index: 4;
    pointer-events: none;
    opacity: 0.6;
    animation: orionPulse 12s ease-in-out infinite alternate;
}

.orion-path {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 0.8;
    stroke-dasharray: 2 4;
}

.orion-star {
    fill: #fff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
}

.orion-star-small {
    fill: rgba(255, 255, 255, 0.3);
}

.betelgeuse {
    fill: #ffd9c4; /* Betelgeuse is a red supergiant */
    filter: drop-shadow(0 0 6px rgba(255, 120, 80, 0.5));
}

.rigel {
    fill: #dbeafe; /* Rigel is a blue supergiant */
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

.orion-label {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

@keyframes orionPulse {
    0% { opacity: 0.3; transform: scale(0.97) rotate(-1deg); }
    100% { opacity: 0.6; transform: scale(1.03) rotate(1deg); }
}

main {
    position: relative;
    z-index: 10;
}

/* ============================================
   Comets (Shooting Stars)
   ============================================ */
.comet-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.comet {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px #fff;
    opacity: 0;
}

.comet::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.8), transparent);
    pointer-events: none;
}

.comet-1 { top: 0%; left: 30%; animation: cometFly 15s linear infinite; animation-delay: 2s; }
.comet-2 { top: 20%; left: -10%; animation: cometFly 20s linear infinite; animation-delay: 8s; }
.comet-3 { top: -5%; left: 70%; animation: cometFly 18s linear infinite; animation-delay: 14s; }

@keyframes cometFly {
    0% { transform: translate(0, 0) rotate(35deg); opacity: 0; }
    2% { opacity: 1; }
    8% { opacity: 1; }
    15% { transform: translate(100vw, 70vh) rotate(35deg); opacity: 0; }
    100% { transform: translate(100vw, 70vh) rotate(35deg); opacity: 0; }
}

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

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

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

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.logo-text h1 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
}

.digital-clock {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    color: var(--accent-primary-light);
    letter-spacing: 1px;
    font-weight: 500;
    margin-top: 2px;
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.active {
    color: white;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.nav-link i {
    font-size: 14px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    padding: 12px 24px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-normal);
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    padding: 140px 24px 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning-light);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 20px 4px rgba(245, 158, 11, 0.1); }
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary-light), var(--accent-tertiary), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-desc strong {
    color: var(--warning-light);
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.45);
    color: white;
}

.btn-secondary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    color: white;
}

/* Hero stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary-light), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

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

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ============================================
   Steps Section
   ============================================ */
.steps-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease calc(var(--delay, 0) * 0.1s) both;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.step-card.highlight {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, var(--bg-card), rgba(245, 158, 11, 0.05));
}

.step-card.highlight:hover {
    border-color: var(--warning);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--accent-primary-light);
}

.step-card.highlight .step-icon {
    color: var(--warning-light);
}

.step-card.highlight .step-number {
    background: linear-gradient(135deg, var(--warning), #f97316);
}

.step-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-primary-light);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.step-link:hover {
    background: rgba(99, 102, 241, 0.2);
    color: white;
}

.step-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-light);
    font-size: 12px;
    font-weight: 600;
}

.step-connector {
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: var(--text-muted);
    font-size: 16px;
}

.send-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 32px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.send-note-icon {
    font-size: 20px;
    color: var(--info);
    flex-shrink: 0;
    margin-top: 2px;
}

.send-note-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.send-note-content strong {
    color: var(--text-primary);
}

/* ============================================
   File Checker Section
   ============================================ */
.checker-section {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03), transparent);
}

.zip-dropzone {
    background: rgba(99, 102, 241, 0.05);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.zip-dropzone:hover, .zip-dropzone.dragover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary-light);
    transform: translateY(-2px);
}

.dropzone-icon {
    font-size: 48px;
    color: var(--accent-primary-light);
    margin-bottom: 20px;
}

.zip-dropzone h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.zip-dropzone p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.dropzone-note {
    display: inline-block;
    font-size: 13px;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

.checker-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.checker-separator::before,
.checker-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.checker-separator span {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.dropzone-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.dropzone-loading.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--accent-primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.checker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

/* Platform Card */
.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.platform-card:hover {
    border-color: var(--border-color-hover);
}

.platform-card.active {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.platform-card.complete {
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.platform-card.incomplete {
    border-color: var(--warning);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.platform-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.platform-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.youtube-bg { background: var(--youtube); }
.google-bg { background: var(--google); }
.tiktok-bg { background: #000; border: 1px solid var(--tiktok); color: var(--tiktok); }
.facebook-bg { background: var(--facebook); }
.instagram-bg { background: var(--instagram-gradient); }
.shopee-bg { background: var(--shopee); }
.lazada-bg { background: var(--lazada); }
.chatgpt-bg { background: var(--chatgpt); }
.utility-bg { background: rgba(99, 102, 241, 0.15); color: var(--accent-primary-light); border: 1px solid rgba(99, 102, 241, 0.3); }

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

.platform-info h3 {
    font-size: 16px;
    font-weight: 700;
}

.platform-condition {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Toggle Switch */
.toggle {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle input {
    display: none;
}

.toggle-slider {
    display: block;
    width: 48px;
    height: 26px;
    border-radius: var(--radius-full);
    background: rgba(100, 116, 139, 0.3);
    border: 1px solid rgba(100, 116, 139, 0.2);
    transition: all var(--transition-normal);
    position: relative;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-secondary);
    transition: all var(--transition-normal);
}

.toggle input:checked + .toggle-slider {
    background: rgba(99, 102, 241, 0.3);
    border-color: var(--accent-primary);
}

.toggle input:checked + .toggle-slider::after {
    transform: translateX(22px);
    background: var(--accent-primary-light);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

/* Platform Body */
.platform-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-slow);
    opacity: 0;
}

.platform-card.active .platform-body {
    max-height: 800px;
    padding: 0 20px 20px;
    opacity: 1;
}

.file-path-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    font-size: 12px;
    color: var(--accent-primary-light);
    font-weight: 500;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
}

.file-group {
    margin-bottom: 16px;
}

.file-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.1);
    font-size: 12px;
    color: var(--accent-primary-light);
    font-weight: 500;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.file-checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.file-item:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.15);
}

.file-item input {
    display: none;
}

.file-check-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    position: relative;
}

.file-check-icon::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.file-item input:checked ~ .file-check-icon {
    background: var(--success);
    border-color: var(--success);
}

.file-item input:checked ~ .file-check-icon::after {
    opacity: 1;
    transform: scale(1);
}

.file-item input:checked ~ .file-name {
    color: var(--success-light);
}

.file-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.file-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.file-badge.required {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Platform Status */
.platform-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--info-bg);
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 13px;
    font-weight: 500;
    color: var(--info);
    margin-top: 14px;
    transition: all var(--transition-normal);
}

.platform-status.success {
    background: var(--success-bg);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success-light);
}

.platform-status.warning {
    background: var(--warning-bg);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning-light);
}

/* Overall Status */
.overall-status {
    margin-top: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.overall-status-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.overall-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all var(--transition-normal);
}

.overall-status.all-good .overall-icon {
    background: var(--success-bg);
    color: var(--success-light);
    border-color: rgba(16, 185, 129, 0.2);
}

.overall-status.has-issues .overall-icon {
    background: var(--warning-bg);
    color: var(--warning-light);
    border-color: rgba(245, 158, 11, 0.2);
}

.overall-text h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.overall-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   Guide Section
   ============================================ */
.guide-section {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05), rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: inset 0 0 50px rgba(139, 92, 246, 0.05);
    position: relative;
    z-index: 2;
}

.guide-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.guide-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'Inter', sans-serif;
}

.guide-tab:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.guide-tab.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary-light);
}

/* Guide Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.guide-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.guide-card.hidden {
    display: none;
}

.guide-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.guide-card-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.guide-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.guide-card-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.guide-tags {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.guide-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.guide-tag.important {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-light);
    border-color: rgba(239, 68, 68, 0.2);
}

.guide-tag.easy {
    background: var(--success-bg);
    color: var(--success-light);
    border-color: rgba(16, 185, 129, 0.2);
}

.guide-tag.extra-tag {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-tertiary);
    border-color: rgba(139, 92, 246, 0.2);
}

.guide-tag.utility-tag {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
    border-color: rgba(100, 116, 139, 0.2);
}

/* Guide Card Body */
.guide-card-body {
    padding: 0 20px 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition-slow);
}

.guide-card.expanded .guide-card-body {
    max-height: 2000px;
    opacity: 1;
}

/* Guide Steps Visual */
.guide-steps-visual {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
}

.guide-step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    position: relative;
}

.guide-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 38px;
    bottom: -2px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), rgba(99, 102, 241, 0.2));
}

.guide-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.guide-step-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.guide-step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.guide-step-content a {
    color: var(--accent-primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* File Tree */
.guide-files-preview {
    margin-bottom: 16px;
}

.guide-files-preview > h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-file-tree {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.tree-folder {
    color: var(--accent-primary-light);
    padding: 2px 0;
}

.tree-folder > i {
    color: var(--warning-light);
    margin-right: 6px;
}

.tree-children {
    padding-left: 20px;
    border-left: 1px dashed rgba(99, 102, 241, 0.2);
    margin-left: 6px;
}

.tree-file {
    color: var(--text-primary);
    padding: 2px 0;
    font-weight: 500;
}

.tree-file > i {
    color: var(--success);
    margin-right: 6px;
}

/* Guide Download Button */
.guide-download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--accent-primary-light);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.guide-download-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
}

.guide-download-btn.small {
    padding: 8px 16px;
    font-size: 13px;
}

.guide-multi-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.guide-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    position: relative;
    z-index: 1;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.footer-logo i {
    color: var(--accent-primary-light);
}

.footer-left p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-primary-light);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.footer-contact:hover {
    background: rgba(99, 102, 241, 0.2);
    color: white;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 800px;
    }
}

/* Confetti burst for completion */
@keyframes confettiBurst {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(1) rotate(360deg); opacity: 0; }
}

.confetti-burst {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confettiBurst 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

/* ============================================
   Referral Section
   ============================================ */
.referral-section {
    padding: 60px 0;
}

.referral-box {
    background: linear-gradient(135deg, var(--bg-card), #1e293b);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    animation: fadeInUp 0.8s ease;
}

.referral-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.referral-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.referral-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-light);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.referral-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.referral-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.referral-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.referral-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.referral-rule i {
    color: var(--accent-primary-light);
    font-size: 16px;
}

.highlight-rule {
    color: var(--warning-light) !important;
    font-weight: 600;
}

.highlight-rule i {
    color: var(--warning-light);
}

.btn-referral {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    color: #000;
    padding: 16px 32px;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.btn-referral:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
    color: #000;
}

.referral-visual {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.referral-card-ui {
    width: 250px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transform: rotate(5deg);
    transition: all 0.5s ease;
}

.referral-card-ui:hover {
    transform: rotate(0deg) scale(1.05);
    background: rgba(255, 255, 255, 0.05);
}

.card-ui-header {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.card-ui-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--warning-light);
    margin-bottom: 12px;
}

.card-ui-user {
    font-size: 13px;
    color: var(--text-secondary);
}

.card-ui-user i {
    color: var(--accent-primary-light);
    margin-left: 4px;
}

/* New Referral Grid */
.referral-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.referral-card-new {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-normal);
}

.referral-card-new:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.referral-card-new .card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.referral-card-new.youtube .card-icon {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4d4d;
}

.referral-card-new.other .card-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-light);
}

.referral-card-new .card-info h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.referral-card-new .card-amount {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.referral-card-new .card-amount span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Referral Example */
.referral-example {
    background: rgba(99, 102, 241, 0.08);
    border: 1px dashed rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 32px;
}

.example-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.voucher-container {
    width: 60px;
    height: 35px;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.floating-voucher {
    width: 100%;
    height: auto;
    animation: float-voucher 3s ease-in-out infinite;
}

@keyframes float-voucher {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

.example-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.example-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.example-math {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.total-reward {
    color: var(--warning-light);
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.referral-footer-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
    font-style: italic;
}

/* Referral Status Card */
.referral-status-card {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

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

.status-icon {
    width: 32px;
    height: 32px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary-light);
}

.status-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.status-value {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

/* Participant Counter Stats */
#participant-count {
    color: var(--success-light);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Responsive fixes for referral section */
@media (max-width: 992px) {
    .referral-box {
        flex-direction: column;
        padding: 32px;
    }
    .referral-visual {
        width: 100%;
        margin-top: 40px;
    }
    .referral-status-card {
        top: -40px;
        left: 20px;
    }
}

@media (max-width: 500px) {
    .referral-box {
        padding: 24px 16px;
        gap: 20px;
    }
    .referral-title {
        font-size: 24px !important;
        line-height: 1.3;
    }
    .referral-desc {
        font-size: 14px !important;
        margin-bottom: 24px;
        line-height: 1.6;
    }
    .referral-visual {
        margin-top: 10px;
    }
    .referral-status-card {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 16px;
        width: fit-content;
        animation: none;
    }
    .referral-card-ui {
        width: 100%;
        transform: rotate(0deg);
        padding: 20px;
    }
    .referral-grid-new {
        grid-template-columns: 1fr !important;
    }
    .referral-card-new {
        padding: 14px 16px;
    }
    .referral-card-new .card-amount {
        font-size: 18px !important;
    }
    .example-math {
        font-size: 14px !important;
    }
    .total-reward {
        font-size: 20px !important;
    }
    .referral-generator {
        padding: 16px !important;
    }
    .gen-input-group {
        flex-direction: column;
    }
    #gen-ref-btn {
        width: 100%;
    }
}

/* ============================================
   Security & Privacy Section
   ============================================ */
.security-section {
    background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.03), transparent);
}

.security-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(52, 211, 153, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--success-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.security-badge-top i {
    font-size: 14px;
}

/* Trust Badges Row */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    min-width: 120px;
    transition: all var(--transition-normal);
}

.trust-badge-item:hover {
    border-color: var(--success);
    transform: translateY(-4px);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.12);
}

.trust-badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--success-light);
}

.trust-badge-item span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.trust-badge-item strong {
    color: var(--text-primary);
    font-size: 14px;
}

/* Security Cards Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.security-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.security-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0.6;
    transition: opacity var(--transition-normal);
}

.security-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-glow);
}

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

.security-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.security-card-icon.research {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
}
.security-card:has(.security-card-icon.research)::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.security-card-icon.privacy {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
}
.security-card:has(.security-card-icon.privacy)::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.security-card-icon.noshare {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}
.security-card:has(.security-card-icon.noshare)::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.security-card-icon.delete {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}
.security-card:has(.security-card-icon.delete)::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.security-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.security-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
}

.security-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-light);
    font-size: 12px;
    font-weight: 600;
}

/* Data Flow Visual */
.data-flow {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
}

.data-flow-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.data-flow-title i {
    color: var(--accent-primary-light);
}

.data-flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.data-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 80px;
}

.data-flow-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all var(--transition-normal);
}

.data-flow-icon.you {
    background: rgba(99, 102, 241, 0.15);
    border: 2px solid rgba(99, 102, 241, 0.3);
    color: var(--accent-primary-light);
}

.data-flow-icon.encrypt {
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid rgba(245, 158, 11, 0.3);
    color: var(--warning-light);
}

.data-flow-icon.analyze {
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.data-flow-icon.remove {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: var(--success-light);
}

.data-flow-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.data-flow-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 14px;
    padding-bottom: 22px;
}

.data-flow-arrow-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ESOMAR Note */
.esomar-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(52, 211, 153, 0.03));
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.esomar-note-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--success-light);
    flex-shrink: 0;
}

.esomar-note-content {
    flex: 1;
}

.esomar-note-content strong {
    font-size: 15px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 6px;
}

.esomar-note-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.02), transparent);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--border-color-hover);
}

.faq-item.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: none;
    border: none;
    color: var(--text-primary);
}

/* Toast Notifications */
.participant-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--success);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.1);
    z-index: 10000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
}

.toast-icon {
    width: 36px;
    height: 36px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    font-size: 20px;
    flex-shrink: 0;
}

.toast-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--success-light);
    margin-bottom: 2px;
}

.toast-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.toast-desc strong {
    color: #fff;
}
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question span {
    flex: 1;
}

.faq-q-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--accent-primary-light);
    flex-shrink: 0;
}

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--accent-primary-light);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.faq-item.active .faq-toggle {
    background: var(--accent-primary);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    padding: 0 20px 20px 72px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer-inner p {
    margin-bottom: 12px;
}

.faq-answer-inner ul,
.faq-answer-inner ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

.faq-answer-inner li {
    margin-bottom: 6px;
}

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

.faq-highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--success-light);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 4px;
}

.faq-highlight i {
    margin-top: 2px;
    flex-shrink: 0;
}

.faq-highlight strong {
    color: var(--success-light);
}

/* FAQ CTA */
.faq-cta {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.faq-cta-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.faq-cta-content {
    flex: 1;
}

.faq-cta-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.faq-cta-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.faq-cta-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    font-size: 14px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .nav {
        display: none;
    }

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

    .mobile-nav {
        display: block;
    }

    .hero {
        padding: 80px 20px 40px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 22px;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 0;
    }

    .checker-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .overall-status-inner {
        flex-direction: column;
        text-align: center;
    }

    .guide-tabs {
        gap: 6px;
    }

    .guide-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

    .guide-file-tree {
        font-size: 11px;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .platform-header {
        padding: 14px 16px;
    }

    .file-path-info,
    .file-group-header {
        font-size: 11px;
    }

    .guide-step-content h4 {
        font-size: 13px;
    }

    .guide-step-content p {
        font-size: 12px;
    }
}

/* Security & FAQ responsive */
@media (max-width: 768px) {
    .trust-badges {
        gap: 16px;
    }

    .trust-badge-item {
        min-width: 100px;
        padding: 16px 12px;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .data-flow-steps {
        gap: 6px;
    }

    .data-flow-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .data-flow-arrow {
        padding-bottom: 18px;
    }

    .esomar-note {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .faq-answer-inner {
        padding: 0 16px 16px 16px;
    }

    .faq-question {
        padding: 16px;
        font-size: 14px;
        gap: 10px;
    }

    .faq-q-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .faq-cta {
        flex-direction: column;
        text-align: center;
    }

    .faq-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .moon-hero {
        width: 110px;
        height: 110px;
        top: 280px;
        right: 30px;
    }

    .survey-search-bar {
        width: auto;
        min-width: 80px;
        right: 10px;
        padding: 4px 8px;
        bottom: 12%;
        opacity: 0.5;
    }

    .search-text {
        font-size: 8px;
    }

    .constellation-orion {
        width: 90px;
        height: 135px;
        top: 85px;
        left: 15px;
        opacity: 0.35;
    }
    
    .orion-label {
        display: none;
    }
}

/* ============================================
   Modal
   ============================================ */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--text-primary); }

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.missing-file-item {
    background: rgba(239, 68, 68, 0.05);
    border-left: 3px solid var(--danger);
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.missing-file-name {
    font-weight: 600;
    color: var(--danger-light);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.missing-file-fix {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.success-report {
    text-align: center;
    padding: 20px 0;
}
.success-report i {
    font-size: 48px;
    color: var(--success);
    margin-bottom: 16px;
}
.success-report h4 {
    font-size: 20px;
    color: var(--success);
    margin-bottom: 8px;
}

.gemini-bg { background: linear-gradient(135deg, #A78BFA, #8B5CF6); color: white; }
.chatgpt-bg { background: linear-gradient(135deg, #10A37F, #0E8466); color: white; }
.shopee-bg { background: linear-gradient(135deg, #EE4D2D, #D73211); color: white; }
.lazada-bg { background: linear-gradient(135deg, #6366F1, #4F46E5); color: white; }
