/* ===================================
   Outcomely - Design System
   Modern, Premium, Dark Theme
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: rgba(26, 26, 36, 0.8);

    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);

    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.15);
    --warning: #eab308;
    --warning-bg: rgba(234, 179, 8, 0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --navbar-height: 70px;
    --container-max: 1200px;
    --section-padding: 80px;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --glow-accent: 0 0 40px rgba(99, 102, 241, 0.3);

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

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

html {
    scroll-behavior: smooth;
}

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

/* Background Effects */
.app {
    position: relative;
    min-height: 100vh;
}

.app::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

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

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color var(--transition-fast);
}

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

/* Hero Section */
.hero {
    padding-top: calc(var(--navbar-height) + 80px);
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Stats Bar */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.stats-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

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

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

/* Main Content */
.main-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 24px;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

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

/* Leaderboard */
.leaderboard-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    background: var(--bg-tertiary);
}

.leaderboard-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.leaderboard-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.leaderboard-table tbody tr:last-child td {
    border-bottom: none;
}

.col-rank {
    width: 80px;
    text-align: center !important;
}

.col-accuracy {
    width: 120px;
}

.col-predictions,
.col-videos {
    width: 120px;
    text-align: center !important;
}

.col-action {
    width: 100px;
    text-align: right !important;
}

/* Rank Display */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    color: #000;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #a56227 100%);
    color: #fff;
}

.rank-badge.rank-other {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Creator Cell */
.creator-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.creator-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

/* Accuracy Score */
.accuracy-display {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.accuracy-value {
    font-size: 20px;
    font-weight: 700;
}

.accuracy-value.high {
    color: var(--success);
}

.accuracy-value.medium {
    color: var(--warning);
}

.accuracy-value.low {
    color: var(--danger);
}

.accuracy-bar {
    width: 80px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.accuracy-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.accuracy-bar-fill.high {
    background: var(--success);
}

.accuracy-bar-fill.medium {
    background: var(--warning);
}

.accuracy-bar-fill.low {
    background: var(--danger);
}

/* View Button */
.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.view-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Loading State */
.loading-row td {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

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

/* How It Works */
.how-it-works {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid var(--border-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.step-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-normal);
}

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

.step-number {
    position: absolute;
    top: -12px;
    left: 24px;
    width: 24px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

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

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

/* Creator Header (Detail Page) */
.creator-header {
    padding-top: calc(var(--navbar-height) + 40px);
    padding-bottom: 40px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

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

.creator-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.creator-rank {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-muted);
}

.creator-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.creator-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    max-width: 500px;
}

.creator-channel-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.creator-channel-link:hover {
    color: var(--accent-secondary);
}

.creator-score-card {
    text-align: center;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 4px solid var(--accent-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-accent);
}

.score-value {
    font-size: 36px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.creator-stats {
    max-width: var(--container-max);
    margin: 32px auto 0;
    padding: 0 24px;
    display: flex;
    gap: 48px;
}

.creator-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.creator-stat-value {
    font-size: 24px;
    font-weight: 700;
}

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

/* Predictions Section */
.predictions-section {
    margin-top: 20px;
}

.predictions-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.filter-controls {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Prediction Cards */
.predictions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prediction-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all var(--transition-normal);
}

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

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

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

.prediction-asset {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.prediction-direction {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.prediction-direction.bullish {
    background: var(--success-bg);
    color: var(--success);
}

.prediction-direction.bearish {
    background: var(--danger-bg);
    color: var(--danger);
}

.prediction-direction.neutral {
    background: var(--warning-bg);
    color: var(--warning);
}

.prediction-score {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
}

.prediction-score.high {
    background: var(--success-bg);
    color: var(--success);
}

.prediction-score.medium {
    background: var(--warning-bg);
    color: var(--warning);
}

.prediction-score.low {
    background: var(--danger-bg);
    color: var(--danger);
}

.prediction-score.pending {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.prediction-statement {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.prediction-statement blockquote {
    padding-left: 16px;
    border-left: 3px solid var(--accent-primary);
    font-style: italic;
    color: var(--text-secondary);
}

.prediction-outcome {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 16px;
}

.prediction-outcome-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.prediction-outcome-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.prediction-video-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.prediction-video-link:hover {
    color: var(--accent-secondary);
}

.prediction-date {
    font-size: 13px;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    margin-top: 80px;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .stats-container {
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .leaderboard-table th:nth-child(4),
    .leaderboard-table td:nth-child(4),
    .leaderboard-table th:nth-child(5),
    .leaderboard-table td:nth-child(5) {
        display: none;
    }

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

    .creator-info {
        flex-direction: column;
    }

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

    .predictions-section .section-header {
        flex-direction: column;
        gap: 16px;
    }

    .filter-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
}

/* ===================================
   About Page Styles
   =================================== */

.about-page {
    padding-top: calc(var(--navbar-height) + 40px);
}

.about-hero {
    text-align: center;
    padding: 40px 0 60px;
}

.about-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.about-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.about-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.about-highlight-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-top: 20px;
}

.highlight-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.about-highlight-box strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.about-highlight-box p {
    margin: 0;
    font-size: 14px;
}

.about-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.about-list li {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.about-list li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* Scoring Grid */
.scoring-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.scoring-card {
    text-align: center;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.scoring-weight {
    font-size: 36px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.scoring-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.scoring-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Disclaimers */
.disclaimer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.disclaimer-item {
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border-left: 3px solid var(--warning);
}

.disclaimer-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.disclaimer-item p {
    margin: 0;
    font-size: 14px;
}

/* Suggest Form */
.suggest-form {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.suggest-input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.suggest-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.suggest-input::placeholder {
    color: var(--text-muted);
}

.suggest-btn {
    padding: 14px 28px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.suggest-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-accent);
}

.suggest-message {
    margin-top: 12px;
    font-size: 14px;
}

.suggest-message.success {
    color: var(--success);
}

.suggest-message.error {
    color: var(--danger);
}

/* Creator Mini Cards */
.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.creator-mini-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.creator-mini-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.creator-mini-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 16px;
}

.creator-mini-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.creator-mini-meta {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===================================
   Error/404 Page Styles
   =================================== */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--navbar-height));
    text-align: center;
    padding: 40px 24px;
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.error-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent-gradient);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.error-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-accent);
}

/* ===================================
   Search Bar
   =================================== */

.search-container {
    margin-bottom: 24px;
}

.search-bar {
    display: flex;
    gap: 12px;
    max-width: 500px;
}

.search-input {
    flex: 1;
    padding: 12px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ===================================
   Export Button
   =================================== */

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.export-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

/* ===================================
   Loading Skeleton
   =================================== */

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===================================
   Enhanced Empty State
   =================================== */

.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-primary);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.empty-state-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-accent);
}

/* ===================================
   Status Badges
   =================================== */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.status-badge.verified {
    background: var(--success-bg);
    color: var(--success);
}

.status-badge.failed {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ===================================
   Responsive Improvements
   =================================== */

/* Tablet */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

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

    .stat-value {
        font-size: 36px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
        --section-padding: 40px;
    }

    /* Navigation */
    .navbar {
        padding: 0 16px;
    }

    .nav-brand {
        font-size: 18px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }

    /* Hero Section */
    .hero {
        padding: 25px 0 40px;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    /* Stats */
    .stats-container {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat {
        min-width: 100px;
    }

    .stat-value {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-divider {
        display: none;
    }

    /* Leaderboard Table - Card Layout on Mobile */
    .leaderboard-table {
        display: block;
    }

    .leaderboard-table thead {
        display: none;
    }

    .leaderboard-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .leaderboard-table tr {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        padding: 16px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        align-items: center;
    }

    .leaderboard-table tr:hover {
        background: var(--bg-tertiary);
    }

    .leaderboard-table td {
        padding: 0;
        border: none;
    }

    /* Rank - top left */
    .leaderboard-table td:nth-child(1) {
        grid-row: 1;
        grid-column: 1;
    }

    /* Creator Info - top center */
    .leaderboard-table td:nth-child(2) {
        grid-row: 1;
        grid-column: 2;
    }

    /* Accuracy - top right */
    .leaderboard-table td:nth-child(3) {
        grid-row: 1;
        grid-column: 3;
        text-align: right;
    }

    /* Predictions count - bottom left */
    .leaderboard-table td:nth-child(4) {
        grid-row: 2;
        grid-column: 1 / 2;
        font-size: 12px;
        color: var(--text-muted);
    }

    .leaderboard-table td:nth-child(4)::before {
        content: '';
    }

    /* Videos count - hidden on mobile */
    .leaderboard-table td:nth-child(5) {
        display: none;
    }

    /* Action button - bottom right */
    .leaderboard-table td:nth-child(6) {
        grid-row: 2;
        grid-column: 2 / 4;
        justify-self: end;
    }

    .creator-info-cell {
        gap: 10px;
    }

    .creator-avatar {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .creator-name {
        font-size: 14px;
    }

    .creator-desc {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .accuracy-display {
        font-size: 16px;
    }

    .accuracy-bar {
        width: 40px;
    }

    .view-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Creator Page - Stats side by side */
    .creator-header {
        padding: 20px 0;
    }

    .creator-header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .creator-info {
        flex-direction: column;
        align-items: center;
    }

    .creator-avatar.large {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .creator-details h1 {
        font-size: 22px;
    }

    .creator-stats {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 24px;
        flex-wrap: wrap;
    }

    .creator-stat {
        min-width: 70px;
        text-align: center;
    }

    .creator-stat-value {
        font-size: 24px;
    }

    .creator-stat-label {
        font-size: 11px;
    }


    /* Predictions Section */
    .predictions-section .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .filter-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .prediction-card {
        padding: 16px;
    }

    .prediction-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .prediction-tags {
        flex-wrap: wrap;
    }

    .prediction-statement {
        font-size: 15px;
    }

    .prediction-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    /* About Page */
    .about-title {
        font-size: 32px;
    }

    .about-subtitle {
        font-size: 15px;
    }

    .about-content {
        padding: 20px;
    }

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

    .suggest-form {
        flex-direction: column;
    }

    /* Search */
    .search-bar {
        flex-direction: column;
        max-width: none;
    }

    /* Error Page */
    .error-code {
        font-size: 80px;
    }

    /* Footer */
    .footer {
        padding: 30px 0;
    }

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

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
    }

    .stat {
        width: 100%;
        max-width: 200px;
    }

    .leaderboard-table tr {
        padding: 14px;
    }

    .accuracy-display {
        font-size: 16px;
    }

    .creator-stats {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-link {
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {

    .navbar,
    .filter-controls,
    .suggest-form,
    .export-btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .prediction-card,
    .about-content {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}