/* ============================================================
   worldcup.css — الأنماط الخاصة بصفحة worldcup.html
   يُحمَّل بعد الملفات المشتركة، فأي قاعدة هنا تتجاوزها.
   ============================================================ */

/* ============================================================
   worldcup.css — الأنماط الخاصة بصفحة worldcup.html
   يُحمَّل بعد الملفات المشتركة، فأي قاعدة هنا تتجاوزها.
   ============================================================ */

:root {
    --text-muted: #a7aeb5;
    --gold: #FFD700;
    --status-completed: #4ade80;
    --status-pending: #f87171;
    --danger: #ff4d4d;
}

[data-theme="light"] {
    --glow-cyan-intense: 0 4px 30px rgba(0,168,204,.3);
}

body {
    min-height: 100vh;
}

.bg-grid {
    inset: 0;
}

.bg-glow {
    inset: 0;
}

/* Layout */

.wrap {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 110px 18px 70px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-neon);
    color: #021016;
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-cyan-intense);
}

.btn-primary:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(.4);
}

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

.btn-secondary:hover {
    background: rgba(0,212,255,.1);
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-accent);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

/* Hero / landing */

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-neon);
    color: #021016;
    font-weight: 700;
    font-family: var(--font-display);
    border-radius: 50px;
    padding: 8px 22px;
    margin-bottom: 22px;
    box-shadow: var(--glow-cyan);
    font-size: .85rem;
}

.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem,5.5vw,3.4rem);
    font-weight: 900;
    line-height: 1.4;
    padding-bottom: .18em;
    margin-bottom: 14px;
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(0,212,255,.3));
}

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

.welcome {
    max-width: 640px;
    margin: 0 auto 14px;
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 2;
}

.welcome .hl {
    color: var(--neon-cyan);
    font-weight: 700;
}

.welcome .gold {
    color: var(--gold);
    font-weight: 700;
}

.card {
    background: linear-gradient(135deg,rgba(0,212,255,.06),rgba(0,139,139,.06));
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: 30px 26px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-neon);
}

/* Countdown */

.countdown-wrap {
    margin: 34px auto 30px;
    text-align: center;
}

.countdown-label {
    font-size: .95rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    direction: ltr;
}

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 74px;
}

.cd-val {
    font-family: var(--font-display);
    font-size: clamp(1.7rem,5vw,2.8rem);
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: var(--glow-text);
    background: rgba(0,0,0,.25);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    min-width: 78px;
    line-height: 1;
}

[data-theme="light"] .cd-val {
    background: rgba(0,168,204,.08);
}

.cd-lbl {
    font-size: .85rem;
    color: var(--text-primary);
    margin-top: 8px;
    font-weight: 600;
}

.cd-tz {
    display: inline-block;
    margin-top: 14px;
    font-size: .85rem;
    color: var(--neon-cyan);
    background: rgba(0,212,255,.1);
    border: 1px solid var(--border-accent);
    padding: 5px 14px;
    border-radius: 20px;
}

.deadline-over {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold);
    text-shadow: 0 0 12px rgba(255,215,0,.5);
}

/* Participants section */

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem,3.5vw,1.9rem);
    font-weight: 700;
    text-align: center;
    margin: 60px 0 26px;
    position: relative;
    display: block;
}

.section-title .accent {
    color: var(--neon-cyan);
    text-shadow: var(--glow-text);
}

.locked-box {
    text-align: center;
    padding: 34px 24px;
}

.locked-box .lock {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.locked-box p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.count-pill {
    display: inline-block;
    margin-top: 18px;
    font-family: var(--font-display);
    color: var(--neon-cyan);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    padding: 8px 18px;
    font-size: .95rem;
}

/* Wizard */

#view-flow {
    display: none;
}

.progress-head {
    position: sticky;
    top: 70px;
    z-index: 50;
    background: rgba(10,10,10,.9);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 22px;
}

[data-theme="light"] .progress-head {
    background: rgba(245,245,245,.92);
}

.progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: .85rem;
    color: var(--text-secondary);
}

.progress-step {
    font-family: var(--font-display);
    color: var(--neon-cyan);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.progress-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-neon);
    border-radius: 10px;
    transition: width var(--transition-normal);
    box-shadow: var(--glow-cyan);
}

.step {
    animation: fadeIn .35s ease;
}

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

#view-landing>.hero {
    animation: fadeIn .55s ease both;
}

#view-landing>#heroCard {
    animation: fadeIn .55s ease .1s both;
}

#view-landing>#matchesArea {
    animation: fadeIn .55s ease .2s both;
}

#view-landing>#standingsArea {
    animation: fadeIn .55s ease .26s both;
}

#view-landing>#quaArea {
    animation: fadeIn .55s ease .32s both;
}

#view-landing>#scorersArea {
    animation: fadeIn .55s ease .38s both;
}

#view-landing>#scoringCollapse {
    animation: fadeIn .55s ease .44s both;
}

#view-landing>#prizesCollapse {
    animation: fadeIn .55s ease .5s both;
}

#view-landing>#publicArea {
    animation: fadeIn .55s ease .56s both;
}

.step h2 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem,4vw,1.9rem);
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.step .sub {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.text-input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    transition: all var(--transition-fast);
}

.text-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

/* Scoring table */

.score-table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0 4px;
    font-size: .95rem;
}

.score-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.score-table td:last-child {
    text-align: left;
    font-family: var(--font-display);
    color: var(--neon-cyan);
    font-weight: 700;
    white-space: nowrap;
}

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

/* Anti-cheat box */

.warn-box {
    margin: 24px 0;
    border: 2px solid var(--danger);
    background: rgba(255,77,77,.08);
    border-radius: var(--radius-md);
    padding: 18px 18px;
}

.warn-box .wt {
    color: var(--danger);
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warn-box p {
    color: var(--text-secondary);
    font-size: .95rem;
}

.agree-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    cursor: pointer;
    user-select: none;
}

.agree-row input {
    width: 22px;
    height: 22px;
    margin-top: 3px;
    accent-color: var(--neon-cyan);
    cursor: pointer;
    flex: 0 0 auto;
}

.agree-row label {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
}

/* Group ordering */

.group-head {
    text-align: center;
    margin-bottom: 18px;
}

.group-tag {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 900;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
    padding: 4px 0 12px;
    display: inline-block;
}

.group-hint {
    color: var(--text-secondary);
    font-size: .95rem;
    margin-top: 4px;
}

.pool {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    min-height: 54px;
    margin-bottom: 20px;
}

.team-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.team-chip:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.team-chip img {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}

.slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto;
}

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

.slot-badge {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    background: var(--gradient-neon);
    color: #021016;
}

.slot-cell {
    flex: 1;
    min-height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 2px dashed var(--border-subtle);
    color: var(--text-muted);
    font-size: .95rem;
    transition: all var(--transition-fast);
}

.slot-cell.filled {
    border-style: solid;
    border-color: var(--border-accent);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
}

.slot-cell img {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}

.slot-cell .pos-name {
    flex: 1;
    min-width: 0;
}

.slot-ctrls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.ord-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-accent);
    background: var(--bg-tertiary);
    color: var(--neon-cyan);
    cursor: pointer;
    font-size: .8rem;
    line-height: 1;
    padding: 0;
    transition: all var(--transition-fast);
}

.ord-btn:hover:not(:disabled) {
    background: rgba(0,212,255,.12);
    box-shadow: var(--glow-cyan);
}

.ord-btn:disabled {
    opacity: .25;
    cursor: default;
}

.ord-btn.rm {
    color: var(--text-muted);
    border-color: var(--border-subtle);
}

.ord-btn.rm:hover {
    color: var(--danger);
    border-color: var(--danger);
    box-shadow: none;
    background: var(--bg-tertiary);
}

@keyframes slotPulse {
    0% { box-shadow: 0 0 0 rgba(0,212,255,0); }
    30% { box-shadow: 0 0 18px rgba(0,212,255,.7); }
    100% { box-shadow: 0 0 0 rgba(0,212,255,0); }
}

.slot-cell.just-moved {
    animation: slotPulse .5s ease;
    border-color: var(--neon-cyan);
}

.group-actions {
    text-align: center;
    margin-top: 14px;
}

.reset-link {
    background: transparent;
    border: 1px solid var(--border-accent);
    color: var(--neon-cyan);
    cursor: pointer;
    font-size: .98rem;
    padding: 11px 26px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 700;
    transition: all var(--transition-fast);
}

.reset-link:hover {
    background: rgba(0,212,255,.1);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

/* Nav buttons */

.flow-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

.flow-nav .btn {
    flex: 1;
    max-width: 220px;
}

/* Summary */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.sum-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 14px 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sum-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.sum-card .sg {
    font-family: var(--font-display);
    color: var(--neon-cyan);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sum-card .sg .edit {
    font-size: .7rem;
    color: var(--text-muted);
}

.sum-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    padding: 3px 0;
}

.sum-row .n {
    color: var(--text-muted);
    width: 16px;
    font-family: var(--font-display);
    font-size: .8rem;
}

.sum-row img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

/* Thanks */

#view-thanks {
    display: none;
    text-align: center;
}

.thanks-icon {
    font-size: 3.2rem;
    margin-bottom: 16px;
}

.thanks-card h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 14px;
    color: var(--neon-cyan);
    text-shadow: var(--glow-text);
}

.thanks-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 10px;
    line-height: 2;
}

/* Leaderboard */

.lb {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: all var(--transition-fast);
}

.lb-row:hover {
    border-color: var(--border-accent);
}

.lb-row.top1 {
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(255,215,0,.25);
}

.lb-row.top2 {
    border-color: #c0c0c0;
}

.lb-row.top3 {
    border-color: #cd7f32;
}

.lb-rank {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    width: 40px;
    text-align: center;
    color: var(--neon-cyan);
}

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

.lb-name {
    flex: 1;
    font-weight: 700;
    font-size: 1.05rem;
}

.lb-tw {
    font-size: .8rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.lb-pts {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--neon-cyan);
    text-align: left;
}

.lb-pts small {
    display: block;
    font-size: .7rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Public prediction cards */

.pub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
}

.pub-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

.pub-head .pn {
    flex: 1;
    font-weight: 700;
}

.pub-head .chev {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.pub-card.open .chev {
    transform: rotate(180deg);
}

.pub-body {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--border-subtle);
}

.pub-card.open .pub-body {
    display: block;
    animation: fadeIn .32s ease;
}

.pub-card {
    animation: fadeIn .4s ease both;
}

.pub-groups {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    margin-top: 14px;
}

@media (max-width:860px) {
    .pub-groups {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:520px) {
    .pub-groups {
        grid-template-columns: 1fr;
    }
}

.stand-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: .9rem;
    margin: 14px 0 6px;
}

.pub-g {
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.pub-g .gh {
    font-family: var(--font-display);
    font-size: .85rem;
    color: var(--neon-cyan);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.pub-g .gr .gname {
    flex: 1;
}

.gpts {
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 8px;
    flex: 0 0 auto;
}

.gpts.pos {
    color: #021016;
    background: var(--gradient-neon);
}

.gpts.zero {
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
}

.gbonus {
    font-family: var(--font-display);
    font-size: .64rem;
    color: var(--gold);
    border: 1px solid rgba(255,215,0,.45);
    border-radius: 8px;
    padding: 2px 7px;
    white-space: nowrap;
}

.pub-g .gr {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    padding: 2px 0;
}

.pub-g .gr .n {
    color: var(--text-muted);
    width: 12px;
    font-size: .7rem;
}

.pub-g img {
    width: 20px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
}

/* Toast */

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--bg-card);
    border: 2px solid var(--neon-cyan);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--glow-cyan);
    z-index: 2000;
    transition: transform var(--transition-normal);
    max-width: 90vw;
    text-align: center;
    font-weight: 600;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.err {
    border-color: var(--danger);
    box-shadow: 0 0 20px rgba(255,77,77,.4);
}

.muted {
    color: var(--text-muted);
    font-size: .85rem;
    text-align: center;
    margin-top: 10px;
}

.hint-lg {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
    margin-top: 14px;
    line-height: 1.9;
}

.lb-note {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.02rem;
    max-width: 640px;
    margin: 0 auto 22px;
    line-height: 1.9;
}

.reveal-msg {
    text-align: center;
    padding: 18px 10px;
    font-family: var(--font-display);
    font-size: clamp(1.1rem,3.2vw,1.55rem);
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 14px rgba(255,215,0,.4);
    line-height: 1.9;
}

.standings-card {
    padding: 20px 18px;
}

.name-status {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    font-size: .95rem;
    min-height: 20px;
}

.name-status.checking {
    color: var(--text-secondary);
}

.name-status.ok {
    color: var(--status-completed);
}

.name-status.taken {
    color: var(--danger);
}

.collapse {
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 22px 0 10px;
    background: var(--bg-card);
}

.collapse-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--neon-cyan);
    font-size: 1rem;
}

.collapse-head:hover {
    background: var(--bg-card-hover);
}

.collapse-head .chev {
    transition: transform var(--transition-fast);
}

.collapse.open .chev {
    transform: rotate(180deg);
}

.collapse-body {
    display: none;
    padding: 0 16px 16px;
}

.collapse.open .collapse-body {
    display: block;
    animation: fadeIn .32s ease;
}

.prizes-podium {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    margin: 8px 0 16px;
}

.podium {
    flex: 1;
    min-width: 96px;
    max-width: 160px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 10px;
    background: var(--bg-tertiary);
}

.podium .medal {
    font-size: 1.9rem;
    line-height: 1;
}

.podium .rk {
    font-weight: 700;
    margin: 8px 0 4px;
    color: var(--text-primary);
    font-size: .95rem;
}

.podium .pz {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--neon-cyan);
    font-size: 1.05rem;
}

.podium.g1 {
    padding: 24px 10px;
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(255,215,0,.2);
}

.podium.g1 .pz {
    color: var(--gold);
}

.podium.g1 .medal {
    font-size: 2.3rem;
}

.podium.g2 {
    border-color: #c0c0c0;
}

.podium.g3 {
    border-color: #cd7f32;
}

.prize-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prize-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 13px 16px;
}

.prize-row .rk {
    font-weight: 700;
    color: var(--text-primary);
}

.prize-row .pz {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--neon-cyan);
    white-space: nowrap;
}

.prize-row .pz small {
    color: var(--text-muted);
    font-weight: 400;
    font-size: .72rem;
    margin-right: 4px;
}

.pub-card.top1 {
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(255,215,0,.2);
}

.pub-card.top2 {
    border-color: #c0c0c0;
}

.pub-card.top3 {
    border-color: #cd7f32;
}

.stand-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}

@media (max-width:860px) {
    .stand-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:520px) {
    .stand-grid {
        grid-template-columns: 1fr;
    }
}

.stand-g {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 8px;
    overflow: hidden;
}

.stand-gh {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--neon-cyan);
    font-size: .82rem;
    text-align: center;
    margin-bottom: 8px;
}

.stand-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: .72rem;
}

.stand-tbl th {
    color: var(--text-muted);
    font-weight: 600;
    padding: 3px 2px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.stand-tbl td {
    padding: 5px 2px;
    text-align: center;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.stand-tbl tbody tr:last-child td {
    border-bottom: none;
}

.stand-tbl .st-pos {
    color: var(--text-muted);
    width: 14px;
}

.stand-tbl .st-team {
    text-align: start;   /* يتبع اتجاه اللغة */
    color: var(--text-primary);
    font-weight: 600;
}

.stand-tbl .st-team img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    margin-inline-end: 5px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}

.stand-tbl .st-team span {
    vertical-align: middle;
}

.stand-tbl .st-pts {
    color: var(--neon-cyan);
    font-weight: 700;
}

/* المباريات */

.mtabs {
    display: flex;
    gap: 6px;
    margin: 14px 0 12px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: var(--radius-md);
}

.mtab {
    flex: 1;
    padding: 9px 4px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .82rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mtab.active {
    background: var(--neon-cyan);
    color: #001018;
}

.mc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mc:hover {
    border-color: var(--neon-cyan);
}

.mc-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mc-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mc-team .mc-tn {
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-team:not(.away) {
    justify-content: flex-end;
}

.mc-team img {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}

.mc-mid {
    flex: 0 0 auto;
    text-align: center;
    min-width: 64px;
}

.mc-score {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.mc-score.live {
    color: var(--neon-cyan);
}

.mc-live {
    display: block;
    font-size: .65rem;
    color: #ff5577;
    font-weight: 700;
    margin-top: 2px;
}

.mc-vs {
    color: var(--text-muted);
    font-weight: 700;
    font-size: .85rem;
}

.mc-when {
    text-align: center;
    color: var(--text-secondary);
    font-size: .75rem;
    margin-top: 8px;
}

.mc-when.live {
    color: #ff5577;
    font-weight: 700;
}

.mc-tzlabel {
    color: var(--text-muted);
    font-size: .68rem;
}

.mc-cd {
    text-align: center;
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    margin-top: 5px;
    letter-spacing: .5px;
}

.mc-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: .68rem;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-subtle);
}

.mc:hover .mc-hint {
    color: var(--neon-cyan);
}

.mc-tznote {
    text-align: center;
    color: var(--text-muted);
    font-size: .75rem;
    margin-top: 12px;
}

/* الهدّافون */

.sc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.sc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 12px;
}

.sc-rank {
    width: 22px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-muted);
    flex: 0 0 auto;
}

.sc-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--bg-card);
    box-shadow: 0 0 0 1px var(--border-accent);
}

.sc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sc-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-team {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: .8rem;
}

.sc-team img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}

.sc-goals {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--neon-cyan);
    font-size: 1.05rem;
    text-align: center;
}

.sc-goals small {
    display: block;
    font-size: .6rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* المتأهلون والمغادرون */

.qua-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.qua-col {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qua-in {
    border-color: rgba(91,217,122,.35);
}

.qua-out {
    border-color: rgba(255,85,119,.35);
}

.qua-h {
    font-weight: 700;
    font-size: .85rem;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 2px;
}

.qua-h span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: .78rem;
}

.qua-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
}

.qua-item img {
    width: 24px;
    height: 17px;
    object-fit: cover;
    border-radius: 3px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}

.qua-name {
    font-weight: 600;
    font-size: .85rem;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qua-tag {
    font-size: .64rem;
    color: var(--text-muted);
    flex: 0 0 auto;
}

.qua-note {
    text-align: center;
    color: var(--text-muted);
    font-size: .74rem;
    margin-top: 12px;
    line-height: 1.6;
}

@media (max-width:560px) {
    .qua-wrap {
        grid-template-columns: 1fr;
    }
}

/* نافذة المباراة */

.mm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
    animation: mmFade .2s ease;
}

.mm-box {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--glow-cyan);
    animation: mmPop .3s cubic-bezier(.2,.85,.3,1) both;
}

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

@keyframes mmPop {
    from { opacity: 0; transform: translateY(22px) scale(.95); }
    to { opacity: 1; transform: none; }
}

.mmh-scorers {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 5px;
    text-align: center;
}

.mmh-na {
    color: var(--text-muted);
    font-size: .72rem;
}

.mm-close {
    position: absolute;
    top: 10px;
    left: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
}

.mm-head {
    padding: 18px 40px 14px;
}

.mmh {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
}

.mmh-team {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.mmh-team img {
    width: 46px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}

.mmh-team span {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .85rem;
    text-align: center;
    line-height: 1.3;
}

.mmh-mid {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-height: 46px;
}

.mmh-score {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-primary);
}

.mmh-score.live {
    color: var(--neon-cyan);
}

.mmh-vs {
    font-family: var(--font-display);
    color: var(--text-muted);
    font-weight: 700;
}

.mmh-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: .78rem;
    margin-top: 10px;
}

.mmh-sub.live {
    color: #ff5577;
    font-weight: 700;
}

.mmh-cd {
    text-align: center;
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: .5px;
}

.mm-tabs {
    display: flex;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.mm-tab {
    flex: 1;
    padding: 12px 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.mm-tab.active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
}

.mm-body {
    padding: 16px;
    overflow-y: auto;
}

.ev-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ev-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.ev-min {
    width: 42px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-muted);
    font-size: .78rem;
    flex: 0 0 auto;
}

.ev-ic {
    flex: 0 0 auto;
}

.ev-txt {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ev-team {
    font-size: .72rem;
    color: var(--text-muted);
}

/* مربعات الأحداث */

.evb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.evb {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    border-right: 3px solid var(--border-subtle);
}

.evb-goal {
    border-right-color: var(--neon-cyan);
}

.evb-yellow {
    border-right-color: #e6c64d;
}

.evb-red {
    border-right-color: #ff5577;
}

.evb-sub {
    border-right-color: #5bd97a;
}

.evb-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.evb-ic {
    font-size: 1rem;
    flex: 0 0 auto;
}

.evb-title {
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-primary);
}

.evb-min {
    margin-right: auto;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-muted);
    font-size: .8rem;
}

.evb-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.evb-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
}

.evb-main {
    font-weight: 700;
}

.evb-assist {
    color: var(--text-secondary);
    font-size: .88rem;
}

.evb-in {
    color: #5bd97a;
    font-weight: 700;
    font-size: .88rem;
}

.evb-out {
    color: #ff5577;
    font-weight: 700;
    font-size: .88rem;
}

.evb-tag {
    color: var(--text-muted);
    font-size: .88rem;
}

.evb-team {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(255,255,255,.05);
    color: var(--text-secondary);
    font-size: .78rem;
}

.evb-team img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}

.st-head {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: 14px;
    color: var(--neon-cyan);
}

.st-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
}

.st-va, .st-vb {
    width: 46px;
    text-align: center;
    font-weight: 700;
    font-size: .85rem;
    flex: 0 0 auto;
}

.st-mid {
    flex: 1;
    text-align: center;
}

.st-label {
    font-size: .72rem;
    color: var(--text-secondary);
}

.st-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
    direction: ltr;
}

.st-fill {
    height: 100%;
    background: var(--neon-cyan);
}

/* إحصائيات v2: أرقام فقط + دائرة زرقاء للأفضل */

.st2-head {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: .82rem;
    color: var(--neon-cyan);
    margin-bottom: 16px;
}

.st2-head span:first-child {
    flex: 0 0 64px;
    text-align: center;
}

.st2-head .st2-mid {
    flex: 1;
}

.st2-head span:last-child {
    flex: 0 0 64px;
    text-align: center;
}

.st2-row {
    display: flex;
    align-items: center;
    margin-bottom: 13px;
}

.st2-val {
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-primary);
}

.st2-best {
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--neon-cyan);
    color: #001018;
    box-shadow: 0 0 10px rgba(0,212,255,.45);
}

.st2-label {
    flex: 1;
    text-align: center;
    font-size: .8rem;
    color: var(--text-secondary);
}

/* الملعب */

.pitch {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 6px auto 0;
    aspect-ratio: 2/3;
    background: linear-gradient(180deg,#0d3b24,#0a2e1c);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    overflow: hidden;
}

.pitch-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,.25);
}

.pitch-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    transform: translate(-50%,-50%);
}

.pitch-half {
    position: absolute;
    inset: 0;
}

.pp {
    position: absolute;
    transform: translate(-50%,-50%);
    text-align: center;
    width: 60px;
}

.pp-num {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--neon-cyan);
    color: #001018;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0,212,255,.5);
}

.pitch-half.top .pp-num {
    background: #ff6688;
    box-shadow: 0 0 8px rgba(255,102,136,.5);
}

.pp-name {
    font-size: .72rem;
    font-weight: 600;
    color: #fff;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0,0,0,.95);
}

.lu-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: .95rem;
    padding: 8px;
}

.lu-team img {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}

.lu-team b {
    font-family: var(--font-display);
    font-size: .82rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--bg-tertiary);
}

.lu-team.away {
    color: #ff6688;
}

.lu-team.home {
    color: var(--neon-cyan);
}

.lu-team.away b {
    color: #ff6688;
}

.lu-team.home b {
    color: var(--neon-cyan);
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #021016;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

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

@media (max-width:560px) {
    .wrap {
        padding: 96px 14px 60px;
    }

    .flow-nav .btn {
        padding: 13px 16px;
        font-size: .85rem;
    }

    .card {
        padding: 22px 16px;
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none!important;
        transition: none!important;
    }
}
