/* ========================================
   NAKAMA WAVES - Design System
   ======================================== */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --bg-primary: #07070d;
    --bg-secondary: #0e0e18;
    --bg-tertiary: #161625;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-input: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-focus: rgba(124, 92, 252, 0.5);
    
    --text-primary: #e8e8f0;
    --text-secondary: #9898b0;
    --text-muted: #5a5a78;
    
    --accent-primary: #7c5cfc;
    --accent-secondary: #00d4ff;
    --accent-gradient: linear-gradient(135deg, #7c5cfc, #00d4ff);
    --accent-glow: rgba(124, 92, 252, 0.4);
    
    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.1);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.1);
    --error: #f87171;
    --error-bg: rgba(248, 113, 113, 0.1);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(124, 92, 252, 0.2);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* --- Light Mode CSS Variables --- */
:root[data-theme="light"] {
    --bg-primary: #f4f4f9;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9eaf2;
    --bg-card: rgba(255, 255, 255, 0.65);
    --bg-card-hover: rgba(255, 255, 255, 0.85);
    --bg-input: rgba(0, 0, 0, 0.04);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --border-focus: rgba(124, 92, 252, 0.6);
    
    --text-primary: #1e1e2f;
    --text-secondary: #565675;
    --text-muted: #8c8ca3;
    
    --accent-glow: rgba(124, 92, 252, 0.15);
    
    --success-bg: rgba(52, 211, 153, 0.15);
    --warning-bg: rgba(251, 191, 36, 0.15);
    --error-bg: rgba(248, 113, 113, 0.15);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* --- Views / SPA --- */
.view {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    animation: fadeIn 0.4s ease;
}
.view.active {
    display: block;
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(124, 92, 252, 0.2); }
    50% { box-shadow: 0 0 40px rgba(124, 92, 252, 0.4); }
}

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

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) var(--space-xl);
    background: rgba(7, 7, 13, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    cursor: pointer;
}

.nav-logo {
    font-size: 1.5rem;
}

.nav-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-user {
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.nav-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}
.nav-link:hover {
    color: var(--text-primary);
}

.nav-logout {
    font-size: 0.875rem;
    color: #ff4d4d !important;
    border: 1px solid rgba(255, 77, 77, 0.2) !important;
    padding: 6px 16px !important;
    border-radius: var(--radius-sm) !important;
    transition: all var(--transition-fast) !important;
    background: transparent !important;
}
.nav-logout:hover {
    color: #fff !important;
    background: #ff4d4d !important;
    border-color: #ff4d4d !important;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.4) !important;
}

/* --- Buttons --- */
button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 92, 252, 0.4);
}
.btn-primary:hover::before {
    opacity: 1;
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}
.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(124, 92, 252, 0.08);
    transform: translateY(-2px);
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}
.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.btn-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.btn-large {
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.05rem;
}

.btn-small {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    font-size: 1.1em;
}

.btn-arrow {
    transition: transform var(--transition-fast);
}
.btn-primary:hover .btn-arrow,
.btn-outline:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-lg);
    transition: color var(--transition-fast);
}
.btn-back:hover {
    color: var(--text-primary);
}

.btn-danger {
    background: var(--error);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}
.btn-danger:hover {
    background: #ef4444;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: #0a0a12;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}
.btn-success:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* --- Glass Card --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
}
.glass-card:hover {
    border-color: var(--border-hover);
}

/* --- Input Fields --- */
.input-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

.input-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.input-field {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}
.input-field:focus {
    border-color: var(--border-focus);
    background: rgba(124, 92, 252, 0.05);
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1);
}
.input-field::placeholder {
    color: var(--text-muted);
}

.textarea {
    resize: vertical;
    min-height: 80px;
    padding-top: var(--space-md);
}

/* Input without icon */
.input-group:not(:has(.input-icon)) .input-field {
    padding-left: var(--space-md);
}

/* --- Error & Success Messages --- */
.error-message {
    color: var(--error);
    font-size: 0.85rem;
    padding: var(--space-sm) var(--space-md);
    background: var(--error-bg);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.success-message {
    color: var(--success);
    font-size: 0.85rem;
    padding: var(--space-sm) var(--space-md);
    background: var(--success-bg);
    border-radius: var(--radius-sm);
    margin-top: var(--space-md);
    border: 1px solid rgba(52, 211, 153, 0.2);
    text-align: center;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-active {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.2);
}
.badge-closed {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ===== LANDING PAGE ===== */
.landing-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.hero-section {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content {
    animation: slideUp 0.8s ease;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(124, 92, 252, 0.1);
    border: 1px solid rgba(124, 92, 252, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.gradient-text {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

.glow-text {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(124, 92, 252, 0.3), 0 0 80px rgba(0, 212, 255, 0.15);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-icon {
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 252, 0.15), transparent 70%);
    filter: blur(40px);
    animation: pulse-glow 4s ease infinite;
}

.floating-cards {
    position: relative;
    width: 300px;
    height: 300px;
}

.floating-card {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    animation: float 6s ease infinite;
}

.fc-1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.fc-2 { top: 50%; right: 0; transform: translateY(-50%); animation-delay: 1.5s; }
.fc-3 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 3s; }
.fc-4 { top: 50%; left: 0; transform: translateY(-50%); animation-delay: 4.5s; }

/* ===== AUTH PAGES ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.5s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 92, 252, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124, 92, 252, 0.2);
}

.auth-icon {
    font-size: 1.8rem;
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-md);
}

/* ===== DASHBOARD / HOME ===== */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(80px + var(--space-2xl)) var(--space-xl) var(--space-2xl);
}

.dashboard-header {
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.page-title {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-lg);
}

/* Sessions Grid */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
}

.session-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    animation: slideUp 0.5s ease;
}
.session-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.session-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-md);
    background: var(--bg-secondary);
}

.session-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.session-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.session-card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.session-card-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.session-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-muted);
}

/* ===== MINIGAME / VOTING PAGE ===== */
.minigame-container {
    max-width: 900px;
    margin: 0 auto;
    padding: calc(80px + var(--space-2xl)) var(--space-xl) var(--space-2xl);
}

.minigame-header {
    margin-bottom: var(--space-xl);
}

.video-section {
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
}

.video-wrapper iframe,
.video-wrapper div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Voting Section */
.voting-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.rating-categories {
    margin-bottom: var(--space-xl);
}

.rating-category {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}
.rating-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rating-category-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: var(--space-sm);
}

.star-btn {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    filter: grayscale(1) opacity(0.3);
    padding: 2px;
}
.star-btn:hover {
    transform: scale(1.2);
}
.star-btn.active {
    filter: none;
    transform: scale(1.1);
}

/* Slider Rating */
.slider-rating {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.slider-rating input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-input);
    outline: none;
}

.slider-rating input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-gradient);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.slider-rating input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

/* Emoji Rating */
.emoji-rating {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.emoji-btn {
    font-size: 1.8rem;
    padding: var(--space-sm);
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0.5;
}
.emoji-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}
.emoji-btn.active {
    opacity: 1;
    border-color: var(--accent-primary);
    background: rgba(124, 92, 252, 0.1);
    transform: scale(1.15);
}

/* Results Section */
.results-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.results-grid {
    display: grid;
    gap: var(--space-lg);
}

.result-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-input);
    border-radius: var(--radius-md);
}

.result-name {
    flex: 1;
    font-weight: 500;
}

.result-bar-container {
    flex: 2;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.result-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.result-value {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.95rem;
}

.total-votes {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== ADMIN PANEL ===== */
.admin-container {
    max-width: 900px;
    margin: 0 auto;
    padding: calc(80px + var(--space-2xl)) var(--space-xl) var(--space-2xl);
}

.admin-header {
    margin-bottom: var(--space-xl);
}

.admin-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    padding: var(--space-xs);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}
.tab-btn:hover {
    color: var(--text-primary);
}
.tab-btn.active {
    background: var(--accent-gradient);
    color: #fff;
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Create Form */
.create-form {
    animation: slideUp 0.4s ease;
}

.form-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
}
.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.form-section-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-lg);
}

/* Video Preview */
.video-preview {
    margin-top: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-preview-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-preview-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Categories Builder */
.categories-builder {
    margin-bottom: var(--space-md);
}

.category-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    animation: slideUp 0.3s ease;
}

.category-item .input-field {
    flex: 1;
    margin: 0;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
}

.category-item .input-group {
    margin: 0;
    flex: 1;
}

.category-type-select {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}
.category-type-select:focus {
    border-color: var(--border-focus);
}

.category-max-input {
    width: 70px;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-align: center;
    outline: none;
}
.category-max-input:focus {
    border-color: var(--border-focus);
}

.btn-remove-category {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: var(--space-xs);
    transition: color var(--transition-fast);
    flex-shrink: 0;
}
.btn-remove-category:hover {
    color: var(--error);
}

/* Manage List */
.manage-list {
    display: grid;
    gap: var(--space-md);
}

.manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    animation: slideUp 0.4s ease;
}
.manage-item:hover {
    border-color: var(--border-hover);
}

.manage-item-info {
    flex: 1;
}

.manage-item-title {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.manage-item-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.manage-item-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: var(--space-xl);
    right: var(--space-xl);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(20px);
    border: 1px solid;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    max-width: 360px;
}

.toast-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: rgba(52, 211, 153, 0.2);
}

.toast-error {
    background: var(--error-bg);
    color: var(--error);
    border-color: rgba(248, 113, 113, 0.2);
}

.toast-info {
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-primary);
    border-color: rgba(124, 92, 252, 0.2);
}

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

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

/* ===== LOADING ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7, 7, 13, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-buttons {
        justify-content: center;
    }

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

    .navbar {
        padding: var(--space-sm) var(--space-md);
    }

    .nav-right {
        gap: var(--space-sm);
    }

    .nav-user {
        display: none;
    }

    .glass-card {
        padding: var(--space-lg);
    }

    .voting-section,
    .results-section {
        padding: var(--space-lg);
    }

    .manage-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .manage-item-actions {
        width: 100%;
    }

    .category-item {
        flex-wrap: wrap;
    }

    .btn-large {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.95rem;
    }

    .admin-tabs {
        flex-direction: column;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-bar-container {
        width: 100%;
    }

    .toast-container {
        left: var(--space-md);
        right: var(--space-md);
    }

    .toast {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .gradient-text,
    .glow-text {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-large {
        width: 100%;
    }

    .star-btn {
        font-size: 1.6rem;
    }
}

/* ===== FEATURES GRID (HOME) ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    animation: slideUp 0.5s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.feature-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}
.feature-card.feature-disabled {
    cursor: default;
    opacity: 0.5;
}
.feature-card.feature-disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

.feature-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 92, 252, 0.08);
    border: 1px solid rgba(124, 92, 252, 0.15);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}
.feature-card:hover .feature-icon-wrap {
    background: rgba(124, 92, 252, 0.15);
    transform: scale(1.05);
}

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

.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.feature-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--success-bg);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.feature-arrow {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
.feature-card:hover .feature-arrow {
    color: var(--accent-primary);
    transform: translateY(-50%) translateX(4px);
}

.badge-coming {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* ===== VIDEO NAVIGATION ===== */
.video-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.video-nav-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.video-nav-counter {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(124, 92, 252, 0.1);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.current-video-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.admin-video-controls {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

/* ===== VIDEO LIST ===== */
.video-list-section {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.video-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.video-list-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}
.video-list-item.active {
    border-color: var(--accent-primary);
    background: rgba(124, 92, 252, 0.08);
}

.video-list-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.video-list-item.active .video-list-number {
    background: var(--accent-gradient);
    color: #fff;
}

.video-list-thumb {
    width: 64px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

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

.video-list-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-list-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== VIDEO BUILDER (ADMIN) ===== */
.videos-builder {
    margin-bottom: var(--space-md);
}

.video-builder-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    animation: slideUp 0.3s ease;
}

.video-builder-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-primary);
    background: rgba(124, 92, 252, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    margin-top: 4px;
}

.video-builder-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.video-builder-fields .input-field {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
    margin: 0;
}

.video-builder-preview {
    margin-top: var(--space-xs);
}

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

    .feature-arrow {
        display: none;
    }

    .video-nav {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .video-nav-info {
        justify-content: center;
    }

    .admin-video-controls {
        justify-content: center;
    }

    .video-list-thumb {
        display: none;
    }


    .video-builder-item {
        flex-wrap: wrap;
    }
}

/* ===== LANDING CLOCK ===== */
.hero-clock {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: var(--space-xl);
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-family: 'Space Grotesk', sans-serif;
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2xl) var(--space-xl);
    margin-bottom: var(--space-2xl);
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.08), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(124, 92, 252, 0.15);
    border-radius: var(--radius-xl);
    animation: slideUp 0.6s ease;
    position: relative;
    overflow: hidden;
}
.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.welcome-left {
    flex: 1;
}

.welcome-greeting {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.welcome-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.welcome-msg {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.welcome-right {
    flex-shrink: 0;
    margin-left: var(--space-xl);
}

.welcome-wave {
    font-size: 4rem;
    animation: float 6s ease infinite;
    filter: drop-shadow(0 0 20px rgba(124, 92, 252, 0.3));
}

/* ===== HOME SECTIONS ===== */
.home-section {
    margin-bottom: var(--space-3xl);
    animation: slideUp 0.5s ease;
}

.home-section-header {
    margin-bottom: var(--space-xl);
}

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-sm);
}

/* ===== ABOUT SECTION ===== */
.about-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 700px;
    margin-bottom: var(--space-2xl);
}

/* ===== HIGHLIGHTS GRID ===== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.highlight-card {
    padding: var(--space-xl) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}
.highlight-card:hover {
    border-color: rgba(124, 92, 252, 0.3);
    background: rgba(124, 92, 252, 0.04);
    transform: translateY(-2px);
}

.highlight-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.highlight-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.highlight-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===== SITE FOOTER ===== */
.site-footer {
    padding: var(--space-2xl) 0;
    margin-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
}

.footer-sub {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ===== RESPONSIVE (HOME NEW) ===== */
@media (max-width: 768px) {
    .welcome-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--space-xl);
    }

    .welcome-right {
        margin-left: 0;
        margin-top: var(--space-md);
    }

    .welcome-wave {
        font-size: 2.5rem;
    }

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

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

/* ===== LANDING FEATURES SECTION ===== */
.landing-features-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, transparent, rgba(124, 92, 252, 0.02), transparent);
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ===== LANDING CTA ===== */
.landing-cta-section {
    padding: var(--space-3xl) 0;
}

.cta-card {
    text-align: center;
    padding: var(--space-3xl);
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.06), rgba(0, 212, 255, 0.04));
    border: 1px solid rgba(124, 92, 252, 0.15);
}

.cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== LANDING FOOTER ===== */
.landing-footer {
    padding: var(--space-2xl) var(--space-xl);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* ===== ANNOUNCEMENT CARDS ===== */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.announcement-card {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    animation: slideUp 0.5s ease;
    align-items: flex-start;
}
.announcement-card:hover {
    border-color: rgba(124, 92, 252, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.announcement-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 92, 252, 0.08);
    border-radius: var(--radius-md);
}

.announcement-content {
    flex: 1;
    min-width: 0;
}

.announcement-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.announcement-text {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.announcement-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===== FEATURE STATUS ===== */
.feature-status {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--success);
    margin-top: var(--space-xs);
}

/* Feature card text alignment */
.feature-card {
    text-align: left;
}

@media (max-width: 768px) {
    .announcement-card {
        flex-direction: column;
        gap: var(--space-md);
    }

    .cta-card {
        padding: var(--space-2xl) var(--space-lg);
    }

    .cta-title {
        font-size: 1.4rem;
    }

    .landing-features-section {
        padding: var(--space-2xl) 0;
    }
}
/* ===== GOOGLE SIGN-IN BUTTON ===== */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: #ffffff;
    color: #333333;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-google:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-google svg {
    flex-shrink: 0;
}

.auth-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: var(--space-lg);
    line-height: 1.5;
}

/* ===== EDIT BUTTON ===== */
.btn-edit {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all var(--transition-base);
}

.btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ===== ANNOUNCEMENT TICKER ===== */
.announcement-ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(90deg, rgba(124, 92, 252, 0.15), rgba(0, 212, 255, 0.1), rgba(124, 92, 252, 0.15));
    border-bottom: 1px solid rgba(124, 92, 252, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    height: 32px;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: tickerScroll 35s linear infinite;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    padding-left: 100%;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Adjust body when ticker is visible */
body:has(.announcement-ticker[style*="display: block"]) .navbar {
    top: 32px;
}
body:has(.announcement-ticker[style*="display: block"]) .landing-wrapper {
    padding-top: 32px;
}

/* ===== VIDEO SUMMARY (USER) ===== */
.video-summary-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    margin-top: var(--space-lg);
}

.video-summary-icon {
    font-size: 1.5rem;
}

.video-summary-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== INDIVIDUAL VOTES (TRANSPARENCY) ===== */
.individual-votes {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.iv-header {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.iv-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-xs);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}
.iv-row:hover {
    background: rgba(124, 92, 252, 0.04);
    border-color: rgba(124, 92, 252, 0.1);
}

.iv-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent-primary);
    min-width: 90px;
    flex-shrink: 0;
}

.iv-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
    flex: 1;
}

.iv-cat {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.iv-cat-name {
    color: var(--text-muted);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .iv-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .iv-ratings {
        gap: var(--space-xs) var(--space-md);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Selection */
::selection {
    background: rgba(124, 92, 252, 0.3);
    color: #fff;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    background: var(--bg-input);
    padding: var(--space-xs);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.auth-tab.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.auth-section-content {
    animation: fadeIn 0.3s ease;
}

/* ========================================
   NAKAMA WAVES - Customized Design Overrides
   ======================================== */

/* Center-aligned minimal hero layout (before login) */
.hero-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    gap: var(--space-xl) !important;
}

.hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.hero-subtitle {
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero-buttons {
    justify-content: center !important;
}

.hero-visual {
    display: none !important;
}

/* Softer card borders and glassmorphism glow for top-level pages and sections */
.glass-card, .voting-section, .results-section, .video-section, .video-nav, .auth-card {
    background: rgba(14, 14, 24, 0.8) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 45px 0 rgba(0, 0, 0, 0.55), 0 0 25px rgba(124, 92, 252, 0.04), inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
    transition: all var(--transition-base) !important;
}

/* Nested cards inside containers: NO backdrop-blur to prevent rendering stack limits, just nice solid colors with transparency */
.session-card, .announcement-card, .highlight-card, .feature-card, .manage-item {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.05) !important;
    transition: all var(--transition-base) !important;
}

/* Hover effects for interactive cards */
.glass-card:hover, .session-card:hover, .announcement-card:hover, .highlight-card:hover, .feature-card:hover, .manage-item:hover {
    border-color: rgba(124, 92, 252, 0.4) !important;
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.65), 0 0 25px rgba(124, 92, 252, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-4px) !important;
}

/* Welcome banner styling to preserve gradient color and borders while adding glass blur & shadow */
.welcome-banner {
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.12), rgba(0, 212, 255, 0.08)) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(124, 92, 252, 0.25) !important;
    box-shadow: 0 12px 35px 0 rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 92, 252, 0.05), inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
}

/* Clearer premium back button style */
.btn-back {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 18px !important;
    border-radius: var(--radius-md) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-lg);
    transition: all var(--transition-fast) !important;
}
.btn-back:hover {
    color: var(--text-primary) !important;
    border-color: var(--accent-primary) !important;
    background: rgba(124, 92, 252, 0.08) !important;
    box-shadow: 0 0 15px rgba(124, 92, 252, 0.2) !important;
}

/* About section custom background and styling - no backdrop blur to optimize performance */
#about-section {
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.04), rgba(0, 212, 255, 0.04)) !important;
    border: 1px solid rgba(124, 92, 252, 0.15) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-xl) !important;
    margin-top: var(--space-2xl) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25) !important;
}

/* Emojis default coloring fix */
.emoji-normal {
    color: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
    display: inline-block !important;
}

/* ========================================
   NAKAMA WAVES - Light Mode Design Overrides
   ======================================== */
:root[data-theme="light"] .glass-card, 
:root[data-theme="light"] .session-card, 
:root[data-theme="light"] .announcement-card, 
:root[data-theme="light"] .highlight-card, 
:root[data-theme="light"] .feature-card, 
:root[data-theme="light"] .voting-section, 
:root[data-theme="light"] .results-section, 
:root[data-theme="light"] .video-section, 
:root[data-theme="light"] .video-nav, 
:root[data-theme="light"] .auth-card, 
:root[data-theme="light"] .manage-item {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 12px 35px 0 rgba(31, 31, 47, 0.08), 0 0 20px rgba(124, 92, 252, 0.02), inset 0 1px 0 0 rgba(255, 255, 255, 0.6) !important;
}

:root[data-theme="light"] .glass-card:hover, 
:root[data-theme="light"] .session-card:hover, 
:root[data-theme="light"] .announcement-card:hover, 
:root[data-theme="light"] .highlight-card:hover, 
:root[data-theme="light"] .feature-card:hover, 
:root[data-theme="light"] .manage-item:hover {
    border-color: rgba(124, 92, 252, 0.4) !important;
    box-shadow: 0 16px 40px 0 rgba(31, 31, 47, 0.12), 0 0 25px rgba(124, 92, 252, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.8) !important;
}

:root[data-theme="light"] .welcome-banner {
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.12), rgba(0, 212, 255, 0.08)) !important;
    border: 1px solid rgba(124, 92, 252, 0.2) !important;
    box-shadow: 0 12px 35px 0 rgba(31, 31, 47, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.5) !important;
}

:root[data-theme="light"] #about-section {
    background: linear-gradient(135deg, rgba(124, 92, 252, 0.04), rgba(0, 212, 255, 0.04)) !important;
    border: 1px solid rgba(124, 92, 252, 0.15) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 31, 47, 0.05) !important;
}

:root[data-theme="light"] .navbar {
    background: rgba(244, 244, 249, 0.8) !important;
}

:root[data-theme="light"] .input-field {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #1e1e2f !important;
}
:root[data-theme="light"] .input-field:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--accent-primary) !important;
}
:root[data-theme="light"] .btn-google {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1e1e2f !important;
}
:root[data-theme="light"] .btn-google:hover {
    background: #f8f9fa !important;
}
:root[data-theme="light"] .auth-tabs {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}
:root[data-theme="light"] .auth-tab:not(.active) {
    color: var(--text-secondary) !important;
}
:root[data-theme="light"] .btn-outline {
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--text-primary) !important;
}
:root[data-theme="light"] .btn-outline:hover {
    background: rgba(124, 92, 252, 0.06) !important;
    border-color: var(--accent-primary) !important;
}
:root[data-theme="light"] .btn-back {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
:root[data-theme="light"] .btn-back:hover {
    background: rgba(124, 92, 252, 0.06) !important;
}
:root[data-theme="light"] .video-list-item {
    background: rgba(0, 0, 0, 0.03) !important;
}
:root[data-theme="light"] .video-list-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}
:root[data-theme="light"] .video-list-item.active {
    background: rgba(124, 92, 252, 0.06) !important;
    border-color: var(--accent-primary) !important;
}
:root[data-theme="light"] .result-item {
    background: rgba(0, 0, 0, 0.02) !important;
}
:root[data-theme="light"] .result-bar-container {
    background: rgba(0, 0, 0, 0.05) !important;
}
:root[data-theme="light"] .video-list-number {
    background: rgba(0, 0, 0, 0.03) !important;
}
:root[data-theme="light"] .video-list-item.active .video-list-number {
    background: var(--accent-gradient) !important;
}
:root[data-theme="light"] .announcement-ticker {
    background: linear-gradient(90deg, rgba(124, 92, 252, 0.08), rgba(0, 212, 255, 0.05), rgba(124, 92, 252, 0.08)) !important;
    border-bottom-color: rgba(124, 92, 252, 0.12) !important;
}
:root[data-theme="light"] .ticker-content {
    color: var(--text-primary) !important;
}

/* Smooth Transitions for Theme Swapping */
body, .navbar, .glass-card, .session-card, .announcement-card, .highlight-card, .welcome-banner, .feature-card, .voting-section, .results-section, .video-section, .video-nav, .auth-card, .manage-item, .input-field, .btn-outline, .btn-google, .btn-back, .video-list-item {
    transition: background-color var(--transition-base), background var(--transition-base), border-color var(--transition-base), border var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base) !important;
}

/* Floating Theme Toggle Style */
.floating-theme-toggle {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 101;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition-fast) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.floating-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}
:root[data-theme="light"] .floating-theme-toggle {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    color: #1e1e2f !important;
}
:root[data-theme="light"] .floating-theme-toggle:hover {
    background: #ffffff !important;
    border-color: var(--accent-primary) !important;
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS (Smooth Scrolling & Lag Reduction)
   ========================================================================== */

/* 1. On Tablets & Mobile: Disable heavy backdrop-filters completely to guarantee buttery-smooth 60fps scrolling.
      We also make the card background slightly more solid so elements remain readable and distinct. */
@media (max-width: 1024px) {
    .glass-card, 
    .navbar, 
    .floating-card, 
    .video-nav,
    .highlight-card,
    .auth-card,
    .create-form,
    [class*="glass"], 
    [class*="card"] {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    :root {
        --bg-card: rgba(22, 22, 37, 0.96) !important;
        --bg-card-hover: rgba(30, 30, 50, 0.98) !important;
    }
    
    :root[data-theme="light"] {
        --bg-card: rgba(255, 255, 255, 0.96) !important;
        --bg-card-hover: rgba(245, 245, 250, 0.98) !important;
    }
    
    .navbar {
        background: var(--bg-secondary) !important;
    }
}

/* 2. On Desktops: Reduce the blur radius from 20px/30px to a lightweight 6px to reduce GPU shader workloads by 70%. */
@media (min-width: 1025px) {
    .glass-card, 
    .navbar, 
    .video-nav,
    .highlight-card,
    .auth-card,
    .create-form,
    [class*="glass"] {
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
    }
}
