/* ============================================
   Community Platform 鈥?Fresh & Clean Design
   娓呮柊绠€绾﹂: 涓婃柟褰╄壊椤舵爮 + 涓嬫柟鏄庝寒绠€绾?   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    /* Primary 鈥?fresh natural green */
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #22c55e;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;

    /* Accent 鈥?warm coral for CTAs */
    --accent-400: #fb923c;
    --accent-500: #f97316;
    --accent-600: #ea580c;

    /* Status */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Neutrals 鈥?clean and crisp */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #4ade80 100%);
    --gradient-button: linear-gradient(135deg, #22c55e, #16a34a);
    --gradient-accent: linear-gradient(135deg, #f97316, #fb923c);

    /* Typography */
    --font-primary: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
    --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: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal-backdrop: 300;
    --z-modal: 400;
    --z-tooltip: 500;
    --z-float-widget: 600;

    /* Elite Emerald & Gold Tokens */
    --elite-600: #065f46;
    --elite-700: #064e3b;
    --elite-grad: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    --gold-100: #fef9c3;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-grad: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --hero-premium-bg: var(--elite-grad);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-800);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--primary-700); }

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

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

/* ---------- Top Navigation Bar ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: var(--primary-600);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: var(--z-sticky);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: #fff;
    font-weight: 700;
    font-size: var(--font-size-xl);
    letter-spacing: -0.01em;
}

.navbar-brand .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-button);
    color: #fff;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.navbar-links a,
.navbar-links button {
    color: rgba(255,255,255,0.85);
    font-size: var(--font-size-sm);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.navbar-links a:hover,
.navbar-links button:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.navbar-phone {
    color: rgba(255,255,255,0.6) !important;
    font-size: var(--font-size-xs) !important;
    cursor: default !important;
}
.navbar-phone:hover {
    background: none !important;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-2);
}

.btn-login-trigger {
    background: var(--primary-500);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-login-trigger:hover {
    background: #fff;
    color: var(--primary-600);
}

body {
    padding-top: 56px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-600);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    color: #fff;
}

.btn-accent {
    background: var(--accent-500);
    color: #fff;
}
.btn-accent:hover {
    background: var(--accent-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-200);
}
.btn-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary-400);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    padding: var(--space-2) var(--space-4);
}
.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
    border-radius: var(--radius-lg);
}

.btn-block { width: 100%; }

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

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--primary-200);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card-body {
    padding: var(--space-5);
}

.card-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-lg);
}

/* ---------- Hero Section ---------- */
.hero-section {
    background: var(--gradient-hero);
    max-width: 1400px;
    margin: var(--space-6) auto;
    border-radius: 2rem;
    padding: var(--space-16) var(--space-4);
    position: relative;
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.12);
    overflow: hidden;
}

@media (max-width: 1440px) {
    .hero-section {
        width: calc(100% - 2 * var(--space-6));
    }
}
@media (max-width: 768px) {
    .hero-section {
        width: calc(100% - 2 * var(--space-4));
        margin: var(--space-4) auto;
        border-radius: 1.5rem;
        padding: var(--space-10) 0;
    }
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: var(--space-4);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-8);
    max-width: 480px;
}

/* ---------- Carousel ---------- */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Poster sizing reference: carousel poster = 720脳405 (16:9) */

.carousel-slide .slide-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: var(--space-6) var(--space-5) var(--space-5);
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    color: #fff;
}

.carousel-slide .slide-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.carousel-slide .slide-badge {
    display: inline-block;
    padding: 2px var(--space-3);
    background: var(--primary-500);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}
.carousel-dot.active {
    background: #fff;
    width: 20px;
    border-radius: var(--radius-full);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    border: none;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: var(--font-size-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}
.carousel-btn:hover { background: rgba(255,255,255,0.4); }
.carousel-btn.prev { left: var(--space-3); }
.carousel-btn.next { right: var(--space-3); }

/* ---------- Section ---------- */
.section {
    padding: var(--space-16) 0;
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.section-subtitle {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-8);
}

/* History Grid 鈥?4 cards */
.history-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}
@media (max-width: 768px) {
    .history-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .history-grid { grid-template-columns: 1fr; }
}

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(3px);
    z-index: var(--z-modal-backdrop);
    display: none; opacity: 0;
    transition: opacity var(--transition-base);
}
.modal-backdrop.active { display: block; opacity: 1; }

.modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    z-index: var(--z-modal);
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    display: none; opacity: 0;
    transition: all var(--transition-base);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}
.modal.active {
    display: block; opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-5);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: var(--space-4); right: var(--space-4);
    background: none; border: none;
    font-size: var(--font-size-lg);
    color: var(--gray-400);
    cursor: pointer;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}
.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: var(--space-4); }

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

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--gray-800);
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}
.form-input::placeholder { color: var(--gray-400); }

.form-input-xl {
    padding: var(--space-4) var(--space-5);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-lg);
}

.form-hint {
    font-size: var(--font-size-xs);
    color: var(--gray-400);
    margin-top: var(--space-1);
}

.form-error {
    font-size: var(--font-size-sm);
    color: var(--error);
    margin-top: var(--space-2);
}

/* ---------- Upload Area ---------- */
.upload-area {
    border: 2px dashed var(--primary-300);
    border-radius: var(--radius-xl);
    padding: var(--space-10) var(--space-8);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--primary-50);
    position: relative;
}
.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-500);
    background: var(--primary-100);
}
.upload-area .upload-icon { font-size: 3rem; margin-bottom: var(--space-4); }
.upload-area .upload-text {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-700);
    margin-bottom: var(--space-2);
}
.upload-area .upload-hint {
    font-size: var(--font-size-base);
    color: var(--gray-500);
}
.upload-area input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.upload-preview {
    max-width: 200px;
    margin: var(--space-4) auto 0;
    border-radius: var(--radius-md);
}

/* ---------- Floating Contact ---------- */
.float-contact {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-float-widget);
}

.float-contact-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--primary-600);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-xl);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
    transition: all var(--transition-base);
}
.float-contact-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(22, 163, 74, 0.4);
}

.float-contact-menu {
    position: absolute;
    bottom: 62px; right: 0;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 1px solid var(--gray-200);
    min-width: 190px;
    display: none; opacity: 0;
    transform: translateY(6px);
    transition: all var(--transition-base);
}
.float-contact-menu.active {
    display: block; opacity: 1;
    transform: translateY(0);
}
.float-contact-menu a {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--gray-700);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: background var(--transition-fast);
}
.float-contact-menu a:hover {
    background: var(--gray-100);
    color: var(--primary-600);
}


/* ---------- Blog/Review Page ---------- */
.blog-content {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-12) var(--space-6);
}
.blog-content h1 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
}
.blog-content p {
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: var(--space-5);
}

.blog-cta {
    margin-top: var(--space-10);
    padding: var(--space-6);
    background: var(--primary-50);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--primary-100);
}

/* ---------- Badge & Tags ---------- */
.badge {
    display: inline-block;
    padding: 2px var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}
.badge-live { background: var(--primary-50); color: var(--primary-700); }
.badge-group { background: var(--accent-100); color: var(--accent-700); }

/* ---------- Engagement Module Utilities ---------- */
.empty-state-container {
    text-align: center;
    padding: var(--space-16) var(--space-6);
    max-width: 480px;
    margin: 0 auto;
}
.empty-state-image {
    max-width: 240px;
    width: 100%;
    height: auto;
    margin: 0 auto var(--space-6);
    opacity: 0.6;
    display: block;
}
.empty-state-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--space-2);
}
.empty-state-text {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    line-height: 1.6;
}

.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.engagement-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-8);
}

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

.engagement-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.quiz-option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: var(--space-4);
    background: #fff;
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
}
.quiz-option-btn:hover {
    border-color: var(--primary-400);
    background: var(--primary-50);
}
.quiz-option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.milestone {
    margin-bottom: var(--space-4);
}
.milestone-bar {
    width: 100%;
    background: var(--gray-100);
    height: 8px;
    border-radius: var(--radius-full);
    overflow: hidden;
}
.milestone-progress {
    height: 100%;
    background: var(--primary-500);
    transition: width 1s ease-out;
}

/* Helper Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.m-0 { margin: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-10 { padding-top: var(--space-10); padding-bottom: var(--space-10); }

.w-10 { width: 40px; }
.h-10 { height: 40px; }
.w-full { width: 100%; }
.max-w-md { max-width: 480px; }
.max-w-lg { max-width: 800px; }

.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }

.bg-white { background: #fff; }
.bg-gray-50 { background: var(--gray-50); }
.bg-gray-100 { background: var(--gray-100); }
.bg-primary-100 { background: var(--primary-100); }
.bg-amber-100 { background: #fffbeb; }
.bg-red-50 { background: #fef2f2; }
.bg-indigo-100 { background: #eef2ff; }

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

.text-primary-600 { color: var(--primary-600); }
.text-primary-700 { color: var(--primary-700); }
.text-amber-600 { color: #d97706; }
.text-indigo-600 { color: #4f46e5; }
.text-red-500 { color: var(--error); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-900 { color: var(--gray-900); }

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-5xl { font-size: var(--font-size-5xl); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 850; }
.font-black { font-weight: 900; }
.font-mono { font-family: monospace; }
.leading-relaxed { line-height: 1.625; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.shadow-lg { box-shadow: 0 20px 50px rgba(6, 78, 59, 0.05); }

.border { border: 1px solid var(--gray-200); }
.border-gray-50 { border-color: var(--gray-50); }
.border-gray-100 { border-color: var(--gray-100); }
.border-primary-100 { border-color: var(--primary-100); }
.border-t { border-top: 1px solid var(--gray-200); }

.space-y-4 > * + * { margin-top: var(--space-4); }
.space-y-6 > * + * { margin-top: var(--space-6); }
.space-y-8 > * + * { margin-top: var(--space-8); }
.badge-group {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-600);
}

.tag {
    display: inline-block;
    padding: 2px var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}
.tag:hover, .tag.active {
    background: var(--primary-50);
    color: var(--primary-700);
    border-color: var(--primary-200);
}

/* ---------- Alerts ---------- */
.alert {
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--space-4);
}
.alert-success {
    background: var(--primary-50);
    color: #065f46;
    border: 1px solid var(--primary-200);
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ---------- Spinner ---------- */
.spinner {
    width: 20px; height: 20px;
    border: 2.5px solid var(--gray-200);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer {
    background: var(--gray-100);
    color: var(--gray-500);
    padding: var(--space-8) 0;
    text-align: center;
    font-size: var(--font-size-sm);
    border-top: 1px solid var(--gray-200);
}

/* ---------- Mobile Drawer ---------- */
.mobile-drawer-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    z-index: calc(var(--z-sticky) + 1); display: none; opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-drawer-backdrop.active { display: block; opacity: 1; }

.mobile-drawer {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background: #fff; z-index: calc(var(--z-sticky) + 2);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.mobile-drawer.active { right: 0; }

.drawer-header {
    padding: var(--space-6) var(--space-6);
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--gray-100);
}
.drawer-title { font-weight: 700; font-size: 1.1rem; color: var(--gray-900); }
.drawer-close { background: none; border: none; font-size: 2rem; color: var(--gray-400); cursor: pointer; line-height: 1; }

.drawer-content { padding: var(--space-4); flex: 1; overflow-y: auto; }
.drawer-link {
    display: flex; align-items: center; gap: var(--space-4);
    padding: var(--space-4); color: var(--gray-700);
    font-weight: 600; border-radius: var(--radius-md);
    transition: all 0.2s;
}
.drawer-link:hover { background: var(--primary-50); color: var(--primary-700); }
.drawer-link i { width: 20px; text-align: center; font-size: 1.1rem; opacity: 0.7; }

.drawer-user-info {
    padding: var(--space-4); background: var(--gray-50); border-radius: var(--radius-md);
    margin-bottom: var(--space-4); display: flex; align-items: center; gap: var(--space-3);
    font-size: var(--font-size-sm); color: var(--gray-600);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .navbar-links { display: none; }
    .navbar-toggle { display: block; }

    .hero-title { font-size: var(--font-size-3xl); }
    .carousel-btn { display: none; }
    .event-actions { flex-direction: column; align-items: center; }
    .container { padding: 0 var(--space-4); }

    /* Footer adjustments */
    .footer { padding-bottom: var(--space-16); } /* Room for mobile nav if needed */
}

/* ---------- Premium UI Utilities & Elite Tokens ---------- */

.hero-visual-premium {
    position: relative;
    padding: var(--space-20) 0 var(--space-16);
    background: var(--elite-grad);
    color: #fff;
    overflow: hidden;
}

.hero-visual-premium::before {
    content: "";
    position: absolute;
    top: -50%; left: -20%; width: 140%; height: 200%;
    background: radial-gradient(circle at center, rgba(251, 191, 36, 0.08) 0%, transparent 60%);
    animation: slow-rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.elite-gold-text {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.vip-badge {
    padding: 2px 10px;
    background: var(--gold-grad);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.elite-glow:hover {
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.2), 0 0 10px rgba(251, 191, 36, 0.1);
}

.section-hero-bright {
    background: linear-gradient(135deg, var(--primary-50) 0%, #fff 100%);
    border-bottom: 1px solid var(--primary-100);
    padding: var(--space-16) 0;
}

/* --- Phone Prefix Selector (Global) --- */
.phone-input-group {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.prefix-selector {
    width: 100px;
    height: 100%;
    min-height: 48px;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0 var(--space-2);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition-base);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.prefix-selector:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}

.phone-input-xl {
    flex: 1;
}

.modal .prefix-selector {
.alert-success {
    background: var(--primary-50);
    color: #065f46;
    border: 1px solid var(--primary-200);
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ---------- Spinner ---------- */
.spinner {
    width: 20px; height: 20px;
    border: 2.5px solid var(--gray-200);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer {
    background: var(--gray-100);
    color: var(--gray-500);
    padding: var(--space-8) 0;
    text-align: center;
    font-size: var(--font-size-sm);
    border-top: 1px solid var(--gray-200);
}

/* ---------- Mobile Drawer ---------- */
.mobile-drawer-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    z-index: calc(var(--z-sticky) + 1); display: none; opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-drawer-backdrop.active { display: block; opacity: 1; }

.mobile-drawer {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
    background: #fff; z-index: calc(var(--z-sticky) + 2);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.mobile-drawer.active { right: 0; }

.drawer-header {
    padding: var(--space-6) var(--space-6);
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--gray-100);
}
.drawer-title { font-weight: 700; font-size: 1.1rem; color: var(--gray-900); }
.drawer-close { background: none; border: none; font-size: 2rem; color: var(--gray-400); cursor: pointer; line-height: 1; }

.drawer-content { padding: var(--space-4); flex: 1; overflow-y: auto; }
.drawer-link {
    display: flex; align-items: center; gap: var(--space-4);
    padding: var(--space-4); color: var(--gray-700);
    font-weight: 600; border-radius: var(--radius-md);
    transition: all 0.2s;
}
.drawer-link:hover { background: var(--primary-50); color: var(--primary-700); }
.drawer-link i { width: 20px; text-align: center; font-size: 1.1rem; opacity: 0.7; }

.drawer-user-info {
    padding: var(--space-4); background: var(--gray-50); border-radius: var(--radius-md);
    margin-bottom: var(--space-4); display: flex; align-items: center; gap: var(--space-3);
    font-size: var(--font-size-sm); color: var(--gray-600);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .navbar-links { display: none; }
    .navbar-toggle { display: block; }

    .hero-title { font-size: var(--font-size-3xl); }
    .carousel-btn { display: none; }
    .event-actions { flex-direction: column; align-items: center; }
    .container { padding: 0 var(--space-4); }

    /* Footer adjustments */
    .footer { padding-bottom: var(--space-16); } /* Room for mobile nav if needed */
}

/* ---------- Premium UI Utilities & Elite Tokens ---------- */

.hero-visual-premium {
    position: relative;
    padding: var(--space-20) 0 var(--space-16);
    background: var(--elite-grad);
    color: #fff;
    overflow: hidden;
}

.hero-visual-premium::before {
    content: "";
    position: absolute;
    top: -50%; left: -20%; width: 140%; height: 200%;
    background: radial-gradient(circle at center, rgba(251, 191, 36, 0.08) 0%, transparent 60%);
    animation: slow-rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes slow-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.elite-gold-text {
    background: var(--gold-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.vip-badge {
    padding: 2px 10px;
    background: var(--gold-grad);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.elite-glow:hover {
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.2), 0 0 10px rgba(251, 191, 36, 0.1);
}

.section-hero-bright {
    background: linear-gradient(135deg, var(--primary-50) 0%, #fff 100%);
    border-bottom: 1px solid var(--primary-100);
    padding: var(--space-16) 0;
}

/* --- Phone Prefix Selector (Global) --- */
.phone-input-group {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.prefix-selector {
    width: 100px;
    height: 100%;
    min-height: 48px;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0 var(--space-2);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition-base);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.prefix-selector:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}

.phone-input-xl {
    flex: 1;
}

.modal .prefix-selector {
    min-height: 54px;
    border-radius: var(--radius-lg);
}

/* ============================================
   Responsive Design System (Mobile & Tablet)
   ============================================ */

/* Mobile Devices (max-width: 640px) */
@media (max-width: 640px) {
    :root {
        --space-20: 3rem; /* Reduce large spacing on mobile */
        --space-12: 2rem;
    }

    .hero-layout h1 {
        font-size: 2.2rem; /* Shrink giant titles */
        line-height: 1.2;
    }

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

    .container {
        padding: 0 var(--space-4);
    }

    /* Grid adaptation */
    .grid {
        gap: var(--space-4) !important;
    }

    /* Form adaptation */
    .form-input-xl {
        font-size: var(--font-size-base);
        padding: 12px 16px;
    }
    
    .phone-input-xl {
        padding-left: 90px !important;
    }

    /* Video player height on mobile */
    .plyr--video {
        aspect-ratio: 16/9;
    }
}

/* Tablet / iPad (641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-layout h1 {
        font-size: 3rem;
    }

    .watch-layout {
        flex-direction: column;
    }

    .chat-sidebar {
        width: 100% !important;
        height: 450px !important;
        position: static !important;
        margin-top: var(--space-8);
    }
}

/* Desktop Polish */
@media (min-width: 1025px) {
    .hover-lift:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    }
}

/* ============================================
   Optimized Components & Layouts
   ============================================ */

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-actions {
    margin-top: var(--space-8);
}

.elite-btn {
    background: #fff !important;
    color: var(--primary-700) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: var(--radius-full);
}

.elite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    background: var(--primary-50) !important;
}

.carousel-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-3xl);
    color: rgba(255,255,255,0.6);
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-10);
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
}

/* Standard Empty State */
.empty-state-container {
    text-align: center;
    padding: var(--space-20) var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-state-image {
    max-width: 320px;
    width: 100%;
    opacity: 0.7;
    margin-bottom: var(--space-8);
}

.empty-state-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: var(--space-3);
}

.empty-state-text {
    max-width: 500px;
    color: var(--gray-500);
    line-height: 1.6;
}
