/* ==================================================================
   Sokoni Leo - Tanzania Market Insight Terminal
   Investment Market Theme Stylesheet
================================================================== */

:root {
  /* Maroon / red brand palette (replaces the old green) */
  --emerald-50: #fdf2f3;
  --emerald-100: #fbe3e5;
  --emerald-200: #f5c6c9;
  --emerald-300: #ee9aa0;
  --emerald-400: #e35d66;
  --emerald-500: #c81e2e;
  --emerald-600: #a1121f;
  --emerald-700: #800017;
  --emerald-800: #5f0c18;
  /* Blue accent palette */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-300: #93c5fd;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --gold: #0ea5e9;
  --gold-light: #38bdf8;
  --up: #10b981;
  --down: #ef4444;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
  --shadow-lg: 0 20px 50px rgba(2, 6, 23, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
}

/* ---------- Top ticker bar ---------- */
.ticker-bar {
  background: linear-gradient(90deg, var(--slate-950), var(--slate-900));
  color: var(--slate-200);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
}

.ticker-track {
  display: inline-block;
  padding: 10px 0;
  animation: ticker 90s linear infinite;
}

.ticker-item {
  display: inline-block;
  margin: 0 28px;
  font-size: 13px;
  font-weight: 600;
}

.ticker-item .sym {
  color: var(--emerald-400);
  margin-right: 6px;
}

.ticker-item .up { color: var(--up); }
.ticker-item .down { color: var(--down); }
.ticker-item .glyph .chg { padding-left: 4px; }
.ticker-item .glyph.flat { color: var(--amber-300, #fbd114); }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--slate-900);
}

.brand .logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}

.logo-badge svg {
  width: 24px;
  height: 24px;
}

.btn svg {
  vertical-align: -3px;
  margin-right: 6px;
}

.nav-toggle svg {
  display: block;
}

h2 svg,
h3 svg {
  vertical-align: -2px;
  margin-right: 6px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--emerald-50), var(--emerald-100));
  color: var(--emerald-700);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.inline-icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  color: var(--slate-500);
}

.inline-icon-space {
  margin-left: 6px;
}

.brand small {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  color: var(--emerald-600);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--slate-600);
  transition: all .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--emerald-700);
  background: var(--emerald-50);
}

.nav-cta {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700)) !important;
  color: #fff !important;
  box-shadow: var(--shadow);
}

.nav-cta:hover {
  transform: translateY(-2px);
  color: #fff !important;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-800);
  font-weight: 700;
  font-size: .9rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--emerald-50);
  color: var(--emerald-700);
}
.nav-user svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--slate-800);
}

.notif-badge {
  position: relative;
}

.notif-badge .dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--down);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--slate-950) 0%, var(--slate-900) 50%, #800017 100%);
  color: #fff;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(16,185,129,.18), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(245,158,11,.12), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--emerald-300), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--slate-300);
  font-size: 1.08rem;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 10px 16px;
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--emerald-300);
}

.hero-stat span {
  font-size: .78rem;
  color: var(--slate-400);
}

.hero-chart-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

.hero-chart-card h3 {
  font-size: .85rem;
  color: var(--slate-300);
  letter-spacing: .05em;
  margin-bottom: 16px;
}

/* Simple line chart built with CSS */
.line-chart {
  position: relative;
  height: 160px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 40px);
  border-bottom: 1px solid rgba(255,255,255,.15);
  margin-bottom: 16px;
}

.line-chart svg {
  width: 100%;
  height: 100%;
}

.chart-legend {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--slate-300);
}

.legend-value {
  color: var(--emerald-300);
  font-weight: 700;
  font-size: 1.3rem;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,.25);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--emerald-400);
  color: var(--emerald-300);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--emerald-600);
  color: var(--emerald-700);
}

.btn-outline:hover {
  background: var(--emerald-600);
  color: #fff;
}

.btn-sm { padding: 9px 16px; font-size: .85rem; }

/* ---------- Section headers ---------- */
.section {
  padding: 60px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--slate-900);
}

.section-head .sub {
  color: var(--slate-500);
  font-size: .95rem;
  margin-top: 6px;
}

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--emerald-600);
  margin-bottom: 8px;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--slate-100);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-img .badge-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15,23,42,.85);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.card-img .badge-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2,6,23,.35);
}

.badge-play span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--emerald-700);
}

.badge-play span svg {
  width: 26px;
  height: 26px;
  fill: var(--emerald-700);
}

.card-body {
  padding: 18px 20px 20px;
}

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-body p {
  color: var(--slate-500);
  font-size: .9rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
  font-size: .8rem;
  color: var(--slate-400);
}

.card-meta .tag {
  color: var(--emerald-600);
  font-weight: 700;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Market indices panel ---------- */
.market-panel {
  background: linear-gradient(135deg, var(--slate-900), #800017);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.market-panel h3 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.index-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.index-row:last-child { border-bottom: none; }

.index-name {
  font-weight: 600;
  font-size: .95rem;
}

.index-sym {
  display: block;
  font-size: .75rem;
  color: var(--slate-400);
  font-weight: 500;
}

.index-val {
  font-weight: 800;
  font-size: 1.1rem;
}

.index-pct {
  font-size: .85rem;
  font-weight: 700;
}

.up-text { color: var(--up); }
.down-text { color: var(--down); }
.flat-text { color: var(--slate-300); }

/* ---------- Calculators ---------- */
.calc-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

.calc-nav {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  align-self: start;
  position: sticky;
  top: 90px;
}

.calc-nav a {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 4px;
  transition: all .2s ease;
}

.calc-nav a svg {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 8px;
  color: var(--emerald-600);
}

.calc-nav a.active svg {
  color: #fff;
}

.calc-panel[hidden] {
  display: none;
}

.calc-nav a:hover {
  background: var(--slate-50);
}

.calc-nav a.active {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
  color: #fff;
  box-shadow: var(--shadow);
}

.calc-nav .nav-title {
  padding: 8px 16px 12px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--slate-400);
}

.calc-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.calc-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.calc-card .desc {
  color: var(--slate-500);
  margin-bottom: 22px;
  font-size: .92rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  color: var(--slate-700);
  margin-bottom: 7px;
}

.form-group .hint {
  font-size: .75rem;
  color: var(--slate-400);
  margin-top: 4px;
  font-weight: 400;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  background: var(--slate-50);
  color: var(--slate-800);
  transition: border-color .2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-500);
  background: #fff;
}

textarea.form-control { resize: vertical; }

/* Result panel */
.result-box {
  margin-top: 24px;
  background: linear-gradient(135deg, var(--emerald-50), var(--slate-50));
  border: 1px solid var(--emerald-200);
  border-radius: var(--radius);
  padding: 22px;
}

.result-box h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--emerald-700);
  margin-bottom: 12px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.result-head h4 { margin-bottom: 0; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 6px 10px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--emerald-700);
  background: var(--emerald-100);
  border: 1px solid var(--emerald-200);
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
.copy-btn:hover { background: var(--emerald-200); }
.copy-btn:active { transform: scale(.96); }
.copy-btn .copy-ico { display: inline-flex; }
.copy-btn .copy-ico svg { width: 15px; height: 15px; }
.copy-btn .copy-ok { display: none; }
.copy-btn.copied { background: var(--emerald-600); color: #fff; border-color: var(--emerald-600); }
.copy-btn.copied .copy-ico { display: none; }
.copy-btn.copied .copy-ok { display: inline; }

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--emerald-200);
  font-size: .95rem;
}

.result-row:last-child { border-bottom: none; }

.result-row .lbl { color: var(--slate-600); }
.result-row .val { font-weight: 800; color: var(--slate-900); }

.result-row.result-total {
  background: linear-gradient(135deg, var(--emerald-50), var(--slate-50));
  border: 1px solid var(--emerald-200);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 4px -2px 0;
}
.result-row.result-total .lbl { color: var(--emerald-700); font-weight: 700; }
.result-row.result-total .val { color: var(--emerald-700); }

.result-section {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin: 14px 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--emerald-200);
}
.result-section:first-of-type { margin-top: 4px; }

.result-big {
  text-align: center;
  padding: 16px;
  background: #fff;
  border-radius: 10px;
  margin-top: 12px;
  box-shadow: var(--shadow);
}

.result-big .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--emerald-700);
}

.result-big .label {
  font-size: .82rem;
  color: var(--slate-500);
}

/* ---- Bond calculator (real data) ---- */
.bond-step { margin-top: 24px; }
.bond-step h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 12px;
}
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--emerald-600);
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  flex: none;
}

.search-row {
  display: flex;
  gap: 10px;
}
.search-row .form-control { flex: 1; }

.bond-results { margin-top: 16px; }
.bond-results .desc { margin-bottom: 10px; }
.bond-match-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.bond-match-table th {
  text-align: left;
  background: var(--slate-50);
  color: var(--slate-600);
  padding: 9px 12px;
  font-weight: 600;
  border-bottom: 2px solid var(--slate-200);
}
.bond-match-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-800);
}

.selected-bond {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 16px;
}
.selected-bond .sb-title {
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 10px;
  font-size: 1.02rem;
}
.selected-bond .sb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.selected-bond .sb-meta span {
  font-size: .82rem;
  color: var(--slate-600);
}
.selected-bond .sb-meta b { color: var(--slate-800); }

.source-note {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--slate-500);
  font-size: .72rem;
}

/* Compare table */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.data-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--slate-900);
  color: #fff;
  font-weight: 600;
}

.data-table th:first-child { border-radius: 10px 0 0 0; }
.data-table th:last-child { border-radius: 0 10px 0 0; }

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--slate-100);
}

.data-table tr:hover td { background: var(--emerald-50); }

/* Bond Charges breakdown table */
.charges-table {
  margin: 16px 0 6px;
  border: 1px solid var(--emerald-200);
  border-radius: 10px;
  overflow: hidden;
}
.charges-table th:first-child { border-radius: 9px 0 0 0; }
.charges-table th:last-child { border-radius: 0 9px 0 0; }
.charges-table thead th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.charges-table th.ta-r,
.charges-table td.ta-r { text-align: right; }
.charges-table td {
  color: var(--slate-700);
  white-space: nowrap;
}
.charges-table td:first-child { color: var(--slate-800); font-weight: 600; }
.charges-table tr:last-child td { border-bottom: none; }
.charges-table tr.sec-row td {
  background: var(--emerald-700);
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 14px;
}
.charges-table tr.sub-total td {
  background: linear-gradient(135deg, var(--emerald-50), var(--slate-50));
  color: var(--emerald-700);
  font-weight: 800;
  border-top: 1px solid var(--emerald-200);
}
.charges-table tr.sub-total td:last-child { color: var(--emerald-700); }
.charges-table tr:hover td { background: var(--emerald-50); }
.charges-table tr.sub-total:hover td { background: linear-gradient(135deg, var(--emerald-50), var(--slate-50)); }
@media (max-width: 640px) {
  .charges-table { font-size: .78rem; }
  .charges-table th, .charges-table td { padding: 8px 8px; }
  .charges-table td:nth-child(3) { display: none; }
  .charges-table th:nth-child(3) { display: none; }
}

/* ---------- Notifications ---------- */
.notif-list { max-width: 720px; }

.notif-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  border-left: 4px solid var(--emerald-500);
  transition: transform .2s ease;
}

.notif-item:hover { transform: translateX(4px); }

.notif-item.info { border-left-color: var(--slate-400); }
.notif-item.warning { border-left-color: var(--gold); }
.notif-item.danger { border-left-color: var(--down); }
.notif-item.success { border-left-color: var(--emerald-500); }

.notif-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.notif-icon svg {
  width: 22px;
  height: 22px;
}

.notif-item.info .notif-icon { background: var(--slate-100); color: var(--slate-600); }
.notif-item.warning .notif-icon { background: #fef3c7; color: var(--gold); }
.notif-item.danger .notif-icon { background: #fee2e2; color: var(--down); }
.notif-item.success .notif-icon { background: var(--emerald-100); color: var(--emerald-700); }

.notif-item h4 { font-size: 1rem; color: var(--slate-900); margin-bottom: 4px; }
.notif-item p { font-size: .9rem; color: var(--slate-500); margin-bottom: 6px; }
.notif-item time { font-size: .76rem; color: var(--slate-400); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}

.contact-info {
  background: linear-gradient(135deg, var(--slate-900), #800017);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
}

.contact-info h3 { font-size: 1.3rem; margin-bottom: 10px; }
.contact-info p { color: var(--slate-300); margin-bottom: 22px; font-size: .92rem; }

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item .icon svg {
  width: 20px;
  height: 20px;
}

.contact-item strong { display: block; font-size: .8rem; color: var(--emerald-300); text-transform: uppercase; letter-spacing: .05em; }
.contact-item span { font-size: .9rem; color: var(--slate-200); }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: .9rem;
}

.alert-success { background: var(--emerald-100); color: var(--emerald-800); border: 1px solid var(--emerald-300); }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 50px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 34px;
}

.auth-card h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.auth-card .sub {
  color: var(--slate-500);
  font-size: .9rem;
  margin-bottom: 22px;
}

/* ---------- Public Auth (split sign-in / sign-up) ---------- */
.sl-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.sl-card {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(2, 44, 34, .55);
}

.sl-banner {
  position: relative;
  padding: 46px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(155deg, #c81e2e 0%, #a1121f 45%, #5f0c18 100%);
  overflow: hidden;
}

.sl-banner::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: -120px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
}

.sl-banner .brand { color: #fff; }
.sl-banner .brand .logo-badge { box-shadow: 0 8px 20px rgba(0,0,0,.25); }

.sl-banner-body { position: relative; z-index: 1; margin-top: 40px; }
.sl-banner-body h2 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #fff;
}
.sl-banner-body p { color: rgba(255,255,255,.88); font-size: .95rem; line-height: 1.6; }

.sl-banner-feats { margin-top: 26px; display: grid; gap: 12px; }
.sl-banner-feats div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: #fff;
}
.sl-banner-feats svg { color: #a7f3d0; width: 19px; height: 19px; flex: none; }

.sl-banner-quote {
  position: relative;
  z-index: 1;
  font-size: .86rem;
  color: rgba(255,255,255,.82);
  margin-top: 30px;
  padding-left: 14px;
  border-left: 3px solid rgba(255,255,255,.4);
}

.sl-form {
  padding: 44px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sl-head { margin-bottom: 24px; }
.sl-head h1 { font-size: 1.55rem; font-weight: 800; color: var(--slate-900); margin-bottom: 6px; }
.sl-head p { color: var(--slate-500); font-size: .9rem; }

.sl-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--slate-100);
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 26px;
}
.sl-tabs a {
  text-align: center;
  padding: 10px 12px;
  border-radius: 9px;
  font-weight: 700;
  font-size: .9rem;
  color: var(--slate-500);
}
.sl-tabs a.active {
  background: #fff;
  color: var(--emerald-700);
  box-shadow: var(--shadow);
}

.sl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.pw-field { position: relative; }
.pw-field .form-control { padding-right: 46px; }
.pw-toggle {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 46px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-400);
  display: grid;
  place-items: center;
}
.pw-toggle:hover { color: var(--emerald-600); }
.pw-toggle svg { width: 20px; height: 20px; }

.sl-submit { width: 100%; padding: 14px; margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

.sl-foot { margin-top: 20px; text-align: center; font-size: .86rem; color: var(--slate-500); }
.sl-foot a { color: var(--emerald-600); font-weight: 700; }

.sl-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .9rem;
  margin-bottom: 18px;
}
.sl-success svg { color: #c81e2e; flex: none; margin-top: 1px; }

@media (max-width: 820px) {
  .sl-card { grid-template-columns: 1fr; max-width: 460px; }
  .sl-banner { display: none; }
  .sl-form { padding: 36px 26px; }
}

/* ---------- Admin ---------- */
.admin-body {
  background: var(--slate-100);
}

.admin-nav {
  background: var(--slate-900);
  color: #fff;
  padding: 14px 0;
}

.admin-nav .nav-inner {
  justify-content: space-between;
}

.admin-nav .nav-links a {
  color: var(--slate-300);
}

.admin-nav .nav-links a:hover,
.admin-nav .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.admin-title {
  padding: 26px 20px 0;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.admin-title h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--slate-900);
}

.admin-title p { color: var(--slate-500); font-size: .9rem; }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px auto 0;
  max-width: 1200px;
  padding: 0 20px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.stat-card .stat-num { font-size: 1.8rem; font-weight: 800; color: var(--slate-900); }
.stat-card .stat-lbl { font-size: .85rem; color: var(--slate-500); font-weight: 600; }
.stat-card .stat-icon { font-size: 1.4rem; margin-bottom: 8px; }

.stat-card .stat-icon svg {
  width: 30px;
  height: 30px;
  color: var(--emerald-600);
}

.stat-card .stat-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--emerald-50);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-950);
  color: var(--slate-300);
  padding: 50px 0 0;
  margin-top: auto;
}

.site-footer h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer h4 svg {
  width: 22px;
  height: 22px;
  color: var(--emerald-400);
}

.social-row svg {
  width: 18px;
  height: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 30px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-grid p { font-size: .88rem; color: var(--slate-400); }

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: .9rem;
  color: var(--slate-400);
  transition: color .2s ease;
}

.footer-links a:hover { color: var(--emerald-400); }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  color: var(--slate-300);
  transition: all .2s ease;
}

.social-row a:hover {
  background: var(--emerald-600);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  text-align: center;
  font-size: .82rem;
  color: var(--slate-500);
}

/* ---------- Responsive ---------- */
/* ---------- MCX-style home: main + right sidebar ---------- */
.home-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
}

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

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--emerald-100);
}

.sidebar-title svg {
  width: 18px;
  height: 18px;
  color: var(--emerald-600);
}

.resource-links {
  display: flex;
  flex-direction: column;
}

.resource-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 8px;
  color: var(--slate-700);
  font-weight: 600;
  font-size: .92rem;
  transition: all .2s ease;
}

.resource-links a svg {
  width: 18px;
  height: 18px;
  color: var(--emerald-600);
}

.resource-links a:hover {
  background: var(--emerald-50);
  color: var(--emerald-700);
  padding-left: 16px;
}

/* Sidebar banner column (MCX promotional banner stack) */
.banner-col .banner-card {
  display: block;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(2,6,23,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}

.banner-col .banner-card:last-child { margin-bottom: 0; }
.banner-col .banner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.banner-card img {
  width: 100%;
  display: block;
}

.banner-card .banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(to top, rgba(2,6,23,.85), transparent);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}

/* Featured tool callout in main column */
.feature-tool {
  margin-top: 30px;
  background: linear-gradient(135deg, var(--slate-900), #800017);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.feature-tool h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-tool p {
  color: var(--slate-300);
  margin-bottom: 18px;
  max-width: 480px;
}

.feature-tool-art {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  color: var(--emerald-300);
}

.feature-tool-art svg {
  width: 56px;
  height: 56px;
}

/* ---------- Classic Press Releases news section ---------- */
.press-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: start;
}

.press-lead {
  display: block;
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.press-lead:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.press-lead-img {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.press-lead-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.press-lead:hover .press-lead-img img { transform: scale(1.04); }

.press-lead-body {
  padding: 24px;
}

.press-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.press-meta time {
  color: var(--slate-400);
  font-size: .8rem;
}

.press-lead-body h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.3;
  margin-bottom: 10px;
}

.press-lead-body p {
  color: var(--slate-500);
  margin-bottom: 16px;
}

.read-more {
  color: var(--emerald-700);
  font-weight: 700;
  font-size: .88rem;
}

.press-list {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.press-list-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--emerald-100);
}

.press-list-title svg { width: 18px; height: 18px; color: var(--emerald-600); }

.press-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-50);
  transition: background .2s ease;
}

.press-item:last-child { border-bottom: none; padding-bottom: 2px; }

.press-item:hover h5 { color: var(--emerald-700); }

.press-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--emerald-50);
  color: var(--emerald-700);
}

.press-icon svg { width: 20px; height: 20px; }

.press-item h5 {
  font-size: .93rem;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color .2s ease;
}

.press-item time {
  font-size: .76rem;
  color: var(--slate-400);
}

@media (max-width: 900px) {
  .home-row { grid-template-columns: 1fr; }
  .home-sidebar { position: static; }
  .press-wrap { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .calc-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 10px 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--slate-100);
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.muted { color: var(--slate-500); }
.flex { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.badge-green { background: var(--emerald-100); color: var(--emerald-800); }
.badge-gold { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--slate-400);
}
