:root {
  --bg: #050508;
  --bg-2: #0d0821;
  --panel: rgba(12, 10, 24, 0.86);
  --panel-2: rgba(26, 11, 78, 0.34);
  --text: #ffffff;
  --muted: #8a85b8;
  --line: rgba(109, 63, 255, 0.25);
  --indigo: #6d3fff;
  --indigo-deep: #1a0b4e;
  --gold: #f5c518;
  --gold-bright: #ffd633;
  --gold-soft: rgba(245, 197, 24, 0.08);
  --gold-line: rgba(245, 197, 24, 0.34);
  --gold-shadow: rgba(245, 197, 24, 0.18);
  --green: #00e676;
  --red: #ff3366;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter Tight", system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(109,63,255,.34), transparent 34rem),
    radial-gradient(circle at 85% 10%, rgba(245,197,24,.16), transparent 30rem),
    linear-gradient(180deg, #050508 0%, #0a0715 100%);
  color: var(--text);
}
body.course-modal-open {
  overflow: hidden;
}

a { color: inherit; }
code { font-family: "JetBrains Mono", monospace; color: var(--gold-bright); }
small, .muted { color: var(--muted); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  padding: 14px min(5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(16px);
  transition: padding .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(245,197,24,.24);
  box-shadow: 0 0 18px rgba(245,197,24,.16);
}
.brand span { letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 8px; }
.topbar .nav {
  margin-left: 0;
}
.topbar .nav a:last-child {
  margin-left: 8px;
}
.nav a {
  padding: 9px 11px;
  border-radius: 7px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.nav a.active, .nav a:hover { color: var(--text); background: rgba(109,63,255,.18); }
.nav-toggle { display: none; }
.hello { max-width: 1180px; margin: 14px auto 0; padding: 0 18px; color: var(--muted); }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 28px auto 56px; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; letter-spacing: 0; }
h1 { font-size: clamp(36px, 6vw, 76px); line-height: .95; margin: 0 0 18px; }
h2 { font-size: 24px; margin: 0 0 16px; }
.lead { font-size: 20px; color: #d7d2ff; max-width: 680px; }
.eyebrow { font-family: "JetBrains Mono", monospace; text-transform: uppercase; color: var(--gold); letter-spacing: .08em; font-size: 12px; font-weight: 800; }

.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); gap: 28px; align-items: stretch; padding: 60px 0 36px; }
.hero-panel, .card, .auth-card, .stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
}
.hero-panel { padding: 22px; display: grid; gap: 14px; align-content: center; }
.metric { padding: 18px; border-radius: var(--radius); background: rgba(109,63,255,.12); border: 1px solid var(--line); }
.metric span, .stat-card span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.metric strong, .stat-card strong { display: block; font-family: "JetBrains Mono", monospace; color: var(--gold-bright); font-size: 28px; }

.hero-actions, .quick-actions, .actions, .form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 14px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  background: rgba(109,63,255,.16);
  color: var(--text);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(245,197,24,.32);
  box-shadow: 0 12px 32px rgba(0,0,0,.22), 0 0 24px rgba(245,197,24,.08);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #120d02;
  border-color: rgba(255,214,51,.52);
  box-shadow: 0 12px 34px rgba(245,197,24,.22);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: rgba(255,214,51,.78);
  box-shadow: 0 16px 44px rgba(245,197,24,.32);
}
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); }
.btn-mini { min-height: 30px; padding: 6px 8px; font-size: 12px; }
.btn-danger { background: rgba(255,51,102,.18); border-color: rgba(255,51,102,.35); }

.feature-grid, .dashboard-grid, .journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dashboard-grid, .journal-grid { grid-template-columns: 1fr 1fr; }
.dashboard-wide { grid-column: 1 / -1; }
.card, .auth-card { padding: 20px; margin-bottom: 18px; }
.auth-card { max-width: 480px; margin: 72px auto; }
.register-card { max-width: 560px; }
.purchase-summary {
  display: grid;
  gap: 7px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid rgba(245,197,24,.28);
  border-radius: var(--radius);
  background: rgba(245,197,24,.07);
}
.purchase-summary span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.purchase-summary strong {
  color: var(--gold-bright);
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
}
.purchase-summary small {
  color: #d7d2ff;
}
.page-heading { margin: 18px 0 24px; }
.empty-state { text-align: center; max-width: 680px; margin: 90px auto; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { padding: 16px; }

.form-stack, .form-grid, .filters { display: grid; gap: 14px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filters { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; }
.inline-form { display: inline-flex; margin: 0 6px 6px 0; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(5,5,8,.72);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(245,197,24,.66);
  background: rgba(5,5,8,.82);
  box-shadow: 0 0 0 4px rgba(245,197,24,.10), 0 0 28px rgba(245,197,24,.10);
}
input[readonly] {
  border-color: rgba(245,197,24,.24);
  background: rgba(245,197,24,.055);
  color: #d7d2ff;
}
textarea { resize: vertical; }
.checkbox-line { display: flex; align-items: center; gap: 9px; color: var(--text); }
.checkbox-line input { width: 18px; min-height: 18px; accent-color: var(--gold); }
.span-2 { grid-column: span 2; }

.table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th, .data-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: rgba(109,63,255,.16); color: var(--gold-bright); font-weight: 800; }
.alert { margin: 0 0 16px; padding: 12px 14px; border-radius: 7px; border: 1px solid var(--line); }
.alert-success { color: var(--green); background: rgba(0,230,118,.08); border-color: rgba(0,230,118,.24); }
.alert-error { color: var(--red); background: rgba(255,51,102,.08); border-color: rgba(255,51,102,.24); }
.positive { color: var(--green); }
.negative { color: var(--red); }
.sync-key-card code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(245,197,24,.28);
  border-radius: var(--radius);
  background: rgba(245,197,24,.07);
  color: var(--gold-bright);
  font-size: 15px;
}
.setup-list {
  margin: 0;
  padding-left: 22px;
  color: #d7d2ff;
  line-height: 1.8;
}
.account-lead {
  max-width: 760px;
}
.account-download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(245,197,24,.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(245,197,24,.08), rgba(109,63,255,.08)),
    rgba(5,5,8,.35);
}
.account-download-box strong {
  display: block;
  color: var(--gold-bright);
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
}
.account-download-box p {
  margin: 6px 0 0;
  color: #d7d2ff;
  line-height: 1.5;
}
.course-heading {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.course-heading h1 {
  font-size: clamp(34px, 4vw, 52px);
  white-space: nowrap;
}
.course-heading .lead {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.courses-surface {
  position: relative;
  isolation: isolate;
  width: min(1120px, 100%);
  margin: -8px auto 0;
  padding: 8px;
  border-radius: 18px;
}
.courses-surface::before {
  content: "";
  position: absolute;
  inset: -34px -42px -56px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 10%, rgba(245,197,24,.11) 32%, rgba(109,63,255,.08) 52%, rgba(245,197,24,.08) 72%, transparent 96%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(245,197,24,.018) 44%, transparent 100%);
  filter: blur(28px);
  opacity: .95;
}
.course-brief h2 {
  font-size: 26px;
  text-align: center;
}
.course-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.course-brief ul {
  margin: 0;
  padding-left: 20px;
  color: #d7d2ff;
  line-height: 1.8;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.course-card {
  min-height: 352px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.courses-surface .course-brief,
.courses-surface .course-card,
.courses-surface .course-sidebar,
.courses-surface .course-player-card {
  border-color: rgba(245,197,24,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.088), rgba(255,255,255,.042)),
    linear-gradient(135deg, rgba(245,197,24,.038), rgba(109,63,255,.04));
}
.courses-surface .course-card:hover,
.courses-surface .course-player-card {
  box-shadow: 0 28px 90px rgba(0,0,0,.28), 0 0 46px rgba(245,197,24,.075);
}
.course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245,197,24,.32);
  box-shadow: 0 30px 90px rgba(0,0,0,.32), 0 0 40px rgba(245,197,24,.08);
}
.course-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.course-card.locked {
  opacity: .58;
}
.course-card.locked a {
  pointer-events: none;
}
.course-thumb {
  position: relative;
  height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.18), transparent 13rem),
    linear-gradient(135deg, rgba(109,63,255,.9), rgba(26,11,78,.96));
}
.course-card.gold .course-thumb {
  background:
    linear-gradient(135deg, rgba(245,197,24,.16), rgba(109,63,255,.2)),
    url('/assets/img/goldman-logo-original.png') center/120px no-repeat,
    linear-gradient(135deg, #050508, #1a0b4e);
}
.course-card.red .course-thumb {
  background:
    linear-gradient(135deg, rgba(255,51,102,.66), rgba(5,5,8,.28)),
    linear-gradient(120deg, #4a0714, #160611);
}
.course-card.portrait .course-thumb {
  background:
    linear-gradient(180deg, rgba(5,5,8,.04), rgba(5,5,8,.66)),
    url('/assets/img/alessio-goldman-founder.jpg') center 25%/cover no-repeat;
}
.course-card.pool .course-thumb {
  background:
    linear-gradient(135deg, rgba(245,197,24,.16), rgba(109,63,255,.16)),
    url('/assets/img/alessio-goldman-founder.jpg') center 58%/cover no-repeat;
}
.course-card.chart .course-thumb {
  background:
    linear-gradient(135deg, rgba(5,5,8,.22), rgba(245,197,24,.08)),
    repeating-linear-gradient(105deg, rgba(255,255,255,.08) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, #0b0820, #1a0b4e);
}
.course-thumb::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 90px;
  background: radial-gradient(ellipse, rgba(245,197,24,.24), transparent 65%);
  filter: blur(18px);
}
.course-thumb span,
.course-thumb b {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(5,5,8,.64);
  border: 1px solid rgba(245,197,24,.2);
  color: var(--gold-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.course-thumb b {
  margin-left: auto;
  color: var(--red);
}
.course-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}
.course-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.course-title-row h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.05;
}
.course-title-row span {
  flex-shrink: 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .08em;
}
.course-body p {
  margin: 12px 0 18px;
  color: #d7d2ff;
  line-height: 1.55;
}
.course-progress {
  position: relative;
  height: 24px;
  margin-top: auto;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(245,197,24,.12);
}
.course-progress div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #00b963);
}
.course-progress strong {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 14px;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}
.course-progress.large {
  margin-top: 16px;
}
.course-player-layout {
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(0, 700px);
  gap: 22px;
  align-items: start;
  justify-content: center;
}
.course-sidebar,
.course-player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
}
.course-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100svh - 120px);
  overflow: auto;
  padding: 16px;
}
.course-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.course-sidebar-head {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(109,63,255,.22);
  margin-bottom: 14px;
}
.course-sidebar-head p {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.course-sidebar-head h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
}
.course-sidebar-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.course-admin-menu {
  position: relative;
  flex-shrink: 0;
}
.course-kebab {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -1px;
}
.course-kebab:hover,
.course-admin-menu.open .course-kebab {
  border-color: rgba(245,197,24,.28);
  background: rgba(245,197,24,.08);
  color: var(--gold-bright);
}
.course-menu-popover,
.course-item-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: 188px;
  display: none;
  gap: 0;
  padding: 12px;
  border: 1px solid rgba(245,197,24,.22);
  border-radius: 12px;
  background: #fbfaf5;
  box-shadow: 0 18px 46px rgba(0,0,0,.36), 0 0 0 1px rgba(109,63,255,.08);
}
.course-admin-menu.open .course-menu-popover,
.course-item-menu.open .course-item-popover {
  display: grid;
}
.course-menu-popover button,
.course-item-popover button,
.course-item-popover a {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #14121c;
  cursor: pointer;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  padding: 10px 7px;
  text-decoration: none;
}
.course-menu-popover button:hover,
.course-item-popover button:hover,
.course-item-popover a:hover {
  background: rgba(245,197,24,.18);
}
.course-item-popover .danger {
  color: #b3203f;
}
.course-menu-popover button:disabled {
  color: rgba(20,18,28,.36);
  cursor: not-allowed;
}
.course-menu-popover button:disabled:hover {
  background: transparent;
}
.course-menu-popover small {
  display: block;
  padding: 4px 7px 2px;
  color: rgba(20,18,28,.56);
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 12px;
}
.course-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5,5,8,.72);
  backdrop-filter: blur(12px);
}
.course-admin-modal[hidden] {
  display: none;
}
.course-admin-modal-panel {
  width: min(430px, 100%);
  border: 1px solid rgba(245,197,24,.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(245,197,24,.10), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    #0d0821;
  box-shadow: 0 28px 90px rgba(0,0,0,.52), 0 0 70px rgba(109,63,255,.18);
  padding: 22px;
}
.course-admin-modal-panel h2 {
  margin-bottom: 8px;
  font-size: 32px;
}
.course-admin-modal-panel .muted {
  margin: 0 0 18px;
}
.course-admin-modal-panel form {
  display: grid;
  gap: 14px;
}
.course-admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.course-module {
  border-bottom: 1px solid rgba(109,63,255,.18);
  padding: 8px 0;
}
.course-module summary {
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
  padding: 10px 0;
}
.course-module summary::-webkit-details-marker {
  display: none;
}
.course-module-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
}
.course-module-summary[draggable="true"] {
  cursor: grab;
}
.course-module-summary[draggable="true"]:active {
  cursor: grabbing;
}
.course-module-title {
  min-width: 0;
}
.course-module-lessons {
  min-height: 8px;
  padding: 2px 0 4px;
  border-radius: 10px;
}
.course-module-lessons.is-drag-over {
  outline: 1px dashed rgba(245,197,24,.42);
  background: rgba(245,197,24,.05);
}
.course-item-menu {
  position: relative;
  flex-shrink: 0;
}
.course-item-kebab {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  opacity: 0;
  transition: opacity .16s ease, color .16s ease, background .16s ease, border-color .16s ease;
}
.course-module-summary:hover .course-item-kebab,
.course-lesson-row:hover .course-item-kebab,
.course-item-menu.open .course-item-kebab,
.course-item-kebab:focus-visible {
  opacity: 1;
}
.course-item-kebab:hover,
.course-item-menu.open .course-item-kebab {
  border-color: rgba(245,197,24,.28);
  background: rgba(245,197,24,.08);
  color: var(--gold-bright);
}
.course-item-popover {
  width: 176px;
  top: calc(100% + 6px);
  padding: 10px;
}
.course-lesson-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  margin: 4px 0;
  border-radius: 8px;
  transition: background .16s ease, opacity .16s ease, outline-color .16s ease;
}
.course-lesson-row[draggable="true"] {
  cursor: grab;
}
.course-lesson-row[draggable="true"]:active {
  cursor: grabbing;
}
.course-module.is-dragging,
.course-lesson-row.is-dragging {
  opacity: .42;
}
.course-module.is-drop-target,
.course-lesson-row.is-drop-target {
  outline: 1px dashed rgba(245,197,24,.42);
  background: rgba(245,197,24,.07);
}
.course-lesson-row > a {
  display: grid;
  gap: 3px;
  color: #d7d2ff;
  text-decoration: none;
  min-width: 0;
}
.course-lesson-row.active {
  background: rgba(245,197,24,.16);
}
.course-lesson-row.active > a {
  color: var(--text);
}
.course-lesson-row.is-draft {
  opacity: .66;
  border: 1px dashed rgba(245,197,24,.24);
}
.course-module small {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}
.course-check-form {
  margin: 0;
}
.course-check-button {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.28);
  font-weight: 900;
  cursor: pointer;
}
.course-check-button.watched {
  border-color: rgba(0,230,118,.34);
  background: rgba(0,230,118,.16);
  color: var(--green);
}
.course-player-card {
  padding: clamp(18px, 3vw, 32px);
}
.courses-surface .course-sidebar,
.courses-surface .course-player-card {
  border-color: rgba(245,197,24,.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.092), rgba(255,255,255,.044)),
    linear-gradient(135deg, rgba(245,197,24,.044), rgba(109,63,255,.04));
}
.course-player-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(245,197,24,.18);
}
.course-player-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
}
.course-player-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.course-complete-icon,
.course-edit-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}
.course-complete-icon {
  cursor: pointer;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.32);
  border: 1px solid rgba(255,255,255,.16);
}
.course-complete-icon.watched {
  background: rgba(0,230,118,.16);
  color: var(--green);
  border-color: rgba(0,230,118,.34);
}
.course-edit-button {
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.course-edit-button:hover {
  color: var(--gold-bright);
  border-color: rgba(245,197,24,.35);
  background: rgba(245,197,24,.08);
}
.course-video-placeholder {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(245,197,24,.16), transparent 18rem),
    linear-gradient(135deg, #050508, #1a0b4e 58%, #050508);
  border: 1px solid rgba(245,197,24,.18);
}
.course-video-placeholder img {
  width: min(340px, 48%);
  border-radius: 20px;
  opacity: .86;
  filter: drop-shadow(0 0 30px rgba(245,197,24,.16));
}
.course-video-placeholder button {
  position: absolute;
  width: 84px;
  height: 64px;
  border: 0;
  border-radius: 16px;
  background: rgba(5,5,8,.78);
  color: var(--gold-bright);
  font-size: 32px;
  cursor: default;
}
.course-video-placeholder span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(5,5,8,.72);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}
.course-lesson-copy {
  max-width: 860px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(245,197,24,.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(245,197,24,.07), transparent 36%),
    rgba(5,5,8,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.course-lesson-copy > p {
  margin: 0;
  color: #d7d2ff;
  font-size: 18px;
  line-height: 1.7;
}
.course-note {
  margin-top: 18px;
  padding: 16px;
  border-left: 3px solid var(--gold);
  background: rgba(245,197,24,.06);
}
.course-note strong {
  color: var(--gold-bright);
}
.course-note p {
  margin: 8px 0 0;
  color: #d7d2ff;
}
.course-inline-editor {
  overflow: hidden;
  border: 1px solid rgba(245,197,24,.2);
  border-radius: var(--radius);
  background: rgba(5,5,8,.36);
}
.course-inline-editor .form-grid {
  padding: 18px;
}
.course-inline-editor textarea {
  min-height: 220px;
}
.course-editor-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(109,63,255,.22);
}
.course-published-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.course-published-toggle input {
  width: 44px;
  height: 24px;
  accent-color: var(--green);
}
.course-admin-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.course-admin-list {
  position: sticky;
  top: 92px;
}
.course-admin-list h2,
.course-editor h2 {
  margin-top: 0;
}
.course-admin-item {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  margin: 8px 0;
  border: 1px solid rgba(109,63,255,.2);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,.025);
}
.course-admin-item:hover,
.course-admin-item.active {
  border-color: rgba(245,197,24,.35);
  background: rgba(245,197,24,.08);
}
.course-admin-item span {
  font-weight: 800;
}
.course-admin-item small,
.field-help {
  color: var(--muted);
  line-height: 1.5;
}
.code-textarea {
  min-height: 420px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.danger-zone {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,51,102,.2);
}
.profile-card dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 18px; }
.profile-card dt { color: var(--muted); }
.profile-card dd { margin: 0; }

@media (max-width: 860px) {
  .hero, .feature-grid, .dashboard-grid, .journal-grid, .form-grid, .filters, .course-grid, .course-brief-grid, .course-player-layout, .course-admin-grid { grid-template-columns: 1fr; }
  .course-heading h1 { white-space: normal; }
  .span-2 { grid-column: auto; }
  .account-download-box {
    flex-direction: column;
    align-items: stretch;
  }
  .course-sidebar,
  .course-admin-list {
    position: relative;
    top: auto;
    max-height: none;
  }
  .course-player-head,
  .course-title-row {
    flex-direction: column;
    align-items: stretch;
  }
  .course-video-placeholder {
    min-height: 240px;
  }
  .course-video-placeholder img {
    width: min(260px, 68%);
  }
  .nav-toggle { display: inline-flex; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 7px; padding: 8px 10px; }
  .nav { display: none; position: absolute; left: 16px; right: 16px; top: 68px; flex-direction: column; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #080711; }
  .nav.open { display: flex; }
  .profile-card dl { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .courses-surface {
    margin: 0;
    padding: 0;
  }
  .courses-surface::before {
    inset: -18px -12px -32px;
    filter: blur(20px);
  }
  .course-menu-popover {
    left: auto;
    right: 0;
    width: min(188px, calc(100vw - 44px));
  }
  .course-item-popover {
    left: auto;
    right: 0;
    width: min(176px, calc(100vw - 44px));
  }
  .course-item-kebab {
    opacity: 1;
  }
  .course-admin-modal {
    align-items: flex-end;
    padding: 12px;
  }
  .course-admin-modal-panel {
    padding: 18px;
  }
  .course-admin-modal-actions .btn {
    width: 100%;
  }
  .topbar {
    min-height: 64px;
    padding: 9px 12px;
  }
  .brand { gap: 8px; min-width: 0; }
  .brand img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
  }
  .brand span {
    max-width: 150px;
    font-size: 13px;
    line-height: 1.05;
  }
  .nav { left: 10px; right: 10px; top: 62px; }
  .hello { padding: 0 12px; }
  .page-shell {
    width: 100%;
    margin: 16px auto 36px;
    padding: 0 10px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

.bt-page {
  display: grid;
  gap: 18px;
}

.bt-page > *,
.bt-layout > *,
.bt-coach-grid > * {
  min-width: 0;
}

.bt-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 14px 0 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(245,197,24,.15);
  width: 100%;
  min-width: 0;
}

.bt-hero h1 {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: 0;
}

.bt-hero .muted {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.55;
}

.bt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.bt-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.bt-kpi-row .stat-card {
  min-height: 104px;
}

.bt-kpi-row .stat-card strong {
  letter-spacing: 0;
}

.bt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .75fr);
  gap: 16px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.bt-chart-panel,
.bt-ticket,
.bt-coach-panel {
  border: 1px solid rgba(109,63,255,.24);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.036), rgba(255,255,255,.012)),
    rgba(13,8,33,.58);
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}

.bt-chart-panel {
  overflow: hidden;
}

.bt-toolbar {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(150px, 1fr) minmax(130px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.bt-toolbar label,
.bt-ticket label {
  min-width: 0;
}

.bt-replay-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.bt-chart-wrap {
  position: relative;
  height: clamp(420px, 58vh, 620px);
  min-height: 420px;
  background: #050508;
}

.bt-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.bt-chart-hud {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  min-height: 34px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: rgba(255,255,255,.72);
  background: rgba(5,5,8,.76);
  backdrop-filter: blur(10px);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bt-price-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 16px 16px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

.bt-price-picker button,
.bt-side-toggle button {
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.045);
  font-weight: 800;
  cursor: pointer;
}

.bt-price-picker button {
  min-width: 82px;
  padding: 6px 10px;
}

.bt-price-picker button.active,
.bt-side-toggle button.active {
  border-color: rgba(245,197,24,.54);
  color: #120d02;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
}

.bt-ticket {
  display: grid;
  gap: 14px;
  padding: 18px;
  position: sticky;
  top: 94px;
}

.bt-ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bt-ticket-head h2,
.bt-coach-panel h2 {
  margin-bottom: 0;
}

.bt-side-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bt-side-toggle button {
  min-height: 42px;
  padding: 9px 12px;
}

.bt-ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bt-ticket-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bt-ticket-result div {
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(245,197,24,.18);
  border-radius: 10px;
  background: rgba(245,197,24,.06);
}

.bt-ticket-result span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,.62);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.bt-ticket-result strong {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
}

.bt-save-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: rgba(255,255,255,.66);
  font-size: 13px;
}

.bt-save-status.success {
  color: var(--green);
}

.bt-save-status.error {
  color: var(--red);
}

.bt-coach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.bt-coach-panel {
  padding: 18px;
  overflow: hidden;
}

.bt-coach-panel .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.bt-insights,
.bt-rankings {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.bt-insight {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}

.bt-insight.positive {
  border-color: rgba(0,230,118,.24);
  background: rgba(0,230,118,.07);
}

.bt-insight.warning {
  border-color: rgba(255,51,102,.25);
  background: rgba(255,51,102,.07);
}

.bt-insight.focus {
  border-color: rgba(245,197,24,.24);
  background: rgba(245,197,24,.07);
}

.bt-insight strong {
  display: block;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.bt-insight p {
  margin: 8px 0;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}

.bt-insight span {
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.bt-ranking {
  display: grid;
  gap: 8px;
}

.bt-ranking h3 {
  margin: 0 0 2px;
  font-size: 18px;
  letter-spacing: 0;
}

.bt-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bt-rank-row strong,
.bt-rank-row span {
  display: block;
}

.bt-rank-row span {
  color: rgba(255,255,255,.58);
  font-size: 12px;
}

.bt-rank-row em {
  flex: 0 0 auto;
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.bt-rank-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.bt-rank-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.positive-bg {
  background: var(--green);
}

.negative-bg {
  background: var(--red);
}

.bt-empty {
  padding: 16px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 10px;
  color: rgba(255,255,255,.62);
  text-align: center;
}

.bt-recent-table {
  min-width: 860px;
}

@media (max-width: 1120px) {
  .bt-layout,
  .bt-coach-grid {
    grid-template-columns: 1fr;
  }

  .bt-ticket {
    position: static;
  }

  .bt-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .bt-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .bt-hero h1 {
    font-size: 34px;
  }

  .bt-hero-actions {
    justify-content: stretch;
  }

  .bt-hero-actions .btn,
  .bt-ticket .btn-gold {
    width: 100%;
  }

  .bt-toolbar,
  .bt-ticket-grid,
  .bt-ticket-result,
  .bt-kpi-row {
    grid-template-columns: 1fr;
  }

  .bt-replay-actions {
    justify-content: stretch;
  }

  .bt-replay-actions .btn {
    flex: 1 1 0;
  }

  .bt-chart-wrap {
    height: 420px;
  }

  .bt-recent-table {
    min-width: 620px;
  }
}

/* Public homepage */
.section-home .page-shell {
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
}

.section-home .topbar {
  background: rgba(5, 5, 8, 0.76);
}

.section-home .topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgba(245,197,24,.22);
  border-radius: 999px;
  background: rgba(13,8,33,.85);
  box-shadow: 0 4px 16px rgba(0,0,0,.30);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.section-home .topbar .brand:hover {
  transform: translateY(-1px);
  border-color: rgba(245,197,24,.40);
  box-shadow: 0 6px 22px rgba(0,0,0,.40), 0 0 18px rgba(245,197,24,.08);
}

.section-home .topbar .brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.section-home .topbar .brand span {
  max-width: none;
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.section-home {
  isolation: isolate;
}

.section-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 8%, rgba(245,197,24,.14), transparent 28rem),
    radial-gradient(circle at 88% 26%, rgba(245,197,24,.09), transparent 30rem),
    radial-gradient(circle at 48% 88%, rgba(245,197,24,.07), transparent 34rem);
  filter: blur(16px);
  opacity: .72;
}

.section-home .topbar.scrolled,
.section-auth .topbar.scrolled,
.section-public .topbar.scrolled {
  min-height: 62px;
  padding-top: 9px;
  padding-bottom: 9px;
  background: rgba(5, 5, 8, 0.94);
  border-bottom-color: rgba(245,197,24,.18);
  box-shadow: 0 16px 46px rgba(0,0,0,.36), 0 0 28px rgba(245,197,24,.10);
}

.section-home .nav a[href="/login.php"],
.section-auth .nav a[href="/login.php"],
.section-public .nav a[href="/login.php"] {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  color: #120d02;
  border-color: rgba(255,214,51,.68);
  background:
    linear-gradient(135deg, rgba(255,236,128,.95) 0%, rgba(245,197,24,1) 38%, rgba(177,120,16,1) 100%);
  box-shadow: 0 12px 34px rgba(245,197,24,.22), inset 0 1px 0 rgba(255,255,255,.42);
}

.section-home .nav a[href="/login.php"]::before,
.section-auth .nav a[href="/login.php"]::before,
.section-public .nav a[href="/login.php"]::before {
  content: "";
  position: absolute;
  inset: -80% auto -80% -44%;
  width: 38%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.58), transparent);
  transition: left .55s ease;
}

.section-home .nav a[href="/login.php"]:hover,
.section-auth .nav a[href="/login.php"]:hover,
.section-public .nav a[href="/login.php"]:hover {
  color: #120d02;
  transform: translateY(-1px);
  border-color: rgba(255,214,51,.78);
  background:
    linear-gradient(135deg, rgba(255,244,166,.98) 0%, rgba(255,214,51,1) 42%, rgba(196,138,20,1) 100%);
  box-shadow: 0 16px 44px rgba(245,197,24,.32), inset 0 1px 0 rgba(255,255,255,.48);
}

.section-home .nav a[href="/login.php"]:hover::before,
.section-auth .nav a[href="/login.php"]:hover::before,
.section-public .nav a[href="/login.php"]:hover::before {
  left: 120%;
}

.section-auth .auth-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(245,197,24,.30);
  background:
    radial-gradient(circle at 18% 0%, rgba(245,197,24,.10), transparent 16rem),
    linear-gradient(180deg, rgba(255,255,255,.060), rgba(255,255,255,.024));
  box-shadow: 0 28px 92px rgba(0,0,0,.36), 0 0 48px rgba(245,197,24,.10);
}

.section-auth .auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  opacity: .86;
}

.section-auth .auth-card .btn-gold[type="submit"],
.section-auth .auth-card form .btn-gold {
  width: 100%;
}

.section-admin .nav a.active,
.section-student .nav a.active {
  color: var(--gold-bright);
  border-color: rgba(245,197,24,.30);
  background: rgba(245,197,24,.08);
  box-shadow: 0 0 26px rgba(245,197,24,.08);
}

.section-home::before {
  content: "";
  position: fixed;
  inset: -18% -10%;
  z-index: 0;
  pointer-events: none;
  opacity: .34;
  background:
    linear-gradient(112deg, transparent 0 20%, rgba(245,197,24,.12) 34%, transparent 48% 100%),
    linear-gradient(78deg, transparent 0 50%, rgba(255,214,51,.08) 62%, transparent 76% 100%);
  filter: blur(44px);
  transform: translate3d(0, 0, 0);
}

.home-hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 84px max(24px, calc((100vw - 1280px) / 2)) 70px;
  isolation: isolate;
  border-bottom: 1px solid rgba(245,197,24,.12);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5,5,8,.98) 0%, rgba(5,5,8,.90) 44%, rgba(5,5,8,.38) 65%, rgba(5,5,8,.72) 100%),
    linear-gradient(180deg, rgba(26,11,78,.28), rgba(5,5,8,.92));
}

.home-hero-portrait {
  position: absolute;
  top: 0;
  right: max(24px, calc((100vw - 1280px) / 2));
  z-index: -4;
  width: min(44vw, 580px);
  height: calc(100% - 30px);
  object-fit: cover;
  object-position: center 16%;
  opacity: .92;
  border-radius: 0 0 38px 38px;
}

.home-hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -2;
  background: linear-gradient(0deg, #050508 0%, rgba(5,5,8,0) 100%);
}

.home-hero-inner {
  width: min(560px, 43vw);
  max-width: 560px;
}

.home-kicker,
.home-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(0,230,118,.7);
}

.home-hero h1 {
  max-width: 840px;
  margin: 0 0 14px;
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: .92;
  white-space: nowrap;
}

.home-hero-line {
  margin: 0 0 20px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(24px, 2.6vw, 40px);
  font-style: italic;
  color: var(--gold-bright);
}

.home-hero-copy {
  max-width: 520px;
  margin: 0 0 28px;
  color: #d7d2ff;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.62;
}

.home-hero-copy span {
  display: block;
}

.home-hero-copy span + span {
  margin-top: 8px;
}

.home-lines span {
  display: block;
}

.home-lines span + span {
  margin-top: .34em;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.home-cta {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.home-actions .btn {
  position: relative;
  overflow: hidden;
}

.home-actions .btn-gold {
  border-color: rgba(255,214,51,.68);
  background:
    linear-gradient(135deg, rgba(255,236,128,.95) 0%, rgba(245,197,24,1) 38%, rgba(177,120,16,1) 100%);
  box-shadow: 0 18px 48px rgba(245,197,24,.26), inset 0 1px 0 rgba(255,255,255,.45);
}

.home-actions .btn-gold::before {
  content: "";
  position: absolute;
  inset: -80% auto -80% -42%;
  width: 38%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.64), transparent);
  transition: left .55s ease;
}

.home-actions .btn-gold::after {
  content: "→";
  margin-left: 12px;
  font-size: 15px;
  line-height: 1;
  transition: transform .18s ease;
}

.home-actions .btn-gold:hover::before {
  left: 120%;
}

.home-actions .btn-gold:hover::after {
  transform: translateX(3px);
}

.home-actions .btn-ghost {
  color: #f5f1ff;
  border-color: rgba(245,197,24,.30);
  background:
    linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.025)),
    rgba(5,5,8,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.home-actions .btn-ghost::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(245,197,24,.58);
}

.home-actions .btn-ghost:hover {
  color: var(--gold-bright);
  border-color: rgba(245,197,24,.54);
  background:
    linear-gradient(180deg, rgba(245,197,24,.08), rgba(255,255,255,.025)),
    rgba(5,5,8,.56);
}

.home-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  margin-top: 2px;
}

.home-trust span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,214,51,.92);
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 18px 0 0;
  box-shadow: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(245,197,24,.32);
}

.home-trust span:not(:first-child) {
  padding-left: 18px;
  border-left: 1px solid rgba(245,197,24,.28);
}

.home-trust span::before {
  content: "";
  position: static;
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(255,214,51,.75);
}

.home-ticker {
  overflow: hidden;
  background: #0b0914;
  border-bottom: 1px solid rgba(245,197,24,.12);
}

.home-ticker-track {
  display: flex;
  gap: 34px;
  width: max-content;
  padding: 18px 34px;
  animation: homeTicker 42s linear infinite;
  will-change: transform;
}

.home-ticker-track span {
  color: rgba(255,255,255,.46);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(22px, 3vw, 34px);
  font-style: italic;
  white-space: nowrap;
}

.home-ticker-track span::after {
  content: "◆";
  margin-left: 34px;
  color: var(--gold);
  font-size: .42em;
  vertical-align: middle;
}

@keyframes homeTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-section,
.home-cta-band,
.home-legal {
  padding: 96px min(6vw, 76px);
}

.home-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(109,63,255,.18);
}

.home-section::before,
.home-cta-band::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: 12%;
  height: 46%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0%, rgba(245,197,24,.09) 30%, rgba(255,214,51,.045) 48%, transparent 72%),
    linear-gradient(180deg, transparent, rgba(245,197,24,.055), transparent);
  filter: blur(34px);
  opacity: .72;
  transform: rotate(-3deg);
}

.home-section:nth-of-type(even)::before {
  top: 34%;
  background:
    linear-gradient(75deg, transparent 0%, rgba(255,214,51,.06) 24%, rgba(245,197,24,.1) 56%, transparent 82%),
    linear-gradient(180deg, transparent, rgba(245,197,24,.045), transparent);
  transform: rotate(4deg);
}

.home-section > *,
.home-cta-band > * {
  position: relative;
  z-index: 1;
}

.home-section:nth-of-type(odd) {
  background: rgba(13,8,33,.34);
}

.home-section h2,
.home-cta-band h2 {
  margin: 0 0 22px;
  max-width: 840px;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: .92;
  font-weight: 600;
}

.home-section h2 em,
.home-cta-band h2 em {
  color: var(--gold-bright);
  font-style: italic;
  font-weight: 400;
}

.home-section p {
  color: #c8c2ee;
  font-size: 18px;
  line-height: 1.65;
}

.home-split,
.home-founder-grid,
.home-section-head {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.home-quote {
  margin: 0;
  padding: 32px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}

.home-quote p {
  margin: 0 0 22px;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(26px, 3vw, 40px);
  font-style: italic;
  line-height: 1.14;
}

.home-quote cite {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-style: normal;
}

.home-center {
  max-width: 860px;
  margin: 0 auto 48px;
  text-align: center;
}

.home-center .home-label {
  justify-content: center;
}

.home-center h2 {
  margin-left: auto;
  margin-right: auto;
}

.home-steps,
.home-card-grid,
.home-course-grid,
.home-price-grid,
.home-testimonial-grid {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.home-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-steps article,
.home-card-grid article,
.home-course-grid article,
.home-price-grid article,
.home-testimonial-grid article,
.home-faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
}

.home-steps article,
.home-card-grid article,
.home-course-grid article,
.home-price-grid article,
.home-testimonial-grid article {
  position: relative;
  overflow: hidden;
  padding: 24px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.home-steps article::before,
.home-card-grid article::before,
.home-course-grid article::before,
.home-price-grid article::before,
.home-testimonial-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,214,51,.72), transparent);
  opacity: 0;
  transition: opacity .22s ease;
}

.home-steps article:hover,
.home-card-grid article:hover,
.home-course-grid article:hover,
.home-price-grid article:hover,
.home-testimonial-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(245,197,24,.42);
  background:
    linear-gradient(145deg, rgba(245,197,24,.07), rgba(109,63,255,.04)),
    rgba(8,8,16,.88);
  box-shadow: 0 28px 82px rgba(0,0,0,.36), 0 0 42px rgba(245,197,24,.10);
}

.home-steps article:hover::before,
.home-card-grid article:hover::before,
.home-course-grid article:hover::before,
.home-price-grid article:hover::before,
.home-testimonial-grid article:hover::before {
  opacity: 1;
}

.home-steps article > span,
.home-card-grid article > span,
.home-course-grid article > p:first-child,
.home-price-grid article > p:first-child,
.home-testimonial-grid article > span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-steps h3,
.home-card-grid h3,
.home-course-grid h3,
.home-price-grid h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.home-founder {
  background: #050508;
}

.home-founder-grid {
  align-items: start;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
}

.home-founder-photo {
  position: sticky;
  top: 104px;
  margin: 0;
  border: 1px solid rgba(245,197,24,.28);
  border-radius: var(--radius);
  overflow: hidden;
  background: #080711;
}

.home-founder-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.home-founder-photo figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 14px;
  background: rgba(5,5,8,.72);
  border: 1px solid rgba(245,197,24,.22);
  backdrop-filter: blur(14px);
}

.home-founder-photo strong {
  font-family: "Fraunces", Georgia, serif;
  color: var(--gold-bright);
  font-size: 34px;
  font-style: italic;
}

.home-founder-photo span {
  color: #d7d2ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-founder-story h3 {
  margin: 30px 0 10px;
  color: var(--gold);
  font-style: italic;
}

.home-highlight {
  margin: 30px 0;
  padding: 22px;
  color: var(--text);
  border-left: 3px solid var(--gold);
  background: rgba(245,197,24,.07);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(22px, 2.2vw, 32px);
  font-style: italic;
  line-height: 1.25;
}

.home-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.home-timeline span {
  padding: 14px;
  border: 1px solid rgba(109,63,255,.22);
  border-radius: var(--radius);
  color: #c8c2ee;
  background: rgba(109,63,255,.08);
  font-size: 14px;
}

.home-timeline strong {
  display: block;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 4px;
}

.home-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-course-grid strong {
  display: block;
  margin-top: 20px;
  color: var(--gold-bright);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-section-head {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  margin-bottom: 34px;
}

.home-section-head > p {
  margin: 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-price-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-plan-section {
  max-width: 1380px;
  margin: 0 auto 42px;
}

.home-plan-section.premium {
  margin-top: 56px;
}

.home-plan-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.home-plan-head h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
}

.home-plan-head p {
  margin: 0;
  color: #c8c2ee;
  line-height: 1.55;
}

.home-price-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-price-grid article {
  display: flex;
  flex-direction: column;
}

.home-price-grid article[data-plan-card] {
  cursor: pointer;
}

.home-price-grid article[data-plan-card]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.home-price-grid article.featured {
  padding-top: 52px;
  border-color: rgba(245,197,24,.54);
  background:
    linear-gradient(145deg, rgba(245,197,24,.085), rgba(109,63,255,.055)),
    rgba(8,8,16,.92);
  box-shadow: 0 26px 82px rgba(0,0,0,.42), 0 0 58px rgba(245,197,24,.14);
}

.home-price-grid article.featured::after {
  content: "Più scelto";
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid rgba(255,214,51,.44);
  border-radius: 999px;
  color: #120d02;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  box-shadow: 0 10px 28px rgba(245,197,24,.24);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.home-price-grid strong {
  margin-top: 6px;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.home-price-grid article > span {
  min-height: 38px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-price-grid ul {
  margin: 22px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.home-price-grid li {
  color: #d7d2ff;
}

.home-price-grid li::before {
  content: "✓";
  color: var(--gold);
  margin-right: 8px;
}

.home-price-grid .btn {
  margin-top: auto;
}

.home-price-grid .btn,
.home-vip-lock .btn,
.home-cta-band .btn,
.pricing-modal-actions .btn {
  position: relative;
  overflow: hidden;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.home-price-grid .btn-gold,
.home-cta-band .btn-gold,
.pricing-modal-actions .btn-gold {
  border-color: rgba(255,214,51,.68);
  background:
    linear-gradient(135deg, rgba(255,236,128,.95) 0%, rgba(245,197,24,1) 38%, rgba(177,120,16,1) 100%);
  box-shadow: 0 18px 48px rgba(245,197,24,.24), inset 0 1px 0 rgba(255,255,255,.45);
}

.home-price-grid .btn-gold::before,
.home-cta-band .btn-gold::before,
.pricing-modal-actions .btn-gold::before {
  content: "";
  position: absolute;
  inset: -80% auto -80% -42%;
  width: 38%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.64), transparent);
  transition: left .55s ease;
}

.home-price-grid .btn-gold::after,
.home-cta-band .btn-gold::after,
.pricing-modal-actions .btn-gold::after {
  content: "→";
  margin-left: 12px;
  font-size: 15px;
  line-height: 1;
  transition: transform .18s ease;
}

.home-price-grid .btn-gold:hover::before,
.home-cta-band .btn-gold:hover::before,
.pricing-modal-actions .btn-gold:hover::before {
  left: 120%;
}

.home-price-grid .btn-gold:hover::after,
.home-cta-band .btn-gold:hover::after,
.pricing-modal-actions .btn-gold:hover::after {
  transform: translateX(3px);
}

.home-price-grid .btn-ghost,
.home-vip-lock .btn-ghost,
.pricing-modal-actions .btn-ghost {
  color: #f5f1ff;
  border-color: rgba(245,197,24,.30);
  background:
    linear-gradient(180deg, rgba(255,255,255,.070), rgba(255,255,255,.025)),
    rgba(5,5,8,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.home-price-grid .btn-ghost::before,
.home-vip-lock .btn-ghost::before,
.pricing-modal-actions .btn-ghost::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(245,197,24,.58);
}

.home-price-grid .btn-ghost:hover,
.home-vip-lock .btn-ghost:hover,
.pricing-modal-actions .btn-ghost:hover {
  color: var(--gold-bright);
  border-color: rgba(245,197,24,.54);
  background:
    linear-gradient(180deg, rgba(245,197,24,.08), rgba(255,255,255,.025)),
    rgba(5,5,8,.56);
}

.home-price-grid a[href="#"] {
  opacity: .72;
}

.home-vip-lock {
  max-width: 1380px;
  margin: 62px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(245,197,24,.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(245,197,24,.08), rgba(109,63,255,.08)),
    rgba(5,5,8,.42);
}

.home-vip-lock h3 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 42px);
}

.home-vip-lock p:not(.home-label) {
  margin: 0;
  color: #d7d2ff;
  line-height: 1.6;
}

body.pricing-modal-open {
  overflow: hidden;
}

.pricing-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) 22px max(36px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pricing-modal-overlay.open {
  display: flex;
}

.pricing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,.74);
  backdrop-filter: blur(16px);
}

.pricing-modal {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: calc(100svh - 56px);
  overflow-y: auto;
  margin: min(7svh, 58px) 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(245,197,24,.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 15% 0%, rgba(109,63,255,.34), transparent 20rem),
    linear-gradient(180deg, rgba(18,14,34,.98), rgba(5,5,8,.98));
  box-shadow: 0 34px 120px rgba(0,0,0,.58), 0 0 60px rgba(109,63,255,.22);
}

.pricing-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245,197,24,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.pricing-modal h2 {
  margin: 0 42px 12px 0;
  font-size: clamp(34px, 6vw, 56px);
}

.pricing-modal-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.pricing-modal-price strong {
  color: var(--gold-bright);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(38px, 8vw, 62px);
  font-weight: 600;
  letter-spacing: -.03em;
}

.pricing-modal-price span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pricing-modal-intro {
  margin: 0 0 22px;
  color: #d7d2ff;
  font-size: 18px;
  line-height: 1.6;
}

.pricing-modal-benefits {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.pricing-modal-benefits li {
  padding: 12px 13px;
  border: 1px solid rgba(109,63,255,.24);
  border-radius: 7px;
  background: rgba(109,63,255,.1);
  color: var(--text);
}

.pricing-modal-benefits li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--gold);
  font-weight: 900;
}

.pricing-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-modal-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-height: 760px) {
  .pricing-modal {
    margin: 0;
  }
}

.home-testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-testimonial-grid strong {
  display: block;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(109,63,255,.22);
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-faq-list {
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.home-faq-list details {
  padding: 0 20px;
}

.home-faq-list summary {
  cursor: pointer;
  padding: 20px 0;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
}

.home-faq-list p {
  margin: 0;
  padding: 0 0 22px;
}

.home-cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #050508 0%, #1a0b4e 100%);
}

.home-cta-band h2,
.home-cta-band p {
  margin-left: auto;
  margin-right: auto;
}

.home-cta-band p {
  max-width: 720px;
  color: #d7d2ff;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.home-legal {
  background: #050508;
  border-top: 1px solid rgba(245,197,24,.16);
  text-align: center;
}

.home-legal h2 {
  color: var(--red);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-legal p {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,.56);
  line-height: 1.65;
}

.home-fiscal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  max-width: 1120px;
  margin: 28px auto 0;
  padding: 18px;
  border: 1px solid rgba(245,197,24,.18);
  border-radius: var(--radius);
  background: rgba(245,197,24,.045);
  color: #d7d2ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
}

.home-fiscal a {
  color: var(--gold-bright);
  text-decoration: none;
}

.home-fiscal a:hover {
  text-decoration: underline;
}

.home-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 28px auto 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .home-steps,
  .home-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-price-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home-card-grid,
  .home-course-grid,
  .home-testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .home-hero {
    min-height: 78svh;
    padding: 68px 18px 46px;
    align-items: end;
  }
  .home-hero::before {
    background:
      linear-gradient(180deg, rgba(5,5,8,.25) 0%, rgba(5,5,8,.68) 42%, rgba(5,5,8,.97) 100%),
      linear-gradient(90deg, rgba(5,5,8,.78), rgba(5,5,8,.1));
  }
  .home-hero-portrait {
    right: 0;
    width: 100%;
    height: 68%;
    object-position: center top;
    opacity: .78;
    border-radius: 0;
  }
  .home-hero-inner {
    width: 100%;
  }
  .home-hero h1 {
    font-size: clamp(38px, 12vw, 62px);
    white-space: nowrap;
  }
  .home-hero-line {
    font-size: clamp(25px, 8vw, 38px);
  }
  .home-section,
  .home-cta-band,
  .home-legal {
    padding: 62px 18px;
  }
  .home-split,
  .home-founder-grid,
  .home-section-head,
  .home-plan-head,
  .home-steps,
  .home-card-grid,
  .home-course-grid,
  .home-price-grid,
  .home-price-grid.three,
  .home-testimonial-grid {
    grid-template-columns: 1fr;
  }
  .home-vip-lock {
    grid-template-columns: 1fr;
  }
  .home-fiscal {
    grid-template-columns: 1fr;
  }
  .home-founder-photo {
    position: relative;
    top: auto;
    max-width: 520px;
    margin: 0 auto;
  }
  .home-timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .home-hero {
    min-height: 82svh;
    padding-top: 58px;
  }
  .home-hero-copy {
    font-size: 17px;
  }
  .home-actions .btn {
    width: 100%;
  }
  .home-trust span {
    width: auto;
  }
  .home-trust span:not(:first-child) {
    padding-left: 0;
    border-left: 0;
  }
  .home-section h2,
  .home-cta-band h2 {
    font-size: clamp(34px, 12vw, 52px);
  }
  .home-section p {
    font-size: 16px;
  }
  .home-steps article,
  .home-card-grid article,
  .home-course-grid article,
  .home-price-grid article,
  .home-testimonial-grid article,
  .home-quote {
    padding: 18px;
  }
  .home-timeline {
    grid-template-columns: 1fr;
  }
  .home-founder-photo figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* Approved non-home refinement: auth, admin and student areas only. */
.section-auth {
  position: relative;
  overflow-x: hidden;
}

.section-auth::before,
.section-admin::before,
.section-student::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.section-auth::before {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(109,63,255,.25), transparent 45%),
    radial-gradient(ellipse at 70% 80%, rgba(245,197,24,.10), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(26,11,78,.40), transparent 60%),
    linear-gradient(180deg, #050508 0%, #0a0420 100%);
}

.section-admin::before {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(109,63,255,.10), transparent 40%),
    radial-gradient(ellipse at 100% 0%, rgba(245,197,24,.055), transparent 40%),
    linear-gradient(180deg, #050508 0%, #0a0715 100%);
}

.section-student::before {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(245,197,24,.08), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(109,63,255,.10), transparent 45%),
    linear-gradient(180deg, #050508 0%, #0a0715 100%);
}

.section-auth .topbar {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: blur(8px);
}

.section-auth .topbar .brand,
.section-admin .topbar .brand,
.section-student .topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border: 1px solid rgba(245,197,24,.22);
  border-radius: 999px;
  background: rgba(13,8,33,.85);
  box-shadow: 0 4px 16px rgba(0,0,0,.30);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.section-auth .topbar .brand:hover,
.section-admin .topbar .brand:hover,
.section-student .topbar .brand:hover {
  transform: translateY(-1px);
  border-color: rgba(245,197,24,.40);
  box-shadow: 0 6px 22px rgba(0,0,0,.40), 0 0 18px rgba(245,197,24,.08);
}

.section-auth .topbar .brand img,
.section-admin .topbar .brand img,
.section-student .topbar .brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.section-auth .topbar .brand span,
.section-admin .topbar .brand span,
.section-student .topbar .brand span {
  max-width: none;
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.section-auth .page-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 90px);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 18px 60px;
}

.section-auth .page-shell::before {
  content: "";
  display: block;
  order: -2;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border: 1px solid rgba(245,197,24,.25);
  border-radius: 50%;
  background-color: #0d0821;
  background-image: url("/assets/img/goldman-logo-original.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 88%;
  box-shadow: 0 12px 40px rgba(109,63,255,.35), 0 0 0 6px rgba(109,63,255,.06);
}

.section-auth .page-shell::after {
  content: "Goldman Academy";
  display: block;
  order: -1;
  margin: 0 0 28px;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.section-auth .auth-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0;
  padding: 36px 36px 32px;
  border-color: rgba(245,197,24,.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    rgba(13,8,33,.85);
  box-shadow: 0 32px 80px rgba(0,0,0,.50), 0 0 0 1px rgba(109,63,255,.08), 0 0 120px rgba(109,63,255,.15);
  backdrop-filter: blur(12px);
}

.section-auth .auth-card.register-card {
  max-width: 540px;
}

.section-auth .auth-card::before {
  left: 32px;
  right: 32px;
  opacity: .55;
}

.section-auth .auth-card .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
}

.section-auth .auth-card .eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.section-auth .auth-card h1 {
  margin: 0 0 24px;
  font-size: clamp(21px, 5.6vw, 29px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.section-auth .auth-copy {
  margin: -10px 0 24px;
  color: rgba(255,255,255,.70);
  font-size: 15px;
  line-height: 1.55;
}

.section-auth .auth-card .form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-auth .auth-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-auth .auth-card input {
  min-height: 48px;
  padding: 12px 16px;
  border-color: rgba(109,63,255,.25);
  border-radius: 8px;
  background: rgba(5,5,8,.55);
  font-family: "Inter Tight", system-ui, sans-serif;
}

.section-auth .auth-card .btn-gold {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}

.auth-links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  text-align: center;
}

.auth-links a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.auth-links a:hover {
  color: var(--gold-bright);
}

.auth-links .separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,.28), transparent);
}

.auth-trust {
  margin-top: 18px;
  color: rgba(255,255,255,.66);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.section-auth .auth-lock-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
}

.section-auth .purchase-summary {
  border-color: rgba(245,197,24,.28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(245,197,24,.08), rgba(109,63,255,.06)),
    rgba(5,5,8,.44);
}

.section-auth .purchase-summary strong {
  color: var(--text);
  font-size: 24px;
}

.section-admin .page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin: 12px 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(245,197,24,.15);
}

.section-admin .page-heading h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.section-admin .page-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-admin .page-heading .eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.section-admin .page-heading p.muted,
.section-student .page-heading p.muted,
.section-student .page-heading .lead {
  color: rgba(255,255,255,.80);
  font-style: italic;
}

.section-admin .hero-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.section-admin .hero-kpi,
.section-student .student-welcome,
.section-student .hero-kpi-row .stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)),
    rgba(13,8,33,.50);
}

.section-admin .hero-kpi {
  padding: 24px 26px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.section-admin .hero-kpi::before,
.section-student .student-welcome::before,
.section-student .hero-kpi-row .stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .45;
}

.section-admin .hero-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(245,197,24,.40);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 32px rgba(245,197,24,.08);
}

.section-admin .hero-kpi .lbl {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-admin .hero-kpi .val {
  display: block;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
}

.section-admin .hero-kpi .sub {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.70);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
}

.section-admin .secondary-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 180px));
  justify-content: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin-left: 50%;
  transform: translateX(-50%);
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 24px;
}

.section-admin .dashboard-grid {
  width: min(1140px, calc(100vw - 32px));
  gap: 12px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.section-admin .stat-card,
.section-student .stat-card {
  border-color: rgba(109,63,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.030), rgba(255,255,255,.008));
}

.section-admin .data-table tbody tr,
.section-student .data-table tbody tr {
  transition: background .15s ease;
}

.section-admin .data-table tbody tr:hover,
.section-student .data-table tbody tr:hover {
  background: rgba(245,197,24,.045);
}

.section-admin .data-table tbody td:first-child {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.3;
}

.section-admin .data-table tbody td.td-id {
  color: rgba(255,255,255,.46);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.section-admin .data-table tbody td.td-id + td {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 16px;
}

.section-admin .td-email,
.section-admin .td-meta,
.section-admin .td-tech,
.section-admin .td-date {
  color: rgba(255,255,255,.78);
}

.section-admin .td-email,
.section-admin .td-meta {
  font-style: italic;
}

.badge-attivo,
.badge-attiva,
.badge-pagato {
  background: rgba(0,230,118,.14);
  color: var(--green);
}

.badge-sospeso,
.badge-scaduto {
  background: rgba(255,51,102,.14);
  color: #ff6688;
}

.section-admin .btn-mini,
.section-student .btn-mini {
  min-height: 36px;
  padding: 8px 14px;
  border-color: rgba(245,197,24,.30);
  border-radius: 8px;
  background: rgba(245,197,24,.06);
  color: var(--gold);
  font-size: 12px;
  text-transform: none;
}

.section-admin .btn-mini:hover,
.section-student .btn-mini:hover {
  color: #120d02;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-color: var(--gold);
}

.section-admin .btn-mini.btn-danger,
.section-student .btn-mini.btn-danger {
  border-color: rgba(255,51,102,.35);
  background: rgba(255,51,102,.06);
  color: #ff6688;
}

.section-admin .btn-mini.btn-danger:hover,
.section-student .btn-mini.btn-danger:hover {
  color: #fff;
  background: linear-gradient(135deg, #ff3366, #ff5577);
  border-color: #ff3366;
}

.section-admin .admin-users-page {
  width: min(1460px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.section-admin .admin-users-page .data-table {
  min-width: 1320px;
}

.section-admin .admin-users-page .data-table th,
.section-admin .admin-users-page .data-table td,
.section-admin .admin-users-page .actions {
  white-space: nowrap;
}

.section-admin .admin-users-page .actions {
  flex-wrap: nowrap;
}

.section-admin .license-actions .btn-mini {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.92);
}

.section-admin .license-actions .btn-mini:hover {
  color: var(--bg);
  background: rgba(255,255,255,.90);
  border-color: rgba(255,255,255,.90);
}

.section-admin .license-actions .btn-mini.btn-warning {
  border-color: rgba(245,197,24,.38);
  background: rgba(245,197,24,.08);
  color: var(--gold);
}

.section-admin .license-actions .btn-mini.btn-warning:hover {
  color: #120d02;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-color: var(--gold);
}

.section-admin .license-actions .btn-mini.btn-success {
  border-color: rgba(0,230,118,.32);
  background: rgba(0,230,118,.08);
  color: var(--green);
}

.section-admin .license-actions .btn-mini.btn-success:hover {
  color: #02180c;
  background: var(--green);
  border-color: var(--green);
}

.section-admin .license-actions .btn-mini.btn-danger {
  border-color: rgba(255,51,102,.35);
  background: rgba(255,51,102,.06);
  color: #ff6688;
}

.section-admin .license-actions .btn-mini.btn-danger:hover {
  color: #fff;
  background: linear-gradient(135deg, #ff3366, #ff5577);
  border-color: #ff3366;
}

.section-home .hello,
.section-admin .hello,
.section-student .hello {
  position: fixed;
  top: 18px;
  right: max(5vw, 24px);
  z-index: 101;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 8px 16px 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(245,197,24,.22);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(13,8,33,.85);
  box-shadow: 0 4px 16px rgba(0,0,0,.30);
  backdrop-filter: blur(12px);
  font-family: "Fraunces", Georgia, serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
}

.section-home .hello::before,
.section-admin .hello::before,
.section-student .hello::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(0,230,118,.70);
  flex-shrink: 0;
}

.section-student .student-welcome {
  margin: 16px 0 32px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-color: rgba(245,197,24,.18);
  background:
    linear-gradient(135deg, rgba(245,197,24,.06), rgba(109,63,255,.05)),
    rgba(13,8,33,.55);
}

.section-student .student-welcome .greeting {
  flex: 1;
  min-width: 280px;
}

.section-student .student-welcome .greeting-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
}

.section-student .student-welcome .greeting-name {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.section-student .student-welcome .greeting-sub {
  max-width: 540px;
  margin-top: 8px;
  color: rgba(255,255,255,.80);
  font-style: italic;
}

.section-student .student-welcome .plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(245,197,24,.30);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(245,197,24,.10);
  font-family: "Fraunces", Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.section-student .student-welcome .plan-label {
  color: rgba(255,255,255,.66);
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
}

.section-student .hero-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.section-student .hero-kpi-row .stat-card {
  padding: 22px 20px;
}

.section-student .hero-kpi-row .stat-card span {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-student .hero-kpi-row .stat-card strong {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -.03em;
}

@media (min-width: 861px) {
  .section-admin .topbar .brand,
  .section-student .topbar .brand {
    padding: 6px 10px 6px 6px;
    border-bottom: 1px solid rgba(245,197,24,.22);
  }

  .section-admin .topbar .brand span,
  .section-student .topbar .brand span {
    font-size: 13px;
  }
}

@media (max-width: 1120px) {
  .section-student .hero-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .section-auth .page-shell {
    padding: 24px 14px 40px;
    min-height: calc(100vh - 70px);
  }

  .section-auth .page-shell::before {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }

  .section-auth .page-shell::after {
    margin: 0 0 22px;
    font-size: 18px;
  }

  .section-auth .auth-card {
    padding: 28px 22px 26px;
  }

  .section-admin .hero-kpi-row,
  .section-student .hero-kpi-row {
    grid-template-columns: 1fr;
  }

  .section-admin .secondary-stats,
  .section-admin .dashboard-grid {
    width: auto;
    max-width: none;
    margin-left: 0;
    transform: none;
  }

  .section-admin .secondary-stats {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .section-home .hello,
  .section-admin .hello,
  .section-student .hello {
    display: none;
  }
}

/* Authenticated app shell */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,0)),
    #050508;
}

.app-main {
  min-width: 0;
}

.app-shell .page-shell {
  width: min(1340px, calc(100% - 48px));
  margin: 28px auto 64px;
}

.app-shell .hello {
  right: 28px;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 120;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid rgba(245,197,24,.14);
  background:
    linear-gradient(180deg, rgba(20,17,26,.98), rgba(7,7,10,.98)),
    #08080b;
  box-shadow: 18px 0 44px rgba(0,0,0,.32);
}

.app-sidebar-head,
.app-user-card,
.app-sidebar-foot {
  flex: 0 0 auto;
}

.app-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.app-brand img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(245,197,24,.26);
}

.app-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-sidebar-toggle {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.app-user-card {
  min-height: 72px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.app-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #120d02;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 900;
}

.app-user-card strong,
.app-user-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-user-card strong {
  color: var(--text);
  font-size: 14px;
}

.app-user-card span {
  margin-top: 3px;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  padding-right: 2px;
}

.app-nav-section {
  margin: 12px 8px 6px;
  color: rgba(255,255,255,.38);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-nav-item,
.app-nav-child,
.app-sidebar-foot a {
  min-width: 0;
  border-radius: 8px;
  color: rgba(255,255,255,.70);
  text-decoration: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.app-nav-item {
  min-height: 42px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
}

.app-nav-item span:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.app-nav-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 7px;
  color: rgba(255,255,255,.80);
  background: rgba(255,255,255,.045);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 900;
}

.app-nav-item em {
  flex: 0 0 auto;
  min-width: 20px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #120d02;
  background: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.app-nav-item:hover,
.app-nav-item.active,
.app-nav-child:hover,
.app-nav-child.active {
  color: var(--text);
  background: rgba(245,197,24,.10);
  border-color: rgba(245,197,24,.18);
}

.app-nav-item.active .app-nav-icon {
  color: #120d02;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-color: rgba(255,214,51,.64);
}

.app-nav-children {
  margin: 4px 0 8px 34px;
  display: grid;
  gap: 3px;
}

.app-nav-child {
  padding: 7px 10px;
  display: block;
  border: 1px solid transparent;
  font-size: 13px;
}

.app-sidebar-foot {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.app-sidebar-foot a {
  min-height: 40px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  color: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  font-weight: 800;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 90px minmax(0, 1fr);
}

.sidebar-collapsed .app-sidebar {
  padding-inline: 12px;
}

.sidebar-collapsed .app-brand span,
.sidebar-collapsed .app-user-card div,
.sidebar-collapsed .app-nav-item span:nth-child(2),
.sidebar-collapsed .app-nav-item em,
.sidebar-collapsed .app-nav-section,
.sidebar-collapsed .app-nav-children,
.sidebar-collapsed .app-sidebar-foot a {
  display: none;
}

.sidebar-collapsed .app-brand,
.sidebar-collapsed .app-nav-item,
.sidebar-collapsed .app-sidebar-foot {
  justify-content: center;
}

.sidebar-collapsed .app-user-card {
  justify-content: center;
  padding: 10px;
}

.sidebar-collapsed .app-sidebar-toggle {
  transform: rotate(180deg);
}

/* Backtesting lab overrides */
.bt-toolbar {
  grid-template-columns: minmax(126px, 1fr) minmax(126px, .8fr) minmax(126px, .8fr) minmax(126px, .8fr) minmax(126px, .8fr) auto;
}

.bt-toolbar input[type="date"] {
  min-height: 40px;
}

.bt-feed-status {
  min-height: 30px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: rgba(255,255,255,.70);
  background: rgba(255,255,255,.045);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.bt-feed-status.real {
  color: var(--green);
  border-color: rgba(0,230,118,.30);
  background: rgba(0,230,118,.08);
}

.bt-feed-status.demo {
  color: var(--gold);
  border-color: rgba(245,197,24,.26);
  background: rgba(245,197,24,.08);
}

.bt-chart-panel,
.bt-ticket,
.bt-coach-panel,
.ga-panel,
.ga-chat-panel,
.ga-score-card,
.ga-profile-card,
.events-side {
  border-radius: 8px;
}

/* Goldman AI */
.ga-page {
  display: grid;
  gap: 18px;
}

.ga-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(245,197,24,.15);
}

.ga-orb {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(245,197,24,.34);
  border-radius: 50%;
  background:
    url("/assets/img/goldman-logo-original.png") center/cover no-repeat,
    #0b0b0f;
  box-shadow: 0 0 24px rgba(245,197,24,.14);
}

.ga-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0;
}

.ga-hero .muted {
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,.74);
}

.ga-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ga-grid-top {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(280px, .9fr) minmax(320px, 1.3fr);
  gap: 16px;
  align-items: stretch;
}

.ga-score-card,
.ga-profile-card,
.ga-kpis,
.ga-panel,
.ga-chat-panel,
.ga-insight,
.events-side,
.event-row {
  border: 1px solid rgba(109,63,255,.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.018)),
    rgba(13,8,33,.54);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.ga-score-card,
.ga-profile-card,
.ga-panel,
.ga-chat-panel,
.ga-insight {
  padding: 18px;
}

.ga-score-card span,
.ga-score-card em {
  display: block;
}

.ga-score-card span {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ga-score-card strong {
  display: block;
  margin: 8px 0 0;
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 72px;
  line-height: .9;
  letter-spacing: 0;
}

.ga-score-card em {
  margin-top: 6px;
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.ga-score-card p {
  margin: 12px 0 0;
  color: rgba(255,255,255,.64);
  line-height: 1.45;
}

.ga-score-track,
.ga-bar {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.ga-score-track {
  height: 8px;
  margin-top: 16px;
}

.ga-score-track span,
.ga-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.ga-score-track span {
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
}

.ga-profile-list {
  display: grid;
  gap: 10px;
}

.ga-profile-list div {
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.ga-profile-list span,
.ga-profile-list strong {
  display: block;
}

.ga-profile-list span {
  color: rgba(255,255,255,.58);
  font-size: 12px;
}

.ga-profile-list strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 18px;
}

.ga-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ga-kpis .stat-card {
  min-height: 106px;
  margin: 0;
}

.ga-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ga-insight {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ga-insight.positive {
  border-color: rgba(0,230,118,.26);
  background: rgba(0,230,118,.075);
}

.ga-insight.warning {
  border-color: rgba(255,51,102,.27);
  background: rgba(255,51,102,.075);
}

.ga-insight.focus {
  border-color: rgba(245,197,24,.26);
  background: rgba(245,197,24,.075);
}

.ga-insight span {
  align-self: flex-start;
  padding: 4px 7px;
  border-radius: 999px;
  color: #120d02;
  background: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.ga-insight h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
}

.ga-insight p {
  margin: 0;
  color: rgba(255,255,255,.76);
  line-height: 1.45;
}

.ga-insight strong {
  margin-top: auto;
  color: var(--gold);
  line-height: 1.35;
}

.ga-chart-grid,
.ga-bottom-grid,
.events-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ga-bottom-grid {
  grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
}

.ga-bar-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ga-bar-row strong,
.ga-bar-row span {
  display: block;
}

.ga-bar-row span {
  color: rgba(255,255,255,.58);
  font-size: 12px;
}

.ga-bar-row em {
  flex: 0 0 auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-style: normal;
}

.ga-bar {
  height: 7px;
  margin-top: 7px;
}

.ga-empty {
  min-height: 92px;
  padding: 18px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: 8px;
  color: rgba(255,255,255,.58);
  text-align: center;
}

.ga-checklist {
  display: grid;
  gap: 10px;
}

.ga-checklist label {
  min-height: 46px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.ga-checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.ga-chat-log {
  height: 250px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(5,5,8,.48);
}

.ga-message {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.07);
  line-height: 1.45;
}

.ga-message.ai {
  justify-self: start;
  border: 1px solid rgba(245,197,24,.18);
  background: rgba(245,197,24,.08);
}

.ga-message.user {
  justify-self: end;
  border: 1px solid rgba(0,230,118,.20);
  background: rgba(0,230,118,.08);
}

.ga-prompts {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ga-prompts button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.045);
  font-weight: 800;
  cursor: pointer;
}

.ga-chat-form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.ga-chat-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 12px;
}

/* Events */
.events-page {
  display: grid;
  gap: 18px;
}

.events-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(245,197,24,.15);
}

.events-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: 0;
}

.events-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.events-list {
  display: grid;
  gap: 12px;
}

.event-row {
  min-height: 96px;
  padding: 14px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 8px;
}

.event-date {
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245,197,24,.22);
  border-radius: 8px;
  background: rgba(245,197,24,.08);
}

.event-date strong,
.event-date span {
  display: block;
}

.event-date strong {
  color: var(--text);
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  line-height: .9;
}

.event-date span {
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 800;
}

.event-row h2 {
  margin: 8px 0 4px;
  font-size: 22px;
  letter-spacing: 0;
}

.event-row p {
  margin: 0;
  color: rgba(255,255,255,.64);
}

.event-row em {
  font-style: normal;
  color: var(--gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

.events-side {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 28px;
}

.events-side strong {
  display: block;
  color: var(--text);
  font-size: 20px;
}

.events-side p {
  color: rgba(255,255,255,.66);
}

@media (max-width: 1280px) {
  .ga-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ga-grid-top,
  .ga-chart-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ga-kpis {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1120px) {
  .bt-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bt-replay-actions,
  .bt-feed-status {
    justify-content: stretch;
  }

  .events-layout,
  .ga-bottom-grid {
    grid-template-columns: 1fr;
  }

  .events-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
  }

  .app-shell .page-shell {
    width: calc(100% - 24px);
    margin: 18px auto 42px;
  }

  .app-sidebar {
    position: sticky;
    height: auto;
    max-height: 74vh;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(245,197,24,.14);
  }

  .app-sidebar-toggle {
    display: none;
  }

  .app-user-card {
    min-height: 62px;
  }

  .app-nav-children {
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar-collapsed .app-brand span,
  .sidebar-collapsed .app-user-card div,
  .sidebar-collapsed .app-nav-item span:nth-child(2),
  .sidebar-collapsed .app-nav-item em,
  .sidebar-collapsed .app-nav-section,
  .sidebar-collapsed .app-nav-children,
  .sidebar-collapsed .app-sidebar-foot a {
    display: initial;
  }

  .ga-hero {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .ga-hero-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .ga-hero-actions .btn,
  .events-hero .btn {
    flex: 1 1 0;
  }

  .ga-orb {
    width: 52px;
    height: 52px;
  }

  .ga-grid-top,
  .ga-chart-grid,
  .ga-insight-grid,
  .ga-kpis {
    grid-template-columns: 1fr;
  }

  .events-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .event-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .event-row em {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .bt-toolbar {
    grid-template-columns: 1fr;
  }

  .ga-chat-form {
    grid-template-columns: 1fr;
  }

  .ga-message {
    max-width: 100%;
  }
}
