/* ==========================================================================
   MANDRAKE BIOWORKS - CHALLENGES SHARED CSS
   Comprehensive stylesheet for all challenge pages
   Dark theme with teal/cyan accents
   ========================================================================== */

/* ==========================================================================
   1. CSS RESET & BOX SIZING
   ========================================================================== */

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

*::before,
*::after {
    box-sizing: border-box;
}

/* ==========================================================================
   2. CSS VARIABLES - DESIGN TOKENS
   ========================================================================== */

:root {
    /* ----- Core Brand Colors (from main site) ----- */
    --primary-color: #4A7C8C;
    --primary-dark: #2A5C6C;
    --primary-light: #6A9CAC;
    --secondary-color: #1E3A5F;
    --accent-color: #00D4AA;
    --accent-cyan: #90dcd8;

    /* ----- Dark Theme Colors ----- */
    --bg-primary: #0f0e1d;
    --bg-secondary: #161527;
    --bg-card: #1a1932;
    --bg-card-hover: #222140;
    --bg-elevated: #252445;
    --border-color: #2d2b4a;
    --border-light: #3d3b5a;
    --border-accent: rgba(144, 220, 216, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.08);

    /* ----- Text Colors ----- */
    --text-primary: #e8e6f0;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --text-dark: #1a1a1a;
    --white: #ffffff;

    /* ----- Challenge Ranking Colors ----- */
    --gold: #FFD700;
    --gold-dark: #B8860B;
    --gold-light: #FFE55C;
    --gold-glow: rgba(255, 215, 0, 0.3);

    --silver: #C0C0C0;
    --silver-dark: #808080;
    --silver-light: #E8E8E8;
    --silver-glow: rgba(192, 192, 192, 0.3);

    --bronze: #CD7F32;
    --bronze-dark: #8B5A2B;
    --bronze-light: #DDA15E;
    --bronze-glow: rgba(205, 127, 50, 0.3);

    /* ----- Status Colors ----- */
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --warning-orange: #fbbf24;
    --error: #ef4444;
    --error-dark: #dc2626;
    --info: #3b82f6;
    --info-dark: #2563eb;

    /* ----- Gradients ----- */
    --gradient-primary: linear-gradient(135deg, #00D4AA 0%, #4A7C8C 100%);
    --gradient-dark: linear-gradient(135deg, #4A7C8C 0%, #1E3A5F 100%);
    --gradient-hero: linear-gradient(180deg, #0f0e1d 0%, #161527 50%, #1a1932 100%);
    --gradient-card: linear-gradient(145deg, #1a1932 0%, #161527 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    --gradient-silver: linear-gradient(135deg, #E8E8E8 0%, #808080 100%);
    --gradient-bronze: linear-gradient(135deg, #DDA15E 0%, #8B5A2B 100%);
    --gradient-accent: linear-gradient(135deg, #90dcd8 0%, #00D4AA 50%, #4A7C8C 100%);

    /* ----- Typography ----- */
    --font-primary: 'Afacad Flux', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

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

    /* ----- Border Radius ----- */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 50px;

    /* ----- Shadows ----- */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow-primary: 0 0 30px rgba(74, 124, 140, 0.3);
    --shadow-glow-accent: 0 0 30px rgba(0, 212, 170, 0.3);
    --shadow-glow-gold: 0 0 30px rgba(255, 215, 0, 0.3);

    /* ----- Transitions ----- */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* ----- Z-Index Scale ----- */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 900;
    --z-modal: 1000;
    --z-tooltip: 1100;
}

/* ==========================================================================
   3. BASE STYLES
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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

/* Background ambient glow effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(74, 124, 140, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 170, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(144, 220, 216, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 500;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    font-family: var(--font-secondary);
}

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

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

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Gradient text utility */
.gradient-text,
.gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   5. LAYOUT & CONTAINER
   ========================================================================== */

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

.container-narrow {
    max-width: 900px;
}

.container-wide {
    max-width: 1400px;
}

.section {
    padding: 7rem var(--space-xl) 6rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-darker {
    background: var(--bg-primary);
}

/* ==========================================================================
   6. NAVBAR
   ========================================================================== */

.nav-header,
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 14, 29, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-fixed);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.navbar.scrolled,
.nav-header.scrolled {
    padding: var(--space-sm) var(--space-xl);
    background: rgba(15, 14, 29, 0.98);
}

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

.logo,
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    color: var(--text-primary);
}

.logo img,
.nav-logo img {
    height: 40px;
    width: auto;
}

.logo span,
.nav-logo span {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-cyan);
    opacity: 0.9;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-cyan);
    background: rgba(144, 220, 216, 0.1);
}

/* ----- Hamburger Menu ----- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: calc(var(--z-fixed) + 10);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

/* Hamburger animation when open */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 8rem var(--space-xl) var(--space-3xl);
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(74, 124, 140, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Animated particle background */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='1' fill='rgba(144,220,216,0.1)'/%3E%3C/svg%3E");
    background-size: 50px 50px;
    opacity: 0.3;
    animation: drift 60s linear infinite;
    pointer-events: none;
}

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

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: var(--z-base);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: var(--accent-color);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease both, badgePulse 3s ease-in-out infinite;
}

.hero-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: dotPulse 2s infinite;
    box-shadow: 0 0 8px var(--accent-color);
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--accent-color); }
    50% { opacity: 0.7; transform: scale(1.3); box-shadow: 0 0 16px var(--accent-color); }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
    50% { box-shadow: 0 0 20px 2px rgba(0, 212, 170, 0.2); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1,
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s forwards;
}

.hero h1 .gradient,
.hero-title .gradient {
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    margin: var(--space-2xl) 0;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value,
.stat-number {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--accent-cyan);
    line-height: 1;
}

.hero-stat-label,
.stat-label {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-xs);
}

/* ==========================================================================
   8. COUNTDOWN TIMER
   ========================================================================== */

.countdown-container {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin: var(--space-2xl) 0;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-xl);
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.countdown-value {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-label {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-sm);
}

/* Countdown separator */
.countdown-separator {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Inline countdown (for cards) */
.countdown {
    font-family: var(--font-primary);
    color: var(--accent-cyan);
}

.countdown.expired {
    color: var(--text-muted);
}

/* ==========================================================================
   9. BUTTONS & CTAs
   ========================================================================== */

.btn,
.challenge-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary,
.challenge-cta {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow-accent);
}

.btn-primary:hover,
.challenge-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 170, 0.4);
    color: var(--white);
}

.challenge-cta .arrow {
    transition: transform var(--transition-base);
}

.challenge-cta:hover .arrow {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
}

.btn-secondary:hover {
    background: rgba(144, 220, 216, 0.1);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

/* CTA Group - Button container for hero sections */
.cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    animation: fadeInUp 0.8s ease 0.5s both;
}

.cta-group .btn {
    min-width: 180px;
}

.btn-lg {
    padding: var(--space-xl) var(--space-3xl);
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

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

.btn-icon {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
}

.btn-full {
    width: 100%;
}

/* CTA Section */
.cta-section {
    padding: var(--space-4xl) 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

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

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: var(--z-base);
}

.cta-title {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ==========================================================================
   10. CHALLENGE CARDS
   ========================================================================== */

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.challenge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

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

.challenge-card-header {
    margin-bottom: var(--space-lg);
}

.challenge-status,
.challenge-card-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.challenge-status.active,
.challenge-card-badge.active {
    background: rgba(144, 220, 216, 0.15);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
}

.challenge-status.active::before,
.challenge-card-badge.active::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.challenge-status.upcoming,
.challenge-card-badge.upcoming {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
    border: 1px solid var(--info);
}

.challenge-status.closed,
.challenge-card-badge.completed {
    background: rgba(107, 107, 128, 0.2);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

.challenge-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--space-lg);
}

.challenge-card h3,
.challenge-card-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.challenge-card .subtitle,
.challenge-card-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.challenge-card-body {
    padding: 0;
}

.challenge-card-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.challenge-meta,
.challenge-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.meta-item,
.challenge-card-meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.meta-label {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.meta-value.prize {
    color: var(--accent-cyan);
    font-size: 1.25rem;
}

.challenge-card-prize {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.challenge-card-prize-label {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.challenge-card-prize-value {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.challenge-card-footer {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   11. PRIZE / RANKING DISPLAYS
   ========================================================================== */

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.prize-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    transition: all var(--transition-base);
}

.prize-card.gold {
    border-color: var(--gold);
    order: 2;
    transform: scale(1.05);
}

.prize-card.gold::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-gold);
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0.3;
}

.prize-card.silver {
    border-color: var(--silver);
    order: 1;
}

.prize-card.bronze {
    border-color: var(--bronze);
    order: 3;
}

.prize-rank {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
}

.prize-card.gold .prize-rank {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow-gold);
}

.prize-card.silver .prize-rank {
    background: var(--gradient-silver);
    color: var(--bg-primary);
    box-shadow: var(--silver-glow);
}

.prize-card.bronze .prize-rank {
    background: var(--gradient-bronze);
    color: var(--bg-primary);
    box-shadow: var(--bronze-glow);
}

.prize-place {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.prize-amount {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Green accent variant for prize-amount */
.prize-amount.accent-green {
    background: linear-gradient(135deg, #00D4AA 0%, #00B894 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prize-card.gold .prize-amount {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prize-card.silver .prize-amount {
    background: var(--gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prize-card.bronze .prize-amount {
    background: var(--gradient-bronze);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prize-perks {
    list-style: none;
    text-align: left;
    margin-top: var(--space-lg);
}

.prize-perks li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-secondary);
}

.prize-perks li:last-child {
    border-bottom: none;
}

.prize-perks li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    flex-shrink: 0;
}

/* ==========================================================================
   12. FAMILY / LEADERBOARD TABLE
   ========================================================================== */

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

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

.table-title {
    font-size: 1.25rem;
    color: var(--white);
}

.table-filters {
    display: flex;
    gap: var(--space-sm);
}

.table-filter-btn {
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.table-filter-btn:hover,
.table-filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-primary);
}

.data-table,
.family-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.family-table th {
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.data-table td,
.family-table td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
    font-family: var(--font-secondary);
}

.data-table tr:last-child td,
.family-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td,
.family-table tr:hover td {
    background: rgba(74, 124, 140, 0.05);
}

.rank-cell {
    width: 60px;
    font-weight: 700;
    color: var(--text-primary);
}

.rank-gold {
    color: var(--gold);
}

.rank-silver {
    color: var(--silver);
}

.rank-bronze {
    color: var(--bronze);
}

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

.team-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--white);
    font-size: 0.875rem;
}

.team-info h4 {
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

.team-info span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.score-cell {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-color);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.verified {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* ==========================================================================
   13. FAQ ACCORDION
   ========================================================================== */

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 1.0625rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-cyan);
}

.faq-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    color: var(--accent-color);
    transition: all var(--transition-base);
}

.faq-item.active .faq-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-primary);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

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

.faq-answer-content {
    padding: 0 var(--space-xl) var(--space-xl);
    color: var(--text-secondary);
    line-height: 1.7;
    font-family: var(--font-secondary);
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   14. TIMELINE / STEPS
   ========================================================================== */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: var(--space-3xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color), var(--primary-color), var(--border-color));
}

.timeline-item {
    position: relative;
    padding-bottom: var(--space-2xl);
    padding-left: 60px;
    display: block;
}

.timeline-item .timeline-number {
    position: absolute;
    left: 0;
    top: 0;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-3xl) + 4px);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-color);
    z-index: var(--z-base);
}

.timeline-item.completed .timeline-marker {
    background: var(--accent-color);
}

.timeline-item.completed .timeline-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f0e1d'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.timeline-item.active .timeline-marker {
    background: var(--accent-color);
    box-shadow: var(--shadow-glow-accent);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(0, 212, 170, 0); }
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.timeline-item:hover .timeline-content {
    border-color: var(--border-light);
}

.timeline-item.active .timeline-content {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow-accent);
}

.timeline-date {
    font-family: var(--font-secondary);
    font-size: 0.8125rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.timeline-description {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-family: var(--font-secondary);
}

/* Steps (Horizontal) */
.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border-color);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: var(--z-base);
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
}

.step.active .step-number,
.step.completed .step-number {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-primary);
}

.step.completed .step-number::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f0e1d'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.step-label {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 120px;
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--text-primary);
}

/* ==========================================================================
   15. INFO CARDS & FEATURE BOXES (Benefits)
   ========================================================================== */

.info-grid,
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
}

.info-card,
.benefit-card {
    background: rgba(144, 220, 216, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.info-card:hover,
.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
    background: rgba(144, 220, 216, 0.06);
    box-shadow: var(--shadow-lg);
}

.info-card-icon,
.benefit-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-lg);
    font-size: 2.5rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card-icon svg,
.benefit-icon svg {
    stroke: var(--accent-cyan);
}

.info-card-title,
.benefit-card h4 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.info-card-description,
.benefit-card p {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Feature list */
.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-secondary);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--accent-color);
}

.feature-list-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-list-text strong {
    color: var(--text-primary);
}

/* ==========================================================================
   16. SECTION TITLES
   ========================================================================== */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    background: rgba(0, 212, 170, 0.1);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* ==========================================================================
   17. FORM ELEMENTS
   ========================================================================== */

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

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0a0b8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 24px;
    padding-right: var(--space-3xl);
}

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

.form-hint {
    font-family: var(--font-secondary);
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.form-error {
    font-family: var(--font-secondary);
    font-size: 0.8125rem;
    color: var(--error);
    margin-top: var(--space-xs);
}

/* ==========================================================================
   18. FOOTER
   ========================================================================== */

.footer {
    margin-top: var(--space-3xl);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.footer-logo {
    margin-bottom: var(--space-lg);
}

.footer-logo img {
    height: 50px;
    width: auto;
    opacity: 0.9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
    text-align: left;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand p {
    color: var(--text-muted);
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-links-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-tagline {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--text-muted);
    font-family: var(--font-secondary);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--bg-primary);
}

/* ==========================================================================
   19. ANIMATIONS
   ========================================================================== */

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

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

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

/* Animation utility classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease both;
}

.animate-fade-in-up,
.animate-on-scroll.visible {
    animation: fadeInUp 0.6s ease both;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease both;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease both;
}

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

/* Scroll animation helper class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ==========================================================================
   20. UTILITY CLASSES
   ========================================================================== */

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flexbox */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }
.gap-4 { gap: var(--space-xl); }

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

/* ==========================================================================
   20.5 ADDITIONAL COMPONENTS
   ========================================================================== */

/* Timeline Number - Circular number badges */
.timeline-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow-accent);
}

/* Table Wrapper - Container styling for tables */
.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin: var(--space-xl) 0;
}

.table-wrapper .data-table,
.table-wrapper .family-table {
    margin: 0;
}

/* Rules List - Styled list for rules/guidelines */
.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-secondary);
    color: var(--text-secondary);
    line-height: 1.6;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rule-bullet {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 2px;
}

/* Prize List - Checkmark list items */
.prize-list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0 0;
}

.prize-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
}

.prize-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300D4AA'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Section Divider - Border between sections */
/* Standalone divider element */
div.section-divider,
hr.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: var(--space-3xl) 0;
    border: none;
}

div.section-divider.accent,
hr.section-divider.accent {
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

/* Section with divider border at bottom */
section.section-divider {
    border-bottom: 1px solid var(--border-color);
}

/* Generic Card Styling */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
}

.card-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.card-body {
    margin-bottom: var(--space-lg);
}

.card-footer {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

/* Data Table Active/Inactive Cells */
.data-table td.active {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.data-table td.inactive {
    color: var(--text-muted);
    background: rgba(107, 107, 128, 0.1);
}

.data-table td.warning {
    color: var(--warning-orange);
    background: rgba(251, 191, 36, 0.1);
}

.data-table td.highlight {
    color: var(--accent-cyan);
    background: rgba(144, 220, 216, 0.1);
}

/* ==========================================================================
   21. RESPONSIVE STYLES
   ========================================================================== */

/* Tablet */
@media (max-width: 992px) {
    .container,
    .section {
        padding: 0 var(--space-lg);
    }

    .hero {
        padding-top: 7rem;
    }

    .hero-stats {
        gap: var(--space-xl);
    }

    .prizes-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .prize-card.gold {
        order: 1;
        transform: none;
    }

    .prize-card.silver { order: 2; }
    .prize-card.bronze { order: 3; }

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

    .footer-brand {
        grid-column: span 2;
        max-width: none;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --space-3xl: 3rem;
        --space-4xl: 4rem;
    }

    .container,
    .section {
        padding: var(--space-2xl) var(--space-lg);
    }

    /* Navbar mobile */
    .nav-header,
    .navbar {
        padding: var(--space-md) var(--space-lg);
    }

    /* Hamburger visible on mobile */
    .hamburger {
        display: flex;
    }

    /* Mobile nav menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px var(--space-xl) var(--space-xl);
        gap: 0;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right var(--transition-base);
        z-index: var(--z-fixed);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        font-size: 1.1rem;
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Mobile menu overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: calc(var(--z-fixed) - 1);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero mobile */
    .hero {
        padding: 7rem var(--space-lg) var(--space-2xl);
        min-height: 60vh;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .hero-stat {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        max-width: 250px;
        padding: var(--space-md);
        background: var(--bg-card);
        border-radius: var(--radius-lg);
    }

    .hero-stat-value {
        font-size: 1.75rem;
    }

    /* Countdown mobile */
    .countdown-container {
        flex-wrap: wrap;
        gap: var(--space-md);
        justify-content: center;
    }

    .countdown-item {
        min-width: 80px;
        padding: var(--space-lg);
        flex: 1 1 calc(50% - var(--space-md));
        max-width: 120px;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .countdown-separator {
        display: none;
    }

    /* CTA group mobile */
    .cta-group {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        width: 100%;
        padding: 0 var(--space-lg);
    }

    .cta-group .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Challenge cards mobile */
    .challenges-grid {
        grid-template-columns: 1fr;
    }

    .challenge-meta {
        gap: var(--space-md);
    }

    /* Table mobile */
    .table-container,
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table,
    .family-table {
        min-width: 500px;
    }

    .data-table th,
    .data-table td,
    .family-table th,
    .family-table td {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }

    .table-header {
        flex-direction: column;
        gap: var(--space-md);
    }

    .table-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: var(--space-sm);
    }

    /* Timeline mobile */
    .timeline {
        padding-left: var(--space-2xl);
    }

    .timeline-marker {
        left: calc(-1 * var(--space-2xl) + 4px);
    }

    /* Steps mobile */
    .steps {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }

    .steps::before {
        top: 25px;
        bottom: 25px;
        left: 25px;
        width: 2px;
        height: auto;
    }

    .step {
        flex-direction: row;
        gap: var(--space-lg);
    }

    .step-label {
        text-align: left;
        max-width: none;
    }

    /* Form mobile */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .footer-social {
        justify-content: center;
    }

    /* Info grid mobile */
    .info-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* CTA buttons mobile */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav-logo span {
        display: none;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-md);
    }

    .countdown-item {
        min-width: 60px;
    }

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

    .prize-rank {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

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

    .challenge-card-footer {
        flex-direction: column;
        gap: var(--space-md);
    }

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

/* ==========================================================================
   22. PRINT STYLES
   ========================================================================== */

@media print {
    body {
        background: white;
        color: black;
    }

    .nav-header,
    .navbar,
    .footer,
    .btn,
    .countdown-container {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: var(--space-xl);
        background: none;
    }

    .section {
        padding: var(--space-lg) 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* ==========================================================================
   23. ACCESSIBILITY
   ========================================================================== */

/* Focus visible styles */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

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

    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   INTEREST REGISTRATION FORM
   AIDEV-SECTION: Form styles for challenge interest/registration
   ========================================================================== */

.interest-form-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
}

.interest-form-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

#interest-form,
#submission-form {
    display: flex;
    flex-direction: column;
}

#interest-form input[type="text"],
#interest-form input[type="email"],
#interest-form input[type="url"],
#interest-form select,
#interest-form textarea,
#submission-form input[type="text"],
#submission-form input[type="email"],
#submission-form input[type="url"],
#submission-form select,
#submission-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#interest-form input:focus,
#interest-form select:focus,
#interest-form textarea:focus,
#submission-form input:focus,
#submission-form select:focus,
#submission-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

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

#interest-form .form-row,
#submission-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#interest-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

#interest-form select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

#interest-form textarea,
#submission-form textarea {
    resize: vertical;
    min-height: 80px;
}

.interest-submit-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem !important;
    font-size: 1.05rem !important;
}

.interest-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.interest-form-success {
    text-align: center;
    padding: 2rem;
}

.interest-form-success svg {
    margin-bottom: 1rem;
}

.interest-form-success h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.interest-form-success p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

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

    .interest-form-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   SUBMISSION MODAL
   AIDEV-SECTION: Modal popup for challenge submission form
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 170, 0.08);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s ease;
    z-index: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header .section-tag {
    margin-bottom: 0.75rem;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-help-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

.modal-help-text a {
    color: var(--accent-cyan);
}

/* Modal form inherits #submission-form styles already defined above */

/* Modal scrollbar styling */
.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
        align-items: flex-end;
    }

    .modal-container {
        max-height: 85vh;
        padding: 1.75rem 1.25rem;
        border-radius: 20px 20px 0 0;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }
}

/* ============================================
   FORMULA & METRIC DISPLAY COMPONENTS
   ============================================ */

/* Formula block — prominent equation display */
.formula-block {
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-left: 3px solid var(--accent-cyan);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    margin: var(--space-xl) auto;
    max-width: 700px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.formula-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(144, 220, 216, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.formula-block .formula-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.formula-block .formula-expression {
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.6;
    position: relative;
}

.formula-var {
    color: var(--accent-cyan);
    font-weight: 700;
}

.formula-var-warm {
    color: var(--warning-orange);
    font-weight: 700;
}

.formula-operator {
    color: var(--text-muted);
    padding: 0 0.15em;
}

.formula-block .formula-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    font-style: italic;
}

/* Smaller inline formula */
.formula-inline {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(144, 220, 216, 0.08);
    border: 1px solid rgba(144, 220, 216, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.15em 0.5em;
    color: var(--accent-cyan);
    white-space: nowrap;
}

/* Metric detail cards — expanded version with formula + explanation */
.metric-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.metric-detail-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color var(--transition-base), transform var(--transition-base);
}

.metric-detail-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

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

.metric-detail-card .metric-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-detail-card .metric-icon.icon-cyan {
    background: rgba(144, 220, 216, 0.12);
    color: var(--accent-cyan);
}

.metric-detail-card .metric-icon.icon-green {
    background: rgba(0, 212, 170, 0.12);
    color: var(--accent-color);
}

.metric-detail-card .metric-icon.icon-orange {
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning-orange);
}

.metric-detail-card .metric-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.metric-detail-card .metric-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

.metric-detail-card .metric-formula {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: rgba(144, 220, 216, 0.06);
    border: 1px solid rgba(144, 220, 216, 0.1);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    color: var(--accent-cyan);
}

.metric-detail-card .metric-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.metric-detail-card .metric-body strong {
    color: var(--white);
}

.metric-detail-card .metric-baseline {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.metric-detail-card .metric-baseline code {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

/* Subsection header — smaller than section-title */
.subsection-header {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
}

.subsection-header .subsection-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    margin-bottom: var(--space-xs);
}

.subsection-header .subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
}

/* Callout boxes — accent variants */
.callout-box {
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin: var(--space-lg) 0;
}

.callout-box-cyan {
    background: rgba(144, 220, 216, 0.06);
    border: 1px solid rgba(144, 220, 216, 0.2);
    border-left: 3px solid var(--accent-cyan);
}

.callout-box-warning {
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-left: 3px solid var(--warning-orange);
}

.callout-box-green {
    background: rgba(0, 212, 170, 0.06);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-left: 3px solid var(--accent-color);
}

.callout-box h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: var(--space-sm);
}

.callout-box p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Challenge intro paragraph */
.challenge-intro {
    max-width: 900px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.challenge-intro p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.challenge-intro p strong {
    color: var(--white);
}

/* Challenge grid spacing variant */
.challenge-grid + .challenge-grid {
    margin-top: var(--space-lg);
}

/* Card accent variants */
.card-accent-green {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, var(--bg-card) 100%) !important;
    border-color: rgba(0, 212, 170, 0.2) !important;
}

.card-accent-green h4 {
    color: var(--accent-color) !important;
}

/* Table total row */
.data-table .total-row td {
    font-weight: 700;
    color: var(--white);
    border-top: 2px solid var(--border-light);
    background: rgba(144, 220, 216, 0.04);
}

/* Efficiency range cell */
.data-table .efficiency-range {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

.data-table .efficiency-range.no-data {
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-primary);
}

/* LOFO visual — fold indicator */
.lofo-visual {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin: var(--space-lg) 0;
}

.lofo-fold {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.lofo-fold.held-out {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--warning-orange);
    color: var(--warning-orange);
    font-weight: 600;
}

.lofo-fold.training {
    background: rgba(0, 212, 170, 0.08);
    border-color: rgba(0, 212, 170, 0.3);
    color: var(--accent-color);
}

/* Baseline reference table */
.baseline-table {
    width: 100%;
    max-width: 600px;
    margin: var(--space-lg) auto;
    border-collapse: collapse;
}

.baseline-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.baseline-table td {
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-subtle);
}

.baseline-table td:first-child {
    font-family: var(--font-primary);
    color: var(--text-primary);
}

/* Responsive adjustments for new components */
@media (max-width: 768px) {
    .formula-block {
        padding: var(--space-lg) var(--space-md);
    }

    .formula-block .formula-expression {
        font-size: 1rem;
    }

    .metric-detail-grid {
        grid-template-columns: 1fr;
    }

    .lofo-visual {
        gap: var(--space-xs);
    }

    .lofo-fold {
        font-size: 0.7rem;
        padding: var(--space-xs) var(--space-sm);
    }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
    :root {
        --border-color: #555;
        --text-secondary: #ccc;
    }

    .btn-primary,
    .challenge-cta {
        border: 2px solid var(--white);
    }
}
