:root {
    color-scheme: light;
    --ink: #18332e;
    --muted: #687a73;
    --paper: #f5f7f2;
    --white: #fff;
    --green: #176b52;
    --green-dark: #104b3b;
    --lime: #d8ef80;
    --line: #dce5dc;
    --red: #8f3429;
    --shadow: 0 18px 50px rgba(18, 58, 43, .08);
}

@font-face {
    font-family: "Vazirmatn Local";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/vazirmatn-arabic.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

@font-face {
    font-family: "Vazirmatn Local";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/vazirmatn-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Vazirmatn Local", Vazirmatn, Tahoma, "Segoe UI", sans-serif;
    line-height: 1.7;
}

a { color: inherit; }

.site-header {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px max(24px, calc((100vw - 1160px) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .88);
}

.brand, .top-nav, .brand span { display: flex; align-items: center; }
.brand { gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; justify-content: center; border-radius: 13px; background: var(--green); color: var(--lime); font-size: 22px; font-weight: 700; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); font-size: 11px; }
.top-nav { gap: 24px; font-size: 14px; }
.top-nav a { text-decoration: none; }
.top-nav a:hover, .back-link:hover { color: var(--green); }
.nav-login { padding: 8px 18px; border: 1px solid var(--green); border-radius: 7px; color: var(--green); }
.inline-form { margin: 0; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }

.page-shell { width: min(1160px, calc(100% - 40px)); min-height: calc(100vh - 150px); margin: 0 auto; }
.home-intro { display: grid; min-height: 440px; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); align-items: center; gap: 48px; padding: 70px 6%; overflow: hidden; border-bottom: 1px solid var(--line); }
.intro-copy { max-width: 600px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 12px; font-weight: 700; }
h1, h2, p { margin-top: 0; }
.intro-copy h1 { margin-bottom: 18px; font-size: clamp(36px, 4vw, 56px); line-height: 1.35; }
.intro-copy h1 span { color: var(--green); }
.lead { margin-bottom: 28px; color: var(--muted); font-size: 17px; }
.primary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 22px; border: 0; border-radius: 7px; background: var(--green); color: var(--white); cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.primary-button:hover { transform: translateY(-2px); background: var(--green-dark); }
.primary-button:disabled { cursor: wait; opacity: .7; transform: none; }
.intro-stamp { display: grid; width: min(280px, 100%); aspect-ratio: 1; place-content: center; justify-self: center; border: 1px solid rgba(23, 107, 82, .22); border-radius: 50%; background: radial-gradient(circle at 38% 35%, #fff 0 15%, #e6f0dc 15.5% 44%, #d5e8c5 44.5% 100%); color: var(--green-dark); text-align: center; transform: rotate(-9deg); }
.intro-stamp span:first-child { font-size: 72px; font-weight: 800; line-height: 1; }
.intro-stamp span:last-child { margin-top: 12px; font-size: 10px; font-weight: 700; line-height: 1.3; }
.home-note { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 34px 6%; }
.note-number { color: var(--green); font-size: 14px; font-weight: 700; }
.home-note h2 { margin-bottom: 5px; font-size: 18px; }
.home-note p { max-width: 660px; margin-bottom: 0; color: var(--muted); font-size: 14px; }

.auth-layout { display: grid; min-height: 520px; grid-template-columns: 1fr 1fr; align-items: center; gap: 9%; padding: 54px 7%; }
.auth-aside { padding: 26px 0; }
.auth-aside h1 { margin-bottom: 10px; font-size: 42px; }
.auth-aside p:last-child { max-width: 390px; color: var(--muted); }
.auth-form { display: grid; gap: 11px; padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.auth-form h2 { margin-bottom: 10px; font-size: 21px; }
.auth-form label { margin-top: 7px; font-size: 13px; font-weight: 700; }
.auth-form input { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid #becdc1; border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; }
.auth-form input:focus { outline: 3px solid rgba(23, 107, 82, .16); border-color: var(--green); }
.form-submit { width: 100%; margin-top: 14px; }
.back-link { justify-self: center; color: var(--muted); font-size: 13px; text-decoration: none; }
.notice { margin: 20px 0 0; padding: 12px 16px; border-radius: 6px; font-size: 14px; }
.notice-success { border-right: 4px solid var(--green); background: #e4f1e7; color: var(--green-dark); }
.notice-error { border-right: 4px solid var(--red); background: #f8e9e5; color: var(--red); }
.dashboard-heading { padding: 58px 4% 30px; border-bottom: 1px solid var(--line); }
.dashboard-heading h1 { margin-bottom: 7px; font-size: 34px; }
.dashboard-heading > p:last-child { color: var(--muted); }
.dashboard-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 30px 4%; }
.dashboard-summary div { display: grid; gap: 4px; }
.dashboard-summary span { color: var(--muted); font-size: 13px; }
.dashboard-summary strong { font-size: 15px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; padding: 0 4% 24px; }
.stat-card { display: grid; gap: 8px; min-height: 140px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.96)); box-shadow: 0 10px 28px rgba(18, 58, 43, .04); }
.stat-card strong { font-size: clamp(24px, 2vw, 32px); line-height: 1; }
.stat-card small { color: var(--muted); font-size: 12px; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-card-pending { border-color: rgba(108, 118, 25, .25); background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(249,250,237,.98)); }
.stat-card-success { border-color: rgba(23, 107, 82, .25); background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(233,246,238,.98)); }
.stat-card-muted { border-color: rgba(104, 122, 115, .25); background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(240,242,241,.98)); }
.stat-card-danger { border-color: rgba(143, 52, 41, .25); background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,239,237,.98)); }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 8px 4% 24px; }
.admin-note { margin: 0 4%; padding: 14px 18px; border-right: 4px solid var(--lime); background: #eef4dc; font-size: 14px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 12px; padding: 24px 4%; }
.admin-nav-link, .secondary-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 8px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--green-dark); font: inherit; font-size: 14px; text-decoration: none; }
.admin-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 42px 2% 24px; border-bottom: 1px solid var(--line); }
.admin-page-heading h1 { margin-bottom: 0; font-size: 30px; }
.reservation-card { margin: 26px 0 0; border: 1px solid rgba(23, 107, 82, 0.12); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,249,243,0.98)); box-shadow: 0 18px 40px rgba(16, 75, 59, 0.06); }
.reservation-card-form { padding: 8px 0 0; }
.reservation-card-list { padding: 0 0 18px; }
.reservation-page-heading { border-bottom: 0; padding-bottom: 10px; }
.search-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 18px 2% 8px; }
.search-form label { display: grid; flex: 1 1 260px; gap: 5px; font-size: 13px; }
.search-form input, .admin-form input:not([type="checkbox"]), .admin-form select { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #becdc1; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
.slot-picker { margin: 10px 0 0; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.slot-picker p { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.slot-options { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-button { min-height: 40px; padding: 8px 14px; border: 1px solid rgba(23, 107, 82, .25); border-radius: 999px; background: rgba(23, 107, 82, .05); color: var(--green-dark); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; transition: all .18s ease; }
.slot-button:hover { border-color: var(--green); background: rgba(23, 107, 82, .1); transform: translateY(-1px); }
.slot-button:focus-visible { outline: 3px solid rgba(23, 107, 82, .18); }
.slot-button:disabled, .slot-button:disabled:hover { border-color: var(--line); background: #f1f3f1; color: var(--muted); cursor: not-allowed; opacity: .7; transform: none; }
.slot-date-button { text-decoration: none; }
.slot-button.is-selected { border-color: var(--green-dark); background: var(--green-dark); color: var(--white); }
.slot-selection { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.ticket-after-approval { color: var(--muted); font-size: 12px; white-space: nowrap; }
.slot-empty-state { margin: 10px 2%; padding: 12px 14px !important; border: 1px solid var(--line); border-radius: 6px; background: var(--white); text-align: right !important; }
.capacity-hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.capacity-hint.is-over-capacity { color: var(--red); }
.field-hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.duration-hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.duration-hint.is-invalid { color: var(--red); }
.tariff-estimate { color: var(--green-dark); font-size: 13px; font-weight: 700; }
.status-label { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pending { background: rgba(108, 118, 25, .12); color: #685f08; }
.status-confirmed { background: rgba(23, 107, 82, .12); color: var(--green-dark); }
.status-rejected { background: rgba(143, 52, 41, .12); color: var(--red); }
.status-cancelled { background: rgba(120, 128, 126, .12); color: var(--muted); }
.status-pending, .status-confirmed, .status-rejected, .status-cancelled { white-space: nowrap; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 13px; }
.data-table th, .data-table td { min-width: 92px; padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
.data-table th { background: #eaf0e8; color: var(--green-dark); font-weight: 700; white-space: nowrap; }
.data-table td:first-child { min-width: 130px; font-weight: 700; }
.data-table a { color: var(--green); text-decoration: none; white-space: nowrap; }
.table-actions { display: flex; gap: 12px; }
.data-table a.danger-link, .danger-link, .field-error { color: var(--red); }
.status-label { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.status-active { background: #e2f1e6; color: var(--green-dark); }
.status-inactive { background: #f4e9e6; color: var(--red); }
.ticket-page { padding: 42px 2% 52px; background: linear-gradient(180deg, rgba(232, 240, 230, 0.7), rgba(255, 255, 255, 0.92)); }
.ticket-shell { max-width: 760px; margin: 0 auto; }
.ticket-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.ticket-title-wrap { display: grid; gap: 4px; }
.ticket-header h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ticket-action-button { min-width: 130px; }
.ticket-card { position: relative; overflow: hidden; padding: 26px 24px 22px; border: 1px solid rgba(23, 107, 82, 0.18); border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(242,248,240,0.96)); box-shadow: 0 26px 60px rgba(12, 46, 35, 0.12); }
.ticket-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(110, 161, 72, 0.12), transparent 30%), radial-gradient(circle at bottom left, rgba(36, 104, 81, 0.12), transparent 32%); pointer-events: none; }
.ticket-topbar, .ticket-branding, .ticket-code-wrap, .ticket-grid, .ticket-footer { position: relative; z-index: 1; }
.ticket-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(23, 107, 82, 0.12); }
.ticket-branding { display: flex; align-items: center; gap: 14px; }
.ticket-branding .brand-mark { width: 54px; height: 54px; display: grid; place-content: center; border-radius: 16px; background: linear-gradient(135deg, var(--green), #3fa778); color: var(--lime); font-size: 27px; font-weight: 800; box-shadow: 0 10px 25px rgba(23, 107, 82, 0.25); }
.ticket-branding strong { display: block; font-size: 19px; }
.ticket-branding small { display: block; color: var(--muted); font-size: 12px; }
.ticket-status-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.ticket-code-wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; padding: 16px 18px; border: 1px dashed rgba(23, 107, 82, 0.38); border-radius: 16px; background: rgba(23, 107, 82, 0.05); }
.ticket-code-wrap span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.ticket-code-wrap strong { font-size: clamp(18px, 2vw, 26px); letter-spacing: .08em; }
.ticket-mini-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(23, 107, 82, 0.11); color: var(--green-dark); font-size: 12px; font-weight: 800; }
.ticket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.ticket-row { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid rgba(21, 60, 47, 0.09); border-radius: 12px; background: rgba(255,255,255,0.72); }
.ticket-row span { color: var(--muted); font-size: 12px; }
.ticket-row strong { font-size: 15px; }
.ticket-row-wide { grid-column: span 1; }
.ticket-footer { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(23, 107, 82, 0.12); }
.ticket-qr { display: grid; place-items: center; min-height: 120px; padding: 12px; border: 1px solid rgba(23, 107, 82, 0.12); border-radius: 14px; background: repeating-linear-gradient(45deg, rgba(23,107,82,.04), rgba(23,107,82,.04) 8px, rgba(255,255,255,.9) 8px, rgba(255,255,255,.9) 16px); }
.ticket-qr-code { display: grid; place-items: center; min-width: 130px; min-height: 76px; border: 2px solid var(--green-dark); border-radius: 10px; background: var(--white); font-size: 20px; font-weight: 800; letter-spacing: .18em; }
.ticket-note { color: var(--muted); font-size: 13px; }
.ticket-note p { margin: 0 0 6px; }
.empty-state { padding: 28px !important; color: var(--muted); text-align: center !important; }
.no-print { display: block; }
@media print {
    @page { size: A5 portrait; margin: 5mm; }
    .site-header,
    .site-footer,
    .no-print,
    .secondary-button,
    .primary-button,
    .ticket-action-button,
    .ticket-actions { display: none !important; }
    body { background: #fff; }
    .ticket-page { width: 100%; min-height: 0; padding: 0; background: #fff; }
    .ticket-shell,
    .page-shell { width: 100%; max-width: none; min-height: 0; margin: 0; }
    .ticket-header { display: none; }
    .ticket-card {
        display: grid;
        width: 100%;
        height: 52.5mm;
        grid-template-columns: minmax(0, 1fr) 29mm;
        grid-template-rows: auto 1fr auto;
        grid-template-areas: "topbar topbar" "grid footer" "code footer";
        gap: 1mm 2mm;
        padding: 2mm 3mm;
        border: 1px solid #123b2d;
        border-radius: 2mm;
        box-shadow: none;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .ticket-topbar { grid-area: topbar; margin: 0; padding: 0 0 1mm; }
    .ticket-branding { gap: 2mm; }
    .ticket-branding .brand-mark { width: 8mm; height: 8mm; border-radius: 2mm; font-size: 12px; box-shadow: none; }
    .ticket-branding strong { font-size: 9px; }
    .ticket-branding small,
    .ticket-mini-badge { font-size: 7px; }
    .ticket-status-pill { min-height: 0; padding: 1mm 2mm; font-size: 7px; }
    .ticket-code-wrap { grid-area: code; min-height: 0; margin: 0; padding: 1mm 2mm; border-radius: 1mm; }
    .ticket-code-wrap span,
    .ticket-row span { margin: 0; font-size: 7px; }
    .ticket-code-wrap strong { font-size: 12px; }
    .ticket-mini-badge { min-height: 0; padding: 1mm 2mm; }
    .ticket-grid { grid-area: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1mm; }
    .ticket-row { min-width: 0; gap: 0; padding: 1mm; border-radius: 1mm; }
    .ticket-row strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
    .ticket-footer { grid-area: footer; display: flex; flex-direction: column; justify-content: center; gap: 1mm; margin: 0; padding: 0; border: 0; }
    .ticket-qr { width: 100%; min-height: 20mm; padding: 1mm; border-radius: 1mm; }
    .ticket-qr-code { min-width: 0; width: 24mm; min-height: 12mm; border-radius: 1mm; font-size: 9px; }
    .ticket-note { display: none !important; }
}
.table-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 2%; color: var(--muted); font-size: 13px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination a { min-width: 34px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; text-align: center; text-decoration: none; }
.pagination a.current-page { border-color: var(--green); background: var(--green); color: var(--white); }
.admin-form { display: grid; gap: 26px; padding: 28px 2% 54px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.form-grid > label { display: grid; align-content: start; gap: 7px; font-size: 13px; font-weight: 700; }
.form-grid > label.form-wide { grid-column: 1 / -1; }
.admin-form input:focus, .admin-form select:focus, .search-form input:focus { outline: 3px solid rgba(23, 107, 82, .16); border-color: var(--green); }
.permission-fieldset { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.permission-fieldset legend { padding: 0 8px; font-size: 14px; font-weight: 700; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; }
.check-row { display: flex; min-height: 40px; align-items: center; gap: 9px; font-size: 13px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--green); }
.check-row span small { display: block; color: var(--muted); font-size: 11px; }
.permission-group-title { margin: 12px 0 8px; font-size: 14px; }
.admin-form textarea { width: 100%; min-height: 110px; padding: 10px 12px; resize: vertical; border: 1px solid #becdc1; border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; }
.admin-form textarea:focus { outline: 3px solid rgba(23, 107, 82, .16); border-color: var(--green); }
.check-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-error { display: block; font-size: 12px; font-weight: 400; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.confirm-panel { max-width: 720px; margin: 34px auto; padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.confirm-panel > p { margin-bottom: 24px; }
.danger-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 16px; border: 0; border-radius: 6px; background: var(--red); color: var(--white); cursor: pointer; font: inherit; }
.error-page { max-width: 560px; margin: 100px auto; text-align: center; }
.error-page h1 { font-size: 34px; }
.error-page p:not(.eyebrow) { color: var(--muted); }
.fatal-error { padding: 3rem; font-family: Tahoma, "Segoe UI", sans-serif; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 20px max(24px, calc((100vw - 1160px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 700px) {
    .site-header { min-height: 70px; flex-wrap: wrap; gap: 8px 14px; padding: 12px 14px; }
    .top-nav { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; font-size: 12px; }
    .brand strong { font-size: 13px; }
    .page-shell { width: min(100% - 28px, 560px); }
    .home-intro { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding: 48px 4%; }
    .intro-copy h1 { font-size: 38px; }
    .intro-stamp { width: 170px; }
    .intro-stamp span:first-child { font-size: 48px; }
    .home-note { grid-template-columns: 40px 1fr; padding: 28px 4%; }
    .auth-layout { min-height: auto; grid-template-columns: 1fr; gap: 12px; padding: 36px 2% 50px; }
    .auth-aside { padding: 10px 4%; }
    .auth-aside h1 { font-size: 32px; }
    .auth-form { padding: 24px 20px; }
    .dashboard-heading { padding: 38px 2% 20px; }
    .dashboard-heading h1 { font-size: 28px; }
    .dashboard-summary { grid-template-columns: 1fr; gap: 18px; padding: 24px 2%; }
    .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 2% 20px; }
    .dashboard-actions { padding: 0 2% 18px; }
    .admin-page-heading { align-items: start; flex-direction: column; padding: 34px 2% 20px; }
    .form-grid, .check-grid { grid-template-columns: 1fr; }
    .form-grid > label.form-wide { grid-column: auto; }
    .search-form { align-items: stretch; flex-direction: column; }
    .confirm-panel { margin: 24px auto; padding: 18px; }
    .site-footer { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.news-homepage {
    --news-ink: #1b211f;
    --news-paper: #f1f2ed;
    --news-muted: #707a75;
    --news-line: #d9ded7;
    --news-green: #1e5a48;
    --news-lime: #d4ef72;
    --news-red: #d84737;
    background: var(--news-paper);
    color: var(--news-ink);
}

.news-homepage .news-header {
    min-height: 88px;
    padding-inline: max(22px, calc((100vw - 1320px) / 2));
    border-bottom: 0;
    background: var(--news-ink);
    color: #fff;
}

.news-homepage .news-header .brand-mark { border-radius: 8px; background: var(--news-lime); color: var(--news-ink); }
.news-homepage .news-header .brand small { color: #bec7c0; }
.news-homepage .news-header .top-nav { gap: 20px; }
.news-homepage .news-header .top-nav a:hover { color: var(--news-lime); }
.news-homepage .news-header .nav-login { border-color: var(--news-lime); color: var(--news-lime); }
.news-homepage .news-header .wallet-nav-link { color: var(--news-lime); font-weight: 800; }
.news-homepage .news-header .text-button { color: #fff; }
.news-homepage .news-shell { width: min(1320px, calc(100% - 40px)); min-height: auto; }
.news-homepage .sports-desk, .news-homepage .news-lead-grid, .news-homepage .latest-section, .news-homepage .story-grid { width: 100%; min-width: 0; max-width: 100%; }
.sports-desk { padding-bottom: 42px; }

.news-dateline { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--news-line); color: var(--news-muted); font-size: 11px; }
.news-dateline span:first-child { color: var(--news-ink); font-weight: 800; }
.news-dateline a { color: var(--news-green); font-weight: 700; text-decoration: none; }
.breaking-news { display: grid; min-height: 44px; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 15px; margin-top: 15px; overflow: hidden; border: 1px solid #e7c1bb; background: #fff9f6; }
.breaking-label { display: flex; height: 100%; min-width: 106px; align-items: center; justify-content: center; gap: 8px; background: var(--news-red); color: #fff; font-size: 12px; font-weight: 800; }
.breaking-label i { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.breaking-window { overflow: hidden; white-space: nowrap; }
.breaking-track { display: flex; width: max-content; gap: 70px; animation: news-ticker 36s linear infinite; color: #522c27; font-size: 12px; }
.breaking-news:hover .breaking-track { animation-play-state: paused; }
.breaking-live { padding-inline: 12px; color: var(--news-red); font-size: 11px; font-weight: 800; }

@keyframes news-ticker { from { transform: translateX(0); } to { transform: translateX(34%); } }

.sport-strip { display: flex; min-height: 58px; align-items: center; gap: 25px; overflow-x: auto; border-bottom: 1px solid var(--news-line); white-space: nowrap; scrollbar-width: thin; }
.sport-strip a { color: #434c47; font-size: 13px; font-weight: 700; text-decoration: none; transition: color .18s ease; }
.sport-strip a:hover { color: var(--news-red); }
.sport-strip-title { color: var(--news-green); font-size: 12px; font-weight: 900; }
.sport-strip .all-sports-link { margin-inline-start: auto; color: var(--news-green); }
.news-lead-grid { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(275px,.82fr); gap: 20px; padding-top: 23px; }
.lead-carousel { position: relative; min-width: 0; height: 520px; overflow: hidden; background: #18221e; color: #fff; isolation: isolate; }
.lead-slides, .lead-slide { position: absolute; inset: 0; }
.lead-slide { visibility: hidden; opacity: 0; transition: opacity .55s ease, visibility .55s ease; }
.lead-slide.is-active { visibility: visible; opacity: 1; }
.lead-image, .lead-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.lead-image { object-fit: cover; object-position: center 43%; transform: scale(1.015); transition: transform 7s ease; }
.lead-slide.is-active .lead-image { transform: scale(1.06); }
.lead-shade { background: linear-gradient(0deg, rgba(13,19,17,.92), rgba(13,19,17,.64) 33%, rgba(13,19,17,.08) 77%), linear-gradient(90deg, rgba(13,19,17,.3), transparent 78%); }
.lead-copy { position: absolute; right: 50px; bottom: 78px; left: 50px; max-width: 730px; }
.lead-kickers { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.lead-kickers span { padding: 4px 10px; background: var(--news-lime); color: var(--news-ink); font-size: 11px; font-weight: 900; }
.lead-kickers span + span { background: rgba(255,255,255,.17); color: #fff; }
.lead-copy h1 { max-width: 720px; margin-bottom: 12px; font-size: 44px; font-weight: 900; line-height: 1.48; }
.lead-copy p { max-width: 620px; margin-bottom: 18px; color: #e0e4df; font-size: 14px; line-height: 1.9; }
.lead-meta { display: flex; gap: 20px; color: #c2c9c3; font-size: 11px; }
.lead-meta > :not(:first-child)::before { margin-inline-end: 20px; color: var(--news-lime); content: "•"; }
.carousel-toolbar { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 0 50px; border-top: 1px solid rgba(255,255,255,.2); background: rgba(14,20,18,.58); }
.carousel-controls, .carousel-dots { display: flex; align-items: center; gap: 9px; }
.carousel-arrow { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font: inherit; font-size: 26px; line-height: 1; }
.carousel-arrow:hover { background: var(--news-lime); color: var(--news-ink); }
.carousel-count { margin-inline-start: 7px; color: #e1e5df; font-size: 11px; font-variant-numeric: tabular-nums; }
.carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: rgba(255,255,255,.55); cursor: pointer; transition: width .2s ease, background .2s ease; }
.carousel-dot.is-active { width: 25px; background: var(--news-lime); }

.lead-rail { display: flex; min-width: 0; flex-direction: column; padding: 18px 21px 16px; border-top: 3px solid var(--news-red); background: #fff; }
.rail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--news-line); }
.rail-heading h2 { margin: 0; font-size: 17px; font-weight: 900; }
.rail-heading > span { color: var(--news-muted); font-size: 10px; }
.rail-story { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--news-line); }
.rail-number { padding-top: 2px; color: #a4ada6; font-size: 12px; font-variant-numeric: tabular-nums; }
.rail-category { color: var(--news-red); font-size: 10px; font-weight: 800; }
.rail-story h3 { margin: 4px 0 0; font-size: 13px; font-weight: 800; line-height: 1.8; }
.rail-signature { display: grid; flex: 1; align-content: end; justify-items: start; min-height: 80px; padding-top: 14px; color: var(--news-muted); font-size: 10px; }
.rail-signature strong { color: var(--news-green); font-size: 18px; }
.latest-section { padding-top: 53px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 2px solid var(--news-ink); }
.section-kicker { color: var(--news-red); font-size: 11px; font-weight: 800; }
.section-heading h2 { margin: 3px 0 0; font-size: 25px; font-weight: 900; }
.section-heading p { margin: 0; color: var(--news-muted); font-size: 12px; }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 19px; scrollbar-width: thin; }
.category-tab { flex: 0 0 auto; min-height: 34px; padding: 5px 13px; border: 1px solid var(--news-line); border-radius: 3px; background: transparent; color: #4f5953; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.category-tab:hover { border-color: var(--news-green); color: var(--news-green); }
.category-tab.is-active { border-color: var(--news-ink); background: var(--news-ink); color: #fff; }
.story-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 27px 22px; }
.story-card { min-width: 0; background: #fff; animation: story-in .4s both; }
.story-card:nth-child(2) { animation-delay: .05s; }
.story-card:nth-child(3) { animation-delay: .1s; }
.story-card[hidden] { display: none; }
.story-image-wrap { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #d9ded7; }
.story-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.story-card:hover .story-image-wrap img { transform: scale(1.045); }
.story-sport-label { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; background: var(--news-lime); color: var(--news-ink); font-size: 10px; font-weight: 900; }
.story-copy { padding: 15px 17px 14px; }
.story-overline { display: flex; justify-content: space-between; gap: 12px; color: var(--news-red); font-size: 10px; font-weight: 800; }
.story-overline span + span { color: var(--news-muted); font-weight: 500; }
.story-copy h3 { min-height: 54px; margin: 8px 0; font-size: 17px; font-weight: 900; line-height: 1.65; }
.story-copy p { min-height: 47px; margin-bottom: 12px; color: var(--news-muted); font-size: 12px; line-height: 1.9; }
.story-byline { display: flex; align-items: center; gap: 7px; padding-top: 10px; border-top: 1px solid var(--news-line); color: #747c76; font-size: 10px; }
.byline-mark { display: grid; width: 22px; height: 22px; place-items: center; background: var(--news-green); color: #fff; font-size: 12px; font-weight: 900; }
.story-arrow { margin-inline-start: auto; color: var(--news-red); font-size: 15px; }
.filter-empty { padding: 32px 0; color: var(--news-muted); text-align: center; }
.news-footer-band { display: flex; align-items: center; gap: 17px; margin-top: 52px; padding: 22px 25px; background: var(--news-green); color: #fff; }
.footer-band-mark { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--news-lime); color: var(--news-ink); font-size: 21px; font-weight: 900; }
.news-footer-band > div { flex: 1; }
.news-footer-band > div > span { color: #d5e1da; font-size: 10px; }
.news-footer-band h2 { margin: 0; font-size: 19px; }
.news-footer-band > a { display: flex; align-items: center; gap: 12px; color: var(--news-lime); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }

@keyframes story-in { from { opacity: .65; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
    .news-lead-grid { grid-template-columns: minmax(0,1.5fr) minmax(235px,.8fr); gap: 14px; }
    .lead-carousel { height: 450px; }
    .lead-rail { padding-inline: 15px; }
    .story-grid { gap: 18px 14px; }
    .story-copy { padding-inline: 13px; }
    .story-copy h3 { font-size: 15px; }
}

@media (max-width: 680px) {
    .news-homepage .news-header { min-height: 70px; padding: 10px 14px; }
    .news-homepage .news-header .top-nav { gap: 12px; font-size: 12px; }
    .news-homepage .news-header .top-nav a[href="/admin/sports"], .news-homepage .news-header .top-nav a[href="/admin/facilities"] { display: none; }
    .news-homepage .news-shell { width: calc(100% - 24px); }
    .news-dateline { min-height: 36px; gap: 8px; font-size: 9px; }
    .news-dateline span:nth-child(2) { display: none; }
    .breaking-news { min-height: 41px; grid-template-columns: auto minmax(0,1fr); gap: 0; margin-top: 11px; }
    .breaking-label { min-width: 82px; font-size: 10px; }
    .breaking-live { display: none; }
    .breaking-track { gap: 40px; font-size: 10px; }
    .sport-strip { min-height: 48px; gap: 16px; }
    .sport-strip-title { display: none; }
    .sport-strip a { font-size: 11px; }
    .sport-strip .all-sports-link { display: none; }
    .news-homepage .news-lead-grid { width: 100%; min-width: 0; grid-template-columns: minmax(0,1fr); gap: 13px; padding-top: 13px; }
    .lead-carousel, .lead-rail { width: 100%; min-width: 0; }
    .lead-carousel { height: auto; aspect-ratio: 1 / 1.04; }
    .lead-image { object-position: center; }
    .lead-copy { right: 19px; bottom: 68px; left: 19px; }
    .lead-copy h1 { margin-bottom: 7px; font-size: 28px; line-height: 1.55; }
    .lead-copy p { display: -webkit-box; overflow: hidden; margin-bottom: 10px; font-size: 11px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .lead-kickers { margin-bottom: 7px; }
    .lead-meta { font-size: 9px; }
    .carousel-toolbar { min-height: 51px; padding-inline: 17px; }
    .carousel-arrow { width: 30px; height: 30px; }
    .lead-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; padding: 14px; }
    .rail-heading, .rail-signature { grid-column: 1 / -1; }
    .rail-story { grid-template-columns: 25px 1fr; gap: 7px; padding: 10px 0; }
    .rail-story h3 { font-size: 11px; }
    .rail-category { font-size: 9px; }
    .rail-signature { min-height: auto; }
    .latest-section { padding-top: 34px; }
    .section-heading { align-items: start; }
    .section-heading h2 { font-size: 20px; }
    .section-heading p { display: none; }
    .category-tabs { margin-inline: -1px; padding-block: 12px 15px; }
    .category-tab { min-height: 32px; padding-inline: 11px; }
    .story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .story-copy { padding: 10px; }
    .story-overline { font-size: 9px; }
    .story-copy h3 { min-height: 64px; margin: 6px 0; font-size: 13px; line-height: 1.6; }
    .story-copy p { display: none; }
    .story-byline { gap: 5px; font-size: 9px; }
    .byline-mark { width: 19px; height: 19px; }
    .news-footer-band { gap: 10px; margin-top: 32px; padding: 16px 12px; }
    .footer-band-mark { width: 35px; height: 35px; }
    .news-footer-band h2 { font-size: 14px; }
    .news-footer-band > a { gap: 5px; font-size: 10px; }
}

@media (max-width: 380px) {
    .news-homepage .news-header .brand strong { font-size: 12px; }
    .news-homepage .news-header .brand small { font-size: 9px; }
    .news-homepage .news-header .brand-mark { width: 36px; height: 36px; }
    .lead-carousel { aspect-ratio: 1 / 1.15; }
    .story-grid { grid-template-columns: 1fr; }
    .story-copy h3 { min-height: auto; font-size: 15px; }
    .story-copy p { display: block; min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .breaking-track { animation: none; }
    .lead-slide, .lead-image, .story-card, .story-image-wrap img { animation: none; transition: none; }
}

.jalali-picker {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.jalali-date-value {
    min-width: 0;
    flex: 1 1 auto;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #becdc1;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
}

.jalali-date-toggle {
    min-height: 42px;
    padding: 7px 12px;
    border: 1px solid #becdc1;
    border-radius: 6px;
    background: #fff;
    color: var(--green-dark);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.jalali-picker button:focus-visible,
.jalali-picker select:focus-visible,
.jalali-date-value:focus-visible {
    outline: 3px solid rgba(23, 107, 82, .2);
    outline-offset: 2px;
}

.jalali-picker-controls {
    display: contents;
}

.jalali-time-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.jalali-time-label input {
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid #becdc1;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.jalali-calendar {
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    inset-inline-start: 0;
    width: min(310px, calc(100vw - 38px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 58, 43, .16);
}

.jalali-calendar[hidden] { display: none; }

.jalali-calendar-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.jalali-calendar-selectors select {
    min-width: 0;
    min-height: 40px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.jalali-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    text-align: center;
}

.jalali-weekday,
.jalali-calendar-spacer,
.jalali-day {
    display: grid;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1;
    place-items: center;
}

.jalali-weekday { color: var(--muted); font-size: 11px; font-weight: 700; }

.jalali-day {
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.jalali-day:hover,
.jalali-day.is-today { background: #eaf2e9; color: var(--green-dark); }

.jalali-day.is-selected { background: var(--green); color: #fff; }
.jalali-day:disabled { color: #a7b0aa; cursor: not-allowed; }

.league-empty-state {
    margin: 18px 0 0;
    padding: 22px;
    border-inline-start: 3px solid var(--news-lime);
    background: #fff;
    color: var(--news-muted);
}

.league-editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0 14px;
}

.league-editor-heading h2,
.wallet-workspace h2 { margin-bottom: 4px; font-size: 19px; }
.league-editor-heading p { margin: 0; color: var(--muted); font-size: 12px; }

.league-team-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.5fr) repeat(5, minmax(75px, .65fr)) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.league-team-row label { display: grid; gap: 5px; font-size: 11px; font-weight: 700; }
.league-team-row input { min-width: 0; }
.league-team-row button { min-height: 38px; border: 0; background: transparent; cursor: pointer; font: inherit; }

.wallet-workspace {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
    gap: 30px;
    margin-top: 28px;
}

.wallet-workspace h2 { margin-bottom: 14px; }
.wallet-pending-note { color: var(--news-red); font-weight: 700; }

@media (max-width: 760px) {
    .league-team-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .league-team-row label:first-child { grid-column: span 2; }
    .league-team-row button { justify-self: start; }
    .wallet-workspace { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 420px) {
    .jalali-picker { flex-wrap: wrap; }
    .jalali-date-value { flex-basis: calc(100% - 82px); }
    .jalali-calendar { width: min(300px, calc(100vw - 32px)); }
    .league-editor-heading { align-items: flex-start; flex-direction: column; }
    .league-team-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .league-team-row label:first-child { grid-column: 1 / -1; }
}

.news-homepage { --news-muted: #5f7068; }
.news-homepage .story-copy p,
.news-homepage .story-byline { color: #52655c; }
.news-homepage .story-overline span + span { color: #5f7068; }
.news-homepage .rail-number { color: #5f7068; }

/* Moghan Sport visual refresh */
:root {
    --ink: #16332d;
    --muted: #5f746b;
    --paper: #f1f5f1;
    --white: #fff;
    --green: #176448;
    --green-dark: #103f31;
    --lime: #d7ed79;
    --line: #d6e1da;
    --red: #a13f32;
    --shadow: 0 12px 34px rgba(21, 53, 42, .08);
}

html { scroll-padding-top: 100px; }
body { background: linear-gradient(180deg, #f6f8f6 0%, var(--paper) 100%); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e0a63c; outline-offset: 3px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    border-bottom-color: rgba(214, 225, 218, .88);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 18px rgba(19, 47, 37, .045);
    backdrop-filter: blur(14px);
}
.brand { min-width: 0; }
.brand-mark { flex: 0 0 auto; border-radius: 8px; }
.top-nav { align-items: center; gap: 7px; }
.top-nav a, .top-nav .text-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 6px;
    color: var(--ink);
    transition: background-color .16s ease, color .16s ease;
}
.top-nav a:hover, .top-nav .text-button:hover { background: #eaf2ed; color: var(--green-dark); }
.top-nav .nav-login { min-height: 40px; border-color: var(--green); color: var(--green-dark); }
.page-shell { width: min(1200px, calc(100% - 48px)); }
.site-footer { border-top-color: var(--line); background: #e9efeb; color: #53685f; }

.primary-button, .secondary-button, .admin-nav-link, .danger-button {
    min-height: 44px;
    border-radius: 6px;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.primary-button { background: var(--green); box-shadow: 0 3px 0 rgba(10, 56, 40, .12); }
.primary-button:hover { transform: translateY(-1px); background: var(--green-dark); box-shadow: 0 6px 14px rgba(16, 63, 49, .16); }
.secondary-button, .admin-nav-link { border-color: #cbd9d0; background: #fff; color: var(--green-dark); }
.secondary-button:hover, .admin-nav-link:hover { border-color: var(--green); background: #f0f6f1; }
.danger-button { background: #a13f32; }
.form-submit { margin-top: 10px; }

.auth-layout { min-height: 620px; gap: 7%; }
.auth-aside { position: relative; padding: 36px 0; }
.auth-aside::before {
    display: block;
    width: 54px;
    height: 5px;
    margin-bottom: 24px;
    border-radius: 4px;
    background: var(--lime);
    content: "";
}
.auth-aside h1 { max-width: 500px; color: var(--green-dark); line-height: 1.5; }
.auth-form { gap: 12px; padding: 34px; border-color: #d9e4dc; border-radius: 8px; box-shadow: 0 18px 48px rgba(19, 53, 41, .09); }
.auth-form input, .admin-form input:not([type="checkbox"]), .admin-form select, .admin-form textarea,
.search-form input, .search-form select, .facility-filters input, .facility-filters select {
    min-height: 46px;
    border-color: #c7d5cc;
    border-radius: 6px;
}
.auth-form input:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus,
.search-form input:focus, .search-form select:focus, .facility-filters input:focus, .facility-filters select:focus {
    outline: 3px solid rgba(23, 100, 72, .18);
    outline-offset: 1px;
    border-color: var(--green);
}
.field-error { margin-top: 2px; font-size: 13px; }
.notice { border-radius: 6px; }

.dashboard-heading { padding-top: 48px; }
.dashboard-heading h1 { color: var(--green-dark); }
.dashboard-summary { gap: 16px 28px; }
.dashboard-summary > div { min-width: 0; padding: 14px 16px; border-inline-start: 3px solid #b7d48f; background: rgba(255, 255, 255, .72); }
.dashboard-summary strong { overflow-wrap: anywhere; }
.dashboard-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat-card { min-height: 132px; border-radius: 8px; box-shadow: 0 5px 18px rgba(18, 58, 43, .045); }
.dashboard-actions { gap: 10px; }
.admin-nav { gap: 8px; }
.admin-nav-link { font-size: 13px; }
.admin-page-heading { border-bottom-color: var(--line); }
.admin-page-heading h1 { color: var(--green-dark); }
.admin-form { gap: 22px; }
.form-grid { gap: 18px 20px; }
.form-grid > label { gap: 8px; }
.check-grid { gap: 10px 18px; }
.check-row { min-height: 44px; }
.reservation-card { border: 1px solid #dce6df; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(16, 75, 59, .045); }
.slot-picker { border-color: #d5e2d9; border-radius: 8px; background: #f9fbf9; }
.slot-button { min-height: 42px; border-radius: 6px; background: #f1f6f2; }
.slot-button[aria-pressed="true"] { border-color: var(--green-dark); background: var(--green-dark); color: #fff; }
.data-table { border-radius: 8px; overflow: hidden; }
.data-table th { background: #e9f0eb; }
.data-table th, .data-table td { padding: 13px 14px; }
.data-table tbody tr:hover { background: #f6f9f6; }
.table-scroll { border: 1px solid var(--line); border-radius: 8px; }
.table-actions { align-items: center; gap: 8px; }
.confirm-panel { border-radius: 8px; box-shadow: var(--shadow); }

.news-homepage {
    --news-ink: #142b25;
    --news-paper: #f0f4f1;
    --news-muted: #5f7068;
    --news-line: #d6e0d9;
    --news-green: #176448;
    --news-lime: #d7ed79;
    --news-red: #b14435;
    background: var(--news-paper);
}
.news-homepage .news-header { min-height: 78px; background: #142b25; box-shadow: 0 5px 20px rgba(13, 35, 28, .17); }
.news-homepage .news-header .brand-mark { border-radius: 7px; }
.news-homepage .news-header .top-nav a, .news-homepage .news-header .top-nav .text-button { color: #f4f7f4; }
.news-homepage .news-header .top-nav a:hover, .news-homepage .news-header .top-nav .text-button:hover { background: rgba(255, 255, 255, .1); color: var(--news-lime); }
.news-homepage .news-header .nav-login { border-color: var(--news-lime); color: var(--news-lime); }
.news-homepage .news-shell { width: min(1280px, calc(100% - 48px)); }
.sports-desk { padding-bottom: 52px; }
.news-dateline { min-height: 46px; font-size: 12px; }
.breaking-news { border: 0; border-inline-start: 4px solid var(--news-red); border-radius: 6px; background: #fff; box-shadow: 0 4px 16px rgba(27, 47, 38, .045); }
.breaking-label { min-height: 44px; border-radius: 0 5px 5px 0; }
.sport-strip { gap: 20px; }
.sport-strip a { min-height: 42px; display: inline-flex; align-items: center; }
.news-lead-grid { gap: 18px; padding-top: 20px; }
.lead-carousel { border-radius: 8px; box-shadow: 0 12px 32px rgba(13, 29, 23, .15); }
.lead-image { transform: none; }
.lead-slide.is-active .lead-image { transform: scale(1.025); }
.lead-shade { background: linear-gradient(0deg, rgba(13, 25, 20, .94), rgba(13, 25, 20, .63) 36%, rgba(13, 25, 20, .04) 82%); }
.lead-copy h1 { max-width: 700px; }
.carousel-toolbar { background: rgba(13, 25, 20, .72); }
.carousel-arrow { width: 40px; height: 40px; }
.lead-rail { border-top: 4px solid var(--news-red); border-radius: 8px; box-shadow: 0 8px 26px rgba(20, 43, 34, .055); }
.rail-story { padding: 16px 0; }
.rail-story a { min-height: 42px; align-items: start; }
.latest-section { padding-top: 46px; }
.section-heading { border-bottom-width: 2px; border-bottom-color: var(--news-green); }
.category-tab { min-height: 40px; padding-inline: 15px; border-radius: 6px; font-size: 12px; }
.news-homepage .carousel-dots .carousel-dot { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: transparent; }
.news-homepage .carousel-dots .carousel-dot::before { width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .65); content: ""; transition: width .2s ease, background-color .2s ease; }
.news-homepage .carousel-dots .carousel-dot.is-active::before { width: 20px; background: var(--news-lime); }
.story-grid { gap: 22px 18px; }
.story-card { overflow: hidden; border: 1px solid #dce5de; border-radius: 8px; box-shadow: 0 5px 18px rgba(22, 46, 35, .045); transition: transform .18s ease, box-shadow .18s ease; }
.story-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(22, 46, 35, .11); }
.story-copy { padding: 16px; }
.story-copy h3 { min-height: 0; font-size: 16px; line-height: 1.75; }
.story-copy p { min-height: 0; color: #52655c; }
.story-byline { color: #52655c; }
.news-footer-band { border-radius: 8px; }
.news-archive, .news-article-page { padding-block: 34px 60px; }
.news-archive-heading { align-items: center; border-bottom-color: var(--news-green); }
.news-archive-heading h1, .news-article h1 { color: var(--news-ink); }
.news-search-form { flex-wrap: wrap; }
.news-search-form input, .news-search-form select, .news-search-form button { min-height: 44px; border-radius: 6px; }
.news-search-form button { background: var(--news-green); }
.news-pagination a, .news-pagination span { min-height: 40px; border-radius: 6px; }
.news-article-header { text-align: start; }
.news-article-meta { justify-content: flex-start; }
.news-article-figure { overflow: hidden; border-radius: 8px; }
.news-article-figure img { border-radius: 8px 8px 0 0; }
.news-article-body { color: #263c33; }

.facility-directory { padding-block: 32px 60px; }
.facility-directory-heading { border-bottom-color: var(--green); }
.facility-grid { gap: 18px; }
.facility-card { border-radius: 8px; box-shadow: 0 6px 20px rgba(18, 58, 43, .055); transition: transform .18s ease, box-shadow .18s ease; }
.facility-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(18, 58, 43, .1); }
.facility-card-image { background: #e4ece6; }
.facility-card-content { gap: 10px; padding: 18px; }
.facility-card-details { gap: 9px; }
.facility-status { min-height: 34px; border-radius: 5px; }
.facility-pagination a { min-width: 40px; min-height: 40px; border-radius: 6px; }

@media screen {
    .ticket-page { background: linear-gradient(180deg, #e8f0eb, #f5f7f4); }
    .ticket-card { border-radius: 8px; box-shadow: 0 14px 36px rgba(12, 46, 35, .1); }
}

@media (max-width: 900px) {
    .page-shell, .news-homepage .news-shell { width: min(100% - 36px, 760px); }
    .dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .news-lead-grid { grid-template-columns: minmax(0, 1.45fr) minmax(230px, .8fr); }
    .lead-carousel { min-height: 420px; }
    .facility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    html { scroll-padding-top: 20px; }
    .site-header { position: relative; min-height: 0; gap: 10px; padding: 12px 18px; }
    .top-nav { gap: 4px; }
    .top-nav a, .top-nav .text-button { min-height: 42px; padding-inline: 10px; }
    .page-shell, .news-homepage .news-shell { width: calc(100% - 28px); }
    .site-footer { flex-wrap: wrap; }
    .auth-layout { gap: 18px; padding-block: 28px 40px; }
    .auth-aside { padding: 10px 4%; }
    .auth-aside::before { margin-bottom: 14px; }
    .auth-form { padding: 26px 20px; }
    .dashboard-heading { padding: 34px 2% 18px; }
    .dashboard-summary { gap: 8px; }
    .dashboard-summary > div { padding: 12px; }
    .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .stat-card { min-height: 120px; padding: 15px; }
    .dashboard-actions > a { flex: 1 1 180px; }
    .admin-nav { padding-inline: 2%; }
    .admin-nav-link { min-height: 42px; }
    .admin-page-heading { gap: 14px; }
    .form-grid, .check-grid { grid-template-columns: 1fr; }
    .form-grid > label.form-wide { grid-column: auto; }
    .reservation-card { margin-top: 18px; }
    .search-form { padding-inline: 14px; }
    .news-homepage .news-header { position: relative; min-height: 0; padding: 12px 16px; }
    .news-homepage .news-header .top-nav { gap: 4px; }
    .news-homepage .news-shell { width: calc(100% - 24px); }
    .news-dateline { font-size: 10px; }
    .news-lead-grid { grid-template-columns: 1fr; }
    .lead-carousel { min-height: 0; height: auto; aspect-ratio: 1 / 1.02; }
    .lead-copy { inset-inline: 18px; bottom: 67px; }
    .lead-copy h1 { font-size: 25px; }
    .lead-copy p { font-size: 12px; }
    .lead-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
    .rail-heading, .rail-signature { grid-column: 1 / -1; }
    .rail-story { min-width: 0; }
    .section-heading { align-items: start; }
    .section-heading p { display: none; }
    .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .story-copy { padding: 12px; }
    .story-copy h3 { font-size: 14px; }
    .news-footer-band { flex-wrap: wrap; }
    .news-footer-band > a { margin-inline-start: auto; }
    .news-archive-heading { align-items: stretch; flex-direction: column; }
    .news-search-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, .65fr); }
    .news-search-form input { grid-column: 1 / -1; min-width: 0; }
    .news-article h1 { font-size: 27px; }
    .news-article-summary, .news-article-body { font-size: 15px; }
    .facility-directory-heading { align-items: stretch; flex-direction: column; }
    .facility-filters { display: grid; grid-template-columns: 1fr; }
    .facility-filters input, .facility-filters select, .facility-filters button { width: 100%; }
}

@media (max-width: 430px) {
    .site-header { padding-inline: 14px; }
    .brand { gap: 8px; }
    .brand small { font-size: 10px; }
    .top-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .top-nav a, .top-nav .text-button { flex: 0 0 auto; padding-inline: 8px; font-size: 11px; }
    .dashboard-stats, .facility-grid, .story-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: 106px; }
    .news-homepage .news-header .top-nav { flex-wrap: wrap; }
    .news-homepage .news-header .top-nav a { min-height: 38px; }
    .lead-carousel { aspect-ratio: 1 / 1.12; }
    .lead-copy h1 { font-size: 23px; }
    .story-copy h3 { font-size: 16px; }
    .story-copy p { display: block; }
    .facility-card-footer { align-items: stretch; flex-direction: column; }
    .facility-book-link { width: 100%; }
    .news-footer-band h2 { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .primary-button, .secondary-button, .admin-nav-link, .facility-card, .story-card { transition: none; }
    .facility-card:hover, .story-card:hover { transform: none; }
}

.lead-story-link { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.rail-story a { display: grid; grid-column: 1 / -1; grid-template-columns: 32px 1fr; gap: 10px; color: inherit; text-decoration: none; }
.rail-story a:hover h3, .archive-link:hover { color: var(--news-red); }
.story-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.story-card-link:focus-visible, .lead-story-link:focus-visible, .rail-story a:focus-visible { outline: 3px solid var(--news-red); outline-offset: 3px; }

.wallet-nav-link { color: var(--green-dark); font-weight: 800; }

.league-table-section {
    margin-top: 28px;
}

.section-heading-inline {
    padding-bottom: 14px;
    border-bottom: 2px solid var(--news-ink);
}

.league-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.league-card {
    padding: 18px 16px 14px;
    border: 1px solid var(--news-line);
    background: #fff;
    box-shadow: 0 8px 20px rgba(18, 31, 25, .025);
}

.league-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.league-sport {
    display: inline-block;
    color: var(--news-red);
    font-size: 10px;
    font-weight: 800;
}

.league-card h3 {
    margin: 5px 0 0;
    font-size: 18px;
}

.league-source-meta {
    margin: 8px 0 10px;
    color: var(--news-muted);
    font-size: 10px;
}

.league-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    background: #eef7ea;
    color: var(--news-green);
    font-size: 10px;
    font-weight: 800;
}

.table-scroll-mini {
    overflow-x: auto;
}

.table-scroll-mini table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.table-scroll-mini th,
.table-scroll-mini td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid var(--news-line);
}

.table-scroll-mini th:first-child,
.table-scroll-mini td:first-child {
    text-align: right;
}

.wallet-panel {
    margin: 26px 0 10px;
    padding: 28px 26px 20px;
    border: 1px solid #d5ddcf;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9f4 100%);
    box-shadow: 0 12px 26px rgba(26, 38, 32, .04);
}

.wallet-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.wallet-panel-header h2 {
    margin: 0;
    font-size: 22px;
}

.wallet-panel-header strong {
    font-size: 26px;
    color: var(--news-green);
}

.wallet-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.wallet-card-grid article {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 14px;
    border: 1px solid #dfe8de;
    background: #fff;
}

.wallet-card-grid span {
    color: var(--news-muted);
    font-size: 11px;
}

.wallet-card-grid strong {
    font-size: 19px;
}

@media (max-width: 900px) {
    .wallet-card-grid,
    .league-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .wallet-panel {
        padding: 20px 16px 18px;
    }

    .wallet-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wallet-card-grid,
    .league-grid {
        grid-template-columns: 1fr;
    }
}
.archive-link { flex: 0 0 auto; color: var(--news-green); font-size: 12px; font-weight: 800; text-decoration: none; }
.news-archive, .news-article-page { padding: 28px 0 54px; }
.news-archive-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--news-ink); }
.news-archive-heading h1, .news-article h1 { margin: 3px 0 0; font-size: 32px; font-weight: 900; line-height: 1.5; }
.news-archive-heading p { margin: 7px 0 0; color: var(--news-muted); font-size: 13px; }
.news-search-form { display: flex; align-items: center; gap: 8px; }
.news-search-form input, .news-search-form select { min-height: 40px; padding: 7px 11px; border: 1px solid var(--news-line); border-radius: 2px; background: #fff; color: var(--news-ink); font: inherit; font-size: 12px; }
.news-search-form button { min-height: 40px; padding: 7px 16px; border: 0; background: var(--news-ink); color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; }
.news-result-count { margin: 18px 0 0; color: var(--news-muted); font-size: 12px; }
.news-pagination { display: flex; justify-content: center; gap: 7px; margin-top: 32px; }
.news-pagination a, .news-pagination span { min-width: 36px; padding: 8px 11px; border: 1px solid var(--news-line); color: var(--news-ink); text-align: center; text-decoration: none; }
.news-pagination .is-current { border-color: var(--news-ink); background: var(--news-ink); color: #fff; }
.news-empty { padding: 50px 15px; color: var(--news-muted); text-align: center; }
.news-article { max-width: 980px; margin: 0 auto; }
.news-breadcrumbs { display: flex; gap: 9px; margin-bottom: 25px; color: var(--news-muted); font-size: 12px; }
.news-breadcrumbs a { color: var(--news-green); text-decoration: none; }
.news-article-header { max-width: 800px; margin: 0 auto 25px; text-align: center; }
.news-article-category { color: var(--news-red); font-size: 12px; font-weight: 900; }
.news-article h1 { margin: 8px 0 12px; font-size: 38px; }
.news-article-summary { color: #4f5953; font-size: 16px; line-height: 2; }
.news-article-meta { display: flex; justify-content: center; gap: 18px; color: var(--news-muted); font-size: 11px; }
.news-article-figure { margin: 0 0 30px; background: #fff; }
.news-article-figure img { display: block; width: 100%; max-height: 590px; object-fit: contain; background: #e5e8e2; }
.news-article-figure figcaption { padding: 10px 13px; color: var(--news-muted); font-size: 11px; line-height: 1.8; }
.news-article-figure figcaption a { color: var(--news-green); }
.news-article-body { max-width: 760px; margin: 0 auto; color: #272f2b; font-size: 16px; line-height: 2.2; }
.news-article-body p { margin: 0 0 20px; }
.news-sources { max-width: 760px; margin: 34px auto 0; padding-top: 20px; border-top: 2px solid var(--news-ink); }
.news-sources h2, .news-related h2 { margin: 0 0 12px; font-size: 17px; }
.news-sources ul { display: grid; gap: 9px; margin: 0; padding-inline-start: 20px; color: var(--news-muted); font-size: 12px; }
.news-sources a { color: var(--news-green); }
.news-related { margin-top: 44px; }
.facility-directory { padding: 36px 0 54px; }
.facility-directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.facility-directory-heading h1 { margin: 4px 0; font-size: 30px; }
.facility-directory-heading p:last-child { margin: 0; color: var(--muted); }
.facility-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facility-filters label { font-size: 12px; font-weight: 700; }
.facility-filters input, .facility-filters select { min-height: 42px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); font: inherit; }
.facility-directory-count { margin: 18px 0; color: var(--mut