/* ==========================================================================
   LETEMA CLOUD: Design system (giza / mwanga), msukumo: Vercel / Geist
   ========================================================================== */
:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #ffffff; --bg-2: #fafafa; --bg-3: #f4f4f5; --card: #ffffff; --fg: #0a0a0a; --fg-2: #404040; --muted: #737373;
  --border: #e5e5e5; --border-2: #d4d4d4; --ring: rgba(0, 112, 243, .35);
  --accent: #0070f3; --accent-2: #00c2b8; --accent-fg: #fff;
  --grad: linear-gradient(120deg, #0070f3 0%, #00b8d9 55%, #00d4a8 100%);
  --ok: #16a34a; --ok-bg: #dcfce7; --warn: #d97706; --warn-bg: #fef3c7; --err: #dc2626; --err-bg: #fee2e2; --info: #2563eb; --info-bg: #dbeafe;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06); --shadow-lg: 0 20px 60px rgba(0,0,0,.14);
  --radius: 12px; --radius-sm: 8px; --nav-h: 64px; --side-w: 244px;
  --grid: rgba(0,0,0,.05); --code-bg: #fafafa; --glow: rgba(0,112,243,.18);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #000000; --bg-2: #0a0a0a; --bg-3: #111111; --card: #0a0a0a; --fg: #ededed; --fg-2: #c7c7c7; --muted: #8f8f8f;
  --border: #242424; --border-2: #333333; --ring: rgba(80, 160, 255, .45);
  --accent: #3291ff; --accent-2: #19e3c8; --accent-fg: #000;
  --grad: linear-gradient(120deg, #3291ff 0%, #20d3e6 55%, #19e3a8 100%);
  --ok: #4ade80; --ok-bg: rgba(74,222,128,.12); --warn: #fbbf24; --warn-bg: rgba(251,191,36,.12); --err: #f87171; --err-bg: rgba(248,113,113,.12); --info: #60a5fa; --info-bg: rgba(96,165,250,.12);
  --shadow: 0 0 0 1px rgba(255,255,255,.03), 0 8px 30px rgba(0,0,0,.5); --shadow-lg: 0 24px 80px rgba(0,0,0,.7);
  --grid: rgba(255,255,255,.055); --code-bg: #0f0f0f; --glow: rgba(50,145,255,.22);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--fg); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.3rem, 5.2vw + .5rem, 4.4rem); letter-spacing: -0.045em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.4vw + .8rem, 2.7rem); letter-spacing: -0.035em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--fg-2); }
code, pre, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--bg-3); border: 1px solid var(--border); padding: .08em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
::selection { background: var(--accent); color: var(--accent-fg); }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 40px); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .xs { font-size: .76rem; } .center { text-align: center; }
.right { text-align: right; } .nowrap { white-space: nowrap; } .grow { flex: 1; } .hide { display: none !important; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; } .wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--card); color: var(--fg); font: 550 14px/1 var(--font); cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.btn:hover { border-color: var(--fg); color: var(--fg); transform: translateY(-1px); }
.btn:focus-visible, .input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--ring); }
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary:hover { background: var(--fg-2); color: var(--bg); border-color: var(--fg-2); }
.btn-accent { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 24px -6px var(--glow); }
[data-theme="dark"] .btn-accent { color: #00121a; }
.btn-accent:hover { filter: brightness(1.08); color: #fff; border-color: transparent; }
[data-theme="dark"] .btn-accent:hover { color: #00121a; }
.btn-ghost { border-color: transparent; background: transparent; } .btn-ghost:hover { background: var(--bg-3); border-color: transparent; }
.btn-danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, var(--border)); } .btn-danger:hover { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; } .btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 10px; } .btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.input, select, textarea { width: 100%; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--bg); color: var(--fg); font: 14px var(--font); transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 10px 12px; min-height: 90px; line-height: 1.5; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f8f8f' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.input:hover, select:hover, textarea:hover { border-color: var(--muted); }
label.lbl { display: block; font-size: 13px; font-weight: 550; margin: 0 0 6px; color: var(--fg); }
.field { margin-bottom: 16px; } .help { font-size: 12px; color: var(--muted); margin-top: 5px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border-2); border-radius: 22px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--ok); } .switch input:checked + span::before { transform: translateX(18px); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; } .form-grid .full { grid-column: 1 / -1; }

/* ---------- Badges, status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 550; border: 1px solid var(--border); background: var(--bg-3); color: var(--fg-2); white-space: nowrap; }
.badge.ok { color: var(--ok); background: var(--ok-bg); border-color: transparent; } .badge.warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.badge.err { color: var(--err); background: var(--err-bg); border-color: transparent; } .badge.info { color: var(--info); background: var(--info-bg); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); } .dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); } .dot.err { background: var(--err); box-shadow: 0 0 0 3px var(--err-bg); }
.pulse { animation: pulse 2s infinite; } @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- Public nav ---------- */
.topbanner { background: var(--grad); color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; font-weight: 550; } [data-theme="dark"] .topbanner { color: #00121a; }
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.nav .container { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em; font-size: 17px; color: var(--fg); }
.brand:hover { color: var(--fg); } .brand img, .brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 4px; } .nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--fg-2); font-size: 14px; font-weight: 500; } .nav-links a:hover, .nav-links a.on { color: var(--fg); background: var(--bg-3); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--fg-2); cursor: pointer; } .icon-btn:hover { background: var(--bg-3); color: var(--fg); }
.burger { display: none; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; text-align: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%); }
.hero .orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 14s ease-in-out infinite; }
.orb.o1 { width: 420px; height: 420px; background: #0070f3; left: 8%; top: -120px; } .orb.o2 { width: 360px; height: 360px; background: #00d4a8; right: 6%; top: -40px; animation-delay: -5s; } .orb.o3 { width: 280px; height: 280px; background: #7c3aed; left: 42%; top: 140px; opacity: .25; animation-delay: -9s; }
[data-theme="dark"] .orb { opacity: .32; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(24px,-26px) scale(1.08); } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--border); background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: blur(8px); font-size: 13px; color: var(--fg-2); margin-bottom: 26px; }
.pill b { background: var(--grad); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; } [data-theme="dark"] .pill b { color: #00121a; }
.hero p.lead { font-size: clamp(1.05rem, .6vw + .95rem, 1.3rem); max-width: 680px; margin: 22px auto 34px; color: var(--muted); }
.domain-box { max-width: 640px; margin: 0 auto; display: flex; gap: 8px; padding: 8px; background: var(--card); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: var(--shadow-lg); transition: box-shadow .2s, border-color .2s; }
.domain-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring), var(--shadow-lg); }
.domain-box input { flex: 1; border: 0; background: transparent; padding: 0 14px; height: 48px; font-size: 16px; color: var(--fg); outline: 0; min-width: 0; }
.tld-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; } .tld-chips span { font-size: 13px; color: var(--muted); padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); } .tld-chips b { color: var(--fg); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
#domain-results { max-width: 640px; margin: 18px auto 0; text-align: left; display: grid; gap: 8px; }
.dres { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); animation: rise .3s ease both; }
.dres .name { font-weight: 600; flex: 1; word-break: break-all; } .dres.taken .name { color: var(--muted); text-decoration: line-through; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
section.sec { padding: 88px 0; } .sec-head { max-width: 720px; margin: 0 auto 52px; text-align: center; } .sec-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.stat { padding: 28px 24px; border-right: 1px solid var(--border); } .stat:last-child { border-right: 0; } .stat b { display: block; font-size: 1.8rem; letter-spacing: -0.04em; } .stat span { color: var(--muted); font-size: 14px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cell { position: relative; padding: 28px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); overflow: hidden; transition: border-color .2s, transform .2s; }
.cell::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cell:hover { border-color: var(--border-2); } .cell:hover::before { opacity: 1; }
.cell h3 { margin-bottom: 8px; } .cell p { color: var(--muted); margin: 0; font-size: 14.5px; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; }
.ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--border); margin-bottom: 18px; color: var(--accent); }
.ico svg { width: 21px; height: 21px; }

.term { border: 1px solid var(--border-2); border-radius: 14px; background: var(--code-bg); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; max-width: 620px; margin: 0 auto; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); } .term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); } .term-bar span { margin-left: 10px; font: 12px var(--mono); color: var(--muted); }
.term-body { padding: 18px 20px; font: 13.5px/1.9 var(--mono); color: var(--fg-2); min-height: 210px; }
.term-body .ok { color: var(--ok); } .term-body .dim { color: var(--muted); } .term-body .acc { color: var(--accent); }
.term-body div { opacity: 0; animation: typeIn .4s ease forwards; } @keyframes typeIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; } .step { padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; right: 24px; font: 700 2.6rem var(--font); color: var(--bg-3); -webkit-text-stroke: 1px var(--border-2); letter-spacing: -.05em; }

.toggle { display: inline-flex; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); gap: 2px; } .toggle button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font: 550 13px var(--font); color: var(--muted); cursor: pointer; } .toggle button.on { background: var(--fg); color: var(--bg); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); transition: transform .2s, border-color .2s; }
.plan:hover { transform: translateY(-4px); border-color: var(--border-2); }
.plan.featured { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 20px 60px -20px var(--glow); }
.plan .tag { position: absolute; top: -12px; left: 28px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; } [data-theme="dark"] .plan .tag { color: #00121a; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; } .price b { font-size: 2.5rem; letter-spacing: -0.05em; } .price small { color: var(--muted); } .price-note { min-height: 20px; font-size: 13px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; flex: 1; } .plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--fg-2); } .plan li::before { content: ""; flex: none; width: 17px; height: 17px; margin-top: 2px; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.specs { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: 13.5px; } .specs td { padding: 7px 0; border-bottom: 1px dashed var(--border); } .specs td:last-child { text-align: right; font-weight: 550; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; } .faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--card); padding: 0 22px; transition: border-color .2s; } .faq details[open] { border-color: var(--border-2); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; } .faq summary::-webkit-details-marker { display: none; } .faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .2s; } .faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--muted); }
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; padding: 72px 24px; text-align: center; background: var(--card); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px circle at 20% 0%, var(--glow), transparent 60%), radial-gradient(600px circle at 90% 100%, rgba(0,212,168,.18), transparent 60%); }
.footer { border-top: 1px solid var(--border); padding: 64px 0 36px; margin-top: 40px; background: var(--bg-2); }
.fgrid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; } .footer h4 { font-size: 13px; letter-spacing: .02em; margin-bottom: 14px; } .footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; } .footer li a { color: var(--muted); font-size: 14px; } .footer li a:hover { color: var(--fg); }
.fbottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.sys { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .2s; } .wa-float:hover { transform: scale(1.08); color: #fff; }
.prose { max-width: 760px; } .prose h2 { font-size: 1.5rem; margin-top: 2em; } .prose h3 { margin-top: 1.6em; } .prose li { color: var(--fg-2); margin-bottom: 4px; } .prose p { line-height: 1.75; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; position: relative; overflow: hidden; isolation: isolate; }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 75%); }
.auth-card { width: min(440px, 100%); padding: 36px 32px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-lg); } .auth-card.wide { width: min(560px, 100%); }
.auth-card h1 { font-size: 1.7rem; letter-spacing: -0.035em; margin-bottom: 6px; }

/* ---------- App shell (portal + console) ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--border); background: var(--bg-2); padding: 16px 12px; display: flex; flex-direction: column; }
.side .brand { padding: 6px 10px 18px; }
.side-group { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 16px 12px 6px; }
.side a.item { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 8px; color: var(--fg-2); font-size: 14px; font-weight: 500; margin-bottom: 1px; } .side a.item svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.side a.item:hover { background: var(--bg-3); color: var(--fg); } .side a.item.on { background: var(--bg-3); color: var(--fg); box-shadow: inset 2px 0 0 var(--accent); }
.side a.item .count { margin-left: auto; font-size: 11px; background: var(--accent); color: var(--accent-fg); border-radius: 999px; padding: 1px 7px; font-weight: 650; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; } .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; flex: none; } [data-theme="dark"] .avatar { color: #00121a; }
.me b { display: block; font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; max-width: 130px; white-space: nowrap; } .me span { font-size: 11px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 58px; padding: 0 28px; display: flex; align-items: center; gap: 14px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; } .crumbs b { color: var(--fg); font-weight: 600; }
.search-trigger { margin-left: auto; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px 0 12px; border: 1px solid var(--border-2); border-radius: 8px; color: var(--muted); font-size: 13px; background: var(--bg); cursor: pointer; min-width: 220px; } .search-trigger:hover { border-color: var(--muted); } .kbd { font: 11px var(--mono); border: 1px solid var(--border-2); border-radius: 5px; padding: 1px 6px; margin-left: auto; background: var(--bg-3); }
.content { padding: 28px; width: 100%; max-width: 1280px; } .page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; } .page-head h1 { font-size: 1.7rem; margin: 0; letter-spacing: -0.035em; } .page-head p { margin: 4px 0 0; color: var(--muted); }
.menu-btn { display: none; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); } .card-h { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; } .card-h h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; } .card-b { padding: 20px; } .card-f { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-2); border-radius: 0 0 var(--radius) var(--radius); }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .g-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.kpi { padding: 18px 20px; } .kpi .l { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; } .kpi .v { font-size: 1.85rem; font-weight: 650; letter-spacing: -0.04em; margin-top: 6px; line-height: 1.1; } .kpi .s { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.table-wrap { overflow-x: auto; } table.t { width: 100%; border-collapse: collapse; font-size: 14px; } table.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); white-space: nowrap; text-transform: none; }
table.t td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; } table.t tr:last-child td { border-bottom: 0; } table.t tbody tr:hover td { background: var(--bg-2); } table.t td a.strong { font-weight: 600; } table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); } .empty b { display: block; color: var(--fg); margin-bottom: 4px; font-size: 15px; }
.filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; } .filters .input, .filters select { width: auto; min-width: 150px; } .filters form { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; } .tabs a { padding: 10px 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; } .tabs a:hover { color: var(--fg); } .tabs a.on { color: var(--fg); border-color: var(--accent); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; color: var(--muted); font-size: 13px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; } .bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; } .bars .b i { display: block; width: 100%; max-width: 54px; border-radius: 6px 6px 2px 2px; background: var(--grad); min-height: 3px; opacity: .9; transition: opacity .2s; } .bars .b:hover i { opacity: 1; } .bars .b span { font-size: 11px; color: var(--muted); }
.meter { height: 7px; border-radius: 99px; background: var(--bg-3); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--grad); border-radius: 99px; } .meter.warn i { background: var(--warn); } .meter.err i { background: var(--err); }
.alert { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; } .alert.info { background: var(--info-bg); border-color: transparent; color: var(--info); } .alert.warning, .alert.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); } .alert.danger, .alert.err { background: var(--err-bg); border-color: transparent; color: var(--err); } .alert.success, .alert.ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.alert b, .alert p { color: inherit; } .alert p { margin: 2px 0 0; opacity: .9; }
.thread { display: grid; gap: 14px; } .msg { padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); } .msg.staff { background: var(--bg-2); border-left: 3px solid var(--accent); } .msg.internal { background: var(--warn-bg); border-color: transparent; } .msg .who { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: var(--muted); } .msg .who b { color: var(--fg); } .msg .body { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }
.checklist { list-style: none; padding: 0; margin: 0; } .checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--border); } .checklist li:last-child { border-bottom: 0; } .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid var(--border-2); margin-top: 1px; } .tick.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.code-block { position: relative; background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; font: 13px/1.6 var(--mono); overflow-x: auto; word-break: break-all; } .copy { position: absolute; top: 8px; right: 8px; }
.integ { display: flex; flex-direction: column; gap: 10px; padding: 20px; transition: border-color .2s, transform .2s; } .integ:hover { border-color: var(--border-2); transform: translateY(-2px); }
.invoice-doc { max-width: 820px; margin: 0 auto; padding: 40px; background: #fff; color: #111; border: 1px solid var(--border); border-radius: 12px; } .invoice-doc p, .invoice-doc td, .invoice-doc th { color: #111; }

/* ---------- Toasts, cmdk ---------- */
#toasts { position: fixed; right: 20px; top: 20px; z-index: 200; display: grid; gap: 10px; width: min(380px, calc(100% - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--card); box-shadow: var(--shadow-lg); font-size: 14px; animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2) both; } .toast.out { animation: toastOut .3s ease forwards; }
.toast.success { border-left: 3px solid var(--ok); } .toast.error { border-left: 3px solid var(--err); } .toast .x { margin-left: auto; cursor: pointer; color: var(--muted); background: none; border: 0; font-size: 18px; line-height: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.96); } to { opacity: 1; transform: none; } } @keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
#cmdk { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-start; justify-content: center; padding-top: 14vh; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); } #cmdk.open { display: flex; }
.cmd { width: min(620px, calc(100% - 32px)); background: var(--card); border: 1px solid var(--border-2); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .2s ease both; }
.cmd input { width: 100%; border: 0; border-bottom: 1px solid var(--border); background: transparent; padding: 18px 20px; font-size: 16px; color: var(--fg); outline: 0; font-family: var(--font); }
.cmd-list { max-height: 360px; overflow-y: auto; padding: 8px; } .cmd-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--fg-2); } .cmd-list a.sel, .cmd-list a:hover { background: var(--bg-3); color: var(--fg); } .cmd-list small { color: var(--muted); font-size: 11px; }
.cmd-group { font-size: 11px; color: var(--muted); padding: 10px 12px 4px; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; } .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); } .c2, .c3, .c4, .c6 { grid-column: span 2; } .c2 { grid-column: span 1; }
  .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .steps3 { grid-template-columns: 1fr; } .fgrid { grid-template-columns: 1fr 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .g-side { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .hide-m { display: none; } .burger { display: inline-grid; }
  .mobile-menu.open { display: grid; gap: 4px; padding: 12px 20px 20px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: var(--nav-h); z-index: 49; } .mobile-menu a { padding: 12px; border-radius: 8px; font-weight: 500; } .mobile-menu a:hover { background: var(--bg-3); }
  .shell { grid-template-columns: 1fr; } .side { position: fixed; z-index: 120; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); } .side.open { transform: none; } .menu-btn { display: inline-grid; }
  .topbar { padding: 0 16px; } .content { padding: 20px 16px; } .search-trigger { min-width: 0; } .search-trigger span.t { display: none; } .kbd { display: none; }
  .hero { padding: 64px 0 48px; } section.sec { padding: 60px 0; } .form-grid { grid-template-columns: 1fr; } .g2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; } .c2, .c3, .c4, .c6 { grid-column: span 1; } .fgrid { grid-template-columns: 1fr; } .g4, .g3 { grid-template-columns: 1fr; } .domain-box { flex-direction: column; } .domain-box .btn { width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; } h1 { letter-spacing: -0.035em; }
}
@media print { .nav, .side, .topbar, .footer, .wa-float, .no-print { display: none !important; } .shell { display: block; } body { background: #fff; color: #000; } .invoice-doc { border: 0; padding: 0; } .content { padding: 0; } }

/* ---------- Marekebisho madogo ---------- */
.side .brand { white-space: nowrap; font-size: 16px; gap: 9px; flex-wrap: nowrap; }
.side .brand .badge { height: 18px; padding: 0 7px; font-size: 10px; margin-left: 2px; }
