/* ============================================================
   assets/css/style.css
   نيوترش | كأس العالم 2026 — الهوية البصرية الكاملة
   ألوان: أخضر داكن #0a1f0a | ذهبي #C9A84C | أبيض #FFFFFF
   ============================================================ */

/* ── المتغيرات ──────────────────────────────────────────── */
:root {
    --green-dark:      #0a1f0a;
    --green-mid:       #122b12;
    --green-light:     #1a3d1a;
    --green-accent:    #1e4d1e;
    --green-darkest:   #051005;
    --admin-bg:        #0d1d0d;
    --green-accent-rgb: 30,77,30;
    --gold:         #C9A84C;
    --gold-light:   #e2c070;
    --gold-dim:     #a88838;
    /* --text-rgb يُستبدل تلقائياً حسب سطوع لون الخلفية المختار (انظر themeStyleOverride) */
    --text-rgb:     255,255,255;
    --white:        rgb(var(--text-rgb));
    --white-90:     rgba(var(--text-rgb),0.90);
    --white-60:     rgba(var(--text-rgb),0.60);
    --white-30:     rgba(var(--text-rgb),0.30);
    --white-10:     rgba(var(--text-rgb),0.10);
    --shadow-gold:  0 0 30px rgba(201,168,76,0.25);
    --shadow-card:  0 8px 32px rgba(0,0,0,0.40);
    --radius-card:  16px;
    --radius-btn:   12px;
    --font:         'Tajawal', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background-color: var(--green-dark);
    color: var(--white);
    min-height: 100vh;
    direction: rtl;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ── شريط علوي للصفحات الداخلية ────────────────────────── */
.wc-navbar {
    background: var(--green-mid);
    border-bottom: 1px solid rgba(201,168,76,0.20);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wc-navbar .brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.03em;
}

/* ── صفحة الترحيب ───────────────────────────────────────── */
.welcome-page {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(var(--green-accent-rgb),0.60) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.12) 0%, transparent 50%),
        linear-gradient(160deg, var(--green-darkest) 0%, var(--green-dark) 40%, var(--green-mid) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem 5rem;
    position: relative;
    overflow: hidden;
}

/* خطوط ملعب كرة القدم الزخرفية */
.welcome-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 119px, rgba(var(--text-rgb),0.03) 120px),
        repeating-linear-gradient(90deg, transparent, transparent 119px, rgba(var(--text-rgb),0.03) 120px);
    pointer-events: none;
}

/* دائرة وسط الملعب */
.welcome-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(var(--text-rgb),0.04);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.welcome-logo {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 0.05em;
    text-shadow: 0 0 40px rgba(201,168,76,0.50), 0 2px 8px rgba(0,0,0,0.60);
    position: relative;
    z-index: 1;
    margin-bottom: 0.25rem;
}

.welcome-subtitle {
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    color: var(--white-60);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    margin-bottom: 2.5rem;
}

/* كأس العالم emoji متحرك */
.trophy-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.trophy-emoji {
    font-size: clamp(5rem, 15vw, 9rem);
    display: block;
    animation: trophyFloat 3.5s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(201,168,76,0.45));
    line-height: 1;
}

@keyframes trophyFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%       { transform: translateY(-18px) rotate(2deg); }
}

.welcome-event-title {
    font-size: clamp(1.4rem, 4.5vw, 2.4rem);
    font-weight: 800;
    color: var(--white);
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.welcome-event-title span {
    color: var(--gold);
}

.welcome-tagline {
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    color: var(--white-60);
    font-weight: 400;
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* الخط الذهبي الفاصل */
.gold-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.2rem auto;
    position: relative;
    z-index: 1;
}

/* زر "شارك الآن" */
.btn-join {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    background-size: 200% 200%;
    color: var(--green-dark);
    font-family: var(--font);
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 900;
    padding: 1rem 3rem;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    position: relative;
    z-index: 1;
    text-decoration: none;
    box-shadow: 0 6px 30px rgba(201,168,76,0.45), 0 2px 8px rgba(0,0,0,0.30);
    animation: btnPulse 2.5s ease-in-out infinite;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-join:hover,
.btn-join:focus {
    color: var(--green-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(201,168,76,0.60);
    animation: none;
    background-position: right center;
}

.btn-join:active { transform: translateY(0); }

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 6px 30px rgba(201,168,76,0.45); }
    50%       { box-shadow: 0 6px 50px rgba(201,168,76,0.70); }
}

/* أيقونة الإدارة السرية */
.admin-secret-btn {
    position: fixed;
    bottom: 18px;
    left: 18px;
    font-size: 1.1rem;
    opacity: 0.20;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--white);
    z-index: 100;
    transition: opacity 0.3s;
    padding: 0.4rem;
    border-radius: 50%;
    line-height: 1;
}

.admin-secret-btn:hover { opacity: 0.45; }

/* ── بطاقة النموذج (register & predict) ─────────────────── */
.page-wrapper {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top left, rgba(var(--green-accent-rgb),0.50) 0%, transparent 55%),
        linear-gradient(180deg, var(--green-dark) 0%, var(--green-darkest) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem 4rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    direction: rtl;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--white-30);
    transition: all 0.3s;
}

.step-dot.active {
    background: var(--gold);
    box-shadow: 0 0 10px rgba(201,168,76,0.60);
    width: 28px;
    border-radius: 5px;
}

.step-dot.done {
    background: var(--gold-dim);
}

.form-card {
    background: var(--green-light);
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: var(--radius-card);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-card);
    position: relative;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 0.3rem;
    text-align: center;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--white-60);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* حقول الإدخال */
.wc-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white-90);
    margin-bottom: 0.5rem;
}

.wc-input {
    width: 100%;
    background: rgba(0,0,0,0.35);
    border: 1.5px solid rgba(201,168,76,0.25);
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font);
    font-size: 1.1rem;
    padding: 0.85rem 1.1rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    direction: rtl;
    text-align: right;
}

.wc-input::placeholder { color: var(--white-30); }

.wc-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.20);
    background: rgba(0,0,0,0.45);
}

.wc-input.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.20);
}

.invalid-msg {
    color: #e74c3c;
    font-size: 0.82rem;
    margin-top: 0.35rem;
    display: none;
}

.invalid-msg.show { display: block; }

/* رقم الهدف المخصص */
.goal-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.goal-input-wrap .wc-input {
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    padding: 1rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    -moz-appearance: textfield;
}

.goal-input-wrap .wc-input::-webkit-outer-spin-button,
.goal-input-wrap .wc-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.goal-stepper {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 3px;
    left: 10px;
}

.goal-stepper button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(201,168,76,0.30);
    background: rgba(201,168,76,0.12);
    color: var(--gold);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-family: var(--font);
}

.goal-stepper button:hover { background: rgba(201,168,76,0.25); }

/* ── بطاقات الفرق ───────────────────────────────────────── */
.teams-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white-90);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 500px) {
    .teams-grid { grid-template-columns: repeat(4, 1fr); }
}

.team-card {
    background: rgba(0,0,0,0.30);
    border: 1.5px solid rgba(var(--text-rgb),0.08);
    border-radius: 10px;
    padding: 0.7rem 0.4rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.20s ease;
    user-select: none;
    position: relative;
}

.team-card:hover {
    border-color: rgba(201,168,76,0.40);
    background: rgba(201,168,76,0.06);
    transform: translateY(-2px);
}

.team-card.selected {
    border-color: var(--gold);
    background: rgba(201,168,76,0.15);
    box-shadow: 0 0 16px rgba(201,168,76,0.30), inset 0 0 0 1px rgba(201,168,76,0.40);
}

.team-card.selected::after {
    content: '✓';
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 900;
}

.team-flag {
    font-size: 1.8rem;
    display: block;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.team-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white-90);
    line-height: 1.3;
}

#champion_id_hidden { display: none; }

/* ── أزرار الإرسال ──────────────────────────────────────── */
.btn-wc-primary {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--green-dark);
    font-family: var(--font);
    font-size: 1.15rem;
    font-weight: 900;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: 0 4px 20px rgba(201,168,76,0.35);
    letter-spacing: 0.02em;
    margin-top: 1.5rem;
}

.btn-wc-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,168,76,0.50);
}

.btn-wc-primary:active { transform: translateY(0); }

.btn-wc-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--white-60);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--white-30);
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 0.8rem;
}

.btn-wc-secondary:hover {
    border-color: var(--white-60);
    color: var(--white);
}

/* ── شاشة التأكيد ───────────────────────────────────────── */
.confirm-page {
    min-height: 100vh;
    background: radial-gradient(ellipse at center top, rgba(var(--green-accent-rgb),0.70) 0%, var(--green-darkest) 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.confirm-card {
    background: var(--green-light);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 460px;
    width: 100%;
    box-shadow: var(--shadow-gold), var(--shadow-card);
    animation: confirmIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    overflow: hidden;
}

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

/* تأثير الاحتفال بالألوان */
.confetti-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, var(--gold), #27ae60, #3498db, var(--gold), #e74c3c);
    background-size: 200% 100%;
    animation: confettiSlide 3s linear infinite;
}

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

.confirm-check {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: checkBounce 0.6s 0.3s cubic-bezier(0.34,1.56,0.64,1) backwards;
}

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

.confirm-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.confirm-greeting {
    font-size: 1rem;
    color: var(--white-60);
    margin-bottom: 1.5rem;
}

.ref-code-box {
    background: rgba(0,0,0,0.40);
    border: 1.5px solid rgba(201,168,76,0.40);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    direction: ltr;
}

.ref-code-label {
    font-size: 0.75rem;
    color: var(--white-60);
    margin-bottom: 0.4rem;
    letter-spacing: 0.08em;
    direction: rtl;
    text-align: right;
}

.ref-code-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-align: center;
}

.predict-summary {
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    text-align: right;
}

.predict-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(var(--text-rgb),0.06);
    font-size: 0.9rem;
}

.predict-summary-row:last-child { border-bottom: none; }

.predict-summary-row .label {
    color: var(--white-60);
    font-weight: 500;
}

.predict-summary-row .value {
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Popup كلمة المرور ──────────────────────────────────── */
.admin-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.70);
    backdrop-filter: blur(6px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.admin-popup-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.admin-popup {
    background: var(--green-mid);
    border: 1px solid rgba(201,168,76,0.30);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 340px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.60);
    transform: scale(0.90);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    text-align: center;
}

.admin-popup-overlay.show .admin-popup { transform: scale(1); }

.admin-popup h3 {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.admin-popup .wc-input {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: 0.2em;
    direction: ltr;
}

.popup-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    display: none;
}

.popup-error.show { display: block; }

.popup-close-btn {
    background: none;
    border: none;
    color: var(--white-60);
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.7rem;
    font-family: var(--font);
    transition: color 0.2s;
}

.popup-close-btn:hover { color: var(--white); }

/* ── لوحة الإدارة ───────────────────────────────────────── */
.admin-wrapper {
    min-height: 100vh;
    background: var(--admin-bg);
    direction: rtl;
}

.admin-topbar {
    background: var(--green-mid);
    border-bottom: 1px solid rgba(201,168,76,0.20);
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar .brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
}

.admin-topbar .actions { display: flex; gap: 0.6rem; }

.admin-content { padding: 1.5rem; }

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--green-light);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.30);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--white-60);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.stat-card .stat-sub {
    font-size: 0.8rem;
    color: var(--white-60);
    margin-top: 0.3rem;
}

.admin-table-wrap {
    background: var(--green-light);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.30);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-table thead tr {
    background: rgba(201,168,76,0.12);
    border-bottom: 1px solid rgba(201,168,76,0.20);
}

.admin-table thead th {
    padding: 0.85rem 1rem;
    text-align: right;
    color: var(--gold);
    font-weight: 700;
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid rgba(var(--text-rgb),0.05);
    transition: background 0.15s;
}

.admin-table tbody tr:hover { background: rgba(var(--text-rgb),0.04); }

.admin-table tbody td {
    padding: 0.8rem 1rem;
    color: var(--white-90);
    white-space: nowrap;
}

.badge-goal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.30);
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
}

/* زر الإجراء */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-action-gold {
    background: rgba(201,168,76,0.15);
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.35);
}

.btn-action-gold:hover {
    background: rgba(201,168,76,0.25);
    color: var(--gold-light);
}

.btn-action-danger {
    background: rgba(231,76,60,0.10);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.30);
}

.btn-action-danger:hover {
    background: rgba(231,76,60,0.20);
}

/* تنبيه الخطأ / النجاح */
.alert-wc {
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    border-right: 4px solid;
}

.alert-wc.error {
    background: rgba(231,76,60,0.12);
    border-color: #e74c3c;
    color: #e74c3c;
}

.alert-wc.success {
    background: rgba(39,174,96,0.12);
    border-color: #27ae60;
    color: #2ecc71;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
    .form-card { padding: 1.8rem 1.2rem; }
    .teams-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .team-card { padding: 0.6rem 0.3rem; }
    .team-flag { font-size: 1.5rem; }
    .team-name { font-size: 0.65rem; }
    .admin-content { padding: 1rem 0.75rem; }
}

/* ── Scrollbar مخصص ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--green-dark); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.55); }

/* ── إضافات predict.php ─────────────────────────────────── */
.selected-team-display { display: block; }
.selected-team-display.visible { display: block; }

/* تصحيح grid الإدارة للشاشات الصغيرة */
@media (max-width: 400px) {
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .ref-value { font-size: 1.4rem; }
}
