/* ============ Font ============ */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/static/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/static/fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/static/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
}


/* ============================================================
   شطرنجستان - استایل جدید (تم تیره مدرن)
   ============================================================ */

:root {
    --bg: #f5f5f5;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f0;
    --bg-elevated: #fafafa;
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --text-dim: #9e9e9e;
    --gold: #629924;
    --gold-light: #7bb833;
    --blue: #2c7bbf;
    --border: #e0e0e0;
    --border-light: #ececec;
    --success: #629924;
    --danger: #c0392b;
    --warning: #d4a843;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-sm: 4px;
}

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

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============ Header ============ */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 6px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    text-decoration: none;
    font-size: 1.4em;
    font-weight: 700;
    transition: color 0.2s;
}

.logo:hover { color: var(--gold-light); }
.logo-img { width: 28px; height: 28px; }
.logo-text {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 1.25em;
    font-weight: 400;
    line-height: 1.6;
    padding-top: 4px;
}

.main-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--text);
    background: var(--bg-hover);
}

/* ============ Hero ============ */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: radial-gradient(ellipse at top, rgba(212, 168, 67, 0.1) 0%, transparent 60%);
    border-radius: var(--radius);
    margin: 20px 0 40px;
}

.hero h1 {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 2.2em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.15em;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ Stats Grid ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--blue));
    opacity: 0;
    transition: opacity 0.25s;
}

.stat-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

.stat-number {
    font-size: 2.4em;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 8px;
}

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

/* ============ Sections ============ */
.section {
    margin-bottom: 50px;
}

.section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ============ Lists ============ */
.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
    flex-wrap: wrap;
}

.list-item:hover {
    background: var(--bg-hover);
    border-color: var(--gold);
}

.list-title {
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.list-meta {
    color: var(--text-muted);
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.empty {
    color: var(--text-muted);
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border);
}

/* ============ Badges ============ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    background: var(--bg-hover);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-upcoming {
    background: rgba(63, 185, 80, 0.15);
    color: var(--success);
    border-color: rgba(63, 185, 80, 0.3);
}

.badge-done {
    background: rgba(125, 133, 144, 0.15);
    color: var(--text-muted);
}

/* ============ CTA ============ */
.cta {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 50px 30px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '♔';
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 150px;
    color: var(--gold);
    opacity: 0.05;
    pointer-events: none;
}

.cta h2 {
    border: none;
    justify-content: center;
    font-size: 1.6em;
    margin-bottom: 12px;
}

.cta p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: #0d1117;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--gold);
}

/* ============ Footer ============ */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 30px 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
}

.site-footer a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--gold-light);
}

.site-footer p {
    margin: 6px 0;
}

/* ============ Mobile ============ */
@media (max-width: 768px) {
    .hero { padding: 50px 16px 40px; }
    .hero h1 { font-size: 1.9em; }
    .hero p { font-size: 1em; }
    .site-header .container { flex-direction: column; align-items: flex-start; }
    .main-nav { width: 100%; justify-content: center; }
    .main-nav a { padding: 6px 10px; font-size: 0.85em; }
    .stat-card { padding: 20px 15px; }
    .stat-number { font-size: 1.9em; }
    .list-item { padding: 14px 16px; }
    .cta { padding: 35px 20px; }
    .cta::before { font-size: 100px; }
}

/* ============ Slider ============ */
.slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 20px 0 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.slider-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.slide-icon {
    font-size: 4em;
    margin-bottom: 16px;
    line-height: 1;
}

.slide h2 {
    font-size: 1.8em;
    margin-bottom: 12px;
    color: var(--gold);
    font-weight: 700;
}

.slide p {
    font-size: 1.05em;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
}

.slide-1 { background: linear-gradient(135deg, rgba(212, 168, 67, 0.08), transparent); }
.slide-2 { background: linear-gradient(135deg, rgba(88, 166, 255, 0.08), transparent); }
.slide-3 { background: linear-gradient(135deg, rgba(248, 81, 73, 0.08), transparent); }
.slide-4 { background: linear-gradient(135deg, rgba(63, 185, 80, 0.08), transparent); }
.slide-5 { background: linear-gradient(135deg, rgba(212, 168, 67, 0.08), transparent); }
.slide-6 { background: linear-gradient(135deg, rgba(88, 166, 255, 0.08), transparent); }
.slide-7 { background: linear-gradient(135deg, rgba(63, 185, 80, 0.08), transparent); }
.slide-8 { background: linear-gradient(135deg, rgba(248, 81, 73, 0.08), transparent); }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dim);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.slider-dot.active {
    background: var(--gold);
    width: 28px;
    border-radius: 5px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    z-index: 2;
    transition: all 0.2s;
}

.slider-arrow:hover {
    background: var(--bg-hover);
    border-color: var(--gold);
}

.slider-prev { right: 16px; }
.slider-next { left: 16px; }

/* ============ Slider — Mobile Fix ============ */
@media (max-width: 768px) {
    .slide {
        padding: 30px 15px 50px;
        min-height: auto;
    }
    .slide h2 {
        font-size: 1.2em;
        margin-bottom: 10px;
        padding: 0 40px;
        line-height: 1.5;
    }
    .slide p {
        font-size: 0.9em;
        padding: 0 10px;
        line-height: 1.7;
    }
    .slide-icon {
        font-size: 2.5em;
        margin-bottom: 10px;
    }
    .slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.9em;
    }
    .slider-prev { right: 6px; }
    .slider-next { left: 6px; }
    .slider-dots {
        bottom: 10px;
        gap: 6px;
    }
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    .slider-dot.active {
        width: 20px;
    }
}

/* ============ Slider — Final Fix ============ */
.slider {
    width: 100%;
    max-width: 100%;
}
.slider-track {
    display: flex;
    width: 100%;
}
.slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

}

/* ============ Nav Dropdown ============ */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-toggle {
    cursor: pointer;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 160px;
    padding: 6px;
    box-shadow: var(--shadow-hover);
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: block;
    padding: 8px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    white-space: nowrap;
    transition: background 0.15s;
}
.nav-dropdown-menu a:hover {
    background: var(--bg-hover);
    color: var(--gold);
}

/* ============ Auto Scroll Lists ============ */
.auto-scroll {
    max-height: 320px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    padding: 6px;
}
.auto-scroll:hover .auto-scroll-inner {
    animation-play-state: paused;
}
.auto-scroll-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: autoScrollUp 40s linear infinite;
}
@keyframes autoScrollUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.auto-scroll .list-item {
    text-decoration: none;
    color: inherit;
    margin: 0;
}

/* ============ Detail Card ============ */
.section-link {
    color: inherit;
    text-decoration: none;
}
.section-link:hover {
    color: var(--gold);
}
.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.detail-row {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    color: var(--text-muted);
    min-width: 80px;
}

/* ============ Detail Card ============ */
.section-link {
    color: inherit;
    text-decoration: none;
}
.section-link:hover {
    color: var(--gold);
}
.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.detail-row {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-label {
    color: var(--text-muted);
    min-width: 80px;
}

/* ============ Auth ============ */
.auth-form {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.auth-form label {
    color: var(--text-muted);
    font-size: 0.9em;
}
.auth-form input {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 1em;
}
.auth-form button {
    margin-top: 8px;
}
.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-align: center;
}
.flash-error {
    background: rgba(192, 57, 43, 0.12);
    color: var(--danger);
    border: 1px solid rgba(192, 57, 43, 0.3);
}
.flash-success {
    background: rgba(98, 153, 36, 0.12);
    color: var(--success);
    border: 1px solid rgba(98, 153, 36, 0.3);
}
.auth-link {
    color: var(--text);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95em;
    font-weight: 500;
    background: var(--gold);
    color: #fff;
}
.auth-link:hover {
    background: var(--gold-light);
}

/* ============ Auth ============ */
.auth-form {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.auth-form label {
    color: var(--text-muted);
    font-size: 0.9em;
}
.auth-form input {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 1em;
}
.auth-form button {
    margin-top: 8px;
}
.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-align: center;
}
.flash-error {
    background: rgba(192, 57, 43, 0.12);
    color: var(--danger);
    border: 1px solid rgba(192, 57, 43, 0.3);
}
.flash-success {
    background: rgba(98, 153, 36, 0.12);
    color: var(--success);
    border: 1px solid rgba(98, 153, 36, 0.3);
}
.auth-link {
    color: var(--text);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95em;
    font-weight: 500;
    background: var(--gold);
    color: #fff;
}
.auth-link:hover {
    background: var(--gold-light);
}

/* ============ Auth Nav ============ */
.auth-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 0;
    margin-left: auto;
    order: 99;
}
.auth-link-secondary {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9em;
    padding: 6px 10px;
}
.auth-link-secondary:hover {
    color: var(--text);
}

/* ============ Auth Nav ============ */
.auth-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 0;
    margin-left: auto;
    order: 99;
}
.auth-link-secondary {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9em;
    padding: 6px 10px;
}
.auth-link-secondary:hover {
    color: var(--text);
}

/* ============ Report View ============ */
.report-text {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    white-space: pre-wrap;
    line-height: 2;
    font-size: 0.95em;
    color: var(--text);
    direction: rtl;
}

/* ============ Panel Tabs ============ */
.panel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 30px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.panel-tab {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95em;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.panel-tab:hover {
    color: var(--text);
    background: var(--bg-hover);
}
.panel-tab.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* ============ Data Table ============ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.data-table th, .data-table td {
    padding: 10px 14px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}
.data-table th {
    background: var(--bg-hover);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9em;
}
.data-table tr:last-child td { border-bottom: none; }

/* ============ Promo Modal ============ */
.promo-btn {
    background: var(--gold);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85em;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}
.promo-btn:hover { background: var(--gold-light); }
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}
.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; color: var(--gold); font-size: 1.1em; }
.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3em;
    cursor: pointer;
    padding: 4px 10px;
}
.modal-close:hover { color: var(--danger); }
.modal-body {
    padding: 20px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.9;
    font-size: 0.95em;
    color: var(--text);
}

/* ============ Promo Button Small ============ */
.promo-btn-sm {
    background: var(--gold);
    color: #fff;
    border: none;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.75em;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 8px;
}
.promo-btn-sm:hover { background: var(--gold-light); }

/* ============ Filter Bar ============ */
.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.filter-item label {
    color: var(--text-muted);
    font-size: 0.88em;
    font-weight: 500;
}
.filter-item select,
.filter-item input {
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95em;
}
.filter-item select:focus,
.filter-item input:focus {
    outline: none;
    border-color: var(--gold);
}

/* ============ Scroll Box ============ */
.scroll-box {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.scroll-box::-webkit-scrollbar { width: 8px; }
.scroll-box::-webkit-scrollbar-track { background: var(--bg); border-radius: 4px; }
.scroll-box::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.scroll-box::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Teams table */
.data-table td a {
    font-weight: 600;
}

/* ============ Teams Auto Scroll ============ */
.teams-scroll {
    max-height: 400px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    padding: 6px;
}
.teams-scroll:hover .auto-scroll-inner {
    animation-play-state: paused;
}
.teams-scroll .auto-scroll-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: autoScrollUpTeams 60s linear infinite;
}
@keyframes autoScrollUpTeams {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.teams-scroll .list-item {
    text-decoration: none;
    color: inherit;
    margin: 0;
}

/* ========== Hero Main (صفحه اصلی) ========== */
.hero-main {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    padding: 40px 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.hero-main::before {
    content: "";
    position: absolute;
    top: 0;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(249,199,79,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-main-inner {
    max-width: 900px;
    margin: 0 auto;
}

.hero-main-content {
    text-align: center;
    color: #fff;
}

.hero-main-icon {
    margin-bottom: 16px;
}

.hero-main-icon img {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.hero-main-title {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.4;
    color: #fff;
}

.hero-main-subtitle {
    font-size: 1em;
    margin: 0 0 24px 0;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-main-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-main-cta-primary {
    display: inline-flex;
    align-items: center;
    background: #F9C74F;
    color: #1B5E20;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-main-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.hero-main-cta-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    border: 1px solid rgba(255,255,255,0.4);
    transition: background 0.2s;
}

.hero-main-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.hero-main-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s, transform 0.2s;
}

.hero-feature:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.hero-feature img {
    margin-bottom: 8px;
    filter: brightness(0) invert(1);
}

.hero-feature-title {
    font-weight: 700;
    font-size: 0.95em;
    margin-bottom: 4px;
}

.hero-feature-sub {
    font-size: 0.75em;
    opacity: 0.75;
    text-align: center;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .hero-main {
        padding: 60px 32px;
    }
    .hero-main-title {
        font-size: 2.2em;
    }
    .hero-main-subtitle {
        font-size: 1.15em;
    }
    .hero-main-features {
        gap: 20px;
        margin-top: 24px;
    }
    .hero-feature {
        padding: 24px 16px;
    }
    .hero-feature-title {
        font-size: 1.1em;
    }
    .hero-feature-sub {
        font-size: 0.9em;
    }
}
