:root {
  --bg: #f4f7fb;
  --bg-elev: #ffffff;
  --ink: #0b1220;
  --muted: #5a6a82;
  --line: #d5dee9;
  --navy: #163a6b;
  --navy-deep: #0c2748;
  --orange: #ff6a00;
  --orange-hot: #ff8533;
  --orange-deep: #e85d00;
  --emerald: #2e9e5b;
  --danger: #d64545;
  --warn: #c48a1a;
  --ok: #1f8a4c;
  --font-display: "Space Grotesk", "Avenir Next", sans-serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 18px 50px rgba(12, 39, 72, 0.1);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* —— Top nav (Namecheap / Cloudflare style) —— */
.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(246, 248, 252, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-brand span { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-links a:hover { color: var(--navy); }

.nav-cta { display: flex; gap: 0.5rem; align-items: center; }

.nav-links a.is-active {
  color: var(--navy-deep);
}

.nav-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  padding: 0.2rem 0.35rem 0.2rem 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  max-width: 16rem;
}

.nav-profile:hover {
  border-color: #b8c6da;
}

.nav-profile-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--orange-hot), var(--orange));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.nav-profile-meta {
  display: grid;
  line-height: 1.15;
  padding-right: 0.45rem;
  min-width: 0;
}

.nav-profile-meta strong {
  font-size: 0.78rem;
  color: var(--navy-deep);
}

.nav-profile-meta small {
  font-size: 0.7rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topnav-app .nav-links a.is-active {
  color: var(--orange-deep);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* —— Buttons —— */
button, .btn-primary, .btn-ghost, a.btn-primary, a.btn-ghost {
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary, button.btn-primary, a.btn-primary,
button[type="submit"]:not(.btn-ghost):not(.text-link):not(.auth-tab):not(.tab) {
  background: linear-gradient(180deg, var(--orange-hot), var(--orange));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.28);
}

.btn-primary:hover, button.btn-primary:hover, a.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(255, 106, 0, 0.35);
}

.btn-ghost, button.btn-ghost, a.btn-ghost, button.ghost {
  background: #fff;
  color: var(--navy-deep);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover, button.btn-ghost:hover {
  border-color: #b8c6da;
  transform: translateY(-1px);
}

.btn-lg { padding: 0.85rem 1.45rem; font-size: 1rem; }

.text-link {
  background: none;
  border: none;
  color: var(--orange);
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  box-shadow: none;
}

/* —— Hero with Bangladesh map —— */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 85% 40%, rgba(255, 106, 0, 0.12), transparent 55%),
    radial-gradient(700px 420px at 10% 20%, rgba(27, 58, 107, 0.08), transparent 50%),
    linear-gradient(180deg, #eef3fa 0%, var(--bg) 70%);
}

.hero-map {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  margin: 0;
  pointer-events: none;
  justify-self: end;
}

.hero-map .bd-map-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 55px rgba(12, 39, 72, 0.22));
  animation: mapIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mapIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bd-map .div {
  fill: #5f84b8;
  stroke: #f4f7fb;
  stroke-width: 1.2;
  transition: fill 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
}

.bd-map .div:hover,
.bd-map .div.is-hot {
  fill: var(--orange);
}

.map-label {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translate(-50%, 6px);
  min-width: 7rem;
  text-align: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--navy-deep);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 2;
}

.map-label.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  animation: rise 0.8s ease both;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }
  .hero-map {
    order: -1;
    width: min(100%, 320px);
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
}

.lede {
  margin: 1rem 0 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 32rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-meta {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* —— Trust strip —— */
.trust {
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  text-align: center;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust strong { color: #fff; }

/* —— Page sections —— */
.page {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
  display: grid;
  gap: 3.5rem;
}

.section-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-row article {
  padding: 1.35rem 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.feature-row article:hover { transform: translateY(-3px); }

.feat-n {
  display: inline-block;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.feature-row h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--navy-deep);
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .feature-row { grid-template-columns: 1fr; }
}

/* —— Pricing —— */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.price-tier {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
}

.price-tier.featured {
  border-color: transparent;
  background: linear-gradient(165deg, var(--navy-deep), #1a4a7a);
  color: #fff;
}

.price-tier.featured h3,
.price-tier.featured .price-amount { color: #fff; }

.price-tier.featured ul { color: rgba(255, 255, 255, 0.82); }

.price-tier h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--navy-deep);
}

.price-amount {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy-deep);
  letter-spacing: -0.03em;
}

.price-amount span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.price-tier.featured .price-amount span { color: rgba(255, 255, 255, 0.65); }

.price-tier ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
  line-height: 1.75;
}

.tier-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--orange);
  color: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* —— Demo / panels —— */
.panel {
  padding: 1.25rem 1.3rem 1.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy-deep);
}

.filters { display: flex; gap: 0.5rem; align-items: center; }

.address-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.demo-lookup {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.5rem;
  align-items: end;
}

.demo-lookup label { flex: 1; }

.demo-lookup .btn-ghost {
  margin-bottom: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .address-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .address-grid { grid-template-columns: 1fr; }
  .demo-lookup { flex-direction: column; align-items: stretch; }
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

input, select {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
}

.address-result .label {
  margin: 0.65rem 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.address-result pre, .mono, code {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.address-result pre {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f0f4fa;
  overflow-x: auto;
  white-space: pre-wrap;
}

.hint { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.hint a { color: var(--orange); }

/* —— Dedicated login page —— */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(800px 420px at 100% 0%, rgba(255, 106, 0, 0.1), transparent 55%),
    radial-gradient(700px 400px at 0% 100%, rgba(22, 58, 107, 0.1), transparent 50%),
    var(--bg);
}

.topnav-auth {
  justify-content: space-between;
}

.auth-shell {
  width: min(980px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
}

.auth-aside {
  padding: 2rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--navy-deep), #1a4a7a 70%, #245a8c);
  color: #fff;
  box-shadow: var(--shadow);
}

.auth-aside .eyebrow { color: #ffb380; }
.auth-aside h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.auth-aside .lede {
  color: rgba(255, 255, 255, 0.78);
  max-width: none;
}
.auth-bullets {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.auth-bullets li {
  padding-left: 1.1rem;
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
}
.auth-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--orange);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
  align-content: start;
  animation: rise 0.35s ease both;
}

.login-panel h2,
.auth-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy-deep);
}

.login-panel .sub,
.auth-card .sub { margin: 0; color: var(--muted); }

.field-hint {
  margin: -0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.auth-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.auth-tab {
  background: #f0f4fa;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: none;
}

.auth-tab.active {
  background: #fff4eb;
  border-color: #ffc89a;
  color: var(--orange-deep);
}

.auth-form { display: grid; gap: 0.85rem; }

.error { color: var(--danger); margin: 0; }
.ok-msg { color: var(--ok); margin: 0; }
.hint-action { margin: 0; color: var(--warn); }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { order: -1; }
}

/* —— App / admin —— */
.boot-splash {
  min-height: 40vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
}

.app {
  display: grid;
  gap: 0;
  min-height: 100vh;
  animation: rise 0.4s ease both;
  background: var(--bg);
}

.app-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
  display: grid;
  gap: 1rem;
}

.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-bar-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.brand-sm {
  margin: 0;
  font-weight: 800;
  color: var(--orange);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: block;
}

.muted { color: var(--muted); }

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  background: #f0f4fa;
}

.badge.on { background: #e6f7ed; color: var(--ok); border-color: #b7e4c7; }
.badge.off { color: var(--muted); }
.badge.plan { margin-left: 0.45rem; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.tab {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: none;
}

.tab.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.tab-spacer { flex: 1; }
.tab-panel { display: grid; gap: 1rem; }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.kpi {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.kpi .label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi .value {
  margin: 0.25rem 0 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .charts { grid-template-columns: 1fr; }
}

.path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.path-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.key-form, .settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: end;
}

.settings-form .check {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  grid-column: 1 / -1;
  font-weight: 600;
}

.settings-form .check input { width: auto; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.danger-text { color: var(--danger) !important; border-color: #f0b4b4 !important; }
.row-note { color: var(--muted); font-size: 0.78rem; margin-top: 0.2rem; }

.quota-bar {
  height: 4px;
  background: #e8eef6;
  border-radius: 99px;
  overflow: hidden;
  margin: 0.3rem 0;
}

.quota-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange-hot));
}

.banner {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid #ffd2a8;
  background: #fff6ee;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}

.detail-grid .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.muted-block { color: var(--muted); }
.status-ok { color: var(--ok); }
.status-warn { color: var(--warn); }
.status-err { color: var(--danger); }

/* —— Footer —— */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.site-footer p { margin: 0.4rem 0 0; max-width: 28rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

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

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

a { color: var(--orange); }

body.app-mode {
  background: var(--bg);
}

/* —— App page head —— */
.app-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.app-page-head h1 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.app-page-head .eyebrow { margin-bottom: 0; }

/* —— Docs page —— */
.docs-page { background: var(--bg); }

.docs-hero {
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 2rem;
  background:
    radial-gradient(700px 320px at 90% 20%, rgba(255, 106, 0, 0.12), transparent 55%),
    radial-gradient(600px 280px at 10% 80%, rgba(22, 58, 107, 0.08), transparent 50%),
    linear-gradient(180deg, #eef3fa, var(--bg));
  border-bottom: 1px solid var(--line);
}

.docs-hero-inner { width: min(1100px, 100%); margin: 0 auto; }

.docs-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy-deep);
  letter-spacing: -0.03em;
}

.docs-layout {
  width: min(1100px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: 5rem;
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.toc-label {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.docs-toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0.4rem;
  border-radius: 8px;
}

.docs-toc a:hover {
  color: var(--navy);
  background: #f0f4fa;
}

.docs-main {
  padding: 1.75rem 1.6rem 2rem;
}

.docs-main h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy-deep);
  margin: 2rem 0 0.65rem;
  scroll-margin-top: 5rem;
}

.docs-main h2:first-child { margin-top: 0; }

.docs-main h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.05rem;
  color: var(--navy-deep);
  scroll-margin-top: 5rem;
}

.docs-main p,
.docs-main li {
  color: var(--ink);
  line-height: 1.6;
}

.docs-main ul,
.docs-main ol { padding-left: 1.2rem; }

.docs-main pre {
  overflow-x: auto;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c2748;
  color: #e8eef8;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
}

.docs-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.docs-table th,
.docs-table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.docs-table th {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.method {
  font-family: var(--font-mono);
  color: var(--ok);
  font-size: 0.78rem;
  font-weight: 800;
  margin-right: 0.35rem;
}

.path { font-family: var(--font-mono); font-size: 0.84rem; }

@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc-label { grid-column: 1 / -1; }
}
