/* ============ JIS Sports Club — Stylesheet ============ */
:root {
  --brand: #0563ba;
  --brand-2: #f59e0b;
  --brand-ink: #ffffff;
  --navy: #172154;
  --blue: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;

  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --text: #0f172a;
  --muted: #5b6478;
  --border: #e3e6ee;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);
  --radius: 14px;
  --radius-sm: 9px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a0f1e;
  --surface: #121a2f;
  --surface-2: #19223a;
  --text: #e8ecf5;
  --muted: #9aa4bb;
  --border: #243050;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; outline: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 850; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-weight: 900; font-size: .9rem; letter-spacing: .02em; box-shadow: 0 6px 16px rgba(5, 99, 186, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.02rem; }
.brand-text small { color: var(--muted); font-size: .72rem; }
.nav { display: flex; gap: .15rem; margin-left: auto; }
.nav a { padding: .5rem .7rem; border-radius: 8px; font-weight: 600; font-size: .93rem; color: var(--muted); transition: .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.nav-actions { display: flex; gap: .5rem; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-2); }
.menu-btn { display: none; }
.user-chip {
  display: flex; align-items: center; gap: .5rem; padding: .3rem .7rem .3rem .3rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .9rem; cursor: pointer;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem;
  background: linear-gradient(135deg, var(--blue), #7c3aed); color: #fff; flex-shrink: 0;
}
.avatar.lg { width: 72px; height: 72px; font-size: 1.6rem; }

@media (max-width: 1080px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: var(--surface);
    border-bottom: 1px solid var(--border); padding: .75rem 1.25rem 1.25rem; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .25s ease; margin: 0;
  }
  .nav.open { transform: none; }
  .nav a { padding: .75rem 1rem; font-size: 1rem; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .brand-text small { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .user-chip span:not(.avatar) { display: none; }
}

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.2rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700;
  font-size: .95rem; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s; white-space: nowrap;
  background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px rgba(5, 99, 186, .28);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(5, 99, 186, .35); }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-dark { background: var(--navy); color: #fff; box-shadow: none; }
.btn-light { background: #fff; color: var(--navy); box-shadow: none; }
.btn-danger { background: var(--red); box-shadow: none; }
.btn-success { background: var(--green); box-shadow: none; }
.btn-sm { padding: .4rem .75rem; font-size: .82rem; border-radius: 8px; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }

label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; padding: .7rem .85rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; transition: border .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--brand); }
.field { margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

/* ---------- Layout blocks ---------- */
.section { padding: 4.5rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 60ch; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: .6rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 1.5rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Page hero ---------- */
.page-hero {
  padding: 3.5rem 0 2.5rem; background:
    radial-gradient(800px 300px at 10% -20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent),
    radial-gradient(700px 300px at 90% -30%, color-mix(in srgb, var(--blue) 16%, transparent), transparent);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: var(--muted); max-width: 65ch; font-size: 1.08rem; margin: 0; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(5, 99, 186, .55), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(37, 99, 235, .55), transparent 60%),
    linear-gradient(160deg, #0e1640 0%, #172154 55%, #1a2a6c 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: 5.5rem 0 6rem; }
.hero h1 { color: #fff; }
.hero h1 .hl { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: #c8d2ea; max-width: 54ch; margin-bottom: 2rem; }
.hero .pill { display: inline-flex; gap: .5rem; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: .35rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 1.25rem; }
.hero .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
.hero-orbit { position: relative; aspect-ratio: 1; max-width: 440px; margin-inline: auto; width: 100%; }
.hero-orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.2); animation: spin 60s linear infinite; }
.hero-orbit .ring.r2 { inset: 18%; animation-direction: reverse; animation-duration: 45s; }
.hero-orbit .center {
  position: absolute; inset: 34%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 20px 60px rgba(5, 99, 186, .5); font-size: 3.2rem;
}
.hero-orbit .ball {
  position: absolute; width: 58px; height: 58px; margin: -29px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px);
  animation: bob 4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; padding: 4rem 0; } .hero-orbit { max-width: 320px; } }
@media (prefers-reduced-motion: reduce) { .hero-orbit .ring, .hero-orbit .ball { animation: none; } }

.stats-band { margin-top: -3rem; position: relative; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.5rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font-size: 2.2rem; font-weight: 850; letter-spacing: -.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-weight: 600; font-size: .9rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--border); } }

/* ---------- Game cards ---------- */
.game-card { display: flex; flex-direction: column; padding: 1.4rem; transition: transform .18s, box-shadow .18s, border-color .18s; position: relative; overflow: hidden; }
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.game-card .gicon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 2rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, var(--surface)), color-mix(in srgb, var(--brand-2) 16%, var(--surface)));
}
.game-card h3 { margin-bottom: .3rem; }
.game-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.game-card .meta { font-size: .84rem; color: var(--muted); display: grid; gap: .3rem; margin-bottom: 1rem; }
.game-card .tag-row { position: absolute; top: 1.2rem; right: 1.2rem; }
.capbar { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: .4rem 0 1rem; }
.capbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #4ade80); }
.capbar.warn i { background: linear-gradient(90deg, var(--amber), var(--brand-2)); }
.capbar.full i { background: linear-gradient(90deg, var(--red), #f87171); }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; text-transform: capitalize; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge.indoor { background: color-mix(in srgb, #7c3aed 12%, transparent); color: #7c3aed; border-color: transparent; }
.badge.outdoor { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); border-color: transparent; }
.badge.pending { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber); border-color: transparent; }
.badge.approved { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); border-color: transparent; }
.badge.rejected { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); border-color: transparent; }
.badge.waitlist { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); border-color: transparent; }
.badge.admin { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); border-color: transparent; }
[data-theme="dark"] .badge.indoor { color: #a78bfa; }
[data-theme="dark"] .badge.outdoor, [data-theme="dark"] .badge.approved { color: #4ade80; }
[data-theme="dark"] .badge.waitlist { color: #60a5fa; }
[data-theme="dark"] .badge.rejected { color: #f87171; }
[data-theme="dark"] .badge.pending { color: #fbbf24; }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.75rem; }
.chip { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--muted); font-family: inherit; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .chip.active { background: var(--brand); border-color: var(--brand); }
.search { max-width: 320px; margin-left: auto; }
@media (max-width: 640px) { .search { max-width: none; margin-left: 0; } }

/* ---------- Game detail ---------- */
.game-hero { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.game-hero .gicon { width: 96px; height: 96px; font-size: 3.2rem; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 14px 36px rgba(5, 99, 186,.35); }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: .9rem; }
.info-list div { display: flex; gap: .8rem; align-items: start; }
.info-list .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.info-list small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.rules { padding-left: 1.2rem; margin: 0; }
.rules li { margin-bottom: .4rem; }
.sticky { position: sticky; top: 88px; }

/* ---------- Events ---------- */
.event-card { display: grid; grid-template-columns: 92px 1fr auto; gap: 1.25rem; padding: 1.25rem; align-items: center; }
.date-tile { text-align: center; border-radius: 12px; padding: .6rem .3rem; background: linear-gradient(160deg, var(--navy), #0563ba); color: #fff; }
.date-tile b { display: block; font-size: 1.9rem; line-height: 1; font-weight: 850; }
.date-tile span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; font-weight: 700; }
.event-card h3 { margin-bottom: .25rem; }
.event-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
@media (max-width: 700px) { .event-card { grid-template-columns: 70px 1fr; } .event-card .ev-actions { grid-column: 1 / -1; } }

/* ---------- Notices ---------- */
.notice { padding: 1.25rem 1.4rem; border-left: 4px solid var(--border); }
.notice.pinned { border-left-color: var(--brand); }
.notice h3 { margin-bottom: .35rem; }
.notice p { white-space: pre-wrap; margin: 0; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .75rem .9rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: var(--surface-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 750; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
td .row { flex-wrap: nowrap; gap: .4rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Leaderboard ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.podium .p { text-align: center; padding: 1.25rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.podium .p .medal { font-size: 2.2rem; }
.podium .p b { display: block; font-size: 1.25rem; }
.podium .p1 { padding-top: 2.2rem; padding-bottom: 2.2rem; background: linear-gradient(160deg, color-mix(in srgb, var(--brand-2) 22%, var(--surface)), var(--surface)); }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--surface-2); cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 2rem 1rem .8rem; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.lightbox img { max-height: 80vh; margin: auto; border-radius: 10px; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 68px); }
.auth-side {
  color: #fff; padding: 4rem; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(600px 400px at 90% 0%, rgba(5, 99, 186,.5), transparent 60%), linear-gradient(160deg, #0e1640, #1a2a6c);
}
.auth-side h2 { color: #fff; font-size: 2.4rem; }
.auth-side p { color: #c8d2ea; }
.auth-side ul { padding: 0; list-style: none; display: grid; gap: .8rem; margin: 1.5rem 0 0; }
.auth-side li { display: flex; gap: .7rem; align-items: center; color: #dfe6f5; }
.auth-side li span { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.auth-form { padding: 3rem 2rem; display: flex; align-items: center; justify-content: center; }
.auth-form .card { width: 100%; max-width: 520px; padding: 2rem; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { padding: 2.5rem 1.5rem; } .auth-side ul { display: none; } }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding: 2rem 0 4rem; align-items: start; }
.side-nav { padding: .6rem; position: sticky; top: 88px; }
.side-nav a, .side-nav button {
  display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border-radius: 9px; font-weight: 600; color: var(--muted);
  width: 100%; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; text-align: left; font-size: .93rem;
}
.side-nav a:hover, .side-nav button:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.active { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.side-nav .count { margin-left: auto; background: var(--brand); color: #fff; border-radius: 99px; font-size: .72rem; padding: .05rem .5rem; }
.side-nav hr { border: 0; border-top: 1px solid var(--border); margin: .5rem 0; }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: .25rem; }
  .side-nav a, .side-nav button { white-space: nowrap; width: auto; }
  .side-nav hr { display: none; }
}
.kpi { padding: 1.25rem; }
.kpi small { color: var(--muted); font-weight: 600; font-size: .82rem; }
.kpi b { display: block; font-size: 2rem; font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: .8rem; color: var(--muted); }
.kpi.accent { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; }
.kpi.accent small, .kpi.accent .sub { color: rgba(255,255,255,.85); }

.bars { display: grid; gap: .7rem; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 60px; gap: .75rem; align-items: center; font-size: .88rem; }
.bar-row .track { height: 12px; background: var(--surface-2); border-radius: 99px; overflow: hidden; display: flex; }
.bar-row .track i { display: block; height: 100%; background: var(--green); }
.bar-row .track i.p { background: var(--brand-2); }
.bar-row .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.legend { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); margin-top: .9rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: middle; }

.member-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 1.5rem; color: #fff; max-width: 420px; aspect-ratio: 1.6;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(400px 200px at 100% 0%, rgba(5, 99, 186,.7), transparent 60%), linear-gradient(150deg, #0e1640, #0563ba);
  box-shadow: var(--shadow-lg);
}
.member-card .mc-top { display: flex; justify-content: space-between; align-items: start; }
.member-card .mc-top small { opacity: .8; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.member-card .mc-id { font-family: ui-monospace, Menlo, monospace; font-size: 1.15rem; letter-spacing: .12em; }
.member-card .mc-name { font-size: 1.35rem; font-weight: 800; }
.member-card .mc-row { display: flex; gap: 1.5rem; font-size: .78rem; opacity: .9; }
.member-card .mc-row b { display: block; font-size: .92rem; }

.progress-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; flex-shrink: 0; }
.progress-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.progress-ring span { position: relative; }

.empty { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.empty .big { font-size: 2.8rem; margin-bottom: .5rem; }

/* ---------- Misc sections ---------- */
.feature { padding: 1.5rem; }
.feature .fi { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: .9rem; background: color-mix(in srgb, var(--brand) 12%, transparent); }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }
.steps { counter-reset: step; }
.step { position: relative; padding: 1.5rem 1.5rem 1.5rem 4.5rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 1.4rem; top: 1.4rem; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; }
[data-theme="dark"] .step::before { background: var(--brand); }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }
.cta {
  border-radius: 22px; padding: 3rem; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: radial-gradient(500px 300px at 100% 0%, rgba(255,176,32,.6), transparent 60%), linear-gradient(135deg, var(--brand), #172154);
}
.cta h2 { color: #fff; margin: 0 0 .3rem; }
.cta p { margin: 0; opacity: .9; }
.committee .card { text-align: center; padding: 1.5rem 1rem; }
.committee .avatar { margin: 0 auto .8rem; width: 64px; height: 64px; font-size: 1.3rem; }
.committee small { color: var(--brand); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
details.faq { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 1rem 1.2rem; }
details.faq + details.faq { margin-top: .7rem; }
details.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
details.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: .7rem 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3.5rem 0 1.5rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .9rem; }
.footer-grid a:not(.brand) { display: block; padding: .2rem 0; font-size: .93rem; }
.footer-grid a:not(.brand):hover { color: var(--brand); }
.footer-grid .brand { margin-bottom: 1rem; }
.foot-bottom { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Toast & modal ---------- */
.toasts { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 200; display: grid; gap: .6rem; }
.toast { background: var(--navy); color: #fff; padding: .85rem 1.1rem; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; max-width: 360px; animation: slideIn .25s ease; display: flex; gap: .6rem; align-items: center; }
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }
@keyframes slideIn { from { transform: translateY(12px); opacity: 0; } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 10, 25, .6); backdrop-filter: blur(3px); z-index: 150; display: grid; place-items: center; padding: 1rem; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 18px; width: min(620px, 100%); max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 1.5rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: .6rem; padding-top: .5rem; }
@keyframes fade { from { opacity: 0; } }

.spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 4rem auto; }

/* ---------- Print (member card) ---------- */
@media print {
  body * { visibility: hidden; }
  .member-card, .member-card * { visibility: visible; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .member-card { position: absolute; left: 0; top: 0; }
}

/* =====================================================================
   DESIGN UPGRADE: fonts, per-game colours, motion, glass & gradients
   ===================================================================== */
:root {
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --display: "Outfit", "Inter", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --grad: linear-gradient(135deg, #ff5a1f 0%, #ff8a1f 50%, #ffb020 100%);
  --grad-cool: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}
h1, h2, h3, h4, .brand-text strong, .stat b, .kpi b, .date-tile b, .mc-name, .btn-lg { font-family: var(--display); }
h1 { font-weight: 900; letter-spacing: -.035em; }
h2 { font-weight: 800; letter-spacing: -.03em; }
body { background-image: radial-gradient(1200px 600px at 100% -10%, color-mix(in srgb, var(--brand) 6%, transparent), transparent 60%); background-attachment: fixed; }

/* Buttons */
.btn { background: var(--grad); background-size: 160% 160%; background-position: 0% 50%; transition: transform .15s, box-shadow .2s, background-position .4s; }
.btn:hover { background-position: 100% 50%; }
.btn-ghost, .btn-dark, .btn-light, .btn-danger, .btn-success { background-size: auto; }
.btn-ghost { background: var(--surface); }
.btn-dark { background: var(--navy); }
.btn-light { background: #fff; }
.btn-danger { background: var(--red); }
.btn-success { background: var(--green); }
[data-theme="dark"] .btn-dark { background: #24345e; }

/* Header */
.site-header { box-shadow: 0 1px 0 var(--border), 0 10px 30px -20px rgba(15, 23, 42, .25); border-bottom: 0; }
.brand-mark { background: var(--grad); font-family: var(--display); border-radius: 13px; transform: rotate(-6deg); transition: transform .3s; }
.brand:hover .brand-mark { transform: rotate(0) scale(1.05); }
.nav a { position: relative; }
.nav a.active { background: transparent; }
.nav a.active::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .2rem; height: 3px; border-radius: 3px; background: var(--grad); }
@media (max-width: 1080px) { .nav a.active { background: color-mix(in srgb, var(--brand) 10%, transparent); } .nav a.active::after { display: none; } }

/* Hero */
.hero { isolation: isolate; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1; animation: float 14s ease-in-out infinite; }
.hero .blob.b1 { width: 420px; height: 420px; background: #ff5a1f; top: -120px; right: 8%; }
.hero .blob.b2 { width: 380px; height: 380px; background: #2563eb; bottom: -160px; left: -80px; animation-delay: -5s; }
.hero .blob.b3 { width: 260px; height: 260px; background: #a855f7; top: 40%; left: 45%; opacity: .3; animation-delay: -9s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -30px) scale(1.08); } 66% { transform: translate(-20px, 20px) scale(.95); } }
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 5.2rem); line-height: 1; margin-bottom: 1.25rem; }
.hero h1 .hl { background: linear-gradient(90deg, #ff5a1f, #ffb020, #ff5a1f); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; animation: shine 5s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero-orbit .center { background: var(--grad); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(5, 99, 186, .5), 0 20px 60px rgba(5, 99, 186, .5); } 50% { box-shadow: 0 0 0 22px rgba(5, 99, 186, 0), 0 20px 60px rgba(5, 99, 186, .6); } }
.hero-orbit .ball:hover { transform: scale(1.2); background: rgba(255, 255, 255, .25); }
.hero-badges { display: flex; gap: 1.5rem; margin-top: 2.25rem; flex-wrap: wrap; color: #aab6d3; font-size: .88rem; font-weight: 600; }
.hero-badges span { display: flex; align-items: center; gap: .45rem; }
@media (prefers-reduced-motion: reduce) { .hero .blob, .hero h1 .hl, .hero-orbit .center, .ticker-track { animation: none !important; } }

/* Sports ticker */
.ticker { overflow: hidden; background: var(--grad); color: #fff; padding: .85rem 0; transform: rotate(-1.2deg); margin: -1.4rem -2% 0; width: 104%; position: relative; z-index: 3; box-shadow: 0 10px 30px rgba(5, 99, 186, .25); }
.ticker-track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; font-family: var(--display); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.ticker-track span { display: flex; align-items: center; gap: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.stats-band { margin-top: 2.5rem; }
.stats { border: 0; box-shadow: var(--shadow-lg); }
.stat { position: relative; }
.stat b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 2.6rem; }
.stat .si { font-size: 1.5rem; display: block; margin-bottom: .2rem; }

/* Section heads */
.section-head h2 { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--grad); }
.page-hero { position: relative; overflow: hidden; padding: 4.5rem 0 3rem; }
.page-hero::after { content: attr(data-word); position: absolute; right: -1rem; bottom: -2.5rem; font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 14vw, 11rem); line-height: 1; color: var(--text); opacity: .04; pointer-events: none; text-transform: uppercase; letter-spacing: -.04em; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }

/* Per-game coloured cards */
.game-card { --c: var(--brand); border: 1px solid var(--border); }
.game-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, #fff)); }
.game-card::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -70px; top: -70px; background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); transition: transform .4s; pointer-events: none; }
.game-card:hover::after { transform: scale(1.6); }
.game-card:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--border)); box-shadow: 0 22px 50px -12px color-mix(in srgb, var(--c) 35%, transparent); }
.game-card .gicon { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, var(--surface)), color-mix(in srgb, var(--c) 8%, var(--surface))); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); transition: transform .3s; }
.game-card:hover .gicon { transform: rotate(-8deg) scale(1.08); }
.game-card .btn:not(.btn-ghost) { background: var(--c); box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--c) 60%, transparent); }
.game-card h3 { font-size: 1.3rem; }
.capbar i { background: linear-gradient(90deg, var(--c, var(--green)), color-mix(in srgb, var(--c, var(--green)) 50%, #fff)); }
.game-hero .gicon { background: linear-gradient(135deg, var(--c, var(--brand)), color-mix(in srgb, var(--c, var(--brand)) 55%, #ffb020)); box-shadow: 0 18px 40px -10px color-mix(in srgb, var(--c, var(--brand)) 60%, transparent); }

/* Cards & features */
.card { transition: box-shadow .2s, transform .2s, border-color .2s; }
.feature { position: relative; overflow: hidden; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature .fi { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -6px rgba(5, 99, 186, .5); }
.step { transition: transform .2s; }
.step:hover { transform: translateY(-3px); }
.step::before { background: var(--grad) !important; box-shadow: 0 6px 16px -4px rgba(5, 99, 186, .5); }
.event-card { transition: transform .2s, box-shadow .2s; }
.event-card:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.date-tile { background: var(--grad-cool); box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .55); }
.notice.pinned { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 6%, var(--surface)), var(--surface) 40%); }
.cta { position: relative; overflow: hidden; background: var(--grad); }
.cta::after { content: "🏆"; position: absolute; right: 18%; top: 50%; transform: translateY(-50%) rotate(-12deg); font-size: 9rem; opacity: .15; pointer-events: none; }
.kpi.accent { background: var(--grad); }
.committee .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.committee .avatar { background: var(--grad); }
.committee .card:first-child { border: 2px solid var(--brand); }
.avatar { background: var(--grad-cool); }
.podium .p1 { box-shadow: 0 20px 40px -12px rgba(255, 176, 32, .5); border-color: #ffb020; }

/* Auth pages */
.auth-side { position: relative; overflow: hidden; }
.auth-side::after { content: "⚽ 🏏 🏸 ♟️ 🏀"; position: absolute; bottom: 2rem; left: 4rem; font-size: 2rem; letter-spacing: .6rem; opacity: .35; }
.auth-form .card { box-shadow: var(--shadow-lg); border-top: 4px solid var(--brand); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Back to top */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: 0 10px 24px -6px rgba(5, 99, 186, .6); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.toasts { bottom: 5rem; }

/* Footer */
.site-footer { position: relative; background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 70%, var(--surface))); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.socials { display: flex; gap: .5rem; margin-top: .5rem; }

/* File-mode warning */
.file-warning { max-width: 680px; margin: auto; text-align: center; border-top: 4px solid var(--brand); }
.file-warning ol { text-align: left; display: inline-block; margin: 1rem 0 0; line-height: 2; }
.file-warning code { background: var(--surface-2); padding: .15rem .45rem; border-radius: 6px; font-size: .9em; }
html, body { overflow-x: clip; }

/* =====================================================================
   JIS COLLEGE THEME: navy #172154 · blue #0563BA · amber #F59E0B
   ===================================================================== */
:root {
  --brand: #0563ba; --brand-2: #f59e0b; --navy: #172154; --blue: #0563ba; --gold: #f59e0b;
  --grad: linear-gradient(135deg, #0563ba 0%, #1d4ed8 55%, #172154 100%);
  --grad-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --grad-cool: linear-gradient(135deg, #172154 0%, #0563ba 100%);
}
[data-theme="dark"] { --brand: #4ea3f5; --bg: #0b1030; --surface: #121a45; --surface-2: #19225a; --border: #26306a; }
[data-theme="dark"] .btn { color: #fff; }

/* Header with college logo */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, #172154 0 33%, #0563ba 33% 66%, #f59e0b 66%); }
.nav-wrap { height: 76px; }
.brand { gap: .8rem; }
.brand .logo-img { height: 44px; width: auto; display: block; }
.brand .club-tag { display: flex; flex-direction: column; line-height: 1; padding-left: .8rem; border-left: 2px solid var(--gold); }
.brand .club-tag b { font-family: var(--display); font-size: 1.15rem; font-weight: 900; color: var(--navy); letter-spacing: -.01em; }
.brand .club-tag small { font-size: .68rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; margin-top: .2rem; }
[data-theme="dark"] .brand .club-tag b { color: #fff; }
[data-theme="dark"] .logo-img { background: #fff; border-radius: 8px; padding: 3px 6px; box-sizing: content-box; }
@media (max-width: 1300px) { .brand .logo-img { height: 36px; } .nav a { padding: .5rem .55rem; font-size: .9rem; } }
@media (max-width: 1080px) { .nav { inset: 79px 0 auto 0; } }
@media (max-width: 560px) { .brand .logo-img { height: 26px; } .brand .club-tag b { font-size: .95rem; } .brand .club-tag small { display: none; } .brand .club-tag { padding-left: .55rem; } }
@media (max-width: 400px) { .brand .club-tag { display: none; } }
.nav a.active { color: var(--brand); }
.nav a.active::after { background: var(--grad-gold); }
.sticky, .side-nav { top: 96px; }

/* Hero: college navy with blue & amber glows */
.hero { background: radial-gradient(900px 500px at 85% 10%, rgba(5, 99, 186, .7), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(245, 158, 11, .25), transparent 60%), linear-gradient(160deg, #0e1640 0%, #172154 55%, #1a2a6c 100%); }
.hero .blob.b1 { background: #0563ba; opacity: .7; }
.hero .blob.b2 { background: #f59e0b; opacity: .3; }
.hero .blob.b3 { background: #38bdf8; opacity: .25; }
.hero h1 .hl { background: linear-gradient(90deg, #f59e0b, #fde68a, #f59e0b); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; }
.hero .pill { border-color: rgba(245, 158, 11, .5); }
.hero-orbit .center { background: var(--grad-gold); animation-name: pulseGold; }
@keyframes pulseGold { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55), 0 20px 60px rgba(245, 158, 11, .45); } 50% { box-shadow: 0 0 0 22px rgba(245, 158, 11, 0), 0 20px 60px rgba(245, 158, 11, .55); } }
.hero .btn:not(.btn-light) { background: var(--grad-gold); color: #172154; box-shadow: 0 10px 26px -6px rgba(245, 158, 11, .6); }
.hero-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; padding: .45rem .8rem; margin-bottom: 1.25rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero-logo img { height: 38px; width: auto; }
.ticker { background: var(--grad-gold); color: #172154; box-shadow: 0 10px 30px rgba(245, 158, 11, .3); }

/* Accents */
.eyebrow { color: var(--brand); }
.eyebrow::before { background: var(--grad-gold); }
.stat b { background: var(--grad); -webkit-background-clip: text; background-clip: text; }
[data-theme="dark"] .stat b { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; }
.cta { background: radial-gradient(500px 300px at 100% 0%, rgba(245, 158, 11, .45), transparent 60%), var(--grad); }
.cta .btn-light { color: #172154; }
.podium .p1 { box-shadow: 0 20px 40px -12px rgba(245, 158, 11, .5); border-color: var(--gold); }
.site-footer::before { background: linear-gradient(90deg, #172154 0 33%, #0563ba 33% 66%, #f59e0b 66%); }
.site-footer .brand .logo-img { height: 48px; }
.auth-side { background: radial-gradient(600px 400px at 90% 0%, rgba(5, 99, 186, .6), transparent 60%), radial-gradient(400px 300px at 0% 100%, rgba(245, 158, 11, .2), transparent 60%), linear-gradient(160deg, #0e1640, #172154); }
.auth-side .eyebrow { color: var(--gold) !important; }
.auth-form .card { border-top-color: var(--gold); }
.member-card { background: radial-gradient(400px 200px at 100% 0%, rgba(245, 158, 11, .45), transparent 60%), linear-gradient(150deg, #172154, #0563ba); }
.member-card .mc-logo { background: #fff; border-radius: 8px; padding: 4px 8px; display: inline-flex; }
.member-card .mc-logo img { height: 26px; width: auto; }
.chip.active { background: var(--navy); border-color: var(--navy); }
[data-theme="dark"] .chip.active { background: var(--brand); border-color: var(--brand); }
.badge.admin { background: color-mix(in srgb, var(--gold) 16%, transparent); color: #b45309; }
.file-warning, .committee .card:first-child { border-color: var(--gold); }
@media (max-width: 480px) {
  .nav-wrap { gap: .5rem; }
  .brand .logo-img { height: 22px; }
  .icon-btn { width: 36px; height: 36px; }
  .nav-actions .btn { padding: .4rem .65rem; font-size: .78rem; }
  .nav-actions .user-chip { padding: .2rem; }
  .hero .btn-lg { width: 100%; }
  .hero-logo img { height: 30px; }
}
@media (max-width: 560px) {
  .admin-btn .lbl { display: none; }
  .admin-btn { width: 36px; height: 36px; padding: 0; }
  .nav-actions { gap: .35rem; }
  .nav-wrap > .icon-btn { width: 34px; height: 34px; font-size: 1rem; }
  .user-chip { border: 0; padding: 0; }
  .toasts { left: 1rem; right: 1rem; }
  .toast { max-width: none; }
}
/* Footer brand: keep logo + label inside its column */
.site-footer .brand { flex-wrap: wrap; row-gap: .6rem; max-width: 100%; }
.site-footer .brand .logo-img { height: 40px; max-width: 100%; object-fit: contain; }
.footer-grid > div { min-width: 0; }
/* White buttons keep dark text in every theme */
.btn.btn-light, [data-theme="dark"] .btn.btn-light { color: #172154; }
[data-theme="dark"] .btn.btn-ghost { color: var(--text); }
