/* ═══════════════════════════════════════════════════════════════
   RH+ MOC BUDGET PLANNER
   © 2026 Gary Van Gundy / Restaurant Hotline Plus
   All Rights Reserved
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --navy:        #0d1b2a;
  --navy-mid:    #162436;
  --navy-light:  #1e3048;
  --navy-border: #2a4060;
  --gold:        #c9993a;
  --gold-light:  #e8bb6a;
  --gold-pale:   rgba(201,153,58,0.12);
  --gold-border: rgba(201,153,58,0.25);
  --text-primary:   #f0ede8;
  --text-secondary: #8fa4bc;
  --text-muted:     #4d6a85;
  --green:       #3db87a;
  --green-pale:  rgba(61,184,122,0.12);
  --green-border:rgba(61,184,122,0.3);
  --red:         #e05c5c;
  --red-pale:    rgba(224,92,92,0.12);
  --red-border:  rgba(224,92,92,0.3);
  --amber:       #e8a83a;
  --amber-pale:  rgba(232,168,58,0.12);
  --amber-border:rgba(232,168,58,0.3);
  --card:        #162436;
  --card-border: #243650;
  --input-bg:    #0f1e2d;
  --radius:      8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --sidebar-w:   220px;
  --header-h:    56px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  background: var(--navy);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ════════════════════════════════════
   AUTH / LOGIN SCREEN
════════════════════════════════════ */
.auth-screen {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  z-index: 1000;
  overflow: hidden;
}

.auth-screen::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(201,153,58,0.08);
  pointer-events: none;
}

.auth-screen::after {
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(201,153,58,0.06);
  pointer-events: none;
}

.auth-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at center top, rgba(201,153,58,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.auth-logo {
  width: 88px; height: 88px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: 0 0 0 1px rgba(201,153,58,0.3), 0 12px 40px rgba(0,0,0,0.6);
  position: relative;
  z-index: 1;
}

.auth-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.auth-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: var(--navy-mid);
  border: 1px solid rgba(201,153,58,0.2);
  border-radius: 14px;
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.auth-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-card-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.6;
}

.auth-divider {
  height: 1px;
  background: var(--navy-border);
  margin: 0 -28px 22px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--navy-border);
  margin: 0 -28px 22px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .15s;
}

.auth-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.auth-field {
  margin-bottom: 14px;
  text-align: left;
}

.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.auth-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--navy-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border .2s, box-shadow .2s;
}

.auth-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,153,58,0.1);
}

.auth-btn {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 13px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.auth-btn:hover { background: var(--gold-light); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-error {
  font-size: 12px;
  color: var(--red);
  background: var(--red-pale);
  border: 1px solid var(--red-border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  text-align: left;
  display: none;
}

.auth-error.visible { display: block; }

.auth-success {
  font-size: 12px;
  color: var(--green);
  background: var(--green-pale);
  border: 1px solid var(--green-border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  text-align: left;
  display: none;
}

.auth-success.visible { display: block; }

.auth-link {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

.auth-link a {
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
}

.auth-link a:hover { color: var(--gold-light); }

.auth-footer {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════
   APP SHELL — Sidebar + Main
════════════════════════════════════ */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--navy-mid);
  border-right: 1px solid var(--navy-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-logo {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-logo-text .product-name {
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  color: var(--gold);
  line-height: 1.2;
}

.sidebar-logo-text .product-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 1px;
}

.sidebar-logo-text .version {
  font-size: 9px;
  color: rgba(201,153,58,0.4);
  margin-top: 1px;
}

.nav-section { padding: 12px 0 6px; }

.nav-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 16px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  border-left: 2px solid transparent;
  text-decoration: none;
  user-select: none;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.nav-item.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: var(--gold-pale);
}

.nav-item .nav-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--navy-border);
}

.plan-badge {
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  margin-bottom: 10px;
}

.plan-badge .pb-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.plan-badge .pb-plan {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-light);
}

.plan-badge .pb-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
}

.user-info .user-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.user-info .user-email {
  font-size: 10px;
  color: var(--text-muted);
}

.btn-signout {
  margin-top: 8px;
  width: 100%;
  background: none;
  border: 1px solid var(--navy-border);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  padding: 6px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-signout:hover { color: var(--text-secondary); border-color: var(--text-muted); }

/* ── MAIN AREA ── */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--navy-border);
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-title {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--gold);
}

.topbar-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── CONTENT AREA ── */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ── VIEWS ── */
.view { display: none; }
.view.active { display: block; }

/* ════════════════════════════════════
   COMMON COMPONENTS
════════════════════════════════════ */

/* Page header */
.page-header { margin-bottom: 20px; }
.page-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 3px;
}
.page-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.card-title i { font-size: 13px; color: var(--gold); }
.card-title .card-title-action { margin-left: auto; }

/* Buttons */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: var(--navy-light);
  color: var(--text-secondary);
  border: 1px solid var(--navy-border);
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary:hover { color: var(--text-primary); border-color: var(--text-muted); }

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--navy-light); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

/* Form elements */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-label .badge {
  display: inline-block;
  font-size: 9px;
  color: var(--text-muted);
  background: var(--navy-light);
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 4px;
  border: 1px solid var(--navy-border);
}

input[type=number],
input[type=text],
input[type=email],
input[type=password],
select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--navy-border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 8px 11px;
  outline: none;
  transition: border .15s, box-shadow .15s;
}

input:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,153,58,0.1);
}

select option { background: var(--navy-mid); }

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-calc {
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

/* Inline percentage row (benchmarks, revenue mix) */
.pct-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background .1s;
}
.pct-row:hover { background: var(--navy-light); }
.pct-label { flex: 1; font-size: 13px; color: var(--text-secondary); }
.pct-bar-wrap { width: 70px; height: 4px; background: var(--navy-border); border-radius: 2px; overflow: hidden; }
.pct-bar { height: 100%; background: var(--gold); border-radius: 2px; transition: width .3s; }
.inline-input {
  background: var(--input-bg);
  border: 1px solid var(--navy-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 4px 8px;
  width: 90px;
  text-align: right;
  outline: none;
}
.inline-input:focus { border-color: var(--gold); }
.unit-label { font-size: 12px; color: var(--text-muted); width: 16px; }

/* KPI stat cards */
.stat-card {
  background: var(--navy-mid);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.stat-card.good::before  { background: var(--green); }
.stat-card.warn::before  { background: var(--amber); }
.stat-card.bad::before   { background: var(--red); }
.stat-card.gold::before  { background: var(--gold); }

.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.5px; margin-bottom: 5px; }
.stat-value { font-size: 18px; font-weight: 600; color: var(--text-primary); line-height: 1; }
.stat-sub   { font-size: 11px; color: var(--text-secondary); margin-top: 3px; }
.stat-value.status-good { color: var(--green); }
.stat-value.status-warn { color: var(--amber); }
.stat-value.status-bad  { color: var(--red); }

/* MOC Hero */
.moc-hero {
  background: var(--navy-mid);
  border: 1px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}
.moc-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.moc-hero-values {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 32px;
}
.moc-col { text-align: center; }
.moc-col-label { font-size: 10px; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 4px; }
.moc-value {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  color: var(--text-primary);
  line-height: 1;
}
.moc-value.actual { color: var(--gold); }
.moc-pct { font-size: 18px; color: var(--gold-light); font-weight: 300; margin-top: 2px; }
.moc-divider { color: var(--navy-border); font-size: 28px; }
.moc-sub { font-size: 12px; color: var(--text-secondary); margin-top: 10px; }

/* Alerts */
.alert {
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.alert-warn  { background: var(--amber-pale); border: 1px solid var(--amber-border); color: var(--amber); }
.alert-good  { background: var(--green-pale); border: 1px solid var(--green-border); color: var(--green); }
.alert-info  { background: var(--gold-pale);  border: 1px solid var(--gold-border);  color: var(--gold-light); }
.alert-error { background: var(--red-pale);   border: 1px solid var(--red-border);   color: var(--red); }

/* Status checks */
.status-check {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}
.check-ok   { background: var(--green-pale); color: var(--green); }
.check-warn { background: var(--red-pale);   color: var(--red); }

/* Variance badges */
.var-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.var-good { background: var(--green-pale); color: var(--green); }
.var-bad  { background: var(--red-pale);   color: var(--red); }

/* Month tabs */
.month-tabs { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 14px; }
.month-tab {
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: 5px;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  cursor: pointer;
  transition: all .12s;
}
.month-tab:hover { color: var(--text-primary); }
.month-tab.active { background: var(--gold-pale); border-color: var(--gold); color: var(--gold); }
.month-tab.overridden { border-color: rgba(61,184,122,0.5); color: var(--green); }
.month-tab.active.overridden { background: var(--green-pale); border-color: var(--green); }

/* Budget table */
.budget-table { width: 100%; border-collapse: collapse; }
.budget-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--navy-border);
}
.budget-table th:not(:first-child) { text-align: right; }
.budget-table td {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-bottom: 1px solid rgba(42,64,96,0.4);
}
.budget-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.budget-table tr:hover td { background: var(--navy-light); color: var(--text-primary); }
.budget-table tr.section-hdr td {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: 5px 12px;
  border-bottom: none;
}
.budget-table tr.section-total td {
  font-weight: 600;
  color: var(--text-primary);
  border-top: 1px solid var(--navy-border);
  border-bottom: 2px solid var(--navy-border);
}
.budget-table tr.moc-row td {
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  color: var(--gold);
  background: var(--gold-pale);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 10px 12px;
}

/* Chart wrapper */
.chart-wrap { position: relative; height: 220px; margin-top: 8px; }

/* Season grid */
.season-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.season-cell {
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
}
.season-cell label { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; letter-spacing: 0.5px; display: block; }
.season-cell input {
  background: var(--input-bg);
  border: 1px solid var(--navy-border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 4px;
  width: 100%;
  text-align: center;
  outline: none;
}
.season-cell input:focus { border-color: var(--gold); }
.season-rev { font-size: 11px; color: var(--gold); margin-top: 3px; font-weight: 600; }

/* Action row */
.action-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.hint-text  { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

/* Guide */
.guide-step {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--navy-border);
}
.guide-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.guide-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold-pale);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.guide-body h3 { font-size: 14px; font-weight: 600; color: var(--gold); margin-bottom: 5px; }
.guide-body p  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.guide-tip {
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 9px 13px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--gold-light);
}

/* KPI definitions */
.kpi-def {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(42,64,96,0.4);
}
.kpi-def:last-child { border-bottom: none; }
.kpi-tag {
  background: var(--gold-pale);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.kpi-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Topbar lock btn */
.btn-lock {
  background: none;
  border: 1px solid var(--navy-border);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all .15s;
}
.btn-lock:hover { color: var(--text-secondary); border-color: var(--text-muted); }

/* Divider */
.divider {
  height: 1px;
  background: var(--navy-border);
  margin: 16px 0;
}

/* Tag pills */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}
.tag-green { background: var(--green-pale); color: var(--green); border: 1px solid var(--green-border); }
.tag-amber { background: var(--amber-pale); color: var(--amber); border: 1px solid var(--amber-border); }
.tag-red   { background: var(--red-pale);   color: var(--red);   border: 1px solid var(--red-border); }
.tag-gold  { background: var(--gold-pale);  color: var(--gold);  border: 1px solid var(--gold-border); }

/* Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.text-muted { color: var(--text-muted); }
.text-gold  { color: var(--gold); }
.text-sm    { font-size: 12px; }
.text-xs    { font-size: 11px; }
.font-serif { font-family: 'DM Serif Display', serif; }

/* ════════════════════════════════════
   MOBILE COMPANION (read-only)
════════════════════════════════════ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 500;
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-width: 100vw;
  max-height: 100dvh;
}

.mobile-overlay.active { display: flex; }

.mobile-header {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--navy-border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-logo img {
  width: 28px; height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.mobile-logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  color: var(--gold);
}

.mobile-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  padding-bottom: env(safe-area-inset-bottom, 16px);
  -webkit-overflow-scrolling: touch;
}

.mobile-tabs {
  display: flex;
  border-bottom: 1px solid var(--navy-border);
  margin-bottom: 16px;
  overflow-x: auto;
  flex-shrink: 0;
}

.mobile-tab {
  flex: 1;
  min-width: 70px;
  padding: 10px 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
  white-space: nowrap;
}

.mobile-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ════════════════════════════════════
   ANIMATIONS
════════════════════════════════════ */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.fade-in { animation: fadeSlide .2s ease; }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .season-grid { grid-template-columns: repeat(4, 1fr); }
  .content-area { padding: 16px; }
  body.mobile-active .app-shell { display: none !important; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .season-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════
   PRINT
════════════════════════════════════ */
@media print {
  .sidebar, .topbar, .action-row, .btn-primary, .btn-secondary { display: none !important; }
  .app-shell { display: block !important; }
  .main-area { overflow: visible !important; display: block !important; }
  .content-area { overflow: visible !important; padding: 0 !important; }
  body { background: #fff !important; color: #000 !important; }
}
