/* ==========================================================================
   7amoDB — design system
   Black · near-black · deep purple · soft white · subtle gray
   ========================================================================== */

:root {
  --bg: #08070b;
  --bg-elev: #0d0b12;
  --bg-elev-2: #12101a;
  --panel: #0b0a0f;
  --line: #1c1a24;
  --line-strong: #262331;
  --fg: #ece9f2;
  --fg-muted: #9c98ab;
  --fg-dim: #6d6a7a;
  --accent: #7c3aed;
  --accent-soft: #a78bfa;
  --accent-dim: #4c1d95;
  --accent-wash: rgba(124, 58, 237, 0.10);
  --ok: #34d399;
  --warn: #f5b544;
  --danger: #f2555a;
  --info: #7c9cf5;

  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, 0.9);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --nav-h: 64px;
  --max: 1160px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04';
  min-height: 100vh;
}

html[dir='rtl'] body { font-family: var(--font-ar); }

::selection { background: rgba(124, 58, 237, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.021em;
  line-height: 1.22;
}
p { margin: 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #211e2b; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2e2a3b; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap-1 { gap: 4px } .gap-2 { gap: 8px } .gap-3 { gap: 12px } .gap-4 { gap: 16px }
.gap-5 { gap: 20px } .gap-6 { gap: 24px } .gap-8 { gap: 32px } .gap-10 { gap: 40px }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.center { align-items: center; }
.hidden { display: none !important; }

/* ---------- typography ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 600;
}
.h1 { font-size: clamp(38px, 6.2vw, 64px); letter-spacing: -0.035em; line-height: 1.05; }
.h2 { font-size: clamp(25px, 3.4vw, 34px); letter-spacing: -0.028em; }
.h3 { font-size: 19px; letter-spacing: -0.015em; }
.h4 { font-size: 15px; font-weight: 600; }
.lead { font-size: 16.5px; color: var(--fg-muted); line-height: 1.65; }
.muted { color: var(--fg-muted); }
.dim { color: var(--fg-dim); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: -0.01em; }
.accent { color: var(--accent-soft); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 26px; height: 26px; object-fit: contain; display: block; }
.brand-text { font-weight: 650; font-size: 16px; letter-spacing: -0.02em; }
.brand-text .db { color: var(--accent-soft); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(8, 7, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 11px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--fg-muted);
  transition: color .14s ease, background .14s ease;
}
.nav-link:hover { color: var(--fg); background: rgba(255,255,255,0.035); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; }

.mobile-drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 55;
  background: var(--bg); padding: 20px 24px 40px;
  overflow-y: auto; display: none;
}
.mobile-drawer.open { display: block; }
.mobile-drawer .nav-link { display: block; padding: 13px 12px; font-size: 15px; border-radius: var(--radius); }

@media (max-width: 900px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--fg);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, transform .1s ease, opacity .14s ease;
  text-decoration: none;
}
.btn:hover { background: var(--bg-elev-2); border-color: #322e40; }
.btn:active { transform: translateY(0.5px); }
.btn:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 550;
}
.btn-primary:hover { background: #6d31d4; border-color: #6d31d4; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--fg-muted); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--fg); border-color: transparent; }

.btn-danger { border-color: rgba(242,85,90,0.35); color: #ff8b8f; background: rgba(242,85,90,0.06); }
.btn-danger:hover { background: rgba(242,85,90,0.12); border-color: rgba(242,85,90,0.55); }

.btn-solid-danger { background: #b3282d; border-color: #b3282d; color: #fff; }
.btn-solid-danger:hover { background: #c22f34; }

.btn-lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-icon { width: 38px; padding: 0; }
.btn-icon.btn-sm { width: 30px; }
.btn-block { width: 100%; }

.btn .spinner { display: none; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label { opacity: .6; }

.spinner {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: currentColor;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- cards / panels ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card-pad { padding: 20px; }
.card-head {
  padding: 15px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: rgba(255,255,255,0.012); }

.panel { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); }

.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.stat-label { font-size: 12px; color: var(--fg-dim); letter-spacing: .02em; }
.stat-value { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; margin-top: 6px; line-height: 1.15; }
.stat-sub { font-size: 12px; color: var(--fg-dim); margin-top: 4px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- badges / status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid var(--line-strong); color: var(--fg-muted);
  background: rgba(255,255,255,0.02);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { color: #6ee7b7; border-color: rgba(52,211,153,0.28); background: rgba(52,211,153,0.07); }
.badge-warn { color: #fbcd74; border-color: rgba(245,181,68,0.28); background: rgba(245,181,68,0.07); }
.badge-danger { color: #ff8b8f; border-color: rgba(242,85,90,0.28); background: rgba(242,85,90,0.07); }
.badge-accent { color: var(--accent-soft); border-color: rgba(124,58,237,0.32); background: var(--accent-wash); }
.badge-neutral { color: var(--fg-muted); }
.badge-pulse .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 13px; font-weight: 500; color: var(--fg); }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hint { font-size: 12.5px; color: var(--fg-dim); line-height: 1.5; }
.error-text { font-size: 12.5px; color: #ff8b8f; }

.input, .select, .textarea {
  width: 100%;
  background: #0a090e;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  padding: 0 12px;
  height: 38px;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.textarea { height: auto; min-height: 110px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #55525f; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.14);
}
.input.mono { font-family: var(--mono); }
.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='%239c98ab' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
html[dir='rtl'] .select { background-position: left 12px center; padding-right: 12px; padding-left: 32px; }

.otp-input {
  font-family: var(--mono); font-size: 22px; letter-spacing: 0.5em;
  text-align: center; height: 52px; padding-left: 0.5em;
}
html[dir='rtl'] .otp-input { direction: ltr; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
input[type='checkbox'] { accent-color: var(--accent); width: 15px; height: 15px; margin-top: 3px; cursor: pointer; }

/* toggle */
.toggle { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .track {
  position: absolute; inset: 0; cursor: pointer;
  background: #26232f; border-radius: 999px; transition: background .16s ease;
}
.toggle .track::before {
  content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px;
  background: #b9b5c6; border-radius: 50%; transition: transform .16s ease, background .16s ease;
}
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track::before { transform: translateX(16px); background: #fff; }
html[dir='rtl'] .toggle .track::before { left: auto; right: 3px; }
html[dir='rtl'] .toggle input:checked + .track::before { transform: translateX(-16px); }

/* ---------- tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
table.tbl th {
  text-align: start; font-weight: 500; font-size: 11.5px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--fg-dim);
  padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr:hover { background: rgba(255,255,255,0.016); }

/* ---------- progress ---------- */
.progress { height: 5px; background: #1a1823; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.progress.warn > span { background: var(--warn); }
.progress.danger > span { background: var(--danger); }

/* ---------- code ---------- */
pre.code {
  background: #0a090e; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
  overflow-x: auto; font-family: var(--mono); font-size: 12.8px;
  line-height: 1.65; color: #cfcada; margin: 0; direction: ltr; text-align: left;
}
pre.code .k { color: #c4b5fd; }
pre.code .s { color: #86e3b7; }
pre.code .c { color: #605d6c; }
code.inline {
  font-family: var(--mono); font-size: 12.5px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 4px; direction: ltr; display: inline-block;
}

.secret-box {
  display: flex; align-items: center; gap: 8px;
  background: #0a090e; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 9px 10px 9px 12px;
}
.secret-value {
  flex: 1; font-family: var(--mono); font-size: 12.8px;
  overflow-x: auto; white-space: nowrap; direction: ltr; text-align: left;
  scrollbar-width: thin; color: #cfcada;
}
.secret-value.masked { letter-spacing: .12em; color: var(--fg-dim); }

/* ---------- empty / skeleton ---------- */
.empty { text-align: center; padding: 56px 24px; }
.empty-icon {
  width: 44px; height: 44px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 12px; color: var(--fg-dim);
  background: rgba(255,255,255,0.015);
}
.empty-title { font-size: 15px; font-weight: 550; }
.empty-desc { font-size: 13.5px; color: var(--fg-dim); margin-top: 6px; max-width: 360px; margin-inline: auto; }

.skel { background: linear-gradient(90deg, #14121c 25%, #1c1a26 50%, #14121c 75%); background-size: 200% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

/* ---------- toast ---------- */
.toast-host { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg-elev-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 11px 15px; font-size: 13.5px;
  box-shadow: var(--shadow-lg); max-width: 330px;
  animation: toastIn .22s cubic-bezier(.16,1,.3,1);
}
.toast.ok { border-color: rgba(52,211,153,0.35); }
.toast.err { border-color: rgba(242,85,90,0.4); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

/* ---------- modal ---------- */
.modal-host {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(4,3,6,0.72); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  width: 100%; max-width: 440px;
  background: var(--bg-elev); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: modalIn .2s cubic-bezier(.16,1,.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985) } to { opacity: 1; transform: none } }
.modal-head { padding: 18px 20px 0; }
.modal-body { padding: 14px 20px 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- landing ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -280px; left: 50%; transform: translateX(-50%);
  width: 820px; height: 560px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.16), transparent 66%);
}
.hero-inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.hero-logo { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 26px; display: block; }
.hero-cta { display: flex; gap: 10px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

.preview {
  margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel); overflow: hidden; box-shadow: var(--shadow-lg);
}
.preview-bar {
  height: 36px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: rgba(255,255,255,0.014);
}
.preview-bar i { width: 8px; height: 8px; border-radius: 50%; background: #262331; display: block; }
.preview-body { padding: 20px; }

section.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 560px; margin-bottom: 40px; }

.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .16s ease; }
.feature:hover { border-color: var(--line-strong); }
.feature-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-wash); color: var(--accent-soft);
  border: 1px solid rgba(124,58,237,0.2); margin-bottom: 14px;
}
.feature h3 { font-size: 14.5px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--fg-muted); line-height: 1.6; }

.step { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: none; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--accent-soft); width: 26px; flex-shrink: 0; padding-top: 3px; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--fg);
  padding: 17px 0; font-size: 14.5px; font-weight: 500; text-align: start;
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q svg { flex-shrink: 0; color: var(--fg-dim); transition: transform .2s ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 18px; color: var(--fg-muted); font-size: 13.8px; line-height: 1.7; max-width: 660px; }
.faq-item.open .faq-a { display: block; }

.price-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 26px; }
.price-card.featured { border-color: rgba(124,58,237,0.38); background: linear-gradient(180deg, rgba(124,58,237,0.045), transparent 55%), var(--panel); }
.price-amount { font-size: 38px; font-weight: 600; letter-spacing: -0.035em; }
.price-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; gap: 9px; font-size: 13.5px; color: var(--fg-muted); align-items: flex-start; }
.price-list svg { color: var(--accent-soft); flex-shrink: 0; margin-top: 3px; }

footer.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer-title { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-dim); margin-bottom: 12px; font-weight: 600; }
.footer-link { display: block; font-size: 13.5px; color: var(--fg-muted); padding: 4px 0; }
.footer-link:hover { color: var(--fg); }

/* ---------- app shell (dashboard / admin) ---------- */
.shell { display: flex; min-height: calc(100vh - var(--nav-h)); }
.sidebar {
  width: 236px; flex-shrink: 0; border-inline-end: 1px solid var(--line);
  padding: 20px 12px; position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h)); overflow-y: auto;
  display: flex; flex-direction: column;
}
.side-group + .side-group { margin-top: 22px; }
.side-title { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-dim); padding: 0 10px 8px; font-weight: 600; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--fg-muted);
  transition: background .14s ease, color .14s ease;
}
.side-link:hover { background: rgba(255,255,255,0.035); color: var(--fg); }
.side-link.active { background: var(--accent-wash); color: var(--accent-soft); }
.side-link svg { flex-shrink: 0; opacity: .85; }
.side-badge { margin-inline-start: auto; font-size: 11px; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center; }

.main { flex: 1; min-width: 0; padding: 28px 28px 64px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { padding: 20px 16px 56px; }
  .container { padding: 0 16px; }
  .hero { padding: 64px 0 48px; }
  section.section { padding: 56px 0; }
}

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  padding: 9px 13px; font-size: 13.5px; color: var(--fg-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; cursor: pointer; background: none; border-top: none; border-inline: none;
}
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); border-bottom-color: var(--accent); }

.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--bg-elev-2); border: 1px solid var(--line-strong); }
.avatar-lg { width: 56px; height: 56px; }
.avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--accent-soft); background: var(--accent-wash);
}
.avatar-fallback.avatar-lg { font-size: 20px; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; font-size: 13.5px; align-items: center; }
.kv dt { color: var(--fg-dim); }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 3px 0; } .kv dd { margin-bottom: 10px; } }

.danger-zone { border: 1px solid rgba(242,85,90,0.25); border-radius: var(--radius); background: rgba(242,85,90,0.025); }
.danger-zone .card-head { border-bottom-color: rgba(242,85,90,0.18); }

.notice {
  display: flex; gap: 11px; padding: 13px 15px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 13.3px; color: var(--fg-muted); background: rgba(255,255,255,0.016); line-height: 1.6;
}
.notice svg { flex-shrink: 0; margin-top: 2px; }
.notice-warn { border-color: rgba(245,181,68,0.3); background: rgba(245,181,68,0.05); color: #e6c98c; }
.notice-danger { border-color: rgba(242,85,90,0.3); background: rgba(242,85,90,0.05); color: #f0a3a6; }
.notice-accent { border-color: rgba(124,58,237,0.3); background: var(--accent-wash); color: #c4b5fd; }

/* provisioning steps */
.prov-step { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 13.8px; color: var(--fg-dim); }
.prov-step + .prov-step { border-top: 1px solid var(--line); }
.prov-dot {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
}
.prov-step.done { color: var(--fg); }
.prov-step.done .prov-dot { border-color: var(--ok); color: var(--ok); }
.prov-step.active { color: var(--fg); }
.prov-step.active .prov-dot { border-color: var(--accent); border-top-color: transparent; animation: spin .7s linear infinite; }
.prov-step.failed .prov-dot { border-color: var(--danger); color: var(--danger); }
.prov-step.failed { color: #f0a3a6; }

/* command palette */
.cmdk-host { position: fixed; inset: 0; z-index: 180; background: rgba(4,3,6,0.7); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; }
.cmdk {
  width: 100%; max-width: 560px; background: var(--bg-elev);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.cmdk input { width: 100%; height: 48px; background: none; border: none; border-bottom: 1px solid var(--line); color: var(--fg); padding: 0 16px; font-size: 14.5px; font-family: inherit; }
.cmdk input:focus { outline: none; }
.cmdk-list { max-height: 380px; overflow-y: auto; padding: 6px; }
.cmdk-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--radius-sm); font-size: 13.5px; cursor: pointer; }
.cmdk-item:hover, .cmdk-item.sel { background: rgba(255,255,255,0.05); }
.cmdk-kind { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-dim); margin-inline-start: auto; }

.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.lang-switch a { padding: 5px 10px; font-size: 12.5px; color: var(--fg-dim); }
.lang-switch a.active { background: rgba(255,255,255,0.055); color: var(--fg); }
.lang-switch a + a { border-inline-start: 1px solid var(--line-strong); }

.pagination { display: flex; align-items: center; gap: 8px; justify-content: center; padding-top: 18px; }

.timeline { position: relative; padding-inline-start: 18px; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding: 9px 0; font-size: 13.2px; }
.timeline-item::before { content: ''; position: absolute; inset-inline-start: -18px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); border: 1px solid var(--bg); }

.msg-bubble { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 13.6px; line-height: 1.65; background: var(--panel); white-space: pre-wrap; word-break: break-word; }
.msg-bubble.admin { border-color: rgba(124,58,237,0.28); background: var(--accent-wash); }
.msg-bubble.internal { border-color: rgba(245,181,68,0.3); background: rgba(245,181,68,0.04); }
.msg-meta { font-size: 11.5px; color: var(--fg-dim); margin-bottom: 5px; }

.notif-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(124,58,237,0.035); }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex-shrink: 0; }

.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; gap: 24px; } }
.docs-nav { position: sticky; top: calc(var(--nav-h) + 24px); }
.doc-content h2 { font-size: 22px; margin: 40px 0 12px; scroll-margin-top: 90px; }
.doc-content h2:first-child { margin-top: 0; }
.doc-content h3 { font-size: 15.5px; margin: 26px 0 8px; }
.doc-content p { color: var(--fg-muted); font-size: 14.2px; line-height: 1.75; margin-bottom: 12px; }
.doc-content ul { color: var(--fg-muted); font-size: 14.2px; line-height: 1.8; padding-inline-start: 20px; }
.doc-content pre.code { margin: 12px 0 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 300; background: var(--accent); color: #fff; padding: 9px 14px; border-radius: var(--radius-sm); font-size: 13px; }
.skip-link:focus { top: 12px; }

/* ---------- brand credit ---------- */
.credit { margin-top: 14px; text-align: center; font-size: 12px; letter-spacing: .02em; color: var(--fg-dim); }
.credit strong { color: var(--fg-muted); font-weight: 600; }
.credit-side { margin-top: auto; padding: 18px 8px 6px; border-top: 1px solid var(--line); }
