/* ==========================================================================
   "Matchday" theme — light, energetic, sports-app style. Loaded last.
   India blue + saffron on sky-white, Plus Jakarta Sans throughout.
   Legacy token names: --navy-* = blues/ink, --green-600 = saffron accent.
   ========================================================================== */
:root {
  --navy-900: #0b1220;   /* ink */
  --navy-800: #13203d;
  --navy-700: #1d4ed8;   /* India blue */
  --navy-600: #3b6cf0;
  --green-600: #f97316;  /* saffron */
  --green-700: #c2410c;
  --green-50: #fff1e6;
  --red-600: #e11d48;
  --red-50: #ffe4ea;
  --blue: #1d4ed8;
  --blue-50: #eaf0ff;
  --sky: #f5f8ff;
  --ink: #0b1220;
  --muted: #5b6478;
  --line: #e4e9f5;
  --bg: var(--sky);
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,.04), 0 4px 14px rgba(29,78,216,.06);
  --shadow: 0 18px 40px rgba(29,78,216,.14);
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --bs-body-font-family: var(--font-body);
  --bs-primary: var(--blue);
  --bs-primary-rgb: 29, 78, 216;
  --bs-link-color: var(--blue);
  --bs-link-hover-color: var(--green-700);
}
body { background: var(--sky); color: var(--ink); font-size: 1rem; letter-spacing: -.005em; }
h1, h2, h3, h4, .display-font { font-family: var(--font-head); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; text-transform: none !important; }
h1.text-uppercase, h2.text-uppercase, h3.text-uppercase, h4.text-uppercase { text-transform: none !important; }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; }
.text-green { color: var(--blue) !important; }

/* Buttons: pill */
.btn { border-radius: 999px; font-weight: 700; padding: .6rem 1.25rem; }
.btn-sm { border-radius: 999px; padding: .38rem .9rem; }
.btn-lg { border-radius: 999px; padding: .85rem 1.7rem; }
.btn-primary, .btn-success { --bs-btn-color: #fff; --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #1a43bd; --bs-btn-hover-border-color: #1a43bd; --bs-btn-active-color: #fff; --bs-btn-active-bg: #163a9f; --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--blue); }
.btn-cta { background: var(--green-600); color: #fff; box-shadow: 0 10px 24px rgba(249,115,22,.35); border: 0; }
.btn-cta:hover, .btn-cta:focus { background: #ea6a0e; color: #fff; transform: translateY(-1px); }
.btn-outline-primary { --bs-btn-color: var(--blue); --bs-btn-border-color: #c9d6fb; --bs-btn-hover-bg: var(--blue); --bs-btn-hover-border-color: var(--blue); }
.btn-light-soft { background: var(--blue-50); color: var(--blue); }
.btn-light-soft:hover { background: #dbe5ff; color: #163a9f; }

/* Cards */
.card, .feature-card, .plan-card, .member-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { border-radius: 14px; background: var(--blue-50); color: var(--blue); }
.feature-icon.navy { background: var(--blue-50); color: var(--blue); }
.feature-icon.red { background: var(--green-50); color: var(--green-700); }

/* Section titles */
.section-title .kicker { display: inline-block; background: var(--green-50); color: var(--green-700); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; padding: .35rem .8rem; border-radius: 999px; }
.section-title h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--ink); margin: .8rem 0 .5rem; }
.title-bar { display: none; }
.section-title p { color: var(--muted); }

/* ---------------------------------------------------------------- Header */
.site-nav { background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); box-shadow: none; }
.site-nav .navbar-brand { color: var(--ink); }
.site-nav .navbar-brand img { height: 50px; width: 50px; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); }
.brand-text small { color: var(--green-700); font-weight: 700; letter-spacing: .14em; font-size: .62rem; }
.site-nav .nav-link { color: var(--muted); font-weight: 700; font-size: .95rem; border-radius: 999px; }
.site-nav .nav-link:hover { color: var(--ink); background: var(--blue-50); }
.site-nav .nav-link.active { color: var(--blue); background: var(--blue-50); box-shadow: none; }
.site-nav .btn-outline-light { --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line); --bs-btn-hover-color: var(--blue); --bs-btn-hover-bg: var(--blue-50); --bs-btn-hover-border-color: var(--blue-50); }

/* ---------------------------------------------------------------- Hero (light, split) */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #dfe8ff 0%, transparent 60%), radial-gradient(800px 400px at -10% 110%, #ffe9d6 0%, transparent 60%), var(--sky); color: var(--ink); min-height: auto; padding: 4.5rem 0 5rem; overflow: hidden; }
.hero::after { display: none; }
.hero .eyebrow { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: .45rem .9rem .45rem .5rem; font-weight: 700; letter-spacing: 0; text-transform: none; font-size: .85rem; }
.hero .eyebrow .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--green-600); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin: 1.2rem 0 1.1rem; text-shadow: none; text-transform: none; color: var(--ink); }
.hero h1 .hl { background: linear-gradient(90deg, var(--blue), var(--navy-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .hl2 { color: var(--green-600); }
.hero p.lead { color: var(--muted); max-width: 520px; font-size: 1.1rem; }
.hero .btn-outline-light { --bs-btn-color: var(--ink); --bs-btn-border-color: #cfd8ee; --bs-btn-hover-color: var(--blue); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: var(--blue); background: #fff; }
.hero-trust { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.hero-trust .faces { display: flex; }
.hero-trust .faces img { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--sky); object-fit: cover; margin-left: -10px; }
.hero-trust .faces img:first-child { margin-left: 0; }
.hero-trust strong { color: var(--ink); }

/* Signature: framed photo + pitch stripe + floating chips */
.hero-visual { position: relative; padding: 1.5rem 0 1.5rem 1.5rem; }
.hero-visual .frame { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: 0 30px 60px rgba(29,78,216,.25); }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-visual .frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,18,32,.55)); }
.hero-visual .stripe { position: absolute; z-index: 2; right: -40px; top: 46px; width: 260px; height: 46px; transform: rotate(32deg); background: repeating-linear-gradient(90deg, var(--green-600) 0 40px, #fff 40px 52px, var(--blue) 52px 92px, #fff 92px 104px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.hero-visual .crest { position: absolute; z-index: 3; left: 0; top: 0; width: 92px; height: 92px; border-radius: 50%; background: #fff; padding: 6px; box-shadow: var(--shadow); }
.chip-stat { position: absolute; z-index: 3; background: #fff; border-radius: 16px; padding: .75rem 1rem; display: flex; align-items: center; gap: .7rem; box-shadow: 0 14px 34px rgba(11,18,32,.16); animation: floatY 5s ease-in-out infinite; }
.chip-stat .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.chip-stat .n { font-size: 1.35rem; font-weight: 800; line-height: 1; color: var(--ink); }
.chip-stat .l { font-size: .74rem; color: var(--muted); font-weight: 600; }
.chip-stat.a { left: -6px; bottom: 26%; }
.chip-stat.a .ic { background: var(--blue-50); color: var(--blue); }
.chip-stat.b { right: -10px; bottom: 6%; animation-delay: -2.5s; }
.chip-stat.b .ic { background: var(--green-50); color: var(--green-700); }
@keyframes floatY { 50% { transform: translateY(-8px); } }

.scoreboard, .value-strip, .hero-crest, .hero-meta { display: none !important; }

/* Page header */
.page-hero { background: radial-gradient(900px 300px at 90% 0%, #dfe8ff, transparent 60%), #fff; color: var(--ink); padding: 3.2rem 0 2.8rem; border-bottom: 1px solid var(--line); }
.page-hero::after { display: none; }
.page-hero h1 { color: var(--ink); font-size: clamp(2rem, 4.5vw, 3rem); text-transform: none; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #9aa3b8; font-weight: 600; font-size: .88rem; }
.page-hero .breadcrumb a { color: var(--blue); }
.page-hero .breadcrumb-item.active { color: var(--muted); }

/* Photo stack */
.photo-stack .main { border-radius: 24px; box-shadow: var(--shadow); }
.photo-stack .inset { border-radius: 20px; border: 6px solid #fff; }
.photo-stack .badge-ball { background: var(--green-600); border: 4px solid #fff; font-family: var(--font-head); font-weight: 800; box-shadow: 0 10px 24px rgba(249,115,22,.4); }

/* Role cards */
.role-card { border-radius: 24px; }
.role-card::before { background: linear-gradient(180deg, rgba(11,18,32,0) 35%, rgba(11,18,32,.88)); }
.role-card h4 { font-size: 1.6rem; text-transform: none; }
.role-card .num-tag { display: none; }
.role-card .body::before { content: 'Role'; display: inline-block; background: var(--green-600); color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .6rem; border-radius: 999px; margin-bottom: .5rem; }

/* Plans */
.pitch-band { background: linear-gradient(135deg, var(--blue), #1638a8); }
.pitch-band .section-title .kicker { background: rgba(255,255,255,.15); color: #fff; }
.plan-card { border-radius: 22px; border: 0; }
.plan-card h4 { font-size: 1.3rem; text-transform: none; }
.plan-card .price { font-family: var(--font-head); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.plan-card.featured { box-shadow: 0 0 0 3px var(--green-600), var(--shadow); }
.stitch-divider { display: none; }
.cta-band { background: var(--ink); border-radius: 24px; border: 0; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(249,115,22,.5), transparent 70%); }
.cta-band h3 { text-transform: none; }
.cta-band .btn-success { --bs-btn-bg: var(--green-600); --bs-btn-border-color: var(--green-600); --bs-btn-hover-bg: #ea6a0e; --bs-btn-hover-border-color: #ea6a0e; }

/* Directory, gallery */
.member-card .avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue); }
.member-card .code { color: var(--muted); }
.role-chip { background: var(--blue-50); color: var(--blue); }
.gallery-tile { border-radius: 18px; }
.filter-pills a { border-radius: 999px; font-weight: 700; border-color: var(--line); }
.filter-pills a.active, .filter-pills a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.badge-soft-success { background: #e3f8ec; color: #157347; }
.badge-soft-warning { background: var(--green-50); color: var(--green-700); }
.side-photo { border-radius: 24px; }

/* Forms */
.form-control, .form-select { border-radius: 12px; border-color: #d8e0f0; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .22rem rgba(29,78,216,.14); }
.form-section-title { color: var(--blue); font-family: var(--font-head); text-transform: none; font-weight: 800; font-size: 1.1rem; }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }

/* Footer */
.site-footer { background: var(--ink); color: #aab4c8; border: 0; }
.site-footer h6 { color: #fff; font-weight: 800; letter-spacing: .06em; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: #fdba74; }
.site-footer .social a:hover { background: var(--green-600); }

/* Auth */
.auth-wrap { background: radial-gradient(900px 500px at 90% 0%, #dfe8ff, transparent 60%), radial-gradient(700px 400px at 0% 100%, #ffe9d6, transparent 60%), var(--sky); }
.auth-card { border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth-card h1 { text-transform: none; }

/* Mobile tab bar */
.mobile-tabbar { background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11,18,32,.06); }
.mobile-tabbar a { color: #8a93a6; }
.mobile-tabbar a.active { color: var(--blue); }
.mobile-tabbar a.tab-main { color: var(--ink); }
.mobile-tabbar a.tab-main .bi { background: var(--green-600); color: #fff; border-color: #fff; box-shadow: 0 8px 20px rgba(249,115,22,.4); }

/* ---------------------------------------------------------------- Admin */
.admin-body { background: var(--sky); }
.admin-sidebar { background: #fff; color: var(--muted); border-right: 1px solid var(--line); }
.admin-sidebar .brand { color: var(--ink); border-bottom: 1px solid var(--line); }
.admin-sidebar .brand strong { font-family: var(--font-head); font-weight: 800; font-size: .95rem; letter-spacing: 0; color: var(--ink); }
.admin-sidebar .brand small { color: var(--green-700); }
.admin-sidebar .nav-label { color: #9aa3b8; }
.admin-sidebar a.side-link { color: var(--muted); font-weight: 600; border-radius: 12px; }
.admin-sidebar a.side-link:hover { background: var(--sky); color: var(--ink); }
.admin-sidebar a.side-link.active { background: var(--blue-50); color: var(--blue); box-shadow: none; }
.admin-sidebar a.side-link .count { background: var(--green-600); }
.admin-topbar { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-topbar h1 { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); text-transform: none; letter-spacing: -.02em; }
.admin-user .av { background: var(--blue); }
.kpi { border-radius: 18px; border-color: var(--line); }
.kpi .val { font-family: var(--font-head); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.kpi .lbl { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.ic-navy, .ic-blue { background: var(--blue-50); color: var(--blue); }
.ic-green { background: #e3f8ec; color: #157347; }
.ic-amber { background: var(--green-50); color: var(--green-700); }
.ic-red { background: var(--red-50); color: var(--red-600); }
.filter-bar { border-radius: 18px; }
.table > thead th { background: var(--sky); text-transform: none; letter-spacing: 0; font-size: .78rem; }
.card-header { font-weight: 800; }
.receipt { border-radius: 18px; }
.receipt-head { border-bottom-color: var(--blue); }
.member-card-print { background: linear-gradient(130deg, var(--ink), var(--blue)); }
.member-card-print::after { border-color: rgba(249,115,22,.45); }

@media (max-width: 991.98px) {
  .admin-sidebar { box-shadow: 10px 0 40px rgba(11,18,32,.15); }
  .hero-visual { margin-top: 1rem; padding: 1rem 0 1rem 1rem; }
}
@media (max-width: 767.98px) {
  .hero { padding: 2.4rem 0 3rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero .d-flex.flex-wrap.gap-3 { flex-direction: column; }
  .hero .d-flex.flex-wrap.gap-3 .btn { width: 100%; }
  .hero-visual .frame { aspect-ratio: 4 / 3.6; border-radius: 22px; }
  .hero-visual .crest { width: 70px; height: 70px; }
  .hero-visual .stripe { width: 200px; height: 34px; top: 30px; }
  .chip-stat { padding: .55rem .8rem; }
  .chip-stat .ic { width: 32px; height: 32px; font-size: 1rem; }
  .chip-stat .n { font-size: 1.1rem; }
  .chip-stat.a { left: 0; }
  .chip-stat.b { right: 0; }
  .site-nav .navbar-brand img { height: 42px; width: 42px; }
  .brand-text strong { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) { .chip-stat { animation: none; } }

/* fixes */
.page-hero .btn-outline-light { --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line); --bs-btn-hover-color: var(--blue); --bs-btn-hover-bg: var(--blue-50); background: #fff; }
.table td a.fw-semibold { white-space: nowrap; }
.admin-sidebar .brand span { color: var(--ink); }
.page-hero h1.h2 { font-size: 2rem; }
@media (max-width: 575.98px) { .kpi { flex-direction: column; align-items: flex-start; } .kpi .val { font-size: 1.1rem; white-space: nowrap; } .kpi > div:last-child { min-width: 0; width: 100%; } }

/* ---------------------------------------------------------------- Player cards (member directory) */
.player-card { --rc: #1d4ed8; --rc2: #3b6cf0; position: relative; background: #fff; border-radius: 22px; overflow: hidden; height: 100%; display: flex; flex-direction: column; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.player-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(11,18,32,.14); }
.player-card.role-bowler { --rc: #e11d48; --rc2: #fb5a7a; }
.player-card.role-allrounder { --rc: #f97316; --rc2: #fb9a4b; }
.player-card.role-wicketkeeper { --rc: #059669; --rc2: #2fbf8f; }
.pc-top { height: 92px; position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: .75rem .8rem;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 18px, transparent 18px 36px), linear-gradient(135deg, var(--rc), var(--rc2)); }
.pc-top::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -30px; height: 60px; background: #fff; border-radius: 50% 50% 0 0; }
.pc-role { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .3rem; background: rgba(255,255,255,.2); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .03em; padding: .3rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.pc-crest { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: #fff; padding: 2px; opacity: .95; }
.pc-photo { position: relative; z-index: 2; margin: -48px auto 0; width: 104px; height: 104px; border-radius: 50%; padding: 4px; background: conic-gradient(var(--rc), var(--rc2), var(--rc)); box-shadow: 0 10px 24px rgba(11,18,32,.18); transition: transform .35s ease; }
.pc-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #fff; }
.player-card:hover .pc-photo { transform: scale(1.05) rotate(-3deg); }
.pc-body { padding: .9rem .8rem .6rem; flex: 1; }
.pc-name { font-size: 1.05rem; font-weight: 800; margin: 0 0 .4rem; color: var(--ink); letter-spacing: -.01em; line-height: 1.25; }
.pc-code { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--sky); border: 1px solid var(--line); padding: .22rem .6rem; border-radius: 999px; letter-spacing: .04em; }
.pc-code .bi { color: var(--rc); }
.pc-foot { border-top: 1px dashed var(--line); padding: .6rem .8rem .75rem; }
.pc-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 700; }
.pc-status .dot { width: 8px; height: 8px; border-radius: 50%; }
.pc-status.on { color: #157347; } .pc-status.on .dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.pc-status.off { color: #b45309; } .pc-status.off .dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
@media (max-width: 575.98px) {
  .pc-top { height: 74px; padding: .55rem .6rem; }
  .pc-role { font-size: .62rem; padding: .25rem .5rem; }
  .pc-crest { display: none; }
  .pc-photo { width: 82px; height: 82px; margin-top: -40px; }
  .pc-name { font-size: .92rem; }
  .pc-code { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .player-card, .pc-photo { transition: none; } .player-card:hover, .player-card:hover .pc-photo { transform: none; } }

/* Header fit on laptop widths */
.nav-cta .btn { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) { .site-nav .nav-link { padding: .45rem .6rem !important; font-size: .9rem; } .brand-text small { display: none; } .nav-cta .btn { padding: .38rem .75rem; font-size: .82rem; } }

/* ---------------------------------------------------------------- Admin forms: aligned & consistent */
.admin-content .form-label, .filter-bar .form-label { font-size: .84rem; font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; margin-bottom: .35rem; }
.admin-content .form-text { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.admin-content .form-control, .admin-content .form-select { min-height: 44px; }
.admin-content .input-group-text { background: var(--sky); border-color: #d8e0f0; color: var(--muted); font-weight: 700; border-radius: 12px; }
.admin-content .input-group > .form-control:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.admin-content .input-group > .input-group-text:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.admin-content .input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.admin-content .input-group > .input-group-text:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Sectioned form page: description left, fields right */
.form-page { max-width: 1100px; }
.form-block { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem 2.5rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.form-block-head h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .35rem; letter-spacing: -.01em; }
.form-block-head p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.5; }
.form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; gap: .6rem; padding: .9rem 1.1rem; margin-top: 1rem; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 -8px 24px rgba(11,18,32,.06); }

/* Check tiles (payment methods etc.) */
.check-tiles { display: flex; flex-wrap: wrap; gap: .6rem; }
.check-tile { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--muted); background: #fff; transition: all .15s; }
.check-tile .bi { font-size: 1.05rem; }
.btn-check:checked + .check-tile { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.btn-check:focus-visible + .check-tile { outline: 3px solid var(--green-600); outline-offset: 2px; }

/* Filter bar: clean grid, labelled buttons */
.filter-bar { padding: 1.1rem 1.2rem; }
.filter-bar .row { --bs-gutter-x: .8rem; --bs-gutter-y: .8rem; }
.filter-bar .btn { min-height: 44px; }

/* Long forms in a card (member add/edit) */
.admin-content .card .form-section { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 1.5rem; }
.admin-content .card .form-section-title, .admin-content .card > .card-body > form > .form-section-title:first-of-type { font-size: 1rem; margin-bottom: 1rem; }
.fee-info { display: flex; gap: .8rem; align-items: center; background: var(--blue-50); border: 1px solid #d6e1ff; border-radius: 12px; padding: .7rem 1rem; min-height: 44px; }
.fee-info > .bi { font-size: 1.4rem; color: var(--blue); }

@media (max-width: 991.98px) {
  .form-block { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; }
  .form-actions { margin-left: -.2rem; margin-right: -.2rem; }
  .form-actions .btn { flex: 1; }
}

/* ---------------------------------------------------------------- Equal header heights (sidebar brand = topbar) */
:root { --admin-bar-h: 72px; }
.admin-sidebar .brand { height: var(--admin-bar-h); padding-top: 0; padding-bottom: 0; box-sizing: border-box; flex: 0 0 var(--admin-bar-h); }
.admin-topbar { height: var(--admin-bar-h); min-height: var(--admin-bar-h); padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
@media (max-width: 991.98px) { :root { --admin-bar-h: 64px; } }

/* ---------------------------------------------------------------- User profile dropdown */
.user-trigger { display: flex; align-items: center; gap: .6rem; background: transparent; border: 1px solid transparent; border-radius: 999px; padding: .3rem .7rem .3rem .3rem; color: var(--ink); transition: background .15s, border-color .15s; }
.user-trigger:hover, .user-menu.show .user-trigger, .user-trigger[aria-expanded="true"] { background: var(--blue-50); border-color: #d6e1ff; }
.user-trigger .av, .user-dropdown .av { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex: 0 0 auto; }
.user-trigger .av-img, .user-dropdown .av-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--blue); flex: 0 0 auto; }
.user-trigger .who { line-height: 1.15; text-align: left; }
.user-trigger .who strong { display: block; font-size: .88rem; font-weight: 800; }
.user-trigger .who small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.user-trigger .caret { font-size: .75rem; color: var(--muted); transition: transform .2s; }
.user-trigger[aria-expanded="true"] .caret { transform: rotate(180deg); }
.user-dropdown { min-width: 270px; padding: .5rem; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(11,18,32,.16); margin-top: .5rem !important; }
.user-dropdown .ud-head { display: flex; gap: .75rem; align-items: center; padding: .7rem .7rem .9rem; margin-bottom: .35rem; border-bottom: 1px solid var(--line); }
.user-dropdown .av.lg { width: 48px; height: 48px; font-size: 1rem; }
.user-dropdown .av-img.lg { width: 48px; height: 48px; }
.user-dropdown .ud-role { display: inline-block; margin-top: .3rem; background: var(--green-50); color: var(--green-700); font-size: .68rem; font-weight: 800; padding: .15rem .55rem; border-radius: 999px; }
.user-dropdown .dropdown-item { display: flex; align-items: center; gap: .7rem; border-radius: 10px; padding: .55rem .7rem; font-weight: 600; font-size: .9rem; color: var(--ink); }
.user-dropdown .dropdown-item .bi { font-size: 1.05rem; color: var(--muted); width: 20px; }
.user-dropdown .dropdown-item:hover, .user-dropdown .dropdown-item:focus { background: var(--blue-50); color: var(--blue); }
.user-dropdown .dropdown-item:hover .bi { color: var(--blue); }
.user-dropdown .dropdown-item.text-danger .bi { color: var(--red-600); }
.user-dropdown .dropdown-item.text-danger:hover { background: var(--red-50); color: var(--red-600) !important; }
.user-dropdown form { margin: 0; }
.user-dropdown .dropdown-divider { margin: .35rem .3rem; border-color: var(--line); }
/* public header: dropdown sits inside the nav cta area */
.site-nav .user-menu .user-trigger { border-color: var(--line); background: #fff; }
.user-menu-mobile .user-trigger { padding: .2rem; gap: 0; }
@media (max-width: 991.98px) { .user-menu-mobile .user-dropdown { position: absolute; right: 0; left: auto; min-width: min(290px, calc(100vw - 32px)); } }
