/* ============================================================
   OCEANS42 — Value Investing Screener
   Design system: navy + gold, Inter, corporate/professional.
   (Modelled on the HBC command-console reference.)
   ============================================================ */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #e5e9f1;
  --border-strong: #d3dae7;

  --text: #1f2937;
  --heading: #0f1b2d;
  --muted: #647085;
  --faint: #94a0b3;

  /* gold accent (brand) */
  --gold: #d9a227;
  --gold-600: #c08c17;
  --gold-050: #fbf3dd;

  /* navy (dark surfaces / dark buttons) */
  --navy: #0e1c30;
  --navy-2: #142a45;
  --ink: #0b1526;

  --sidebar-bg: #0a1322;
  --sidebar-bg-2: #0d1a2e;
  --sidebar-text: #9aa7bd;
  --sidebar-text-hi: #ffffff;

  --blue:  #1a56c0; --blue-bg:  #cfe0fb; --blue-tx:  #0f3a76;
  --green: #16803f; --green-bg: #c6ecd3; --green-tx: #0c4523;
  --amber: #a5640c; --amber-bg: #f7dfa4; --amber-tx: #6b3e05;
  --red:   #bf2f22; --red-bg:   #f7ccc6; --red-tx:   #781a12;

  --radius: 12px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15,27,45,.05), 0 4px 14px rgba(15,27,45,.06);
  --shadow-lg: 0 16px 40px rgba(15,27,45,.16);
  --shadow-navy: 0 14px 34px rgba(11,21,38,.32);
  --sidebar-w: 256px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; color: var(--heading); }
b { font-weight: 800; }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }

/* ---------------------------------------------------------- App shell */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  position: fixed; inset: 0 auto 0 0;
  background: linear-gradient(184deg, var(--sidebar-bg-2), var(--sidebar-bg) 72%);
  color: var(--sidebar-text);
  display: flex; flex-direction: column;
  padding: 20px 16px;
  z-index: 20;
  border-right: 1px solid rgba(255,255,255,.05);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px 22px;
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .02em;
}
.brand b { color: var(--gold); font-weight: 800; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(217,162,39,.35);
}
.brand .logo svg { width: 40px; height: 40px; }
.brand small { display:block; font-weight: 500; font-size: 10.5px; color: #7c8aa3; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: #56637d; font-weight: 700; padding: 16px 12px 7px; }
.nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 13px; border-radius: 10px;
  color: var(--sidebar-text); font-weight: 600; font-size: 14.5px;
  position: relative; transition: background .16s, color .16s, transform .16s;
}
.nav-item svg { width: 19px; height: 19px; flex: none; opacity: .7; transition: opacity .16s; }
.nav-item:hover { background: rgba(255,255,255,.05); color: var(--sidebar-text-hi); text-decoration: none; transform: translateX(3px); }
.nav-item:hover svg { opacity: 1; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(217,162,39,.18), rgba(217,162,39,.02));
  color: #fff;
}
.nav-item.active svg { opacity: 1; color: var(--gold); }
.nav-item.active { color: var(--gold); }
.nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--gold);
}

.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.user-chip { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; text-decoration: none; transition: background .15s; }
.user-chip:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.user-chip.active { background: rgba(217,162,39,.14); }
.avatar {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-600)); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.user-chip .u-name { color: #fff; font-weight: 700; font-size: 14px; line-height: 1.15; }
.user-chip .u-role { color: #7c8aa3; font-size: 11.5px; }
.logout-btn {
  background: none; border: none; color: var(--sidebar-text); cursor: pointer;
  margin-left: auto; padding: 7px; border-radius: 9px; display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.logout-btn:hover { background: rgba(255,255,255,.09); color: #fff; }
.logout-btn svg { width: 19px; height: 19px; }

/* ---------------------------------------------------------- Main area */
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }
.topbar {
  min-height: 76px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 15px 38px; position: sticky; top: 0; z-index: 10;
}
.topbar h1 { font-size: 23px; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.1; }
.topbar .sub { color: var(--muted); font-size: 14px; margin-top: 3px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.content { padding: 28px 38px 56px; max-width: 1300px; }

/* ---------------------------------------------------------- Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card.hover:hover, .card.accent:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card + .card, .stack > * + * { margin-top: 18px; }
.stack { display: flex; flex-direction: column; }
.card-title { font-size: 13px; font-weight: 800; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--heading); }
.card-title.with-bar { display:flex; align-items:center; gap:10px; }
.card-title.with-bar::before { content:""; width:4px; height:15px; border-radius:3px; background: var(--gold); }
.muted { color: var(--muted); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* Dark "feature" card (key metric), mirrors the reference console card */
.feature {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, var(--navy-2), var(--navy) 60%, var(--ink));
  border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius);
  box-shadow: var(--shadow-navy); padding: 24px 26px;
  transition: transform .18s, box-shadow .18s;
}
.feature:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(11,21,38,.42); }
.feature::after { content:""; position:absolute; right:-50px; top:-60px; width:180px; height:180px; border-radius:50%; background: radial-gradient(circle, rgba(217,162,39,.22), transparent 70%); }
.feature .flabel { display:flex; align-items:center; gap:9px; font-size:11.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:#aeb9cd; position:relative; z-index:1; }
.feature .flabel svg { width:17px; height:17px; color: var(--gold); }
.feature .fvalue { font-size:34px; font-weight:800; letter-spacing:-.02em; margin-top:12px; position:relative; z-index:1; }
.feature .fvalue small { font-size:15px; font-weight:600; color:#aeb9cd; margin-left:6px; }
.feature .fmeta { margin-top:10px; font-size:13px; color: var(--gold); font-weight:600; position:relative; z-index:1; }

/* ---------------------------------------------------------- Tiles (stat cards) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px 20px 24px;
  position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tile::before { content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background: var(--faint); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile .k { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; display:flex; align-items:center; gap:8px; }
.tile .k::before { content:""; width:8px; height:8px; border-radius:50%; background: var(--faint); }
.tile .v { font-size: 30px; font-weight: 800; letter-spacing: -.025em; margin-top: 8px; line-height: 1.1; color: var(--heading); }
.tile .accent { position: absolute; right: -14px; top: -14px; width: 84px; height: 84px; border-radius: 50%; opacity: .16; }

/* coloured, tinted stat tiles */
.tile.indigo { background: linear-gradient(158deg,#e8f1fd,#d3e4fb); border-color:#b7d3f4; }
.tile.indigo::before { background: var(--blue); } .tile.indigo .k::before, .tile.indigo .accent { background: var(--blue); } .tile.indigo .v { color: var(--blue-tx); }
.tile.green { background: linear-gradient(158deg,#def6e8,#c9efd8); border-color:#a3e2bc; }
.tile.green::before { background: var(--green); } .tile.green .k::before, .tile.green .accent { background: var(--green); } .tile.green .v { color: var(--green-tx); }
.tile.amber { background: linear-gradient(158deg,#fdf1d8,#f8e3ac); border-color:#ecce80; }
.tile.amber::before { background: var(--amber); } .tile.amber .k::before, .tile.amber .accent { background: var(--amber); } .tile.amber .v { color: var(--amber-tx); }
.tile.red { background: linear-gradient(158deg,#fbe4e0,#f7cec8); border-color:#eeaaa1; }
.tile.red::before { background: var(--red); } .tile.red .k::before, .tile.red .accent { background: var(--red); } .tile.red .v { color: var(--red-tx); }
.tile.violet { background: linear-gradient(158deg,#efe6fd,#e0d1f9); border-color:#c9a9ef; }
.tile.violet::before { background:#6d28d9; } .tile.violet .k::before, .tile.violet .accent { background:#6d28d9; } .tile.violet .v { color:#54189e; }
.tile.cyan { background: linear-gradient(158deg,#e0f3f9,#caebf4); border-color:#94d3e5; }
.tile.cyan::before { background:#0891b2; } .tile.cyan .k::before, .tile.cyan .accent { background:#0891b2; } .tile.cyan .v { color:#0b5f79; }
.tile.gold { background: linear-gradient(158deg,#fbf1cf,#f6e6ac); border-color:#e6cd82; }
.tile.gold::before { background: var(--gold); } .tile.gold .k::before, .tile.gold .accent { background: var(--gold); } .tile.gold .v { color: var(--gold-600); }

/* ---------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: 1px solid transparent; border-radius: 9px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px;
  transition: background .15s, box-shadow .15s, transform .06s, filter .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 6px 16px rgba(217,162,39,.32); }
.btn-primary:hover { background: var(--gold-600); box-shadow: 0 9px 22px rgba(217,162,39,.4); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(.94); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--faint); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; filter: none; }

/* ---------------------------------------------------------- Forms */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 12.5px; font-weight: 700; color: #384357; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.input, input[type=text], input[type=password], input[type=number], input[type=time], input[type=email], select {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 14.5px;
  border: 1px solid var(--border-strong); border-radius: 9px; background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, input:focus, select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,162,39,.18);
}
.input::placeholder, input::placeholder { color: var(--faint); }
.input.err, input.err { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(191,47,34,.14) !important; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.err-text { font-size: 12.5px; color: var(--red); margin-top: 6px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--gold); }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.form-row .grow { flex: 1; min-width: 180px; }

/* ---------------------------------------------------------- Tables */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; white-space: nowrap; }
table.data thead th {
  text-align: left; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
table.data thead th.num, table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: var(--gold-050); }
.t-strong { font-weight: 700; }

/* ---------------------------------------------------------- Badges */
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 7px; letter-spacing: .02em; text-transform: uppercase; }
.badge.buy { background: var(--green-bg); color: var(--green-tx); }
.badge.watch { background: var(--amber-bg); color: var(--amber-tx); }
.badge.reject { background: var(--red-bg); color: var(--red-tx); }
.badge.neutral { background: #e9edf4; color: #46536a; }
.pos { color: var(--green); font-weight: 700; } .neg { color: var(--red); font-weight: 700; }
.dash { color: var(--faint); }

/* status dot */
.dot { width: 10px; height: 10px; border-radius: 50%; background: #c2ccdc; display: inline-block; }
.dot.live { background: #24a35a; box-shadow: 0 0 0 4px rgba(36,163,90,.2); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }

/* alerts / messages */
.alert { border-radius: 10px; padding: 13px 16px; font-size: 14px; border: 1px solid; font-weight: 500; }
.alert.success { background: var(--green-bg); border-color: #b3e3c4; color: var(--green-tx); }
.alert.error   { background: var(--red-bg); border-color: #f2b8b1; color: var(--red-tx); }
.alert.warning { background: var(--amber-bg); border-color: #f0d391; color: var(--amber-tx); }
.alert.info    { background: var(--blue-bg); border-color: #b7cef2; color: var(--blue-tx); }

/* console / activity log */
.console {
  background: var(--ink); color: #7ee787; border: 1px solid #1e2c44;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px;
  border-radius: 11px; padding: 16px; height: 270px; overflow-y: auto;
  white-space: pre-wrap; word-break: break-word;
}

/* misc utility */
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.right { margin-left: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.kv { display: flex; justify-content: space-between; align-items:center; gap: 16px; padding: 10px 0; border-bottom: 1px solid #eef1f7; font-size: 14.5px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); font-weight: 500; }
.pagehint { font-size: 13px; color: var(--muted); margin-top: 12px; }
.empty { text-align: center; color: var(--muted); padding: 52px 20px; font-size: 15px; }

/* ---------------------------------------------------------- Metric score chips (Excel conditional formatting) */
.mcell { display:inline-block; min-width:54px; text-align:center; padding:4px 10px; border-radius:7px;
         font-weight:700; font-variant-numeric:tabular-nums; font-size:13.5px; border:1px solid transparent; }
.mcell.blue  { background:var(--blue-bg);  color:var(--blue-tx);  border-color:#c6dbf6; }
.mcell.green { background:var(--green-bg); color:var(--green-tx); border-color:#bce6cb; }
.mcell.amber { background:var(--amber-bg); color:var(--amber-tx); border-color:#f0d391; }
.mcell.red   { background:var(--red-bg);   color:var(--red-tx);   border-color:#f2bcb4; }
.mcell.none  { background:transparent; color:var(--faint); min-width:0; font-weight:500; border-color:transparent; }

.normcell { display:inline-block; padding:4px 10px; border-radius:7px; font-weight:600; font-size:12.5px; white-space:nowrap; border:1px solid transparent; }
.normcell.blue    { background:var(--blue-bg);  color:var(--blue-tx);  border-color:#c6dbf6; }
.normcell.green   { background:var(--green-bg); color:var(--green-tx); border-color:#bce6cb; }
.normcell.amber   { background:var(--amber-bg); color:var(--amber-tx); border-color:#f0d391; }
.normcell.red     { background:var(--red-bg);   color:var(--red-tx);   border-color:#f2bcb4; }
.normcell.neutral { background:#e9edf4; color:#46536a; }

/* Colour legend */
.legend { display:flex; flex-wrap:wrap; gap:18px; align-items:center; font-size:13px; color:var(--muted); }
.legend .lg { display:inline-flex; align-items:center; gap:7px; font-weight:600; }
.legend .sw { width:14px; height:14px; border-radius:4px; }
.legend .sw.blue  { background:var(--blue-bg);  border:1px solid #9dbdf0; }
.legend .sw.green { background:var(--green-bg); border:1px solid #86d5a2; }
.legend .sw.amber { background:var(--amber-bg); border:1px solid #e7c072; }
.legend .sw.red   { background:var(--red-bg);   border:1px solid #e9a2a2; }

/* ---------------------------------------------------------- Auth (login / setup) */
.auth { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-visual {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(155deg, #0a1322 0%, #0e1c30 45%, #142a45 100%);
  padding: 48px; display: flex; flex-direction: column;
}
.auth-visual .brand-lg { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing:.02em; z-index: 2; }
.auth-visual .brand-lg b { color: var(--gold); }
.auth-visual .brand-lg .logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(217,162,39,.4); }
.auth-visual .brand-lg .logo svg { width: 44px; height: 44px; }
/* dark scrim so the copy stays readable over the illustration */
.auth-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(7,13,25,.94) 0%, rgba(7,13,25,.78) 30%, rgba(7,13,25,.15) 60%, rgba(7,13,25,0) 78%);
}
.auth-visual .brand-lg { position: relative; }
.auth-copy { margin-top: auto; position: relative; z-index: 2; }
.eyebrow-lg { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 15px; }
.auth-copy h2 { font-size: 42px; line-height: 1.12; letter-spacing: -.025em; max-width: 15ch; color: #ffffff; }
.auth-copy p { color: #cfd8e8; margin-top: 18px; max-width: 46ch; font-size: 16.5px; line-height: 1.6; }
.auth-copy .feat { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 13px; }
.auth-copy .feat li { display: flex; align-items: center; gap: 12px; color: #e2e8f3; font-size: 15px; font-weight: 500; }
.auth-copy .feat li svg { width: 22px; height: 22px; flex: none; color: var(--gold); padding: 3px; background: rgba(217,162,39,.14); border-radius: 7px; }
.auth-scene { position: absolute; inset: 0; z-index: 0; opacity: 1; }
.auth-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.auth-scene svg { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; }
.auth-glow { position: absolute; z-index: 0; width: 460px; height: 460px; border-radius: 50%; filter: blur(70px); }
.auth-glow.a { background: var(--gold); top: -120px; right: -80px; opacity:.28; }
.auth-glow.b { background: #1b4c8f; bottom: -160px; left: -60px; opacity:.4; }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 44px 28px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .eyebrow { color: var(--gold-600); }
.auth-card h1 { font-size: 27px; margin: 8px 0 5px; text-transform: uppercase; }
.auth-card .lead { color: var(--muted); margin-bottom: 24px; font-size: 14.5px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------- Public landing page */
body.lp { background: var(--surface); }
.lp-wrap { max-width:1180px; margin:0 auto; }

/* Nav */
.lp-nav { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:24px; padding:16px 40px; max-width:1180px; margin:0 auto;
          background:rgba(255,255,255,.85); backdrop-filter:blur(10px); }
.lp-brand { display:flex; align-items:center; gap:12px; font-weight:800; font-size:20px; letter-spacing:.02em; color:var(--heading); text-decoration:none; }
.lp-brand b { color:var(--gold-600); }
.lp-brand .logo { width:40px; height:40px; } .lp-brand .logo svg { width:40px; height:40px; }
.lp-links { display:flex; gap:26px; margin-left:auto; }
.lp-links a { color:var(--muted); font-weight:600; font-size:14.5px; text-decoration:none; }
.lp-links a:hover { color:var(--heading); }
.lp-nav > .btn { margin-left:8px; }

/* Hero (dark band) */
.lp-hero { background:linear-gradient(150deg,#0a1322 0%,#0e1c30 48%,#152c49 100%); color:#fff; padding:60px 0 70px; position:relative; overflow:hidden; }
.lp-hero::after { content:""; position:absolute; right:-140px; top:-120px; width:460px; height:460px; border-radius:50%; background:radial-gradient(circle,rgba(217,162,39,.18),transparent 70%); }
.lp-hero-inner { display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; max-width:1180px; margin:0 auto; padding:0 40px; position:relative; z-index:1; }
.lp-hero-copy h1 { font-size:46px; line-height:1.1; letter-spacing:-.03em; margin:16px 0 0; color:#fff; }
.lp-hero-copy h1 .hl { color:var(--gold); }
.lp-hero-copy > p { color:#c6d0e2; font-size:17.5px; line-height:1.65; margin:20px 0 0; max-width:54ch; }
.lp-cta { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:30px; }
.lp-cta .btn { padding:14px 26px; font-size:15px; }
.btn-ghost-light { background:transparent; color:#fff; border:1px solid rgba(255,255,255,.28); border-radius:11px; }
.btn-ghost-light:hover { background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.5); }
.lp-hero-badges { display:flex; flex-wrap:wrap; gap:18px; margin-top:28px; }
.lp-hero-badges span { display:inline-flex; align-items:center; gap:8px; color:#aeb9cd; font-size:14px; font-weight:600; }
.lp-hero-badges span::before { content:""; width:16px; height:16px; border-radius:5px; background:rgba(217,162,39,.18);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%23e7b23a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size:12px; background-repeat:no-repeat; background-position:center; }
.lp-hero-art svg { width:100%; height:auto; border-radius:18px; box-shadow:0 24px 60px rgba(0,0,0,.4); }

/* Stats strip */
.lp-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; max-width:1180px; margin:-38px auto 0; padding:0 40px; position:relative; z-index:2; }
.lp-stat { background:var(--surface); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-lg); padding:22px 24px; text-align:center; }
.lp-stat .n { font-size:34px; font-weight:800; letter-spacing:-.02em; color:var(--gold-600); }
.lp-stat .n span { font-size:22px; }
.lp-stat .l { font-size:13px; font-weight:600; color:var(--muted); margin-top:4px; }

/* Sections */
.lp-section { max-width:1180px; margin:0 auto; padding:74px 40px; }
.lp-section.lp-tint { max-width:none; background:var(--bg); }
.lp-section.lp-tint > * { max-width:1180px; margin-left:auto; margin-right:auto; }
.lp-head { text-align:center; max-width:640px; margin:0 auto 44px; }
.lp-head .eyebrow-lg { color:var(--gold-600); }
.lp-head h2 { font-size:34px; letter-spacing:-.02em; margin:10px 0 0; }
.lp-head p { color:var(--muted); font-size:16.5px; line-height:1.6; margin:14px 0 0; }

/* Feature cards */
.lp-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.lp-feat { background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow); padding:28px; transition:transform .18s, box-shadow .18s; }
.lp-feat:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.lp-ico { width:50px; height:50px; border-radius:14px; display:grid; place-items:center; margin-bottom:18px; }
.lp-ico svg { width:26px; height:26px; }
.lp-feat h3 { font-size:18.5px; margin:0 0 8px; }
.lp-feat p { color:var(--muted); font-size:14.5px; line-height:1.65; margin:0; }

/* Steps */
.lp-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.lp-step { background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow); padding:26px; position:relative; }
.lp-step .num { width:40px; height:40px; border-radius:11px; background:linear-gradient(135deg,var(--gold),var(--gold-600)); color:var(--ink); font-weight:800; font-size:18px; display:grid; place-items:center; margin-bottom:16px; }
.lp-step h3 { font-size:17px; margin:0 0 7px; }
.lp-step p { color:var(--muted); font-size:14px; line-height:1.6; margin:0; }

/* Scoring showcase */
.lp-scoring { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.lp-scoring-copy h2 { font-size:32px; letter-spacing:-.02em; margin:10px 0 0; }
.lp-scoring-copy > p { color:var(--muted); font-size:16px; line-height:1.65; margin:16px 0 0; }
.lp-legend { list-style:none; padding:0; margin:24px 0 0; display:flex; flex-direction:column; gap:12px; }
.lp-legend li { display:flex; align-items:center; gap:12px; font-size:15px; color:var(--text); }
.lp-legend li b { font-weight:700; }
.lp-legend .sw { width:16px; height:16px; border-radius:5px; flex:none; }
.lp-legend .sw.blue{background:var(--blue-bg);border:1px solid #9dbdf0;} .lp-legend .sw.green{background:var(--green-bg);border:1px solid #86d5a2;}
.lp-legend .sw.amber{background:var(--amber-bg);border:1px solid #e7c072;} .lp-legend .sw.red{background:var(--red-bg);border:1px solid #e9a2a2;}
.lp-scoring-demo { background:var(--surface); border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow-lg); padding:10px 24px 18px; }
.demo-head { display:flex; align-items:center; gap:10px; font-weight:700; color:var(--heading); font-size:15px; padding:18px 0 12px; border-bottom:1px solid var(--border); }
.demo-head .badge { margin-left:auto; }
.demo-row { display:flex; align-items:center; justify-content:space-between; padding:13px 0; border-bottom:1px solid #eef1f7; font-size:15px; color:var(--text); }
.demo-row:last-child { border-bottom:none; }

/* CTA band */
.lp-cta-band { background:linear-gradient(135deg,#0e1c30,#16294450); background-color:#0e1c30; color:#fff; }
.lp-cta-inner { max-width:1180px; margin:0 auto; padding:64px 40px; text-align:center; }
.lp-cta-inner h2 { font-size:34px; letter-spacing:-.02em; color:#fff; }
.lp-cta-inner p { color:#c6d0e2; font-size:16.5px; margin:12px 0 26px; }
.lp-cta-inner .btn { padding:14px 30px; font-size:15.5px; }

/* Footer */
.lp-foot { display:flex; align-items:center; gap:24px; flex-wrap:wrap; justify-content:space-between; max-width:1180px; margin:0 auto; padding:30px 40px 40px; color:var(--muted); font-size:14px; }
.lp-foot-brand { display:flex; align-items:center; gap:10px; font-weight:800; color:var(--heading); }
.lp-foot-brand b { color:var(--gold-600); }
.lp-foot-brand .logo svg { width:30px; height:30px; }
.lp-foot-links { display:flex; gap:22px; }
.lp-foot-links a { color:var(--muted); font-weight:600; text-decoration:none; }
.lp-foot-links a:hover { color:var(--heading); }
.lp-foot-copy { color:var(--faint); }

@media (max-width: 940px) {
  .lp-hero-inner { grid-template-columns:1fr; }
  .lp-hero-art { order:-1; max-width:460px; }
  .lp-hero-copy h1 { font-size:36px; }
  .lp-stats { grid-template-columns:repeat(2,1fr); }
  .lp-grid { grid-template-columns:1fr; }
  .lp-steps { grid-template-columns:1fr 1fr; }
  .lp-scoring { grid-template-columns:1fr; }
  .lp-links { display:none; }
}

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  .main { margin-left: 0; }
}

/* ---------------------------------------------------------- Sidebar red logout button */
.logout-full {
  display:flex; align-items:center; justify-content:center; gap:8px; width:100%; margin-top:12px;
  padding:10px; border:none; border-radius:10px; cursor:pointer;
  background: linear-gradient(135deg,#ef4444,#c81e1e); color:#fff;
  font:inherit; font-weight:700; font-size:13px; letter-spacing:.05em; text-transform:uppercase;
  box-shadow: 0 6px 16px rgba(200,30,30,.34); transition: filter .15s, transform .05s, box-shadow .15s;
}
.logout-full:hover { filter:brightness(1.08); box-shadow: 0 9px 22px rgba(200,30,30,.44); }
.logout-full:active { transform: translateY(1px); }
.logout-full svg { width:16px; height:16px; }

/* ---------------------------------------------------------- Custom confirm modal */
.modal-overlay {
  position:fixed; inset:0; z-index:100; display:none;
  align-items:center; justify-content:center; padding:20px;
  background:rgba(10,19,34,.58); backdrop-filter:blur(3px);
  animation: modalFade .16s ease;
}
.modal-overlay.open { display:flex; }
@keyframes modalFade { from { opacity:0 } to { opacity:1 } }
.modal {
  background:var(--surface); border:1px solid var(--border); border-radius:16px;
  box-shadow:var(--shadow-lg); max-width:440px; width:100%; padding:28px;
  animation: modalPop .18s cubic-bezier(.2,.8,.3,1.1);
}
@keyframes modalPop { from { transform:translateY(10px) scale(.97); opacity:.6 } to { transform:none; opacity:1 } }
.modal-icon { width:46px; height:46px; border-radius:13px; display:grid; place-items:center; margin-bottom:16px;
  background:var(--red-bg); color:var(--red); }
.modal-icon svg { width:24px; height:24px; }
.modal h3 { font-size:19px; text-transform:none; letter-spacing:-.01em; }
.modal p { color:var(--muted); margin:8px 0 0; font-size:14.5px; }
.modal p b { color:var(--text); }
.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }

/* ---------------------------------------------------------- Checklist rows (ticker detail) */
.checklist { display:flex; flex-direction:column; }
.mrow { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:13px 0; border-bottom:1px solid #eef1f7; }
.mrow:last-child { border-bottom:none; }
.mrow .lab { min-width:0; }
.mrow .lab .q { font-weight:600; color:var(--text); font-size:14.5px; }
.mrow .lab .crit { font-size:11.5px; color:var(--faint); margin-top:3px; letter-spacing:.01em; }
.mrow .val { flex:none; text-align:right; }
.qa { padding:14px 0; border-bottom:1px solid #eef1f7; }
.qa:last-child { border-bottom:none; }
.qa .q { font-weight:700; color:var(--heading); font-size:14px; margin-bottom:5px; }
.qa .a { color:var(--text); font-size:14.5px; line-height:1.6; }
@media (max-width: 720px) { .checklist-2 { grid-template-columns:1fr !important; } }

/* ---------------------------------------------------------- User management table */
table.data.redhead thead th { background: linear-gradient(90deg,#dc2626,#c01d1d); color:#fff; border-bottom:none; letter-spacing:.06em; }
.initials { display:inline-block; background:#eef1f6; color:#46536a; font-weight:800; font-size:12px; padding:5px 9px; border-radius:7px; letter-spacing:.06em; }
.role-badge { display:inline-block; font-size:11.5px; font-weight:700; padding:4px 11px; border-radius:7px; text-transform:uppercase; letter-spacing:.03em; }
.role-badge.admin { background:var(--gold-050); color:var(--gold-600); }
.role-badge.member { background:#e9edf4; color:#46536a; }
.status-pill { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:700; padding:5px 13px; border-radius:999px; }
.status-pill::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.status-pill.active { background:var(--green-bg); color:var(--green-tx); }
.link-del { background:none; border:none; color:var(--red); font-weight:700; font-size:14px; cursor:pointer; padding:0; font-family:inherit; }
.link-del:hover { text-decoration:underline; }
.link-reset { background:none; border:none; color:var(--blue); font-weight:700; font-size:14px; cursor:pointer; padding:0; font-family:inherit; }
.link-reset:hover { text-decoration:underline; }
.link-send { background:none; border:none; color:var(--gold-600); font-weight:700; font-size:14px; cursor:pointer; padding:0; font-family:inherit; }
.link-send:hover { text-decoration:underline; }
.pen { background:none; border:none; cursor:pointer; color:var(--faint); padding:2px 5px; border-radius:6px; margin-left:4px; vertical-align:-2px; }
.pen:hover { color:var(--blue); background:var(--surface-2); }
.pen svg { width:14px; height:14px; }

/* full-screen loading overlay (e.g. while sending an email) */
.loading-overlay { position:fixed; inset:0; z-index:200; display:none; align-items:center; justify-content:center; background:rgba(10,19,34,.55); backdrop-filter:blur(3px); }
.loading-overlay.show { display:flex; animation:modalFade .16s ease; }
.loading-card { background:#fff; border:1px solid var(--border); border-radius:18px; padding:32px 44px; box-shadow:var(--shadow-lg); display:flex; flex-direction:column; align-items:center; gap:16px; text-align:center; }
.spinner { width:48px; height:48px; border-radius:50%; border:4px solid #e5e9f1; border-top-color:var(--gold); animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.loading-text { font-size:16px; font-weight:800; color:var(--heading); }
.loading-sub { font-size:13px; color:var(--muted); margin-top:-8px; }
/* highlighted input borders (add-user form) */
.input-hl { border:2px solid var(--gold) !important; background:#fffdf6 !important; box-shadow:0 0 0 3px rgba(217,162,39,.12); }
.input-hl:focus { box-shadow:0 0 0 3px rgba(217,162,39,.28) !important; }
.status-pill.inactive { background:#e9edf4; color:#7a869c; }
.link-toggle { background:none; border:none; font-weight:700; font-size:14px; cursor:pointer; padding:0; font-family:inherit; color:var(--amber); }
.link-toggle.on { color:var(--green); }
.link-toggle:hover { text-decoration:underline; }

/* on/off toggle switch */
.switch { display:inline-flex; align-items:center; gap:12px; cursor:pointer; font-weight:600; user-select:none; }
.switch input { position:absolute; opacity:0; width:0; height:0; }
.switch .slider { position:relative; width:48px; height:27px; background:#c6cede; border-radius:999px; transition:background .18s; flex:none; }
.switch .slider::before { content:""; position:absolute; left:3px; top:3px; width:21px; height:21px; background:#fff; border-radius:50%; box-shadow:0 1px 3px rgba(11,21,38,.28); transition:transform .18s; }
.switch input:checked + .slider { background:var(--green); }
.switch input:checked + .slider::before { transform:translateX(21px); }
.switch input:focus-visible + .slider { box-shadow:0 0 0 3px rgba(217,162,39,.32); }
.switch .switch-label { color:var(--text); font-size:14.5px; }
.switch .switch-state { font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; padding:2px 9px; border-radius:999px; background:#e9edf4; color:#7a869c; }
.switch input:checked ~ .switch-state { background:var(--green-bg); color:var(--green-tx); }

/* password show/hide toggle */
.pw-wrap { position:relative; display:block; }
.pw-wrap input { padding-right:42px !important; }
.pw-toggle { position:absolute; right:6px; top:50%; transform:translateY(-50%); background:none; border:none; cursor:pointer; padding:6px; color:var(--faint); display:grid; place-items:center; border-radius:7px; }
.pw-toggle:hover { color:var(--muted); background:var(--surface-2); }
.pw-toggle svg { width:19px; height:19px; }
.pw-toggle .eye-off { display:none; }
.pw-toggle.on .eye { display:none; }
.pw-toggle.on .eye-off { display:block; }
