/* ==========================================================================
   Sharp Shooter Basketball — global stylesheet
   Palette: Sharp Shooter teal + court orange
   ========================================================================== */

:root {
  --navy-900: #0f2f3a;
  --navy-800: #24566a;
  --navy-700: #2d5f75;
  --blue-600: #397b97;
  --blue-500: #4d91aa;
  --blue-100: #e4f0f3;

  --orange-600: #e37433;
  --orange-500: #fc8b2d;
  --orange-400: #ff9d4e;
  --orange-100: #fff0e4;

  --ink: #173945;
  --ink-soft: #4c626b;
  --ink-faint: #70838a;
  --line: #d5e3e7;
  --bg: #f2faf8;
  --card: #ffffff;

  --green: #1a8a5a;
  --green-bg: #e4f6ed;
  --red: #c62d2d;
  --red-bg: #fdeaea;
  --amber: #a9720a;
  --amber-bg: #fdf3df;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 73, .06), 0 1px 3px rgba(15, 39, 73, .08);
  --shadow: 0 4px 16px rgba(15, 39, 73, .09);
  --shadow-lg: 0 18px 48px rgba(10, 26, 51, .22);
  --header-h: 68px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }
.narrow    { width: min(720px, calc(100% - 2.5rem)); margin-inline: auto; }
.section   { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.center    { text-align: center; }
.muted     { color: var(--ink-soft); }
.small     { font-size: .875rem; }
.hidden    { display: none !important; }
.stack > * + * { margin-top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--orange-500); color: var(--navy-900); padding: .75rem 1.25rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy-900);
  color: #fff;
  height: var(--header-h);
  display: flex; align-items: center;
  box-shadow: 0 2px 14px rgba(10, 26, 51, .3);
}
.site-header .container { display: flex; align-items: center; gap: 1.25rem; }

.brand {
  display: flex; align-items: center; gap: .65rem;
  color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--orange-400), var(--orange-600));
  display: grid; place-items: center;
  font-size: 1rem; box-shadow: 0 0 0 2px rgba(255, 255, 255, .18);
}
.brand span.thin { font-weight: 500; opacity: .8; }

.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav a {
  color: #d7e2f2; padding: .5rem .75rem; border-radius: 8px;
  font-size: .925rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.nav a.active { color: #fff; background: rgba(245, 124, 31, .22); }

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; border-radius: 8px; padding: .45rem .6rem; font-size: 1.1rem; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-800); padding: .5rem;
    box-shadow: var(--shadow-lg); margin-left: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav:not(.open) { display: none; }
  .nav a, .nav .btn { width: 100%; text-align: left; margin: .15rem 0; }
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: .95rem;
  padding: .7rem 1.35rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .08s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--orange-500); color: var(--navy-900); box-shadow: 0 2px 10px rgba(227, 116, 51, .3); }
.btn-primary:hover:not(:disabled) { background: var(--orange-600); }

.btn-blue { background: var(--blue-600); color: #fff; }
.btn-blue:hover:not(:disabled) { background: var(--navy-700); }

.btn-outline { background: transparent; color: var(--blue-600); border-color: var(--line); }
.btn-outline:hover:not(:disabled) { border-color: var(--blue-600); background: var(--blue-100); }

.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover:not(:disabled) { background: rgba(255,255,255,.22); }

.btn-danger { background: var(--red-bg); color: var(--red); border-color: #f3c9c9; }
.btn-danger:hover:not(:disabled) { background: #f8d7d7; }

.btn-sm { padding: .4rem .8rem; font-size: .825rem; border-radius: 8px; }
.btn-lg { padding: .95rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ----------------------------------------------------------------- cards */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------- account access */

/* Shared presentation for email verification and recovery flows. These pages
   are public-facing but still feel like a deliberate part of the program. */
.auth-access-page .auth-access-main {
  min-height: min(720px, calc(100vh - var(--ss-header-height, var(--header-h))));
}

.auth-access-page .auth-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.45rem, 4vw, 2.25rem);
  border-top: 4px solid var(--orange-500);
  box-shadow: var(--shadow);
}

.auth-access-page .auth-secondary-card {
  padding: clamp(1.3rem, 3vw, 1.85rem);
  background: linear-gradient(145deg, #ffffff, var(--blue-100));
}

.auth-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.1rem;
}

.auth-card-mark,
.auth-success-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  color: var(--navy-900);
  background: linear-gradient(140deg, var(--orange-400), var(--orange-500));
  box-shadow: 0 5px 14px rgba(227, 116, 51, .22);
  font-size: 1.3rem;
  font-weight: 900;
}

.auth-card-kicker {
  margin: 0 0 .2rem;
  color: var(--orange-600);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-card-title-row h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.7rem); }

.auth-success-panel {
  padding: 1.5rem;
  border: 1px solid #bfe6d3;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #f8fffb, var(--green-bg));
  text-align: center;
}

.auth-success-panel .auth-success-icon { margin: 0 auto .85rem; color: #fff; background: var(--green); }
.auth-success-panel h2 { margin-bottom: .45rem; color: var(--navy-900); }
.auth-success-panel p { max-width: 45ch; margin: 0 auto 1.15rem; color: var(--ink-soft); }

.auth-card.is-complete [data-verification-pending],
.auth-card.is-complete [data-reset-pending],
.auth-card.is-complete > [data-alert] { display: none; }

@media (max-width: 520px) {
  .auth-card-title-row { gap: .7rem; }
  .auth-card-mark { width: 2.35rem; height: 2.35rem; }
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.card-head h2, .card-head h3 { margin: 0; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------------------------------------------------------------- badges */

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 999px; white-space: nowrap;
}
.badge-free    { background: var(--blue-100);   color: var(--blue-600); }
.badge-monthly { background: var(--orange-100); color: var(--orange-600); }
.badge-premium { background: var(--navy-900);   color: var(--orange-400); }
.badge-ok      { background: var(--green-bg);   color: var(--green); }
.badge-warn    { background: var(--amber-bg);   color: var(--amber); }
.badge-danger  { background: var(--red-bg);     color: var(--red); }
.badge-neutral { background: #eef1f5;           color: var(--ink-soft); }

/* ----------------------------------------------------------------- forms */

.field { margin-bottom: 1.1rem; }
.field label, .form-label {
  display: block; font-weight: 700; font-size: .875rem;
  margin-bottom: .4rem; color: var(--navy-800);
}
.field .hint { font-size: .8rem; color: var(--ink-faint); margin-top: .35rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="datetime-local"], input[type="search"],
select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(36, 103, 196, .16);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }

.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.check-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.check {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; font-size: .925rem; font-weight: 500;
}
.check:hover { border-color: var(--blue-500); }
.check input { margin: .25rem 0 0; width: auto; accent-color: var(--orange-500); flex: none; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* --------------------------------------------------------------- alerts */

.alert {
  padding: .85rem 1rem; border-radius: 10px; font-size: .925rem;
  margin-bottom: 1rem; border: 1px solid transparent;
}
.alert-error   { background: var(--red-bg);   color: var(--red);   border-color: #f3c9c9; }
.alert-success { background: var(--green-bg); color: var(--green); border-color: #bfe6d3; }
.alert-info    { background: var(--blue-100); color: var(--blue-600); border-color: #c9dcf6; }
.alert-warn    { background: var(--amber-bg); color: var(--amber); border-color: #f0dcae; }

/* toast */
.toast-wrap {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 300;
  display: flex; flex-direction: column; gap: .5rem; max-width: min(360px, calc(100vw - 2rem));
}
.toast {
  background: var(--navy-900); color: #fff;
  padding: .85rem 1.1rem; border-radius: 10px; box-shadow: var(--shadow-lg);
  font-size: .925rem; animation: toast-in .22s ease;
}
.toast.err { background: var(--red); }
.toast.ok  { background: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- modals */

.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 26, 51, .62);
  display: grid; place-items: center; padding: 1rem;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-box {
  background: #fff; border-radius: var(--radius-lg);
  width: min(480px, 100%); padding: 1.75rem;
  box-shadow: var(--shadow-lg); animation: modal-in .18s ease;
  max-height: calc(100vh - 2rem); overflow-y: auto;
}
.modal-box.wide { width: min(720px, 100%); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  float: right; background: none; border: 0; font-size: 1.5rem; line-height: 1;
  color: var(--ink-faint); cursor: pointer; padding: 0 .25rem;
}
.modal-close:hover { color: var(--ink); }

/* ------------------------------------------------------------------ hero */

.hero {
  background:
    linear-gradient(135deg, rgba(10, 26, 51, .94), rgba(27, 79, 156, .88)),
    radial-gradient(circle at 78% 18%, rgba(245, 124, 31, .55), transparent 46%);
  background-color: var(--navy-900);
  color: #fff; padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}
.hero h1 { color: #fff; }
.hero p.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #cfdcef; max-width: 46ch; }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange-400);
  margin-bottom: .85rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.9rem; font-weight: 800; color: var(--orange-400); line-height: 1; }
.hero-stats .lbl { font-size: .8rem; color: #b9c9df; text-transform: uppercase; letter-spacing: .07em; }

.hero-panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg); padding: 1.5rem;
  backdrop-filter: blur(6px);
}
.hero-panel h3 { color: #fff; }
.hero-panel ul { list-style: none; padding: 0; margin: 0; }
.hero-panel li { display: flex; gap: .6rem; padding: .45rem 0; color: #d7e2f2; font-size: .95rem; }
.hero-panel li::before { content: "🏀"; flex: none; }

/* ------------------------------------------------------------- features */

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-100); font-size: 1.35rem; margin-bottom: .9rem;
}
.feature h3 { margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

/* --------------------------------------------------------------- pricing */

.tier-card {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; display: flex; flex-direction: column; position: relative;
}
.tier-card.featured { border-color: var(--orange-500); box-shadow: var(--shadow); }
.tier-card .tag {
  position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%);
  background: var(--orange-500); color: #fff; font-size: .7rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px;
}
.tier-card .price { font-size: 2.6rem; font-weight: 800; color: var(--navy-900); line-height: 1; margin: .5rem 0; }
.tier-card .price small { font-size: .95rem; font-weight: 600; color: var(--ink-faint); }
.tier-card ul { list-style: none; padding: 0; margin: 1rem 0 1.75rem; flex: 1; }
.tier-card li { display: flex; gap: .55rem; padding: .4rem 0; font-size: .93rem; color: var(--ink-soft); }
.tier-card li::before { content: "✓"; color: var(--green); font-weight: 800; flex: none; }

/* ----------------------------------------------------------- page header */

.page-head {
  background: var(--navy-900); color: #fff;
  padding: clamp(2rem, 5vw, 3.25rem) 0;
}
.page-head h1 { color: #fff; margin-bottom: .35rem; font-size: clamp(1.65rem, 4vw, 2.5rem); }
.page-head p { color: #c2d1e6; margin: 0; }

/* ----------------------------------------------------------------- lists */

.list { list-style: none; padding: 0; margin: 0; }
.list-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item h4 { margin: 0 0 .15rem; font-size: 1rem; }
.list-item .meta { font-size: .85rem; color: var(--ink-soft); }
.list-item .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 620px) {
  .list-item { flex-direction: column; gap: .6rem; }
  .list-item .actions { width: 100%; }
}

.date-chip {
  flex: none; width: 62px; text-align: center;
  background: var(--blue-100); border-radius: 10px; padding: .45rem .25rem;
}
.date-chip .m { font-size: .68rem; font-weight: 800; text-transform: uppercase; color: var(--blue-600); letter-spacing: .06em; }
.date-chip .d { font-size: 1.35rem; font-weight: 800; color: var(--navy-900); line-height: 1.1; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-faint); }
.empty .big { font-size: 2.5rem; margin-bottom: .5rem; }

/* ----------------------------------------------------------------- stats */

.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.stat .num { font-size: 1.85rem; font-weight: 800; color: var(--navy-900); line-height: 1.1; }
.stat .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); font-weight: 700; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
table.data th, table.data td { padding: .7rem .75rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data th {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-faint); font-weight: 800; background: #fafbfd; white-space: nowrap;
}
table.data tbody tr:hover { background: #fafbfd; }

/* ----------------------------------------------------------------- tabs */

.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tab {
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px;
  padding: .7rem 1rem; font: inherit; font-weight: 700; font-size: .925rem;
  color: var(--ink-soft); cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--navy-900); }
.tab.active { color: var(--blue-600); border-bottom-color: var(--orange-500); }

/* -------------------------------------------------------------- calendar */

.cal-filters {
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end;
  margin-bottom: 1.25rem;
}
.cal-filters .field { margin: 0; min-width: 180px; flex: 1 1 180px; }
.cal-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot-group { background: var(--blue-500); }
.dot-solo  { background: var(--orange-500); }
.dot-full  { background: #94a3b3; }
.dot-mine  { background: var(--green); }

#calendar { --fc-border-color: var(--line); min-height: 520px; }
.fc { font-family: var(--font); font-size: .9rem; }
.fc .fc-toolbar-title { font-size: 1.15rem; font-weight: 800; color: var(--navy-900); }
.fc .fc-button {
  background: var(--blue-600); border-color: var(--blue-600);
  font-weight: 600; font-size: .85rem; text-transform: capitalize; box-shadow: none;
}
.fc .fc-button:hover { background: var(--navy-700); border-color: var(--navy-700); }
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active { background: var(--orange-500); border-color: var(--orange-500); }
.fc .fc-button-primary:disabled { background: #9fb2ca; border-color: #9fb2ca; }
.fc .fc-daygrid-day.fc-day-today { background: var(--orange-100); }
.fc-event { cursor: pointer; border: 0; padding: 1px 3px; font-size: .78rem; }
.fc-event.is-full { opacity: .55; }
.fc .fc-toolbar { flex-wrap: wrap; gap: .5rem; }
@media (max-width: 620px) {
  .fc .fc-toolbar-title { font-size: 1rem; }
  .fc .fc-button { padding: .3rem .55rem; font-size: .78rem; }
  #calendar { min-height: 420px; }
}

/* Slot list (mobile-first alternative to the grid) */
.slot {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; background: #fff; display: flex; gap: 1rem; align-items: center;
}
.slot.full { opacity: .65; }
.slot .grow { flex: 1; min-width: 0; }
@media (max-width: 620px) { .slot { flex-direction: column; align-items: stretch; } }

/* ---------------------------------------------------------------- videos */

.video-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy-900); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-locked {
  position: absolute; inset: 0; display: grid; place-content: center; gap: .5rem;
  text-align: center; color: #cfdcef; padding: 1rem;
  background: linear-gradient(140deg, var(--navy-900), var(--blue-600));
}
.video-locked .lock { font-size: 2rem; }
.video-body { padding: 1.1rem 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.video-body h3 { margin: 0; font-size: 1.02rem; }
.video-body p { margin: 0; font-size: .875rem; color: var(--ink-soft); }
.video-meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: .6rem; }

/* ------------------------------------------------------------------ chat */

.chat-shell {
  display: flex; flex-direction: column;
  height: min(640px, calc(100vh - var(--header-h) - 190px));
  min-height: 400px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.15rem; border-bottom: 1px solid var(--line); background: var(--navy-900); color: #fff;
}
.chat-head .avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--orange-400), var(--orange-600)); font-size: 1.1rem;
}
.chat-head .name { font-weight: 700; font-size: .95rem; }
.chat-head .status { font-size: .78rem; color: #a8d6b8; }
.chat-log { flex: 1; overflow-y: auto; padding: 1.15rem; display: flex; flex-direction: column; gap: .8rem; }
.msg { display: flex; gap: .6rem; max-width: 82%; }
.msg .bubble {
  padding: .7rem .95rem; border-radius: 14px; font-size: .93rem; white-space: pre-wrap; word-wrap: break-word;
}
.msg.coach { align-self: flex-start; }
.msg.coach .bubble { background: var(--blue-100); color: var(--navy-800); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .bubble { background: var(--orange-500); color: #fff; border-bottom-right-radius: 4px; }
.msg .who { font-size: .7rem; color: var(--ink-faint); margin-bottom: .2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.chat-form { display: flex; gap: .6rem; padding: .85rem; border-top: 1px solid var(--line); background: #fafbfd; }
.chat-form input { flex: 1; }
.chat-suggestions { display: flex; gap: .5rem; flex-wrap: wrap; padding: 0 .85rem .85rem; background: #fafbfd; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .8rem; font-size: .82rem; font-weight: 600; color: var(--blue-600); cursor: pointer;
}
.chip:hover { border-color: var(--blue-500); background: var(--blue-100); }
.typing span {
  display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%;
  background: var(--blue-600); animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* -------------------------------------------------------------- upsell */

.upsell {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  color: #fff; border-radius: var(--radius-lg); padding: 1.75rem;
}
.upsell h3 { color: #fff; }
.upsell p { color: #cfdcef; margin-bottom: 1.15rem; }

/* --------------------------------------------------------------- footer */

.site-footer { background: var(--navy-900); color: #9fb2ca; padding: 3rem 0 2rem; margin-top: 3rem; font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.site-footer a { color: #cfdcef; display: block; padding: .2rem 0; }
.site-footer a:hover { color: var(--orange-400); text-decoration: none; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr repeat(3, 1fr); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 2rem; padding-top: 1.25rem; font-size: .82rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ------------------------------------------------------------- spinner */

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
.spinner.dark { border-color: rgba(21, 32, 43, .2); border-top-color: var(--blue-600); }
@keyframes spin { to { transform: rotate(360deg); } }

.loading { display: grid; place-items: center; padding: 3rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------- sortable drag-and-drop */

.draggable-row {
  cursor: grab;
}

.draggable-row:active {
  cursor: grabbing;
}

.grab-handle {
  display: inline-block;
  cursor: grab;
  user-select: none;
  transition: color .2s;
}

.draggable-row:hover .grab-handle {
  color: var(--blue-600) !important;
}

.sortable-ghost {
  opacity: .5;
  background-color: var(--blue-100);
  border-radius: 4px;
}

@media print {
  .site-header, .site-footer, .btn, .nav { display: none !important; }
  body { background: #fff; }
}
