:root {
    --bg-color: #FFFDF5;
    --card-bg: #FFFFFF;
    --primary-color: #F59E0B;
    /* Amber 500 */
    --primary-hover: #D97706;
    /* Amber 600 */
    --accent-color: #EA580C;
    /* Orange 600 */
    --text-color: #1F2937;
    /* Slate 800 */
    --text-muted: #6B7280;
    /* Slate 500 */
    --border-color: #FDE68A;
    /* Amber 200 */
    --nav-bg: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding-top: var(--header-height);
}

/* Header & Top Navigation */
.main-header {
    background: var(--nav-bg);
    border-bottom: 2px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    background: #FEF3C7;
    /* Amber 100 */
    color: var(--primary-hover);
}

.nav-icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .main-header {
        padding: 0 1rem;
    }

    .logo span {
        display: none;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 6px 8px;
        flex-direction: column;
        gap: 2px;
    }

    .nav-icon {
        font-size: 1.1rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Common Components */
.card,
.widget-card,
.post-box,
.race-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.btn-post,
.nav-btn,
.filter-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-post:hover {
    background: var(--primary-hover);
}

.btn-post:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hero Section */
.hero-simplified {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 60px 20px;
    border-radius: 30px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.hero-simplified h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -2px;
}

.hero-simplified p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Dashboard/Selection Layout */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    gap: 2rem;
}

.feed-container {
    flex: 1;
    max-width: 800px;
}

/* Landing Grid */
.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.landing-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.landing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.15);
}

.landing-card .icon-blob {
    width: 80px;
    height: 80px;
    background: #FEF3C7;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.3s;
}

.landing-card:hover .icon-blob {
    background: var(--primary-color);
    transform: rotate(5deg);
}

.landing-card h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.landing-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Leaderboard Home Widget */
.leaderboard-home {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: var(--shadow);
}

.leaderboard-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.leader-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 16px;
    transition: background 0.2s;
}

.leader-item:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.leader-rank {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.rank-1 {
    background: #FCD34D;
    color: #92400E;
}

.rank-2 {
    background: #E5E7EB;
    color: #4B5563;
}

.rank-3 {
    background: #FDE68A;
    color: #92400E;
}

.rank-other {
    background: #F3F4F6;
    color: #9CA3AF;
}

/* SEO Content Section */
.seo-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-top: 50px;
    border: 1px solid var(--border-color);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.seo-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 900px) {
    .landing-grid {
        grid-template-columns: 1fr;
    }
}

/* Bulletin Table Styling */
.table-responsive {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: #FEF3C7;
    color: var(--primary-hover);
    font-weight: 700;
}

tr:hover {
    background: #FFFBEB;
}

/* Specific Utilities */
.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--accent-color);
}

.font-bold {
    font-weight: 800;
}

.date-nav-amber {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

/* Post/Feed Styling */
.post-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.post-textarea {
    width: 100%;
    border: none;
    resize: none;
    outline: none;
    font-size: 1.1rem;
    margin: 10px 0;
    font-family: inherit;
}

/* Footer & Other */
.site-footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 2px solid var(--border-color);
    margin-top: 40px;
}

.footer-links a {
    margin: 0 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Race Tabs Navigation */
.race-tab-bar {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -webkit-scrollbar: none;
    -ms-overflow-style: none;  /* IE and Edge */
    /* scrollbar-width: thin; */ /* Removed to clear IDE warnings */
    margin-bottom: 20px;
}

.race-tab-bar::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.race-tab-btn {
    white-space: nowrap;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.9rem;
}

.race-tab-btn:hover {
    border-color: var(--primary-color);
    background: #FFFBEB;
}

.race-tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.race-tab-btn.finished {
    opacity: 0.7;
}

.race-tab-btn.finished::after {
    content: ' ✓';
    color: #10B981;
}

.race-pane {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.race-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-placeholder {
    padding: 20px;
    background: rgba(254, 243, 199, 0.3);
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    text-align: center;
    color: var(--text-muted);
}

/* --- Added for Template Cleanup --- */

/* Utility Classes */
.m-0 { margin: 0 !important; }
.mt-5 { margin-top: 5px !important; }
.mb-30 { margin-bottom: 30px !important; }
.p-15 { padding: 15px !important; }
.gap-10 { gap: 10px !important; }
.relative { position: relative !important; }
.auth-links { text-align: center; margin-top: 20px; color: var(--text-muted); }
.decoration-none { text-decoration: none !important; }
.color-inherit { color: inherit !important; }
.color-muted { color: var(--text-muted) !important; }
.color-accent-red { color: #f85149 !important; }
.color-success-green { color: #238636 !important; }
.bg-success-light { background: rgba(35, 134, 54, 0.2) !important; }
.border-success { border: 1px solid #3fb950 !important; }
.bg-info-light { background: rgba(88, 166, 255, 0.1) !important; }
.border-primary { border: 1px solid var(--primary-color) !important; }
.h-20 { height: 20px !important; }
.h-40 { height: 40px !important; }
.h-60 { height: 60px !important; }
.m-0-15 { margin: 0 15px !important; }
.m-0-auto { margin: 0 auto !important; }
.m-40-auto { margin: 40px auto !important; }
.p-0-20 { padding: 0 20px !important; }
.p-5-12 { padding: 5px 12px !important; }
.p-10-20 { padding: 10px 20px !important; }
.p-50 { padding: 50px !important; }
.p-60 { padding: 60px !important; }
.max-w-1000 { max-width: 1000px !important; }
.bg-white-05 { background: rgba(255, 255, 255, 0.05) !important; }
.bg-white-03 { background: rgba(255, 255, 255, 0.03) !important; }
.border-radius-8 { border-radius: 8px !important; }
.border-radius-12 { border-radius: 12px !important; }
.border-radius-15 { border-radius: 15px !important; }
.border-radius-20 { border-radius: 20px !important; }
.border-left-3 { border-left: 3px solid var(--primary-color) !important; }
.border-left-4-red { border-left: 4px solid #F87171 !important; }
.bg-red-faint { background: #FDF2F2 !important; }
.font-size-2rem { font-size: 2rem !important; }
.font-size-2-5rem { font-size: 2.5rem !important; }
.lh-1-6 { line-height: 1.6 !important; }
.letter-spacing-05 { letter-spacing: 0.5px !important; }
.letter-spacing-1 { letter-spacing: 1px !important; }
.z-1000 { z-index: 1000 !important; }
.bottom-30 { bottom: 30px !important; }
.right-30 { right: 30px !important; }
.w-320 { width: 320px !important; }
.max-h-80vh { max-height: 80vh !important; }
.w-140 { width: 140px !important; }
.w-30 { width: 30px !important; }
.h-30 { height: 30px !important; }
.w-44 { width: 44px !important; }
.h-44 { height: 44px !important; }
.row-layout-v-start { display: flex; align-items: flex-start; }
.bg-amber-faint { background: rgba(245, 158, 11, 0.05) !important; }
.border-2-primary { border: 2px solid var(--primary-color) !important; }
.row-layout-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }

.grid-card-bulletin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.card-hipodrom-selection {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    padding: 20px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 800;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.card-hipodrom-selection:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.bg-primary { background: var(--primary-color) !important; }
.color-white { color: #c9d1d9 !important; }
.aspect-square { aspect-ratio: 1 !important; }
.lang-btn-standard {
    color: #aaa;
    text-decoration: none;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}
.ranking-table th, .ranking-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.ranking-table th {
    background: rgba(88, 166, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.rank-col {
    width: 50px;
    text-align: center !important;
    font-weight: 800;
    color: var(--primary-color);
}
.success-rate-val {
    color: #238636;
    font-weight: 700;
}
.p-40-20 { padding: 40px 20px !important; }
.m-0-0-5-0 { margin: 0 0 5px 0 !important; }
.opacity-09 { opacity: 0.9 !important; }
.opacity-06 { opacity: 0.6 !important; }
.border-standard { border: 1px solid var(--border-color) !important; }
.shadow-standard { box-shadow: var(--shadow) !important; }
.shadow-small { box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important; }
.shadow-large { box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important; }
.font-inherit { font-family: inherit !important; }
.bg-color { background: var(--bg-color) !important; }
.p-10-15 { padding: 10px 15px !important; }
.grid-auto-45 { display: grid; grid-template-columns: repeat(auto-fill, minmax(45px, 1fr)); }
.border-radius-10 { border-radius: 10px !important; }
.fixed { position: fixed !important; }
.border-radius-header { border-radius: 18px 18px 0 0 !important; }
.border-radius-footer { border-radius: 0 0 18px 18px !important; }
.p-15-20 { padding: 15px 20px !important; }
.p-12 { padding: 12px !important; }
.bg-white-01 { background: rgba(255,255,255,0.1) !important; }
.bg-success-faint { background: rgba(35, 134, 54, 0.2) !important; }
.color-success-bright { color: #3fb950 !important; }
.border-success-bright { border: 1px solid #3fb950 !important; }
.bg-info-faint { background: rgba(88, 166, 255, 0.1) !important; }
.grid-card-predictions { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.bg-white-003 { background: rgba(255, 255, 255, 0.03) !important; }
.circle-horse-no {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2);
}
.border-dashed { border: 1px dashed var(--border-color) !important; }
.p-12-30 { padding: 12px 30px !important; }

/* Race Leg & Analysis Styles */
.race-leg-header {
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.sort-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.analysis-badge-fav {
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary-hover);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-weight: 600;
}
.analysis-badge-suggestion {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 600;
}
.video-btn-red {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.bet-result-box {
    margin-bottom: 12px;
    padding: 15px;
    background: #FFFBEB;
    border-radius: 15px;
    border: 1px solid #FEF3C7;
    font-size: 0.95em;
    color: var(--text-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 10px;
}
.winner-row {
    background: rgba(46, 204, 113, 0.15) !important;
    border-left: 3px solid #2ecc71 !important;
}
.ai-badge-mini {
    background: var(--primary-color);
    color: white;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 4px;
}
.horse-name-bold { font-weight: 700; }
.score-cell-primary {
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
}
.result-accent {
    font-weight: 800;
    color: var(--accent-color);
}
.ai-logo-span { font-size: 0.5em; opacity: 0.5; }
.bg-amber-faint { background: #FFFBEB !important; }
.border-amber-faint { border: 1px solid #FEF3C7 !important; }
.lh-1-8 { line-height: 1.8 !important; }
.grid-auto-280 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.loading-overlay-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: inherit;
}
.spinner-standard {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ad and page styles */
.page-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    color: var(--text-color);
}
.page-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.page-content h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}
.page-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-muted);
}
.home-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}
.home-link:hover { text-decoration: underline; }

/* Chat Component Styles */
.chat-container {
    max-width: 800px;
    margin: 20px auto;
    background: var(--card-bg, #1a1a1a);
    border-radius: 20px;
    height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bot-info { display: flex; align-items: center; gap: 15px; }
.bot-avatar {
    width: 45px; height: 45px;
    background: var(--accent-gradient, linear-gradient(135deg, #FFD700, #FFA500));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.bot-details h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.status-online {
    font-size: 0.8rem; color: #4CAF50;
    display: flex; align-items: center; gap: 5px;
}
.status-online::before {
    content: ''; width: 8px; height: 8px;
    background: #4CAF50; border-radius: 50%; display: inline-block;
}
.close-chat { font-size: 28px; color: #fff; text-decoration: none; opacity: 0.5; transition: opacity 0.3s; }
.close-chat:hover { opacity: 1; }
.chat-messages {
    flex: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 20px;
    /* scrollbar-width: thin; */
    /* scrollbar-color: rgba(255, 255, 255, 0.2) transparent; */
}
.message { max-width: 80%; display: flex; flex-direction: column; gap: 5px; }
.bot-message { align-self: flex-start; }
.user-message { align-self: flex-end; }
.message-content { padding: 12px 18px; border-radius: 18px; font-size: 0.95rem; line-height: 1.5; }
.bot-message .message-content { background: rgba(255, 255, 255, 0.08); color: #eee; border-bottom-left-radius: 4px; }
.user-message .message-content {
    background: var(--accent-gradient, linear-gradient(135deg, #FFD700, #FFA500));
    color: #000; border-bottom-right-radius: 4px; font-weight: 500;
}
.message-time { font-size: 0.7rem; opacity: 0.5; margin: 0 5px; }
.bot-message .message-time { align-self: flex-start; }
.user-message .message-time { align-self: flex-end; }
.chat-input-area { padding: 20px; background: rgba(255, 255, 255, 0.02); border-top: 1px solid rgba(255, 255, 255, 0.1); position: relative; }
#chatForm { display: flex; gap: 12px; }
#userInput {
    flex: 1; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; padding: 12px 15px; color: #fff; outline: none; transition: all 0.3s;
}
#userInput:focus { border-color: rgba(255, 215, 0, 0.5); background: rgba(255, 255, 255, 0.08); }
#sendBtn {
    background: var(--accent-gradient, linear-gradient(135deg, #FFD700, #FFA500));
    border: none; border-radius: 12px; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    color: #000; cursor: pointer; transition: transform 0.2s;
}
#sendBtn:hover { transform: scale(1.05); }
#sendBtn svg { width: 20px; height: 20px; }
.typing-indicator { position: absolute; top: -30px; left: 20px; display: flex; gap: 4px; }
.typing-indicator span {
    width: 6px; height: 6px; background: rgba(255, 255, 255, 0.3);
    border-radius: 50%; animation: bounce 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Existing component styles migrated from templates */
.pred-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s;
}
.pred-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.inline-block { display: inline-block !important; }
.justify-center { justify-content: center !important; }
.p-1-5 { padding: 1.5rem !important; }
.coupon-btn-shadow {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}
.large-spinner { width: 3rem !important; height: 3rem !important; }

/* Fixed nav buttons */
.nav-btn-fixed {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
    background: #333;
    border: none;
    border-radius: 4px;
    min-width: 30px;
    text-align: center;
    cursor: pointer;
}
.gap-20 { gap: 20px !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.text-right { text-align: right !important; }
.font-bold-700 { font-weight: 700 !important; }
.font-bold-800 { font-weight: 800 !important; }
.w-full { width: 100% !important; }

/* Component Specific */
.typing-indicator-container {
    position: absolute;
    top: -30px;
    left: 20px;
    display: flex;
    gap: 4px;
}

.leaderboard-header {
    background: #FEF3C7;
    padding: 30px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-form-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    padding: 15px;
    margin-bottom: 30px;
}

.color-text { color: var(--text-color) !important; }
.color-accent { color: var(--accent-color) !important; }
.font-size-1-05 { font-size: 1.05rem !important; }
.decoration-none { text-decoration: none !important; }
.row-layout { flex-direction: row !important; height: auto !important; border-radius: 20px !important; gap: 15px !important; }

.chat-input-area-inner {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.hero-title-size { font-size: 2.5rem !important; }
.race-card-title-size { font-size: 1.2rem !important; }
.color-primary { color: var(--primary-color) !important; }
.color-primary-dark { color: var(--primary-hover) !important; }
.bg-amber { background: #FEF3C7 !important; }
.border-bottom { border-bottom: 1px solid var(--border-color) !important; }
.font-bold-600 { font-weight: 600 !important; }
.font-size-small { font-size: 0.9rem !important; }

/* Custom Select Styling */
.custom-select-coupon {
    -webkit-appearance: none;
    appearance: none;
    padding: 15px 45px 15px 20px;
    font-weight: 800;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23F59E0B%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 0.8rem auto;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

/* Final Cleanup Utilities */
.w-full { width: 100% !important; }
.alert-error {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
}
.grid { display: grid !important; }
.gap-20 { gap: 20px !important; }.display-none { display: none !important; }
.max-w-500 { max-width: 500px !important; }

/* Utility Classes for Daily Coupons */
.bg-color { background-color: var(--bg-color) !important; }
.bg-card { background-color: var(--card-bg) !important; }
.bg-success { background-color: #2ecc71 !important; }
.whitespace-prewrap { white-space: pre-wrap !important; }
.font-size-medium { font-size: 0.95rem !important; }
.font-family-mono { font-family: monospace !important; }
.border-standard { border: 1px solid var(--border-color) !important; }
