/* ═══════════════════════════════════════════════════════════════════
   STANDARD - Fluid, Organic, Alive
   Smoke, Embers, Motion
   
   NOTE: Core design tokens are defined in design-system.css
   This file extends with legacy aliases and component-specific styles
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* Legacy aliases - mapped to design system tokens */
    --black: var(--color-neutral-0);
    --smoke-dark: var(--color-neutral-50);
    --smoke-mid: var(--color-neutral-100);
    --bg-darkest: var(--bg-page);
    --bg-dark: var(--color-neutral-50);
    --bg-card: var(--color-neutral-100);
    --bg-card-hover: var(--color-neutral-200);
    --bg-elevated: var(--color-neutral-200);
    
    /* Ember accent - using design system */
    --ember: var(--color-primary);
    --ember-glow: rgba(255, 77, 0, 0.3);
    --ember-subtle: rgba(255, 77, 0, 0.1);
    --ember-bright: var(--color-ember-400);
    
    /* Status colors - using design system */
    --success: var(--color-success-500);
    --warning: var(--color-warning-500);
    --error: var(--color-error-500);
    
    /* Borders - Organic */
    --border-color: var(--border-default);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-hover: var(--color-primary);
    
    /* Shadows - using design system */
    --shadow-glow: var(--shadow-glow-ember);
    
    /* Spacing legacy aliases */
    --space-xs: var(--space-1);
    --space-sm: var(--space-2);
    --space-md: var(--space-4);
    --space-lg: var(--space-6);
    --space-xl: var(--space-8);
    --space-2xl: var(--space-12);
    --space-3xl: var(--space-16);
    
    /* Clip paths - Diagonal cuts (unique to this design) */
    --clip-card: polygon(0% 8px, 8px 0%, calc(100% - 16px) 0%, 100% 16px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 16px 100%, 0% calc(100% - 16px));
    --clip-button: polygon(0% 4px, 4px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 8px 100%, 0% calc(100% - 8px));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none;
}

/* ═══════════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════════════════ */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,77,0,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

.cursor-core {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--ember);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--ember), 0 0 40px var(--ember);
    transition: transform 0.1s ease-out;
}

.cursor-core.clicking {
    transform: translate(-50%, -50%) scale(2);
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,77,0,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cursor-ring.hovering {
    width: 60px;
    height: 60px;
    border-color: var(--ember);
    background: rgba(255,77,0,0.08);
}

/* ═══════════════════════════════════════════════════════════════════
   SMOKE BACKGROUND CANVAS
   ═══════════════════════════════════════════════════════════════════ */
#smokeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#emberCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   NOISE TEXTURE OVERLAY
   ═══════════════════════════════════════════════════════════════════ */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 3;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: noiseShift 0.5s steps(10) infinite;
}

@keyframes noiseShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10%, -10%); }
}

/* ═══════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

.display-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.9;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--ember) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-white { color: var(--text-primary); }
.text-success { color: var(--success); }
.text-ember { color: var(--ember); }

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 10;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 10;
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
    z-index: 10;
}

.section-dark {
    background: linear-gradient(180deg, var(--smoke-dark) 0%, var(--black) 100%);
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS - Organic cuts, glowing
   ═══════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    clip-path: var(--clip-button);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary {
    background: var(--ember);
    color: var(--black);
    box-shadow: 0 0 30px rgba(255, 77, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) rotate(-0.5deg);
    box-shadow: 0 10px 40px rgba(255, 77, 0, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--ember);
    background: var(--ember-subtle);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 0.9375rem;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.75rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS - Organic, floating, angled
   ═══════════════════════════════════════════════════════════════════ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    padding: var(--space-xl);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    animation: cardFloat 6s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,77,0,0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    clip-path: inherit;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ember), transparent);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px) rotate(-0.3deg);
    box-shadow: var(--shadow-glow);
}

.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }

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

.card-no-float {
    animation: none;
}

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

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION - Floating, organic
   ═══════════════════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: all 0.3s;
}

.nav-logo:hover {
    transform: rotate(-1deg);
}

.nav-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--ember) 0%, var(--ember-bright) 100%);
    clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
    box-shadow: 0 0 20px var(--ember-glow);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ember);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.nav-link.nav-dashboard {
    color: var(--ember);
    font-weight: 600;
}

.nav-link.nav-dashboard:hover {
    color: var(--text-primary);
}

.nav-user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding-left: var(--space-md);
    border-left: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION - Dramatic, organic
   ═══════════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    background: var(--ember-subtle);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-button);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--ember);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.05em;
    animation: heroReveal 1s ease-out;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: heroReveal 1s ease-out 0.2s both;
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: heroReveal 1s ease-out 0.4s both;
}

.hero-countdown {
    margin-top: var(--space-2xl);
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    display: inline-block;
    animation: heroReveal 1s ease-out 0.6s both, cardFloat 5s ease-in-out 1s infinite;
}

.countdown-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.countdown-time {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ember);
    font-variant-numeric: tabular-nums;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--ember);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--ember);
}

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

/* ═══════════════════════════════════════════════════════════════════
   STATS BAR - Staggered, organic
   ═══════════════════════════════════════════════════════════════════ */

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    padding: var(--space-2xl);
    background: linear-gradient(180deg, var(--smoke-dark) 0%, var(--black) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

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

.stat-item {
    text-align: center;
    animation: statReveal 0.8s ease-out both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════════
   PRICING SECTION - Staggered cards
   ═══════════════════════════════════════════════════════════════════ */

.pricing-section {
    padding: var(--space-3xl) 0;
    position: relative;
    z-index: 10;
}

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

.section-header h2 {
    margin-bottom: var(--space-md);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    padding: var(--space-xl);
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: cardFloat 6s ease-in-out infinite;
}

.pricing-card:nth-child(1) { animation-delay: 0s; transform: rotate(-0.5deg); }
.pricing-card:nth-child(2) { animation-delay: 0.3s; transform: rotate(0.3deg); }
.pricing-card:nth-child(3) { animation-delay: 0.6s; transform: rotate(-0.3deg); }
.pricing-card:nth-child(4) { animation-delay: 0.9s; transform: rotate(0.5deg); }

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-12px) rotate(0deg) !important;
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured {
    border-color: var(--ember);
    background: linear-gradient(135deg, rgba(255,77,0,0.1) 0%, var(--bg-card) 100%);
}

.pricing-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ember);
    color: var(--black);
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 6px 14px;
    clip-path: var(--clip-button);
    letter-spacing: 0.1em;
}

.pricing-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.03em;
}

.pricing-card.featured .pricing-price {
    color: var(--ember);
}

.pricing-duration {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pricing-features li::before {
    content: '—';
    color: var(--ember);
}

/* ═══════════════════════════════════════════════════════════════════
   ETHICS / COMPARISON
   ═══════════════════════════════════════════════════════════════════ */

.ethics-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--ember-subtle);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-button);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ember);
}

.ethics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

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

.ethics-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    padding: var(--space-xl);
    animation: cardFloat 7s ease-in-out infinite;
}

.ethics-card:nth-child(odd) { animation-delay: 0s; }
.ethics-card:nth-child(even) { animation-delay: 0.5s; }

.ethics-card h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

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

.comparison-col h4 {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9375rem;
}

.comparison-col.bad h4 { color: var(--text-muted); }
.comparison-col.good h4 { color: var(--ember); }

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

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.comparison-col.bad .comparison-list li::before {
    content: '×';
    color: var(--text-muted);
}

.comparison-col.good .comparison-list li::before {
    content: '✓';
    color: var(--ember);
}

/* ═══════════════════════════════════════════════════════════════════
   TESTIMONIALS - Organic, floating
   ═══════════════════════════════════════════════════════════════════ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    padding: var(--space-xl);
    animation: cardFloat 6s ease-in-out infinite;
    transition: all 0.4s;
}

.testimonial-card:nth-child(1) { animation-delay: 0s; transform: rotate(-0.5deg); }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; transform: rotate(0.3deg); }
.testimonial-card:nth-child(3) { animation-delay: 0.8s; transform: rotate(-0.3deg); }

.testimonial-card:hover {
    transform: translateY(-8px) rotate(0deg);
    border-color: var(--border-hover);
}

.testimonial-quote {
    font-size: 1rem;
    font-style: normal;
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ember-subtle) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border-color);
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.testimonial-handle {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ═══════════════════════════════════════════════════════════════════
   QUEUE PAGE
   ═══════════════════════════════════════════════════════════════════ */

.queue-page {
    padding-top: 80px;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

.queue-header {
    background: linear-gradient(180deg, var(--smoke-dark) 0%, transparent 100%);
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 14px;
    background: var(--ember-subtle);
    clip-path: var(--clip-button);
    font-weight: 700;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ember);
}

.now-playing {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.now-playing-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.now-playing-badge {
    background: var(--ember);
    color: var(--black);
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 6px 12px;
    clip-path: var(--clip-button);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.song-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.song-artwork {
    width: 80px;
    height: 80px;
    clip-path: var(--clip-card);
    background: var(--bg-elevated);
    object-fit: cover;
}

.song-info h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.125rem;
}

.song-meta {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.queue-list {
    padding: var(--space-xl);
}

.queue-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    margin-bottom: var(--space-sm);
    transition: all 0.3s;
}

.queue-item:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
}

.queue-item.is-you {
    border-color: var(--ember);
    background: linear-gradient(135deg, rgba(255,77,0,0.1) 0%, var(--bg-card) 100%);
}

.queue-position {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.queue-item.is-you .queue-position {
    color: var(--ember);
}

.queue-artwork {
    width: 48px;
    height: 48px;
    clip-path: var(--clip-card);
    background: var(--bg-elevated);
    object-fit: cover;
}

.queue-song-info {
    flex: 1;
}

.queue-song-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.9375rem;
}

.queue-artist {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.queue-type {
    font-size: 0.625rem;
    padding: 6px 10px;
    clip-path: var(--clip-button);
    background: var(--bg-elevated);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.queue-type.vip {
    background: var(--ember);
    color: var(--black);
}

.queue-type.priority {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
}

.queue-wait {
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-align: right;
}

/* ═══════════════════════════════════════════════════════════════════
   FORMS - Organic inputs
   ═══════════════════════════════════════════════════════════════════ */

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

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-sublabel {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--ember);
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--ember);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

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

.checkbox-item.selected {
    border-color: var(--ember);
    background: var(--ember-subtle);
}

.checkbox-item input {
    accent-color: var(--ember);
}

.radio-cards {
    display: grid;
    gap: var(--space-sm);
}

.radio-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    cursor: pointer;
    transition: all 0.3s;
}

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

.radio-card.selected {
    border-color: var(--ember);
    background: var(--ember-subtle);
}

.radio-card input {
    margin-top: 4px;
    accent-color: var(--ember);
}

/* ═══════════════════════════════════════════════════════════════════
   REVIEWER DASHBOARD - Organic panels
   ═══════════════════════════════════════════════════════════════════ */

.dashboard {
    padding-top: 60px;
    min-height: 100vh;
    display: flex;
    position: relative;
    z-index: 10;
}

.dashboard-sidebar {
    width: 220px;
    background: linear-gradient(180deg, var(--smoke-dark) 0%, var(--black) 100%);
    border-right: 1px solid var(--border-color);
    padding: var(--space-lg);
    position: fixed;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    clip-path: var(--clip-button);
    transition: all 0.3s;
    margin-bottom: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.sidebar-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--ember);
    color: var(--black);
}

.dashboard-main {
    flex: 1;
    margin-left: 220px;
    padding: var(--space-xl);
}

@media (max-width: 1024px) {
    .dashboard-sidebar { display: none; }
    .dashboard-main { margin-left: 0; }
}

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

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    padding: var(--space-lg);
    animation: cardFloat 6s ease-in-out infinite;
}

.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.4s; }
.stat-card:nth-child(4) { animation-delay: 0.6s; }

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.6875rem;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-card .stat-value.revenue {
    color: var(--ember);
}

/* Now Playing Card (Reviewer View) */
.now-playing-reviewer {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.now-playing-reviewer .song-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
}

.now-playing-reviewer .artwork {
    width: 140px;
    height: 140px;
    clip-path: var(--clip-card);
    background: var(--bg-elevated);
    object-fit: cover;
}

.artist-intel {
    background: var(--bg-elevated);
    clip-path: var(--clip-card);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.artist-intel h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
}

.intel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.intel-item {
    font-size: 0.8125rem;
}

.intel-item strong {
    color: var(--text-muted);
}

.review-timer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.timer-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ember);
    font-family: monospace;
    font-variant-numeric: tabular-nums;
}

.timer-remaining {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.quick-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

/* Queue Management */
.queue-management {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    overflow: hidden;
}

.queue-management-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.queue-management-list {
    max-height: 500px;
    overflow-y: auto;
}

.queue-management-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.3s;
}

.queue-management-item:hover {
    background: var(--bg-elevated);
}

.queue-management-item.up-next {
    background: var(--ember-subtle);
    border-left: 3px solid var(--ember);
}

/* CRM */
.crm-filters {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.crm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.artist-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    padding: var(--space-lg);
    transition: all 0.4s;
    animation: cardFloat 6s ease-in-out infinite;
    cursor: pointer;
}

.artist-card:nth-child(odd) { animation-delay: 0s; }
.artist-card:nth-child(even) { animation-delay: 0.3s; }

.artist-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
}

.artist-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.artist-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ember-subtle) 0%, var(--bg-elevated) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid var(--border-color);
}

.artist-card-name {
    font-weight: 700;
    font-size: 0.9375rem;
}

.artist-card-meta {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.artist-tags {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

.tag {
    font-size: 0.625rem;
    padding: 4px 10px;
    clip-path: var(--clip-button);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.tag.hot { background: var(--ember); color: var(--black); }
.tag.warm { background: var(--bg-elevated); border: 1px solid var(--border-color); }
.tag.ready { background: var(--success); color: var(--black); }

/* ═══════════════════════════════════════════════════════════════════
   SUBMISSION FLOW
   ═══════════════════════════════════════════════════════════════════ */

.submit-page {
    padding-top: 80px;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

.submit-container {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

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

.submit-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.step-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--ember);
    border-color: var(--ember);
    color: var(--black);
    box-shadow: 0 0 20px var(--ember-glow);
}

.step.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: var(--black);
}

.step-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.step.active .step-label {
    color: var(--ember);
}

.submit-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    clip-path: var(--clip-card);
    padding: var(--space-xl);
}

/* Confirmed Page */
.confirmed-page {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.confirmed-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.confirmed-position {
    font-size: 4rem;
    font-weight: 800;
    color: var(--ember);
}

.confirmed-wait {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER - Organic
   ═══════════════════════════════════════════════════════════════════ */

.footer {
    background: linear-gradient(180deg, var(--smoke-dark) 0%, var(--black) 100%);
    border-top: 1px solid var(--border-color);
    padding: var(--space-2xl) 0;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-logo {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.3s;
}

.footer-link:hover {
    color: var(--ember);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8125rem;
    width: 100%;
    text-align: center;
    margin-top: var(--space-lg);
}

/* ═══════════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════════ */

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

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

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

.hidden { display: none !important; }

/* Scoring Interface */
.score-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-input label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.score-input input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    outline: none;
}

.score-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--ember);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 0 10px var(--ember-glow);
}

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

.score-input span {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ember);
}

/* Selection */
::selection {
    background: var(--ember);
    color: var(--black);
}

/* ═══════════════════════════════════════════════════════════════════
   GAMIFICATION COLORS - Legacy aliases (now in design-system.css)
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --kahoot-purple: var(--color-kahoot);
    --kahoot-gold: var(--color-gold);
    --kahoot-cyan: var(--color-cyan);
    --duo-green: var(--color-success-500);
    --duo-green-dark: var(--color-success-600);
    --duo-gold: var(--color-gold);
    --duo-purple: var(--color-purple-300);
    --achievement-bronze: var(--color-bronze);
    --achievement-silver: var(--color-silver);
    --achievement-gold: var(--color-gold);
    --achievement-platinum: var(--color-platinum);
}

/* ═══════════════════════════════════════════════════════════════════
   CELEBRATION ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
@keyframes celebrate {
    0% { transform: scale(1); }
    10% { transform: scale(1.1); }
    20% { transform: scale(0.95); }
    30% { transform: scale(1.05); }
    40% { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

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

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

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 77, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 77, 0, 0.6); }
}

@keyframes streak-fire {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

/* Achievement Badge Animation */
.achievement-pop {
    animation: celebrate 0.6s ease-out;
}

/* Streak Glow */
.streak-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Shimmer effect for loading/special elements */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   GAMIFIED BADGES & ACHIEVEMENTS
   ═══════════════════════════════════════════════════════════════════ */
.badge-achievement {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-achievement.bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.1));
    color: var(--achievement-bronze);
    border: 1px solid var(--achievement-bronze);
}

.badge-achievement.silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.1));
    color: var(--achievement-silver);
    border: 1px solid var(--achievement-silver);
}

.badge-achievement.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    color: var(--achievement-gold);
    border: 1px solid var(--achievement-gold);
}

.badge-achievement.platinum {
    background: linear-gradient(135deg, rgba(229, 228, 226, 0.2), rgba(229, 228, 226, 0.1));
    color: var(--achievement-platinum);
    border: 1px solid var(--achievement-platinum);
}

/* Streak badges */
.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255, 77, 0, 0.2), rgba(255, 140, 0, 0.1));
    border: 1px solid rgba(255, 77, 0, 0.4);
    border-radius: 20px;
    color: #ff4d00;
    font-weight: 700;
    font-size: 0.875rem;
}

.streak-badge .fire-emoji {
    animation: streak-fire 1s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   PROGRESS BARS - Duolingo style
   ═══════════════════════════════════════════════════════════════════ */
.progress-bar-duo {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar-duo .fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #ff4d00, #ff8c00);
    transition: width 0.5s ease-out;
    position: relative;
}

.progress-bar-duo .fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px 6px 0 0;
}

.progress-bar-duo.success .fill {
    background: linear-gradient(90deg, #58cc02, #7acc02);
}

.progress-bar-duo.gold .fill {
    background: linear-gradient(90deg, #ffb800, #ffd700);
}

/* ═══════════════════════════════════════════════════════════════════
   GAMIFIED CARDS
   ═══════════════════════════════════════════════════════════════════ */
.card-game {
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.95), rgba(20, 20, 25, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-game:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-game.highlight {
    border-color: var(--ember);
    box-shadow: 0 0 30px rgba(255, 77, 0, 0.2);
}

.card-game.success {
    border-color: var(--duo-green);
    box-shadow: 0 0 30px rgba(88, 204, 2, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   SCORE CIRCLES - Strava inspired
   ═══════════════════════════════════════════════════════════════════ */
.score-circle-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    position: relative;
}

.score-circle-large .score-value {
    font-size: 2.5rem;
    line-height: 1;
}

.score-circle-large .score-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.score-circle-large.excellent {
    background: linear-gradient(135deg, #00c896, #00a878);
    color: #000;
}

.score-circle-large.good {
    background: linear-gradient(135deg, #ff4d00, #ff6b00);
    color: #000;
}

.score-circle-large.average {
    background: linear-gradient(135deg, #ffb800, #ffd700);
    color: #000;
}

.score-circle-large.needs-work {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════
   ACTIVITY FEED - Strava style
   ═══════════════════════════════════════════════════════════════════ */
.activity-feed-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(30, 30, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s;
}

.activity-feed-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(40, 40, 45, 0.95);
}

.activity-feed-item .activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.activity-feed-item .activity-icon.review {
    background: rgba(255, 77, 0, 0.2);
}

.activity-feed-item .activity-icon.achievement {
    background: rgba(255, 215, 0, 0.2);
}

.activity-feed-item .activity-icon.milestone {
    background: rgba(88, 204, 2, 0.2);
}

.activity-feed-item .activity-content {
    flex: 1;
}

.activity-feed-item .activity-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.activity-feed-item .activity-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   LEADERBOARD - Kahoot style
   ═══════════════════════════════════════════════════════════════════ */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(30, 30, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.leaderboard-item:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.leaderboard-item.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(30, 30, 35, 0.95));
    border-color: rgba(255, 215, 0, 0.3);
}

.leaderboard-item.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(30, 30, 35, 0.95));
    border-color: rgba(192, 192, 192, 0.3);
}

.leaderboard-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(30, 30, 35, 0.95));
    border-color: rgba(205, 127, 50, 0.3);
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-item.rank-1 .leaderboard-rank {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #000;
}

.leaderboard-item.rank-2 .leaderboard-rank {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #000;
}

.leaderboard-item.rank-3 .leaderboard-rank {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #000;
}

/* ═══════════════════════════════════════════════════════════════════
   CELEBRATION OVERLAY
   ═══════════════════════════════════════════════════════════════════ */
.celebration-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.celebration-content {
    text-align: center;
    animation: celebrate 0.6s ease-out;
}

.celebration-emoji {
    font-size: 6rem;
    margin-bottom: 24px;
    display: block;
}

.celebration-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

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

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE GAME ELEMENTS
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .score-circle-large {
        width: 80px;
        height: 80px;
    }
    
    .score-circle-large .score-value {
        font-size: 2rem;
    }
    
    .celebration-emoji {
        font-size: 4rem;
    }
    
    .celebration-title {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE VIEWPORT FIX (iPhone SE and smaller)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 375px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .submit-container {
        padding: var(--space-lg) var(--space-sm) !important;  /* Reduce padding on small screens */
        max-width: 100% !important;  /* Override inline styles */
        margin: 0 auto;
    }

    .submit-form {
        padding: var(--space-md) !important;  /* Reduce form padding */
        max-width: 100%;
    }

    /* Ensure form inputs don't overflow */
    .form-input, .form-group, .btn {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fix nav on mobile */
    .nav, .nav-inner {
        max-width: 100vw;
        overflow-x: hidden;
    }
}
