/* =====================================================================
   LawB Group admin — same finish as the Ghana Vouchers admin:
   dark navy menu with grouped sections and coloured icons, light content
   area with a soft tinted backdrop, accent-bar card headers, tinted tables.
   Royal blue for actions, LawB orange as the accent.
   ===================================================================== */
:root {
  --brand: #1d4ed8; --brand-600: #1e40af; --brand-50: #eef3ff; --brand-100: #dbe5fe;
  --accent: #F47B20; --accent-ink: #2a1300; --accent-50: #fff4ea;
  --panel: #0b1a3a; --panel-2: #12295a; --panel-ink: #f1f5fd; --panel-ink-2: #a8b6d3; --panel-line: rgba(255,255,255,.12);
  --bg: #f6f7f9; --bg-elev: #ffffff; --bg-sunken: #f0f2f5;
  --ink: #0b1220; --ink-2: #3a4556; --ink-3: #687385;
  --line: #e4e7ec; --line-2: #d0d5dd; --focus: #2563eb;
  --ok: #067647; --ok-bg: #ecfdf3; --err: #b42318; --err-bg: #fef3f2;
  --radius: 8px; --radius-lg: 12px;
  --sh-1: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --sh-2: 0 1px 2px rgba(16,24,40,.04), 0 12px 28px -14px rgba(11,26,58,.22);
  --shadow-lg: 0 12px 32px -8px rgba(16,24,40,.18), 0 4px 8px -4px rgba(16,24,40,.06);
  --bar: linear-gradient(180deg, var(--accent), var(--brand));
  --tint: color-mix(in srgb, var(--brand) 6%, transparent);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-2: "Plus Jakarta Sans", var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; color: var(--ink); font-family: var(--font-2); }
img { max-width: 100%; }
svg { flex-shrink: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); }

/* ---------- Buttons ---------- */
.btn { --b-bg: var(--bg-elev); --b-ink: var(--ink); --b-line: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius);
  background: var(--b-bg); color: var(--b-ink); border: 1px solid var(--b-line); font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap;
  box-shadow: var(--sh-1); text-decoration: none !important; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn:hover { background: var(--bg-sunken); color: var(--b-ink); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: none; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn--block { width: 100%; min-height: 48px; font-size: 15px; }
.btn--primary { --b-bg: var(--brand); --b-ink: #fff; --b-line: var(--brand); }
.btn--primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn--navy { --b-bg: var(--panel); --b-ink: #fff; --b-line: var(--panel); }
.btn--navy:hover { background: var(--panel-2); border-color: var(--panel-2); }
.btn--accent { --b-bg: var(--accent); --b-ink: var(--accent-ink); --b-line: var(--accent); font-weight: 700; }
.btn--accent:hover { background: #ff8f3a; border-color: #ff8f3a; }
.btn--ghost { --b-bg: var(--bg-elev); --b-ink: var(--ink-2); --b-line: var(--line-2); }
.btn--danger { --b-bg: var(--bg-elev); --b-ink: var(--err); --b-line: var(--line-2); }
.btn--danger:hover { background: var(--err-bg); }
.link-btn { background: none; border: 0; padding: 6px 10px; border-radius: 6px; font: 600 13.5px var(--font); color: var(--brand); cursor: pointer; text-decoration: none; }
.link-btn:hover { background: var(--brand-50); text-decoration: none; }
.link-btn--danger { color: var(--err); }
.link-btn--danger:hover { background: var(--err-bg); }
.icon-btn { width: 34px; height: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-2); cursor: pointer; font-size: 15px; font-weight: 700; display: inline-grid; place-items: center; transition: background .15s, color .15s; }
.icon-btn:hover:not(:disabled) { background: var(--bg-sunken); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
form.inline { display: inline; }

/* ---------- Layout ---------- */
.admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; background: var(--panel); color: var(--panel-ink); padding: 18px 12px; }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; color: #fff; text-decoration: none !important; }
.sidebar__logo { display: grid; place-items: center; width: 52px; height: 40px; border-radius: 9px; background: #fff; flex-shrink: 0; }
.sidebar__logo img { width: 46px; height: auto; display: block; }
.sidebar__name { font-weight: 700; font-size: 16px; letter-spacing: -.02em; line-height: 1.15; }
.sidebar__name small { display: block; font-size: 11.5px; font-weight: 500; color: var(--panel-ink-2); letter-spacing: .02em; }
.sidebar__nav { flex: 1; display: flex; flex-direction: column; }
.sidebar__label { padding: 18px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--panel-ink-2); opacity: .8; }
.sidebar__nav a, .sidebar__site { display: flex; align-items: center; gap: 11px; margin: 1px 0; padding: 8px 12px; border-radius: var(--radius); color: var(--panel-ink-2); font-weight: 500; font-size: 14px; text-decoration: none !important; transition: background .15s, color .15s; }
.sidebar__nav a:hover, .sidebar__site:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar__nav a.is-active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.sidebar__text { flex: 1; }
/* coloured menu icons */
.sidebar .ic-dashboard svg { color: #60a5fa; }
.sidebar .ic-messages svg { color: #4ade80; }
.sidebar .ic-services svg { color: #fb923c; }
.sidebar .ic-settings svg { color: #c084fc; }
.sidebar .ic-account svg { color: #93c5fd; }
.sidebar__site svg { color: #38bdf8; }
.badge { background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.sidebar__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--panel-line); }
.who { display: flex; align-items: center; gap: 6px; padding: 8px 2px 0; }
.who form { margin: 0; }
.who__me { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; padding: 4px; border-radius: 8px; text-decoration: none !important; }
.who__me:hover { background: rgba(255,255,255,.06); }
.who__meta { display: flex; flex-direction: column; min-width: 0; }
.who__meta strong { font-size: 13px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who__meta span { font-size: 12px; color: var(--panel-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who__out { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: none; color: #f87171; cursor: pointer; }
.who__out:hover { background: rgba(255,255,255,.08); color: #fca5a5; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.side-scrim { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; font-family: var(--font-2); font-size: 14.5px; color: var(--ink-2);
  background: radial-gradient(900px 340px at 100% -80px, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
              radial-gradient(900px 380px at 0 -120px, color-mix(in srgb, var(--brand) 7%, transparent), transparent 70%), var(--bg); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 28px; background: color-mix(in srgb, var(--bg-elev) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__title { flex: 1; min-width: 0; }
.topbar__crumb { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); line-height: 1.2; }
.topbar h1 { font-size: 18px; font-weight: 700; }
.menu-btn { display: none; }
.hamb { display: grid; gap: 4px; }
.hamb span { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.content { padding: 28px; display: flex; flex-direction: column; gap: 20px; max-width: 1400px; width: 100%; animation: rise .35s ease both; }
.lead { margin: 0; color: var(--ink-3); font-size: 15px; }

/* ---------- Welcome banner (Ghana Vouchers hero colours) ---------- */
.welcome { position: relative; overflow: hidden; isolation: isolate; border-radius: 16px; padding: 26px 28px; color: #c9d6f5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(135deg, #071a3f 0%, #0b2a86 60%, #0f3bb5 100%); box-shadow: var(--sh-2); }
.welcome::before { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(244,123,32,.42), transparent); }
.welcome::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.welcome h2 { color: #fff; font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.welcome p { margin: 4px 0 0; }
.welcome__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.welcome .btn--primary { --b-bg: var(--accent); --b-ink: var(--accent-ink); --b-line: var(--accent); }
.welcome .btn--primary:hover { background: #ff8f3a; }
.welcome .btn--ghost { --b-bg: transparent; --b-ink: #fff; --b-line: rgba(255,255,255,.35); box-shadow: none; }
.welcome .btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Flash ---------- */
.flash { padding: 13px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 500; border: 1px solid; animation: rise .3s ease both; }
.flash--success { background: var(--ok-bg); color: var(--ok); border-color: rgba(6,118,71,.22); }
.flash--error { background: var(--err-bg); color: var(--err); border-color: rgba(180,35,24,.22); }

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { position: relative; overflow: hidden; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--sh-1); color: var(--ink-2); text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
.stat::after { content: ""; position: absolute; right: -50px; top: -70px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%); pointer-events: none; }
.stat:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.stat__chip { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.stat__chip svg { width: 19px; height: 19px; }
.stat__chip--blue { color: #2563eb; background: color-mix(in srgb, #2563eb 13%, transparent); }
.stat__chip--orange { color: #ea580c; background: color-mix(in srgb, #ea580c 13%, transparent); }
.stat__chip--green { color: #16a34a; background: color-mix(in srgb, #16a34a 13%, transparent); }
.stat__chip--purple { color: #7c3aed; background: color-mix(in srgb, #7c3aed 13%, transparent); }
.stat__label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.stat__value { display: block; margin-top: 10px; font-size: 30px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ---------- Panels (cards) ---------- */
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.panel { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--sh-1); transition: box-shadow .2s; }
.panel:hover { box-shadow: var(--sh-2); }
.panel--flush { padding: 0; overflow: hidden; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -20px -20px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, transparent 0%, transparent 60%, var(--tint) 100%); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.panel__head a { font-weight: 600; font-size: 13.5px; }
.panel h2 { display: flex; align-items: center; gap: 9px; font-size: 15.5px; }
.panel__head h2::before, .form > h2::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: var(--bar); flex: none; }
.empty { margin: 0; padding: 36px 20px; color: var(--ink-3); text-align: center; border-radius: 10px;
  background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--ink-3) 5%, transparent) 10px 20px); }
.empty::before { content: ""; display: block; width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 12px; background: var(--bg-elev) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23687385' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.5 5h13L22 12v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6z'/%3E%3C/svg%3E") center no-repeat; box-shadow: var(--sh-1); }

.msg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.msg-list li + li { border-top: 1px solid var(--line); }
.msg-list a { display: flex; gap: 12px; padding: 12px 6px; border-radius: 8px; color: var(--ink-2); text-decoration: none !important; transition: background .15s; }
.msg-list a:hover { background: var(--tint); }
.msg-list__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-sunken); color: var(--ink-2); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex-shrink: 0; }
.msg-list .is-unread .msg-list__avatar { background: var(--brand); color: #fff; }
.msg-list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msg-list__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.msg-list__top strong { color: var(--ink); font-size: 14.5px; }
.msg-list__service { font-size: 12.5px; color: var(--brand); font-weight: 600; }
.msg-list__text { color: var(--ink-3); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 6px; vertical-align: middle; }

.bars { display: flex; flex-direction: column; gap: 14px; }
.bar__label { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.bar__track { height: 8px; background: var(--bg-sunken); border-radius: 99px; overflow: hidden; }
.bar__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform-origin: left; animation: grow .9s cubic-bezier(.2,.8,.2,1) .15s both; }
.quick { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.quick h3 { width: 100%; font-size: 14.5px; }

/* ---------- Toolbar, tabs, search ---------- */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.toolbar p { margin: 0; }
.tabs { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 10px; }
.tabs a { padding: 7px 14px; border-radius: 7px; text-decoration: none; font-weight: 600; font-size: 13.5px; color: var(--ink-3); }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.is-active { background: var(--bg-elev); color: var(--ink); box-shadow: var(--sh-1); }
.search { display: flex; gap: 8px; flex: 0 1 460px; }
.search input { flex: 1; min-width: 0; height: 40px; font: 400 14px var(--font); padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-elev); box-shadow: var(--sh-1); }
.search input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(37,99,235,.14); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 10px 16px; background: var(--bg-sunken); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--tint); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr.is-unread td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.table tr.is-unread strong { color: var(--ink); }
.cell-text { max-width: 360px; color: var(--ink-3); }
.svc-cell { display: flex; align-items: center; gap: 12px; }
.svc-cell img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--on { background: var(--ok-bg); color: var(--ok); border-color: rgba(6,118,71,.25); }
.pill--off { background: var(--bg-sunken); color: var(--ink-3); border-color: var(--line); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a { min-width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; text-decoration: none; }
.pager a.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Message view ---------- */
.message { display: flex; flex-direction: column; gap: 18px; }
.message__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.message__who { display: flex; align-items: center; gap: 14px; }
.message__who .msg-list__avatar { width: 48px; height: 48px; font-size: 16px; background: var(--brand); color: #fff; }
.message__head h2 { font-size: 22px; }
.message__head p { margin: 2px 0 0; }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0; }
.details > div { background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.details dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.details dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.message__body { font-size: 15.5px; line-height: 1.75; background: var(--brand-50); padding: 18px 20px; border-radius: 12px; border-left: 3px solid var(--brand); color: var(--ink); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-actions form { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form--narrow { max-width: 580px; }
.form > h2 { display: flex; align-items: center; gap: 9px; font-size: 15.5px; margin: -20px -20px 0; padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, transparent 0%, transparent 60%, var(--tint) 100%); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form__grid--image { align-items: start; }
.span-2 { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--ink-2); font-size: 13.5px; }
.form input[type=text], .form input[type=email], .form input[type=url], .form input[type=password], .form input[type=number], .form input[type=file], .form textarea, .form select {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line-2); color: var(--ink);
  font: 400 14.5px var(--font); box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
.form input[type=file] { padding: 6px; cursor: pointer; }
.form input[type=file]::file-selector-button { font: 600 13px var(--font); border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 12px; margin-right: 12px; background: var(--bg-sunken); color: var(--ink); cursor: pointer; }
.form textarea { resize: vertical; }
.hint { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.preview { width: 100%; max-width: 320px; height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.save-bar { position: sticky; bottom: 14px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--bg-elev) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }

/* ---------- Sign in (Ghana Vouchers style: dark panel + card) ---------- */
.login-page { background: var(--bg); }
.login { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login__side { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; color: #c9d6f5;
  background: linear-gradient(160deg, #071a3f 0%, #0b2a86 55%, #0f3bb5 100%); }
.login__side img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; mix-blend-mode: luminosity; z-index: -2; }
.login__side::before { content: ""; position: absolute; right: -120px; top: -140px; width: 440px; height: 440px; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(244,123,32,.45), transparent); }
.login__side::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); }
.login__side h2 { color: #fff; font-family: var(--font); font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; max-width: 460px; }
.login__side p { margin: 12px 0 0; max-width: 440px; font-size: 16px; }
.login__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.login__chips span { padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 13px; font-weight: 500; color: #dbe5ff; }
.login__panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login__form { position: relative; overflow: hidden; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -28px rgba(7,26,74,.45); animation: rise .5s ease both; }
.login__form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #3b82f6, var(--accent)); }
.login__logo { width: 170px; height: auto; margin: 4px auto 0; }
.login__form h1 { font-size: 22px; text-align: center; font-family: var(--font); }
.login__form > p { margin: -10px 0 4px; text-align: center; }
.login__form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--ink-2); font-size: 13.5px; }
.login__form input { min-height: 46px; padding: 10px 13px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line-2); font: 400 15px var(--font); color: var(--ink); box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s; }
.login__form input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(37,99,235,.16); }
.login__back { text-align: center; font-size: 13.5px; color: var(--ink-3); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 50; transform: translateX(-100%); transition: transform .25s ease; }
  body.side-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  body.side-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(7,18,40,.5); }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 8px 16px; }
  .content { padding: 18px 16px 32px; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .login { grid-template-columns: 1fr; }
  .login__side { min-height: 240px; padding: 32px 24px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .topbar__site { display: none; }
  .welcome { padding: 22px; }
  .login__form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- background design ---------- */
.main { position: relative; isolation: isolate; }
.main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 520px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 22%, transparent) 1.1px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 70% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 80% 100% at 70% 0%, #000 10%, transparent 75%); }
.main::after { content: ""; position: fixed; right: -180px; bottom: -220px; width: 560px; height: 560px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, #8b5cf6 9%, transparent), transparent); }

/* ---------- more background designs ---------- */
/* welcome banner: radar rings and a dashed route line */
.welcome { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 160' preserveAspectRatio='none'%3E%3Cpath d='M0 140 C 200 60 360 170 560 80 S 760 40 800 30' fill='none' stroke='%23F47B20' stroke-opacity='.45' stroke-width='2' stroke-dasharray='8 9' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
  repeating-radial-gradient(circle at 92% 50%, transparent 0 40px, rgba(255,255,255,.06) 40px 41.5px),
  linear-gradient(135deg, #071a3f 0%, #0b2a86 60%, #0f3bb5 100%); }
/* dark sidebar: dots fading up from the bottom and a blue glow */
.sidebar { isolation: isolate; }
.sidebar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 320px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); }
.sidebar::after { content: ""; position: absolute; left: -100px; top: -100px; width: 300px; height: 300px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(59,130,246,.25), transparent); }
/* cards: a soft corner pattern */
.panel { position: relative; isolation: isolate; }
.panel::before { content: ""; position: absolute; right: 0; top: 0; width: 160px; height: 110px; z-index: -1; pointer-events: none; border-top-right-radius: inherit;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 20%, transparent) 1px, transparent 1.4px); background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%); }
/* sign-in page: rings behind the form */
.login__panel { position: relative; isolation: isolate; overflow: hidden; }
.login__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 60px, color-mix(in srgb, var(--brand) 8%, transparent) 60px 61.5px);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%); mask-image: radial-gradient(circle, #000 20%, transparent 65%); }

/* developer credit */
.dev-credit { margin: 10px 0 0; padding: 10px 8px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 11.5px; line-height: 1.4; color: #8ea0c4; }
.dev-credit a, .dev-credit strong { font-weight: 600; color: #dbe5ff; }
.dev-credit a:hover { color: #fff; text-decoration: underline; }
.dev-credit--login { margin: 4px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line-2); text-align: center; font-size: 12.5px; color: var(--ink-3); }
.dev-credit--login a, .dev-credit--login strong { color: var(--ink-2); }
.dev-credit--login a:hover { color: var(--brand); }

/* ---------- no colour-glow blends ---------- */
.main { background: var(--bg); }
.main::after, .sidebar::after, .stat::after, .welcome::before, .login__side::before { content: none; }
.welcome { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 160' preserveAspectRatio='none'%3E%3Cpath d='M0 140 C 200 60 360 170 560 80 S 760 40 800 30' fill='none' stroke='%23F47B20' stroke-opacity='.45' stroke-width='2' stroke-dasharray='8 9' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
  #0a1f52; }
.login__side { background: #0a1f52; }

/* website colour picker */
.swatches { border: 0; margin: 0; padding: 0; min-width: 0; }
.swatches legend { padding: 0; margin-bottom: 8px; font-weight: 600; color: var(--ink-2); font-size: 13.5px; }
.swatches__row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-elev); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch__dot { width: 36px; height: 36px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.swatch__name { font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.2; }
.swatch:hover { border-color: var(--line-2); }
.swatch:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.form__grid--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* CMS editor */
.cms { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.cms__main, .cms__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cms__side { position: sticky; top: 80px; }
.cms__body { font-family: var(--font); font-size: 15px; line-height: 1.7; min-height: 380px; }
.cms__help { font-size: 13.5px; color: var(--ink-3); }
.cms__help summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.cms__help ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.cms__help code { padding: 1px 6px; border-radius: 6px; background: var(--bg-sunken); font-size: 12.5px; color: var(--ink); }
.cms .preview { width: 100%; border-radius: 10px; }
@media (max-width: 980px) { .cms { grid-template-columns: 1fr; } .cms__side { position: static; } }
.sidebar .ic-pages svg { color: #fbbf24; }
.sidebar .ic-blog svg { color: #f472b6; }
.sidebar .ic-smtp svg { color: #5eead4; }

/* "I'm not a robot" box */
.robot { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 320px; padding: 12px 14px; border-radius: 10px; border: 1px solid #d3d3d3; background: #f9f9f9; box-shadow: 0 1px 2px rgba(0,0,0,.08); font-family: var(--font); }
.robot--google { max-width: none; padding: 0; border: 0; background: none; box-shadow: none; }
.robot__box { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px !important; cursor: pointer; margin: 0; font-weight: 500 !important; color: #222 !important; font-size: 14.5px !important; }
.robot__box input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.robot__tick { position: relative; width: 26px; height: 26px; flex-shrink: 0; border-radius: 4px; border: 2px solid #c1c1c1; background: #fff; transition: border-color .2s; }
.robot__box input:focus-visible + .robot__tick { outline: 2px solid #2563eb; outline-offset: 2px; }
.robot.is-busy .robot__tick { border-color: #4a90e2; border-right-color: transparent; border-radius: 50%; animation: robot-spin .6s linear infinite; }
.robot.is-ok .robot__tick { border-color: transparent; }
.robot.is-ok .robot__tick::after { content: ""; position: absolute; left: 7px; top: 1px; width: 9px; height: 17px; border: solid #0f9d58; border-width: 0 4px 4px 0; transform: rotate(45deg); }
@keyframes robot-spin { to { transform: rotate(360deg); } }
.robot__brand { display: flex; flex-direction: column; align-items: center; color: #4a90e2; }
.robot__brand small { font-size: 10px; color: #777; margin-top: 2px; }
.robot__noscript { margin: 6px 0 0; font-size: 12.5px; color: #b42318; }

/* Email (SMTP) page layout */
.mail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.mail__main, .mail__side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mail__side { position: sticky; top: 80px; }
.mail .panel.form { display: flex; flex-direction: column; gap: 16px; }
.mail__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.mail__row--server { grid-template-columns: minmax(0, 2fr) minmax(90px, .6fr) minmax(110px, .8fr); }
.mail__hint { margin: -6px 0 0; }
.mail__switch { display: flex !important; flex-direction: row !important; align-items: center; gap: 14px !important; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-sunken); cursor: pointer; }
.mail__switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mail__knob { position: relative; width: 44px; height: 26px; flex-shrink: 0; border-radius: 999px; background: var(--line-2); transition: background .2s; }
.mail__knob::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.mail__switch input:checked + .mail__knob { background: var(--brand); }
.mail__switch input:checked + .mail__knob::after { transform: translateX(18px); }
.mail__switch input:focus-visible + .mail__knob { outline: 2px solid var(--focus); outline-offset: 2px; }
.mail__switch strong { display: block; color: var(--ink); font-size: 14.5px; }
.mail__switch small { display: block; color: var(--ink-3); font-weight: 400; font-size: 13px; }
.mail__presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.mail__steps { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.mail .save-bar { position: static; }
@media (max-width: 1100px) { .mail { grid-template-columns: 1fr; } .mail__side { position: static; } }
@media (max-width: 640px) { .mail__row, .mail__row--server { grid-template-columns: 1fr; } }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

/* Confirm modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(7,15,35,.55); backdrop-filter: blur(3px); animation: m-fade .18s ease both; }
.modal__box { position: relative; width: 100%; max-width: 420px; padding: 28px 26px 22px; border-radius: 18px; background: var(--bg-elev); text-align: center; font-family: var(--font);
  box-shadow: 0 30px 70px -20px rgba(7,15,35,.55); animation: m-pop .22s cubic-bezier(.34,1.56,.64,1) both; }
.modal__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fef3f2; color: #d92d20; box-shadow: 0 0 0 8px #fffbfa; }
.modal__box h2 { margin: 16px 0 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.modal__name { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--bg-sunken); color: var(--ink); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.modal__name[hidden] { display: none; }
.modal__box p#confirm-text { margin: 10px 0 0; color: var(--ink-3); font-size: 14px; }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.modal__actions .btn { justify-content: center; min-height: 44px; }
body.modal-open { overflow: hidden; }
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.modal .btn--danger { --b-bg: #d92d20; --b-ink: #fff; --b-line: #d92d20; } .modal .btn--danger:hover { background: #b42318; border-color: #b42318; }

/* Site content: section list + cards */
.sc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.sc__nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev); }
.sc__navtitle { padding: 4px 10px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sc__nav a { padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.sc__nav a:hover { background: var(--bg-sunken); color: var(--ink); text-decoration: none; }
.sc__nav a.is-on { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-weight: 600; }
.sc__navlink { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 !important; padding-top: 12px !important; color: var(--brand) !important; font-weight: 600 !important; }
.sc__form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sc__card { scroll-margin-top: 80px; padding: 0; overflow: hidden; }
.sc__card > .form__grid { padding: 20px 22px 22px; }
.sc__head { padding: 16px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-sunken), var(--bg-elev)); }
.sc__head h2 { margin: 0; }
.sc__head p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-3); }
.form__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.sc__image { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; align-items: center; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--bg-sunken); }
.sc__image .preview { width: 160px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.sc__noimg { width: 160px; height: 110px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-elev); color: var(--ink-3); font-size: 13px; border: 1px solid var(--line); }
.sc .save-bar { position: sticky; bottom: 14px; }
@media (max-width: 1100px) { .sc { grid-template-columns: 1fr; } .sc__nav { position: static; flex-direction: row; flex-wrap: wrap; } .sc__navtitle { display: none; } .sc__navlink { margin-top: 0; border-top: 0; padding-top: 8px !important; } }
@media (max-width: 700px) { .form__grid--3 { grid-template-columns: 1fr !important; } .sc__image { grid-template-columns: 1fr; } }

/* Integrations tabs */
.itabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.itabs a { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s; }
.itabs a:hover { text-decoration: none; border-color: var(--line-2); }
.itabs a.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.itabs strong { display: block; font-size: 14.5px; }
.itabs small { display: block; font-size: 12.5px; color: var(--ink-3); }
.itabs__ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.itabs__ic--mail { background: linear-gradient(135deg, #2dd4bf, #0f766e); }
.itabs__ic--shield { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.itabs .dot { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.itabs .dot--on { background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }

/* Site content as tabs */
.sc--tabs { grid-template-columns: 1fr; gap: 18px; }
.sc__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev); box-shadow: var(--sh-1); }
.sc__tabs a { padding: 9px 14px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.sc__tabs a:hover { background: var(--bg-sunken); color: var(--ink); text-decoration: none; }
.sc__tabs a[aria-selected="true"] { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px var(--brand); }
.sc__card[hidden] { display: none; }
@media (max-width: 700px) { .sc__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }

/* ============ v20: SAB-TECH style dashboard, media, editor, menu, site content ============ */

/* ---- Sidebar menu ---- */
.sidebar__label { margin: 18px 12px 6px; font-size: 10.5px; letter-spacing: .12em; opacity: .7; }
.sidebar__nav a { position: relative; display: flex; align-items: center; gap: 11px; margin: 1px 4px; padding: 7px 10px; border-radius: 10px; color: #c3cde3; font-weight: 500; font-size: 14px; transition: background .15s, color .15s; }
.sidebar__nav a svg { width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: rgba(255,255,255,.06); flex-shrink: 0; transition: background .15s, transform .15s; }
.sidebar__nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.sidebar__nav a:hover svg { background: rgba(255,255,255,.12); transform: scale(1.05); }
.sidebar__nav a.is-active { background: linear-gradient(90deg, rgba(244,123,32,.18), rgba(244,123,32,.04)); color: #fff; font-weight: 600; box-shadow: none; }
.sidebar__nav a.is-active::before { content: ""; position: absolute; left: -4px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); }
.sidebar__nav a.is-active svg { background: var(--accent); color: #fff !important; }
.sidebar__nav .badge { margin-left: auto; }

/* ---- Dashboard ---- */
.stat__sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.stat__chip--purple { background: #f3e8ff; color: #7e22ce; }
.dash { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash__col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel__head p { margin: 2px 0 0; }
.chart { display: grid; grid-template-columns: repeat(14, 1fr); align-items: end; gap: 6px; height: 190px; padding: 6px 2px 0; }
.chart__bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.chart__bar i { display: block; width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #60a5fa, var(--brand)); transition: filter .15s; }
.chart__bar i.is-zero { background: var(--line); }
.chart__bar:hover i { filter: brightness(1.15); }
.chart__val { font-size: 11px; font-weight: 700; color: var(--ink-2); min-height: 14px; }
.chart__bar small { font-size: 11px; color: var(--ink-3); }
.progress { height: 8px; border-radius: 8px; background: var(--bg-sunken); overflow: hidden; margin-bottom: 12px; }
.progress i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #22c55e, #16a34a); }
.checks { display: flex; flex-direction: column; }
.checks__row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.checks__row + .checks__row { border-top: 1px solid var(--line); }
.checks__row:hover { background: var(--tint, var(--bg-sunken)); text-decoration: none; }
.checks__tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); color: transparent; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.checks__row.is-ok .checks__tick { background: #16a34a; border-color: #16a34a; color: #fff; }
.checks__row.is-ok > span:nth-child(2) { color: var(--ink-3); text-decoration: line-through; }
.checks__go { margin-left: auto; color: var(--brand); font-weight: 700; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-grid a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.quick-grid a:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--sh-1); transform: translateY(-2px); }
.qg { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.qg--blue { background: #dbeafe; color: #1d4ed8; } .qg--green { background: #dcfce7; color: #15803d; }
.qg--orange { background: #ffedd5; color: #c2410c; } .qg--purple { background: #f3e8ff; color: #7e22ce; }
.recent { display: flex; flex-direction: column; }
.recent a { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 8px; color: var(--ink); }
.recent a + a { border-top: 1px solid var(--line); }
.recent a:hover { background: var(--tint, var(--bg-sunken)); text-decoration: none; }
.recent__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.recent__main strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent__main small { font-size: 12.5px; color: var(--ink-3); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 12px; color: var(--ink-3); text-align: center; }
.empty-state svg { opacity: .5; }
.empty-state p { margin: 0; font-size: 14px; }
@media (max-width: 1100px) { .dash { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .chart { gap: 3px; height: 150px; } .chart__bar small { font-size: 9.5px; } }

/* ---- Media library ---- */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 20px; border: 2px dashed var(--line-2); background: var(--bg-elev); text-align: center; transition: border-color .15s, background .15s; }
.dropzone.is-drag { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--bg-elev)); }
.dropzone.is-busy { opacity: .6; pointer-events: none; }
.dropzone__ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #ffedd5; color: #c2410c; margin-bottom: 6px; }
.dropzone strong { font-size: 15.5px; color: var(--ink); }
.dropzone label { cursor: pointer; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.media-card { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-elev); box-shadow: var(--sh-1); }
.media-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-sunken); }
.media-card figcaption { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.media-card strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.media-card__actions { display: flex; gap: 12px; margin-top: 6px; }

/* ---- Picker modal ---- */
.modal__box--wide { max-width: 760px; text-align: left; padding: 20px; }
.picker__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.picker__head h2 { margin: 0 !important; font-size: 18px !important; }
.picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 55vh; overflow: auto; padding: 2px; }
.picker__grid button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg-sunken); }
.picker__grid button:hover, .picker__grid button:focus-visible { border-color: var(--brand); outline: none; }
.picker__grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.picker__foot { margin: 14px 0 0; }

/* ---- Rich text editor ---- */
.cms__field { display: flex; flex-direction: column; gap: 6px; }
.cms__label { font-weight: 600; color: var(--ink-2); font-size: 13.5px; }
.rte { border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-elev); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.rte:focus-within { border-color: var(--focus); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.rte__bar { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--bg-sunken); }
.rte__bar button { min-width: 34px; height: 32px; padding: 0 9px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font: 600 13px var(--font); cursor: pointer; }
.rte__bar button:hover:not(:disabled) { background: var(--bg-elev); color: var(--ink); box-shadow: var(--sh-1); }
.rte__bar button.is-on { background: var(--brand); color: #fff; }
.rte__bar button:disabled { opacity: .35; cursor: default; }
.rte__right { margin-left: auto; }
.rte__sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line-2); }
.rte__area { min-height: 380px; padding: 18px 20px; outline: none; font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.rte__area:empty::before { content: attr(data-placeholder); color: var(--ink-3); }
.rte__area > * + * { margin-top: .8em; }
.rte__area h2 { font-size: 22px; font-weight: 800; margin-top: 1.2em; }
.rte__area h3 { font-size: 18px; font-weight: 700; margin-top: 1em; }
.rte__area ul, .rte__area ol { padding-left: 1.4em; }
.rte__area blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--accent); background: #fff7f0; border-radius: 0 10px 10px 0; font-weight: 600; }
.rte__area a { color: var(--brand); text-decoration: underline; }
.rte__area img { max-width: 100%; height: auto; border-radius: 10px; }
.rte__source { display: none; width: 100%; min-height: 380px; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 16px 18px; font: 13px/1.6 ui-monospace, Consolas, monospace !important; }
.rte.is-source .rte__area { display: none; }
.rte.is-source .rte__source { display: block; }

/* ---- Sign-in extras ---- */
.login__forgot { align-self: flex-end; margin-top: -6px; font-size: 13.5px; font-weight: 600; }
.login-page--single { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, #eef3ff, var(--bg) 60%); }
.login-page--single .login__panel { padding: 24px 16px; }

/* ---- Site content: settings-app layout ---- */
.sc--tabs { grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; }
.sc--tabs .sc__tabs { position: sticky; top: 80px; flex-direction: column; flex-wrap: nowrap; gap: 4px; padding: 8px; border-radius: 16px; }
.sc--tabs .sc__tabs a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; white-space: normal; border: 1px solid transparent; }
.sc--tabs .sc__tabs a[aria-selected="true"] { background: color-mix(in srgb, var(--brand) 7%, var(--bg-elev)); border-color: color-mix(in srgb, var(--brand) 30%, transparent); color: var(--ink); box-shadow: none; }
.sc__ti { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.sc__ti--pink { background: #fce7f3; color: #be185d; } .sc__ti--blue { background: #dbeafe; color: #1d4ed8; }
.sc__ti--teal { background: #ccfbf1; color: #0f766e; } .sc__ti--green { background: #dcfce7; color: #15803d; }
.sc__ti--orange { background: #ffedd5; color: #c2410c; } .sc__ti--purple { background: #f3e8ff; color: #7e22ce; }
.sc__ti--slate { background: #e2e8f0; color: #334155; }
.sc__tt { display: flex; flex-direction: column; min-width: 0; }
.sc__tt strong { font-size: 14px; color: var(--ink); }
.sc__tt small { font-size: 12px; font-weight: 400; color: var(--ink-3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc__card { border-radius: 18px; box-shadow: 0 18px 40px -30px rgba(7,26,74,.35); }
.sc__head { padding: 20px 24px; }
.sc__head h2 { font-size: 18px; }
.sc__card > .form__grid { padding: 22px 24px 26px; gap: 18px 20px; }
.sc input[type=text], .sc input[type=email], .sc input[type=url], .sc textarea { background: var(--bg-sunken); border-color: transparent; }
.sc input[type=text]:hover, .sc input[type=email]:hover, .sc input[type=url]:hover, .sc textarea:hover { border-color: var(--line-2); }
.sc input:focus, .sc textarea:focus { background: var(--bg-elev); }
.sc .hint code { padding: 0 5px; border-radius: 5px; background: var(--bg-sunken); color: var(--ink); }
.sc__preview { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(160deg, #071a3f, #0a2366); }
.sc__preview small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8ea3d6; }
.sc__preview span { font-family: "Plus Jakarta Sans", var(--font); font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.2; }
.sc__preview em { font-style: normal; color: #f47b20; }
.sc__image { background: var(--bg-elev); }
input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: 600 13px var(--font); cursor: pointer; transition: background .15s; }
input[type=file]::file-selector-button:hover { background: #1e40af; }
.save-bar__note { display: none; align-items: center; gap: 8px; margin-right: auto; font-size: 13.5px; font-weight: 600; color: #b45309; }
.save-bar__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
.save-bar.is-dirty .save-bar__note { display: inline-flex; }
.save-bar.is-dirty { border-color: #fcd34d; }
@media (max-width: 1100px) { .sc--tabs { grid-template-columns: 1fr; } .sc--tabs .sc__tabs { position: static; flex-direction: row; overflow-x: auto; } .sc--tabs .sc__tabs a { flex: 0 0 auto; } .sc__tt small { display: none; } }
.sidebar .ic-media svg { color: #fb923c; }
