/* =====================================================================
   Omadara — Sports Club SaaS Platform
   Shared design system (plain CSS, ported easily to ASP.NET Core wwwroot)
   Author: Omadara UI
   Notes: All tokens live in :root. No framework, no build step.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette — premium sports-tech, deep ink + electric accent */
  --ink-900: #0a0f1c;
  --ink-800: #0f172a;
  --ink-700: #16213a;
  --ink-600: #1e2a48;
  --ink-500: #2b3a5e;

  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --surface-3: #eef1f8;
  --line: #e2e7f0;
  --line-strong: #cdd5e4;

  --text: #0f172a;
  --text-soft: #4a5670;
  --text-mute: #8a93a8;
  --text-invert: #eef2fb;

  /* Accents */
  --accent: #16e0a3;        /* electric mint-green */
  --accent-600: #0fbf8a;
  --accent-700: #0b9a70;
  --accent-soft: rgba(22, 224, 163, 0.12);

  --violet: #7c5cff;
  --violet-soft: rgba(124, 92, 255, 0.12);
  --amber: #ffb020;
  --amber-soft: rgba(255, 176, 32, 0.14);
  --rose: #ff5470;
  --rose-soft: rgba(255, 84, 112, 0.12);
  --sky: #35a0ff;
  --sky-soft: rgba(53, 160, 255, 0.12);

  /* Semantic */
  --ok: #16b981;
  --ok-soft: rgba(22, 185, 129, 0.14);
  --warn: #f5a524;
  --warn-soft: rgba(245, 165, 36, 0.16);
  --danger: #ef4658;
  --danger-soft: rgba(239, 70, 88, 0.14);

  --gradient-hero: radial-gradient(1200px 600px at 80% -10%, rgba(124,92,255,.35), transparent 60%),
                   radial-gradient(900px 500px at 10% 10%, rgba(22,224,163,.25), transparent 55%),
                   linear-gradient(160deg, var(--ink-900), var(--ink-700));
  --gradient-accent: linear-gradient(120deg, var(--accent), #4be3ff);
  --gradient-violet: linear-gradient(120deg, var(--violet), #b28bff);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow: 0 6px 20px -8px rgba(15,23,42,.18);
  --shadow-lg: 0 24px 60px -20px rgba(15,23,42,.35);
  --shadow-glow: 0 12px 40px -12px rgba(22,224,163,.45);

  /* Geometry */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  --container: 1200px;
  --sidebar-w: 264px;
  --header-h: 68px;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
ul { list-style: none; padding: 0; }

/* ---------- Utilities ---------- */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.muted { color: var(--text-mute); }
.soft { color: var(--text-soft); }
.center { text-align: center; }
.hide { display: none !important; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-700);
}
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--text-soft); margin-top: 14px; font-size: 17px; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--gradient-accent); color: var(--ink-900); font-weight: 800;
  box-shadow: var(--shadow-glow); flex: none;
}

.brand-logo-image {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.club-brand-logo {
    background: #fff;
    border-radius: 10px;
    padding: 3px;
}

.grid-export-toolbar { display:flex; justify-content:flex-end; margin-bottom:10px; }
.brand .name { font-size: 19px; letter-spacing: -0.02em; }
.brand .name b { color: var(--accent-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-full); border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--ink-900); box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--accent-600); }
.btn-dark { background: var(--ink-800); color: var(--text-invert); }
.btn-dark:hover { background: var(--ink-700); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-ghost-invert { background: rgba(255,255,255,.08); color: var(--text-invert); border-color: rgba(255,255,255,.18); }
.btn-ghost-invert:hover { background: rgba(255,255,255,.16); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; border-radius: 12px; }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--r-full); font-size: 12px; font-weight: 600; font-family: var(--font-display);
  background: var(--surface-3); color: var(--text-soft);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--sky-soft); color: var(--sky); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.badge-accent { background: var(--accent-soft); color: var(--accent-700); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h3 { font-size: 17px; }
.card-head .link { font-size: 13px; font-weight: 600; color: var(--accent-700); font-family: var(--font-display); }

/* KPI stat card */
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; position: relative; overflow: hidden;
}
.stat .ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 20px; margin-bottom: 14px;
}
.stat .val { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.stat .lbl { color: var(--text-mute); font-size: 13.5px; margin-top: 2px; }
.stat .trend { margin-top: 12px; font-size: 12.5px; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.trend.up { color: var(--ok); } .trend.down { color: var(--danger); }
.i-accent { background: var(--accent-soft); color: var(--accent-700); }
.i-violet { background: var(--violet-soft); color: var(--violet); }
.i-amber { background: var(--amber-soft); color: var(--amber); }
.i-sky { background: var(--sky-soft); color: var(--sky); }
.i-rose { background: var(--rose-soft); color: var(--rose); }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 640px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; font-size: 14px; }
table.data thead th {
  background: var(--surface-2); color: var(--text-mute); font-family: var(--font-display);
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--line);
}
table.data tbody tr { border-bottom: 1px solid var(--line); transition: background .15s; }
table.data tbody tr:last-child { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-2); }
.cell-user { display: flex; align-items: center; gap: 10px; }

/* ---------- Avatars ---------- */
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff; flex: none;
  background: var(--ink-600);
}
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.a1 { background: linear-gradient(135deg,#7c5cff,#b28bff); }
.a2 { background: linear-gradient(135deg,#16e0a3,#0b9a70); }
.a3 { background: linear-gradient(135deg,#ffb020,#ff7a45); }
.a4 { background: linear-gradient(135deg,#35a0ff,#5ee0ff); }
.a5 { background: linear-gradient(135deg,#ff5470,#ff8aa0); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; font-family: var(--font-display); color: var(--text-soft); }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); transition: border .15s, box-shadow .15s; font-size: 14.5px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { resize: vertical; min-height: 96px; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 180px; }
.form-card { margin-bottom: 20px; }
.app-alert {
  margin-bottom: 18px; padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 14px; font-weight: 600;
}
.app-alert-success { border-color: rgba(22,224,163,.35); background: rgba(22,224,163,.10); color: var(--accent-700); }
.app-alert-error { border-color: rgba(255,84,112,.35); background: rgba(255,84,112,.10); color: #b42347; }
.validation-box {
  margin-bottom: 16px; padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid rgba(255,84,112,.35); background: rgba(255,84,112,.08);
}
.validation-box ul { margin: 0; padding-left: 18px; }
.field-error { color: #b42347; font-size: 12.5px; font-weight: 600; }
.form-help { margin: -6px 0 12px; font-size: 12.5px; }
.schedule-options { display: grid; gap: 8px; transition: opacity .15s ease; }
.schedule-options.is-loading { opacity: .55; pointer-events: none; }
.schedule-option { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }
.schedule-option:hover { border-color: var(--accent); }
.schedule-option.is-taken { background: var(--surface-2); color: var(--text-mute); cursor: not-allowed; }
.schedule-option.is-taken:hover { border-color: var(--line); }
.schedule-option input { margin-top: 3px; accent-color: var(--accent); }
.schedule-option-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.schedule-option-copy b { font-size: 13px; line-height: 1.35; }
.schedule-option-copy small { color: var(--text-mute); font-size: 11.5px; }
.empty-state { padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--text-mute); font-size: 13px; }
.danger-zone { margin-top: 24px; padding: 16px; border: 1px solid rgba(255,84,112,.55); border-radius: var(--r-md); background: rgba(255,84,112,.08); }
.danger-zone h3 { color: #b42347; margin-bottom: 6px; }
.danger-zone p { color: var(--text-mute); font-size: 13px; margin-bottom: 12px; }
.btn-danger { background: #b42347; color: #fff; border-color: #b42347; }
.btn-danger:hover { background: #8f1d39; border-color: #8f1d39; color: #fff; }

/* toggle switch */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; background: var(--line-strong); border-radius: var(--r-full);
  transition: .2s; cursor: pointer;
}
.switch .track::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::before { transform: translateX(18px); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab {
  padding: 11px 16px; border: none; background: none; cursor: pointer; font-family: var(--font-display);
  font-weight: 600; font-size: 14px; color: var(--text-mute); border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none; } }

/* ---------- Filters bar ---------- */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px;
}
.search {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-full); padding: 8px 16px; flex: 1; min-width: 200px;
}
.search input { border: none; outline: none; background: none; width: 100%; }
.chip {
  padding: 8px 14px; border-radius: var(--r-full); border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 13px; font-weight: 600; font-family: var(--font-display);
  cursor: pointer; color: var(--text-soft); transition: .15s;
}
.chip.active { background: var(--ink-800); color: var(--text-invert); border-color: var(--ink-800); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,15,28,.55); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fade .2s ease; }
.modal {
  background: var(--surface); border-radius: var(--r-lg); width: min(520px, 100%);
  box-shadow: var(--shadow-lg); max-height: 90vh; overflow: auto;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 22px; color: var(--text-mute); line-height: 1; }

/* ---------- Progress ---------- */
.progress { height: 8px; background: var(--surface-3); border-radius: var(--r-full); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--gradient-accent); border-radius: var(--r-full); }

/* =====================================================================
   PUBLIC / MARKETING
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px);
  background: rgba(255,255,255,.82); border-bottom: 1px solid var(--line);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--text-soft); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

.hero {
  background: var(--gradient-hero); color: var(--text-invert); position: relative; overflow: hidden;
  padding: 96px 0 120px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 62px); line-height: 1.04; }
.hero h1 .grad { background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: 18px; color: rgba(238,242,251,.78); margin-top: 20px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-full);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 600;
}
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .n { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.hero-stats .l { font-size: 13px; color: rgba(238,242,251,.6); }

/* dashboard mockup panel in hero */
.mock {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-xl);
  padding: 16px; box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.mock .bar { display: flex; gap: 6px; margin-bottom: 12px; }
.mock .bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mock-card { background: rgba(255,255,255,.9); color: var(--text); border-radius: var(--r-md); padding: 14px; margin-bottom: 10px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.logos { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; align-items: center; opacity: .7; }
.logos span { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text-mute); }

/* feature cards */
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  transition: transform .2s, box-shadow .2s; height: 100%;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 23px; margin-bottom: 16px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-soft); font-size: 15px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px;
  display: flex; flex-direction: column; position: relative;
}
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow-glow); transform: scale(1.02); }
.plan .tag-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.plan h3 { font-size: 20px; }
.plan .price { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--text-mute); }
.plan ul.checks { display: flex; flex-direction: column; gap: 11px; margin: 22px 0; }
.plan ul.checks li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-soft); }
.plan ul.checks li::before { content: "✓"; color: var(--accent-700); font-weight: 800; }
.plan ul.checks li.off { color: var(--text-mute); opacity: .7; }
.plan ul.checks li.off::before { content: "–"; color: var(--text-mute); }

/* compare table */
.compare th, .compare td { text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: var(--text-mute); }

/* CTA band */
.cta-band { background: var(--gradient-hero); color: var(--text-invert); border-radius: var(--r-xl); padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); }
.cta-band p { color: rgba(238,242,251,.78); margin: 14px auto 26px; max-width: 520px; }

/* footer */
.site-footer { background: var(--ink-900); color: var(--text-invert); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 14px; color: rgba(238,242,251,.6); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-grid a { display: block; color: rgba(238,242,251,.75); font-size: 14.5px; padding: 5px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(238,242,251,.55); font-size: 13.5px; }

/* auth split */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-visual { background: var(--gradient-hero); color: var(--text-invert); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--surface); }
.auth-card { width: min(420px, 100%); }
.portal-tabs { display: flex; gap: 8px; background: var(--surface-3); padding: 5px; border-radius: var(--r-full); margin-bottom: 26px; }
.portal-tabs .tab { flex: 1; text-align: center; border-radius: var(--r-full); border: none; padding: 9px; font-size: 13px; }
.portal-tabs .tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* public club hero */
.club-cover { height: 260px; background: var(--gradient-hero); border-radius: var(--r-xl); position: relative; overflow: hidden; }
.club-headline { display: flex; align-items: flex-end; gap: 20px; margin-top: -56px; padding: 0 24px; position: relative; z-index: 2; }
.club-crest { width: 108px; height: 108px; border-radius: 26px; background: var(--gradient-accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--ink-900); border: 5px solid var(--surface); box-shadow: var(--shadow); flex: none; }

/* =====================================================================
   APP SHELL (club portal, admin, super admin)
   ===================================================================== */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; top: 0; left: 0; width: var(--sidebar-w); height: 100vh; z-index: 120;
  background: var(--ink-900); color: var(--text-invert); display: flex; flex-direction: column;
  transition: transform .25s ease; overflow-y: auto;
}
.sidebar-brand { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-brand .brand .name { color: var(--text-invert); }
.tenant-switch {
  margin: 0 16px 12px; padding: 12px; border-radius: var(--r-md); background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.tenant-switch .avatar { width: 34px; height: 34px; }
.tenant-switch .meta { line-height: 1.2; overflow: hidden; }
.tenant-switch .meta b { font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tenant-switch .meta span { font-size: 11.5px; color: rgba(238,242,251,.5); }
.nav-group { padding: 8px 12px; }
.nav-group .grp-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: rgba(238,242,251,.4); padding: 12px 12px 6px; font-family: var(--font-display); }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; margin-bottom: 2px;
  color: rgba(238,242,251,.72); font-size: 14px; font-weight: 500; cursor: pointer; transition: .15s;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: rgba(22,224,163,.14); color: var(--accent); }
.nav-item .ico { width: 20px; text-align: center; flex: none; }
.nav-item .count { margin-left: auto; background: rgba(255,255,255,.12); padding: 1px 8px; border-radius: var(--r-full); font-size: 11px; }
.sidebar-foot { margin-top: auto; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 90; height: var(--header-h); background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center;
  gap: 16px; padding: 0 24px;
}
.topbar .page-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.topbar .crumbs { font-size: 12.5px; color: var(--text-mute); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; position: relative; font-size: 17px; }
.icon-btn .ping { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); border: 2px solid var(--surface); }
.content { padding: 26px 24px 48px; flex: 1; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-intro h1 { font-size: 26px; }
.page-intro p { color: var(--text-soft); margin-top: 4px; }

.hamburger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; }
.scrim { position: fixed; inset: 0; background: rgba(10,15,28,.5); z-index: 110; display: none; }
.scrim.open { display: block; }

/* super-admin tint */
.theme-super .sidebar { background: linear-gradient(180deg, #1a1030, #0c0a1a); }
.theme-super .nav-item.active { background: rgba(124,92,255,.18); color: #b28bff; }
.theme-super .tenant-switch .avatar { background: var(--gradient-violet); }

/* list rows (timeline / activity) */
.tl { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: none; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--accent); }
.tl-item .t { font-size: 12px; color: var(--text-mute); }

/* calendar */
.cal { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--surface-2); }
.cal-head span { padding: 10px; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-mute); font-family: var(--font-display); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell { min-height: 96px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); padding: 6px; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell .d { font-size: 12.5px; color: var(--text-mute); font-weight: 600; }
.cal-cell.out { background: var(--surface-2); }
.cal-cell.today .d { background: var(--accent); color: var(--ink-900); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.ev { font-size: 11px; padding: 3px 6px; border-radius: 6px; margin-top: 4px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-train { background: var(--accent-soft); color: var(--accent-700); }
.ev-match { background: var(--rose-soft); color: var(--rose); }
.ev-meet { background: var(--sky-soft); color: var(--sky); }
.calendar-day-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.calendar-day-row:last-child { border-bottom: none; }
.calendar-day-label { font-family: var(--font-display); font-weight: 700; }
.calendar-day-label small { display: block; margin-top: 4px; color: var(--text-mute); font-family: var(--font-body); font-weight: 500; }
.calendar-items { display: grid; gap: 8px; }
.calendar-item { padding: 9px 11px; border-left: 3px solid var(--accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--accent-soft); font-size: 12.5px; }
.calendar-item.slot-taken { border-left-color: var(--rose); background: var(--rose-soft); }
.calendar-item small { color: var(--text-mute); }
.calendar-grid-7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.calendar-grid-7 .calendar-day-row { display: block; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); min-height: 140px; }
.calendar-grid-7 .calendar-day-label { margin-bottom: 10px; }

/* schedule list item */
.sch-item { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin-bottom: 10px; }
.sch-time { text-align: center; padding-right: 14px; border-right: 1px solid var(--line); min-width: 74px; }
.sch-time b { font-family: var(--font-display); font-size: 16px; display: block; }
.sch-time span { font-size: 11.5px; color: var(--text-mute); }

/* empty helper for forms/docs */
.doc-row { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; background: var(--surface); }
.doc-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky); font-size: 18px; flex: none; }

/* detail / governance pages */
.detail-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .9fr); }
.panel-stack { display: flex; flex-direction: column; gap: 20px; }
.profile-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(22,224,163,.12), rgba(53,160,255,.1));
  border: 1px solid rgba(22,224,163,.18);
}
.profile-id { display: flex; align-items: center; gap: 16px; }
.profile-id h2 { font-size: 24px; margin-top: 6px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.meta-tile {
  padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface);
}
.meta-tile .k { font-size: 12px; color: var(--text-mute); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.meta-tile .v { font-size: 14px; font-weight: 600; }
.key-list { display: flex; flex-direction: column; gap: 10px; }
.key-row {
  display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.key-row:last-child { border-bottom: none; padding-bottom: 0; }
.key-row .k { color: var(--text-mute); }
.key-row .v { text-align: right; font-weight: 600; }
.info-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.board-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.person-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 18px;
  box-shadow: var(--shadow-sm);
}
.person-card .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.person-card .name { font-family: var(--font-display); font-size: 18px; }
.person-card .role { color: var(--text-soft); margin-top: 4px; font-size: 13.5px; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.note-box {
  padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text-soft);
}
.agenda-list, .decision-list, .attachment-list, .task-list {
  display: flex; flex-direction: column; gap: 12px;
}
.agenda-item, .decision-item, .attachment-item, .task-item {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 14px 16px;
}
.agenda-item h4, .decision-item h4, .attachment-item h4, .task-item h4 { font-size: 15px; margin-bottom: 6px; }
.agenda-item p, .decision-item p, .attachment-item p, .task-item p { color: var(--text-soft); font-size: 13.5px; }
.decision-item .row, .attachment-item .row, .task-item .row { margin-top: 12px; }
.check-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface);
}
.check-icon {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-700); font-size: 14px; flex: none;
}
.split-note {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.empty-note {
  padding: 14px 16px; border-radius: var(--r-md); border: 1px dashed var(--line-strong);
  background: var(--surface-2); color: var(--text-mute); font-size: 13px;
}

/* funnel / pipeline */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pipe-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.pipe-col h4 { font-size: 13px; margin-bottom: 10px; display: flex; justify-content: space-between; }
.pipe-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.pipe-card .nm { font-weight: 600; font-size: 14px; }
.pipe-card .mt { font-size: 12px; color: var(--text-mute); margin-top: 3px; }

/* mini bar chart */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; }
.bars .b { flex: 1; background: var(--gradient-accent); border-radius: 8px 8px 0 0; position: relative; min-height: 6px; }
.bars .b span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--text-mute); }
.bars .b.v { background: var(--gradient-violet); }

/* donut placeholder */
.donut { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) 0 62%, var(--violet) 62% 82%, var(--amber) 82% 94%, var(--line) 94% 100%); }
.donut .hole { width: 96px; height: 96px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.legend { display: flex; flex-direction: column; gap: 8px; }
.legend .li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.legend .sw { width: 12px; height: 12px; border-radius: 4px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan.featured { transform: none; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; }
  .hamburger { display: inline-flex; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open { display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: var(--surface); padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 8px; }
  .g-2, .g-3, .g-4, .g-auto { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 36px 22px; }
  .pipeline { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 80px; }
  .content { padding: 18px 16px 40px; }
  .calendar-day-row { grid-template-columns: 1fr; gap: 8px; }
  .calendar-grid-7 { grid-template-columns: 1fr; }
}

/* =====================================================================
   THEME VARIANTS (live switcher) — data-theme on <html>
   Default (no attribute) = Deep Ink + Electric Mint
   ===================================================================== */

/* ---------- Charcoal + Ember ---------- */
[data-theme="ember"] {
  --ink-900: #080808;
  --ink-800: #101010;
  --ink-700: #181818;
  --ink-600: #242424;
  --ink-500: #303030;

  --surface: #121212;
  --surface-2: #1b1b1b;
  --surface-3: #262626;
  --line: #3b3b3b;
  --line-strong: #5a5a5a;

  --text: #fff8f1;
  --text-soft: #ead6c8;
  --text-mute: #c3b4aa;
  --text-invert: #fff8f1;

  --accent: #ff7a45;
  --accent-600: #ff8f60;
  --accent-700: #ffb18f;
  --accent-soft: rgba(255, 122, 69, 0.22);

  --violet: #ffae67;
  --violet-soft: rgba(255, 174, 103, 0.20);
  --amber: #ffc247;
  --amber-soft: rgba(255, 194, 71, 0.20);
  --rose: #ff8b7d;
  --rose-soft: rgba(255, 139, 125, 0.18);
  --sky: #f0bf8a;
  --sky-soft: rgba(240, 191, 138, 0.18);

  --ok: #8fe59a;
  --ok-soft: rgba(143, 229, 154, 0.18);
  --warn: #ffc247;
  --warn-soft: rgba(255, 194, 71, 0.20);
  --danger: #ff8b7d;
  --danger-soft: rgba(255, 139, 125, 0.18);

  --gradient-hero: radial-gradient(1200px 600px at 80% -10%, rgba(255,122,69,.30), transparent 60%),
                   radial-gradient(900px 500px at 10% 10%, rgba(255,194,71,.16), transparent 55%),
                   linear-gradient(160deg, #080808, #181818);
  --gradient-accent: linear-gradient(120deg, #ff7a45, #ffc247);
  --gradient-violet: linear-gradient(120deg, #ffae67, #ffc247);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 6px 20px -8px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
  --shadow-glow: 0 12px 40px -12px rgba(255,122,69,.55);
}
[data-theme="ember"] body { background: var(--ink-900); color: var(--text); }
[data-theme="ember"] .site-header,
[data-theme="ember"] .topbar {
  background: rgba(12,12,12,.94);
  border-color: var(--line);
  color: var(--text);
}
[data-theme="ember"] .nav-links.open,
[data-theme="ember"] .auth-form-side,
[data-theme="ember"] .modal,
[data-theme="ember"] .theme-fab { background: var(--surface); color: var(--text); }
[data-theme="ember"] .mock-card { background: #171717; color: var(--text); border: 1px solid var(--line); }
[data-theme="ember"] .theme-super .sidebar,
[data-theme="ember"] .sidebar { background: linear-gradient(180deg, #100b08, #050505); }
[data-theme="ember"] .tenant-switch { background: rgba(255,248,241,.08); border-color: rgba(255,248,241,.18); }
[data-theme="ember"] .tenant-switch .meta span,
[data-theme="ember"] .nav-group .grp-label { color: rgba(255,248,241,.72); }
[data-theme="ember"] .nav-item { color: rgba(255,248,241,.88); }
[data-theme="ember"] .nav-item:hover { background: rgba(255,248,241,.12); color: #fff8f1; }
[data-theme="ember"] .nav-item.active,
[data-theme="ember"] .theme-super .nav-item.active { background: rgba(255,122,69,.24); color: #ffd1bd; }
[data-theme="ember"] .nav-item .count { background: rgba(255,248,241,.18); color: #fff8f1; }

/* ---------- Floating theme switcher control ---------- */
.theme-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 400;
  display: flex; gap: 6px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-full); box-shadow: var(--shadow-lg);
}
.theme-fab button {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; padding: 0; font-size: 0;
  transition: transform .15s ease, border-color .15s ease;
}
.theme-fab button:hover { transform: scale(1.12); }
.theme-fab button[aria-pressed="true"] { border-color: var(--text); }
.theme-fab .sw-ink { background: linear-gradient(135deg, #0f172a, #16e0a3); }
.theme-fab .sw-ember { background: linear-gradient(135deg, #1a1a1a, #e85d3a); }

/* ember-theme contrast fixes */
[data-theme="ember"] .input,
[data-theme="ember"] .select,
[data-theme="ember"] .textarea,
[data-theme="ember"] .search {
  background: #202020;
  color: var(--text);
  border-color: #6b6b6b;
}
[data-theme="ember"] input:not([type="radio"]):not([type="checkbox"]),
[data-theme="ember"] select,
[data-theme="ember"] textarea {
  background-color: #202020;
  color: var(--text);
  border-color: #6b6b6b;
}
[data-theme="ember"] .input::placeholder,
[data-theme="ember"] .textarea::placeholder,
[data-theme="ember"] .search input::placeholder { color: var(--text-mute); }
[data-theme="ember"] .select option { background: var(--surface-2); color: var(--text); }
[data-theme="ember"] .search input { color: var(--text); }
[data-theme="ember"] .btn-ghost,
[data-theme="ember"] .chip,
[data-theme="ember"] .portal-tabs,
[data-theme="ember"] .icon-btn,
[data-theme="ember"] .hamburger {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line-strong);
}
[data-theme="ember"] .btn-ghost:hover,
[data-theme="ember"] .chip.active,
[data-theme="ember"] .chip:hover,
[data-theme="ember"] .portal-tabs .tab.active { background: var(--surface-3); color: var(--text); }
[data-theme="ember"] .btn-primary { color: #130905; }
[data-theme="ember"] .badge { background: var(--surface-3); color: var(--text-soft); }
[data-theme="ember"] .badge-accent,
[data-theme="ember"] .ev-train { background: var(--accent-soft); color: var(--accent-700); }
[data-theme="ember"] .badge-ok,
[data-theme="ember"] .trend.up,
[data-theme="ember"] .compare .yes { color: var(--ok); }
[data-theme="ember"] .badge-warn { color: var(--warn); }
[data-theme="ember"] .badge-danger { color: var(--danger); }
[data-theme="ember"] .badge-info { color: var(--sky); }
[data-theme="ember"] .badge-violet { color: var(--violet); }
[data-theme="ember"] .table-wrap,
[data-theme="ember"] table.data,
[data-theme="ember"] .cal,
[data-theme="ember"] .sch-item,
[data-theme="ember"] .doc-row,
[data-theme="ember"] .pipe-card { background: var(--surface); color: var(--text); }
[data-theme="ember"] table.data thead th,
[data-theme="ember"] .cal-head,
[data-theme="ember"] .pipe-col { background: var(--surface-2); color: var(--text-soft); }
[data-theme="ember"] table.data tbody tr:hover,
[data-theme="ember"] .cal-cell.out { background: var(--surface-2); }
