/* الاتحاد — ألوان من الشعار: كحلي ليلي وأزرق فولاذي، مع لمسة ذهبية للإنجازات */
:root {
  --ink: #0B1B29;
  --ink-2: #4A5B6B;
  --ink-3: #7B8A98;
  --night: #06121D;
  --night-2: #0C2233;
  --steel: #4D96B6;
  --steel-2: #2F7597;
  --steel-tint: #E6F1F6;
  --ice: #CFE6F0;
  --gold: #E3B04B;
  --gold-tint: #FBF3E1;
  --gold-ink: #7A5A12;
  --bg: #F4F7F9;
  --card: #FFFFFF;
  --line: #E1E8ED;
  --ok: #1E8E5A;
  --ok-tint: #E4F4EC;
  --warn: #B7791F;
  --warn-tint: #FDF3E1;
  --bad: #C2413B;
  --bad-tint: #FCEBEA;
  --r: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 2px rgba(6, 18, 29, .05), 0 6px 20px rgba(6, 18, 29, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Readex Pro", system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 15px; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--steel-2); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.tiny { font-size: 12px; }
.small { font-size: 13.5px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--night); }
.boot img { border-radius: 50%; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; transform: scale(.96); } }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 28px; height: 28px; }

/* ---------- أزرار وحقول ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); font-weight: 600; text-decoration: none; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--steel-2); border-color: var(--steel-2); color: #fff; }
.btn.primary:hover { background: #276584; }
.btn.dark { background: var(--night); border-color: var(--night); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--steel-2); }
.btn.danger { color: var(--bad); border-color: #F1CFCC; }
.btn.sm { min-height: 36px; padding: 4px 12px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.wa { background: #1FAF54; border-color: #1FAF54; color: #fff; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, textarea.input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
textarea.input { min-height: 90px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--steel); outline: none; box-shadow: 0 0 0 3px rgba(77, 150, 182, .2); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--steel-2); }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days label { position: relative; }
.days input { position: absolute; opacity: 0; }
.days span { display: inline-block; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.days input:checked + span { background: var(--steel-2); border-color: var(--steel-2); color: #fff; }
.days input:focus-visible + span { outline: 3px solid var(--steel); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--steel-tint); color: var(--steel-2); white-space: nowrap; }
.pill.ok { background: var(--ok-tint); color: var(--ok); }
.pill.warn { background: var(--warn-tint); color: var(--warn); }
.pill.bad { background: var(--bad-tint); color: var(--bad); }
.pill.gold { background: var(--gold-tint); color: var(--gold-ink); }
.pill.gray { background: #EEF1F4; color: var(--ink-2); }

/* ---------- الموقع العام ---------- */
.pub-top { position: sticky; top: 0; z-index: 20; background: rgba(6, 18, 29, .92); backdrop-filter: blur(10px); color: #fff; }
.pub-top .in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ice); opacity: .8; }
.pub-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.pub-nav a { color: #DCE9F0; text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.pub-nav a:hover, .pub-nav a[aria-current] { background: rgba(255, 255, 255, .08); color: #fff; }
.pub-nav .login { border: 1px solid rgba(207, 230, 240, .35); }
@media (max-width: 720px) { .pub-nav a:not(.login) { display: none; } }

.hero { background: radial-gradient(1200px 500px at 85% -10%, #12405C 0%, transparent 60%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(77, 150, 182, .6), transparent); }
.hero .in { max-width: 1100px; margin: 0 auto; padding: 48px 16px 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--steel); }
.hero .tag { margin-top: 10px; color: var(--ice); font-weight: 500; letter-spacing: .04em; }
.hero p.lead { margin-top: 16px; color: #C3D4DE; max-width: 560px; }
.hero .cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .cta .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(207, 230, 240, .35); }
.hero-logo { justify-self: center; width: min(320px, 70vw); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 1px rgba(77, 150, 182, .3), 0 30px 80px rgba(47, 117, 151, .35); }
.hero-stats { margin-top: 28px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 30px; font-weight: 700; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: 13px; color: var(--ice); opacity: .85; }
@media (max-width: 760px) { .hero .in { grid-template-columns: 1fr; padding-top: 28px; text-align: center; } .hero-logo { width: 180px; grid-row: 1; } .hero .cta, .hero-stats { justify-content: center; } .hero p.lead { margin-inline: auto; } }

.sec { max-width: 1100px; margin: 0 auto; padding: 48px 16px 8px; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-h h2 { font-size: 26px; font-weight: 700; }
.sec-h p { color: var(--ink-2); font-size: 14px; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--steel-2); letter-spacing: .08em; }

.sports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .sports { grid-template-columns: 1fr; } }
.sport { position: relative; display: grid; gap: 10px; padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; overflow: hidden; }
.sport:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(6, 18, 29, .12); }
.sport .glyph { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--night); color: var(--steel); }
.sport .glyph svg { width: 32px; height: 32px; }
.sport h3 { font-size: 21px; font-weight: 700; }
.sport .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.sport .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--steel-2); font-size: 14px; }
.sport::before { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--steel-tint); z-index: 0; }
.sport > * { position: relative; }

.week { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.week-tabs { display: flex; gap: 4px; padding: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.week-tabs button { flex: none; border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.week-tabs button[aria-selected="true"] { background: var(--night); color: #fff; }
.week-tabs button .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--steel); margin-inline-start: 6px; vertical-align: middle; }
.slots { list-style: none; margin: 0; padding: 4px 16px; }
.slots li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.slots li:last-child { border-bottom: 0; }
.slots .t { font-weight: 700; font-size: 15px; }
.slots .t small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.slots b { font-weight: 600; }
.slots .where { display: flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 13px; }

.ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ach-card { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.ach-card .medal { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-tint); color: var(--gold-ink); }
.ach-card b { display: block; font-weight: 600; line-height: 1.45; }
.ach-card .y { font-size: 12px; font-weight: 700; color: var(--gold-ink); }

.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; } }
.contact { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.contact .who { display: flex; align-items: center; gap: 10px; }
.contact .phone { direction: ltr; text-align: end; font-weight: 700; font-size: 17px; }

.foot { margin-top: 56px; background: var(--night); color: #C3D4DE; }
.foot .in { max-width: 1100px; margin: 0 auto; padding: 28px 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot a { color: #fff; }

/* صفحة النادي */
.club-hero { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #fff; }
.club-hero .in { max-width: 1100px; margin: 0 auto; padding: 28px 16px 32px; display: grid; gap: 14px; }
.club-hero .glyph { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(77, 150, 182, .15); color: var(--steel); }
.club-hero .glyph svg { width: 36px; height: 36px; }
.club-hero h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 700; }
.club-hero p { color: #C3D4DE; max-width: 640px; }
.crumb { color: var(--ice); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.club-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .club-grid { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.panel h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.panel h3 .ic { color: var(--steel-2); }
.catblock { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.catblock .spread b { font-size: 16px; }
.catblock ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.catblock li { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.catblock li .d { font-weight: 600; min-width: 70px; }
.catblock li .h { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fee > div { padding: 14px; border-radius: 14px; background: var(--steel-tint); display: grid; gap: 2px; }
.fee b { font-size: 26px; font-weight: 700; color: var(--night); line-height: 1.2; }
.fee span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.coach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.coach-list li { display: flex; align-items: center; gap: 10px; }
.av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--steel); font-weight: 700; }
.av.sm { width: 32px; height: 32px; font-size: 13px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; border-inline-start: 2px solid var(--line); padding-inline-start: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -21px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.timeline .y { font-size: 12px; font-weight: 700; color: var(--gold-ink); }

/* ---------- لوحة الإدارة ---------- */
.adm { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.side { background: var(--night); color: #C3D4DE; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 4px 6px 14px; }
.side .grp { margin: 12px 8px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #6F8798; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #C3D4DE; text-decoration: none; font-weight: 500; font-size: 14.5px; }
.side a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side a[aria-current] { background: var(--steel-2); color: #fff; }
.side .me { margin-top: auto; padding: 10px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.main { min-width: 0; padding: 20px 24px 60px; }
.main-in { max-width: 1100px; margin: 0 auto; display: grid; gap: 16px; }
.topbar { display: none; }
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 0 0 auto; width: 270px; z-index: 50; transform: translateX(100%); transition: transform .25s var(--ease); }
  .side.open { transform: none; box-shadow: -20px 0 60px rgba(0, 0, 0, .3); }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 10px; padding: 10px 16px; background: var(--night); color: #fff; }
  .topbar button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
  .main { padding: 16px 16px 60px; }
}
.ph { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.ph h1 { font-size: 22px; font-weight: 700; }
.ph .sub { color: var(--ink-2); font-size: 13.5px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.card-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.card-h .more { margin-inline-start: auto; font-weight: 600; font-size: 13px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; background: #E9EEF2; border-radius: 12px; scrollbar-width: none; }
.tabs a { flex: none; padding: 8px 14px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.tabs a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 2px; }
.kpi span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.kpi b { font-size: 26px; font-weight: 700; line-height: 1.2; }
.kpi small { font-size: 12px; color: var(--ink-3); }
.clubcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .clubcards { grid-template-columns: 1fr; } }
.clubcard { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.clubcard:hover { border-color: var(--steel); }
.clubcard .head { display: flex; align-items: center; gap: 10px; }
.clubcard .glyph { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--night); color: var(--steel); }
.clubcard .glyph svg { width: 24px; height: 24px; }
.mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mini div { background: #F4F7F9; border-radius: 10px; padding: 8px 10px; display: grid; }
.mini b { font-size: 18px; }
.mini span { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.meter { height: 8px; border-radius: 999px; background: #E9EEF2; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--steel-2); }
.meter.ok i { background: var(--ok); }
.meter.gold i { background: var(--gold); }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: start; font-size: 12px; font-weight: 700; color: var(--ink-2); background: #F6F8FA; padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.off td { color: var(--ink-3); }
.tbl .ltr { direction: ltr; text-align: end; white-space: nowrap; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #F8FAFB; }
.catttl { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.catttl h3 { font-size: 16px; font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar .input, .toolbar .select { width: auto; min-width: 160px; }
.search { flex: 1; min-width: 180px; }

.mark { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mark button { border: 0; background: #fff; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink-2); min-height: 36px; }
.mark button + button { border-inline-start: 1px solid var(--line); }
.mark button.on[data-s="present"] { background: var(--ok); color: #fff; }
.mark button.on[data-s="absent"] { background: var(--bad); color: #fff; }
.mark button.on[data-s="excused"] { background: var(--warn); color: #fff; }
.attrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.attrow:last-child { border-bottom: 0; }
.paybtn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.paybtn.on { background: var(--ok-tint); color: var(--ok); border-color: #BFE3CF; }
.paybtn:not(.on) { color: var(--bad); border-color: #F1CFCC; }
.coachtree { display: grid; gap: 10px; }
.coachbox { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); display: grid; gap: 8px; }
.coachbox .assist { margin-inline-start: 22px; padding: 10px 12px; border-radius: 12px; background: #F6F8FA; display: flex; align-items: center; gap: 10px; }
.hours { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.empty { padding: 28px; text-align: center; color: var(--ink-2); }
.log { list-style: none; margin: 0; padding: 0; display: grid; }
.log li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--ink-3); white-space: nowrap; font-size: 12px; }

.scrim { position: fixed; inset: 0; background: rgba(6, 18, 29, .45); opacity: 0; transition: opacity .2s; z-index: 80; }
.scrim.open { opacity: 1; }
.sheet { position: fixed; z-index: 90; inset: auto 0 0 0; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  display: grid; gap: 12px; transform: translateY(100%); transition: transform .28s var(--ease); }
.sheet.open { transform: none; }
.sheet h2 { font-size: 19px; font-weight: 700; }
@media (min-width: 700px) { .sheet { inset: 50% auto auto 50%; width: 560px; border-radius: 20px; transform: translate(-50%, -46%); opacity: 0; transition: transform .22s var(--ease), opacity .22s; } .sheet.open { transform: translate(-50%, -50%); opacity: 1; } }
#toast { position: fixed; z-index: 100; inset-inline: 16px; bottom: 20px; margin: 0 auto; max-width: 420px; padding: 12px 16px; border-radius: 12px; background: var(--night); color: #fff; font-weight: 600; text-align: center;
  opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; }
#toast.show { opacity: 1; transform: none; }
#toast.err { background: var(--bad); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(900px 400px at 80% -10%, #12405C 0%, transparent 60%), var(--night); }
.login-card { width: min(400px, 100%); background: #fff; border-radius: 22px; padding: 26px 22px; display: grid; gap: 14px; }
.login-card img { width: 84px; height: 84px; border-radius: 50%; justify-self: center; }
@media print { .side, .topbar, .toolbar, .tabs, .btn { display: none !important; } .adm { display: block; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.paybtn { white-space: nowrap; }
@media (max-width: 600px) { .tbl.fees th:nth-child(2), .tbl.fees td:nth-child(2) { display: none; } .tbl td, .tbl th { padding: 8px; } }
.adm > div { min-width: 0; }
