/* ═══════════════════════════════════════════════════════════════
   PouchSavings Admin — Complete Design System (self-contained)
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --adm-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --adm-bg: #f4f6f8;
  --adm-surface: #ffffff;
  --adm-border: #e5e9ef;
  --adm-border-soft: #eef1f5;
  --adm-text: #0b1220;
  --adm-muted: #647089;
  --adm-subtle: #94a0b5;
  --adm-brand: #0d9668;
  --adm-brand-dark: #087a55;
  --adm-brand-soft: #e7f7f0;
  --adm-sidebar: #0a0f1a;
  --adm-sidebar-hover: rgba(255,255,255,.06);
  --adm-sidebar-active: linear-gradient(135deg, #0d9668, #12b981);
  --adm-danger: #dc2626;
  --adm-danger-soft: #fef2f2;
  --adm-warning-soft: #fffbeb;
  --adm-warning: #b45309;
  --adm-shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --adm-shadow: 0 8px 30px rgba(15,23,42,.06);
  --adm-shadow-lg: 0 20px 50px rgba(15,23,42,.10);
  --adm-radius: 16px;
  --adm-radius-lg: 22px;
  --adm-sidebar-w: 272px;
}

*, *::before, *::after { box-sizing: border-box; }
.adm {
  margin: 0;
  font-family: var(--adm-font);
  color: var(--adm-text);
  background: var(--adm-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
.adm a { color: inherit; text-decoration: none; }
.adm img { max-width: 100%; display: block; }
.adm button, .adm input, .adm select, .adm textarea { font: inherit; }

/* ── Sidebar ── */
.adm-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--adm-sidebar-w); z-index: 300;
  background: radial-gradient(circle at 0 0, rgba(16,185,129,.12), transparent 45%), var(--adm-sidebar);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
  color: #fff;
}
.adm-brand {
  padding: 1.35rem 1.25rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.adm-brand-link {
  display: flex; align-items: center; gap: .85rem;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
}
.adm-brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--adm-sidebar-active);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(16,185,129,.35);
}
.adm-brand small {
  display: block; margin-top: .45rem; padding-left: 3.35rem;
  color: rgba(255,255,255,.45); font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.adm-nav {
  flex: 1; padding: 1rem .85rem; display: grid; gap: .35rem; align-content: start;
}
.adm-nav-label {
  padding: .5rem .85rem .25rem; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.35);
}
.adm-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .78rem .95rem; border-radius: 14px;
  color: rgba(255,255,255,.62); font-weight: 600; font-size: .9rem;
  transition: .18s ease;
}
.adm-nav a:hover { background: var(--adm-sidebar-hover); color: #fff; }
.adm-nav a.active {
  background: var(--adm-sidebar-active); color: #fff;
  box-shadow: 0 8px 24px rgba(13,150,104,.35);
}
.adm-sidebar-foot {
  padding: 1rem; border-top: 1px solid rgba(255,255,255,.07);
}
.adm-user {
  display: flex; gap: .75rem; align-items: center;
  padding: .65rem; border-radius: 14px; background: rgba(255,255,255,.04);
  margin-bottom: .65rem;
}
.adm-user-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--adm-sidebar-active);
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.adm-user strong { display: block; font-size: .86rem; }
.adm-user small { color: rgba(255,255,255,.45); font-size: .72rem; word-break: break-all; }
.adm-logout {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .65rem; border-radius: 10px;
  color: #fca5a5; font-size: .86rem; font-weight: 600;
}
.adm-logout:hover { background: rgba(220,38,38,.12); color: #fecaca; }

/* ── Shell ── */
.adm-shell { margin-left: var(--adm-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.adm-topbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.75rem;
  background: rgba(244,246,248,.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--adm-border-soft);
}
.adm-topbar-spacer { flex: 1; }
.adm-menu-btn { display: none; }
.adm-main { padding: 0 1.75rem 2rem; flex: 1; }

/* ── Typography & hero ── */
.adm-hero {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem; padding: 1.75rem 0 1.5rem;
}
.adm-eyebrow {
  margin: 0 0 .35rem; font-size: .72rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--adm-brand);
}
.adm-h1 {
  margin: 0; font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
}
.adm-lead { margin: .55rem 0 0; color: var(--adm-muted); font-size: .98rem; max-width: 56ch; }
.adm-h2 { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.adm-h3 { margin: 0; font-size: .98rem; font-weight: 800; letter-spacing: -.02em; }

/* ── Buttons ── */
.adm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 12px; padding: .72rem 1.15rem;
  font-weight: 700; font-size: .88rem; cursor: pointer; transition: .18s ease;
  white-space: nowrap;
}
.adm-btn-primary {
  background: var(--adm-brand); color: #fff;
  box-shadow: 0 6px 20px rgba(13,150,104,.28);
}
.adm-btn-primary:hover { background: var(--adm-brand-dark); transform: translateY(-1px); }
.adm-btn-ghost {
  background: var(--adm-surface); color: var(--adm-muted);
  border: 1px solid var(--adm-border);
}
.adm-btn-ghost:hover { color: var(--adm-text); border-color: #cbd5e1; }
.adm-btn-danger { color: var(--adm-danger); }
.adm-btn-danger:hover { background: var(--adm-danger-soft); border-color: #fecaca; }
.adm-btn-sm { padding: .52rem .85rem; font-size: .82rem; border-radius: 10px; }
.adm-btn-block { width: 100%; }
.adm-icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: var(--adm-surface); border: 1px solid var(--adm-border);
  display: grid; place-items: center; cursor: pointer; color: var(--adm-muted);
}

/* ── Toasts ── */
.adm-toast {
  padding: .85rem 1rem; border-radius: 14px; margin-bottom: 1rem;
  font-size: .88rem; font-weight: 600;
}
.adm-toast-success { background: var(--adm-brand-soft); color: #065f46; border: 1px solid #a7f3d0; }
.adm-toast-error { background: var(--adm-danger-soft); color: #991b1b; border: 1px solid #fecaca; }

/* ── Toolbar ── */
.adm-toolbar {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  margin-bottom: 1.25rem;
}
.adm-search {
  flex: 1; min-width: 220px; max-width: 360px;
  padding: .72rem 1rem .72rem 2.65rem; border-radius: 14px;
  border: 1px solid var(--adm-border); background: var(--adm-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2394a0b5' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3Cpath d='m16 16-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: .95rem center;
  box-shadow: var(--adm-shadow-sm);
}
.adm-search:focus { outline: none; border-color: var(--adm-brand); box-shadow: 0 0 0 4px rgba(13,150,104,.12); }
.adm-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.adm-filter {
  padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--adm-border);
  background: var(--adm-surface); color: var(--adm-muted); font-size: .82rem; font-weight: 700;
  cursor: pointer; transition: .15s;
}
.adm-filter:hover, .adm-filter.active {
  background: var(--adm-brand-soft); border-color: #6ee7b7; color: var(--adm-brand-dark);
}

/* ── Metrics ── */
.adm-metrics {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-bottom: 1.5rem;
}
.adm-metric {
  background: var(--adm-surface); border: 1px solid var(--adm-border-soft);
  border-radius: var(--adm-radius); padding: 1.15rem 1.2rem;
  box-shadow: var(--adm-shadow-sm); position: relative; overflow: hidden;
}
.adm-metric::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--metric-accent, var(--adm-brand));
}
.adm-metric-val {
  display: block; font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; line-height: 1;
}
.adm-metric-label { display: block; margin-top: .35rem; color: var(--adm-muted); font-size: .78rem; font-weight: 600; }
.adm-metric-icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  margin-bottom: .85rem; background: var(--adm-brand-soft); color: var(--adm-brand);
}

/* ── Panels & grids ── */
.adm-grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.25rem; }
.adm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.adm-card {
  background: var(--adm-surface); border: 1px solid var(--adm-border-soft);
  border-radius: var(--adm-radius-lg); box-shadow: var(--adm-shadow-sm); overflow: hidden;
}
.adm-card-head {
  padding: 1.15rem 1.35rem; border-bottom: 1px solid var(--adm-border-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.adm-card-sub { margin: .2rem 0 0; color: var(--adm-subtle); font-size: .8rem; font-weight: 500; }
.adm-card-body { padding: 1.15rem 1.35rem; }

/* ── Business profile cards ── */
.adm-biz-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.15rem;
}
.adm-biz-card {
  background: var(--adm-surface); border: 1px solid var(--adm-border-soft);
  border-radius: var(--adm-radius-lg); overflow: hidden;
  box-shadow: var(--adm-shadow-sm); transition: .2s ease;
  display: flex; flex-direction: column;
}
.adm-biz-card:hover { transform: translateY(-3px); box-shadow: var(--adm-shadow); }
.adm-biz-card.is-archived { opacity: .72; }
.adm-biz-banner {
  height: 96px; background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  background-size: cover; background-position: center; position: relative;
}
.adm-biz-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.25));
}
.adm-biz-tier {
  position: absolute; top: .75rem; right: .75rem; z-index: 1;
  padding: .28rem .65rem; border-radius: 999px; font-size: .68rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
}
.adm-biz-tier-featured { background: #fef3c7; color: #92400e; }
.adm-biz-tier-premium { background: #ede9fe; color: #5b21b6; }
.adm-biz-tier-standard { background: rgba(255,255,255,.88); color: #475569; }
.adm-biz-body { padding: 0 1.15rem 1.15rem; margin-top: -28px; position: relative; flex: 1; display: flex; flex-direction: column; }
.adm-biz-logo {
  width: 64px; height: 64px; border-radius: 18px; object-fit: cover;
  border: 3px solid var(--adm-surface); box-shadow: var(--adm-shadow-sm);
  background: var(--adm-brand-soft);
}
.adm-biz-logo-fallback {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  border: 3px solid var(--adm-surface); background: var(--adm-sidebar-active); color: #fff;
  box-shadow: var(--adm-shadow-sm);
}
.adm-biz-name { margin: .75rem 0 .15rem; font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; }
.adm-biz-tagline { margin: 0; color: var(--adm-muted); font-size: .84rem; line-height: 1.45; }
.adm-biz-meta {
  display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem;
}
.adm-biz-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .32rem .65rem; border-radius: 999px;
  background: #f8fafc; border: 1px solid var(--adm-border-soft);
  font-size: .74rem; font-weight: 700; color: var(--adm-muted);
}
.adm-biz-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
  margin-top: auto; padding-top: 1rem;
}
.adm-biz-stat {
  text-align: center; padding: .55rem .35rem; border-radius: 12px; background: #f8fafc;
}
.adm-biz-stat strong { display: block; font-size: .95rem; font-weight: 800; }
.adm-biz-stat span { font-size: .68rem; color: var(--adm-subtle); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.adm-biz-actions {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .45rem; margin-top: .85rem;
}
.adm-biz-actions form { margin: 0; }
.adm-biz-actions .adm-btn { width: 100%; padding-inline: .5rem; }

/* ── Coupon cards ── */
.adm-coupon-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.15rem;
}
.adm-coupon-card {
  background: var(--adm-surface); border: 1px solid var(--adm-border-soft);
  border-radius: var(--adm-radius-lg); overflow: hidden;
  box-shadow: var(--adm-shadow-sm); transition: .2s;
  display: flex; flex-direction: column;
}
.adm-coupon-card:hover { transform: translateY(-3px); box-shadow: var(--adm-shadow); }
.adm-coupon-media {
  aspect-ratio: 16/10; background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  position: relative; overflow: hidden;
}
.adm-coupon-media img { width: 100%; height: 100%; object-fit: cover; }
.adm-coupon-discount {
  position: absolute; top: .75rem; left: .75rem;
  padding: .4rem .75rem; border-radius: 999px;
  background: var(--adm-brand); color: #fff;
  font-size: .78rem; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(13,150,104,.35);
}
.adm-coupon-featured {
  position: absolute; top: .75rem; right: .75rem;
  padding: .28rem .6rem; border-radius: 999px;
  background: #fef3c7; color: #92400e; font-size: .68rem; font-weight: 800;
}
.adm-coupon-body { padding: 1.1rem 1.15rem 1.15rem; flex: 1; display: flex; flex-direction: column; }
.adm-coupon-title { margin: 0 0 .25rem; font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.adm-coupon-biz { margin: 0; color: var(--adm-muted); font-size: .82rem; font-weight: 600; }
.adm-coupon-perf {
  display: flex; gap: 1rem; margin-top: .85rem; padding-top: .85rem;
  border-top: 1px solid var(--adm-border-soft);
}
.adm-coupon-perf div strong { display: block; font-size: .95rem; font-weight: 800; }
.adm-coupon-perf div span { font-size: .68rem; color: var(--adm-subtle); font-weight: 700; text-transform: uppercase; }
.adm-coupon-exp {
  margin-top: .65rem; font-size: .78rem; font-weight: 600; color: var(--adm-muted);
}
.adm-coupon-exp.is-expired { color: var(--adm-danger); }
.adm-coupon-actions { display: flex; gap: .45rem; margin-top: .85rem; }
.adm-coupon-actions form { margin: 0; flex: 1; }
.adm-coupon-actions .adm-btn { flex: 1; }

/* ── Category cards ── */
.adm-cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem;
}
.adm-cat-card {
  background: var(--adm-surface); border: 1px solid var(--adm-border-soft);
  border-radius: var(--adm-radius); padding: 1.15rem;
  box-shadow: var(--adm-shadow-sm); transition: .18s;
}
.adm-cat-card:hover { box-shadow: var(--adm-shadow); transform: translateY(-2px); }
.adm-cat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--adm-brand-soft); display: grid; place-items: center;
  font-size: 1.35rem; margin-bottom: .85rem;
}
.adm-cat-name { margin: 0 0 .25rem; font-weight: 800; font-size: .98rem; }
.adm-cat-slug { margin: 0 0 .85rem; font-size: .78rem; color: var(--adm-subtle); font-family: ui-monospace, monospace; }
.adm-cat-count { font-size: .82rem; font-weight: 700; color: var(--adm-brand-dark); }

/* ── Analytics ── */
.adm-rank-list { display: grid; gap: .55rem; padding: .35rem 0 .5rem; }
.adm-rank-item {
  display: grid; grid-template-columns: 32px 1fr auto; gap: .85rem; align-items: center;
  padding: .75rem .85rem; border-radius: 14px; transition: .15s;
}
.adm-rank-item:hover { background: #f8fafc; }
.adm-rank-num {
  width: 32px; height: 32px; border-radius: 10px; background: #f1f5f9;
  display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: var(--adm-muted);
}
.adm-rank-title { font-size: .88rem; font-weight: 700; }
.adm-rank-sub { font-size: .76rem; color: var(--adm-subtle); margin-top: .1rem; }
.adm-bar { height: 7px; background: #eef1f5; border-radius: 999px; overflow: hidden; margin-top: .45rem; }
.adm-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--adm-brand); min-width: 4px; }
.adm-bar-rose > span { background: linear-gradient(90deg, #fb7185, #e11d48); }
.adm-bar-indigo > span { background: linear-gradient(90deg, #818cf8, #4f46e5); }
.adm-rank-val { font-weight: 800; font-size: .92rem; min-width: 2rem; text-align: right; }

.adm-activity { display: grid; gap: 0; }
.adm-activity-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: .85rem 1.35rem; border-bottom: 1px solid var(--adm-border-soft);
}
.adm-activity-row:last-child { border-bottom: 0; }
.adm-pill {
  display: inline-flex; padding: .28rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
}
.adm-pill-click { background: #ffe4e6; color: #be123c; }
.adm-pill-view { background: #e0e7ff; color: #4338ca; }
.adm-pill-active { background: var(--adm-brand-soft); color: var(--adm-brand-dark); }
.adm-pill-muted { background: #f1f5f9; color: var(--adm-muted); }
.adm-pill-warn { background: var(--adm-warning-soft); color: var(--adm-warning); }

/* ── Studio forms ── */
.adm-studio {
  display: grid; grid-template-columns: 220px 1fr 320px; gap: 1.15rem; align-items: start;
}
.adm-studio-nav {
  position: sticky; top: 5rem;
  background: var(--adm-surface); border: 1px solid var(--adm-border-soft);
  border-radius: var(--adm-radius-lg); padding: .65rem; box-shadow: var(--adm-shadow-sm);
}
.adm-studio-nav button {
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: .72rem .85rem; border-radius: 12px; font-weight: 700; font-size: .86rem;
  color: var(--adm-muted); cursor: pointer; transition: .15s;
}
.adm-studio-nav button:hover { background: #f8fafc; color: var(--adm-text); }
.adm-studio-nav button.active { background: var(--adm-brand-soft); color: var(--adm-brand-dark); }
.adm-studio-panel { display: none; }
.adm-studio-panel.active { display: block; }
.adm-studio-main .adm-card { margin-bottom: 0; }
.adm-studio-preview {
  position: sticky; top: 5rem;
}
.adm-preview-card {
  background: var(--adm-surface); border: 1px solid var(--adm-border-soft);
  border-radius: var(--adm-radius-lg); overflow: hidden; box-shadow: var(--adm-shadow);
}
.adm-preview-label {
  padding: .85rem 1rem; border-bottom: 1px solid var(--adm-border-soft);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--adm-subtle);
}
.adm-preview-banner { height: 88px; background: linear-gradient(135deg, #cbd5e1, #64748b); background-size: cover; background-position: center; }
.adm-preview-body { padding: 0 1rem 1rem; margin-top: -24px; }
.adm-preview-logo {
  width: 56px; height: 56px; border-radius: 16px; object-fit: cover;
  border: 3px solid #fff; background: var(--adm-brand-soft);
}
.adm-preview-logo-fallback {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 800; border: 3px solid #fff; background: var(--adm-brand); color: #fff;
}
.adm-preview-name { margin: .65rem 0 .15rem; font-weight: 800; font-size: 1rem; }
.adm-preview-tagline { margin: 0; color: var(--adm-muted); font-size: .82rem; }
.adm-preview-meta { margin-top: .75rem; display: grid; gap: .35rem; font-size: .78rem; color: var(--adm-subtle); font-weight: 600; }
.adm-form-section { padding: 1.25rem 1.35rem 1.35rem; }
.adm-field { display: block; margin-bottom: 1rem; }
.adm-field > span {
  display: block; margin-bottom: .4rem; font-size: .8rem; font-weight: 700; color: #334155;
}
.adm-field-hint { display: block; margin-top: .35rem; font-size: .74rem; color: var(--adm-subtle); }
.adm-input, .adm-select, .adm-textarea, .adm-file {
  width: 100%; padding: .75rem .95rem; border-radius: 12px;
  border: 1px solid var(--adm-border); background: #fff; transition: .15s;
}
.adm-input:focus, .adm-select:focus, .adm-textarea:focus {
  outline: none; border-color: var(--adm-brand); box-shadow: 0 0 0 4px rgba(13,150,104,.1);
}
.adm-textarea { resize: vertical; min-height: 110px; }
.adm-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.adm-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.adm-checks { display: grid; gap: .65rem; }
.adm-check {
  display: flex !important; align-items: center; gap: .55rem;
  font-weight: 600 !important; color: #334155; cursor: pointer;
}
.adm-form-foot {
  display: flex; justify-content: flex-end; gap: .65rem;
  padding: 1rem 1.35rem; border-top: 1px solid var(--adm-border-soft); background: #fafbfc;
}
.adm-studio-save {
  display: flex; justify-content: flex-end; gap: .65rem;
  padding: 1rem 0 0; margin-top: .5rem;
  position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, var(--adm-bg) 30%);
  padding-bottom: .5rem;
}

/* ── Dashboard extras ── */
.adm-dash-hero {
  background: linear-gradient(135deg, #0a0f1a 0%, #152238 55%, #0d9668 160%);
  border-radius: var(--adm-radius-lg); padding: 1.75rem 1.85rem; color: #fff;
  margin-bottom: 1.35rem; box-shadow: var(--adm-shadow-lg); position: relative; overflow: hidden;
}
.adm-dash-hero::before {
  content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: rgba(16,185,129,.18); filter: blur(10px); top: -80px; right: -40px;
}
.adm-dash-hero h1 { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; position: relative; }
.adm-dash-hero p { margin: .45rem 0 0; color: rgba(255,255,255,.72); max-width: 50ch; position: relative; }
.adm-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; padding: .35rem 0 .15rem; }
.adm-quick {
  display: flex; gap: .85rem; align-items: center; padding: .95rem 1rem;
  border-radius: 16px; border: 1px solid var(--adm-border-soft); transition: .18s;
}
.adm-quick:hover { background: #f8fafc; border-color: #cbd5e1; transform: translateY(-1px); }
.adm-quick-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; flex-shrink: 0;
}
.adm-quick strong { display: block; font-size: .9rem; }
.adm-quick small { color: var(--adm-subtle); font-size: .76rem; font-weight: 600; }
.adm-empty {
  text-align: center; padding: 2.5rem 1.5rem; color: var(--adm-muted);
}
.adm-empty-icon { font-size: 2rem; margin-bottom: .65rem; opacity: .65; }

/* ── Login ── */
.adm-login-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.adm-login-showcase {
  background: linear-gradient(145deg, #0a0f1a, #0d9668 120%);
  color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.adm-login-showcase::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.08), transparent 50%);
}
.adm-login-showcase h1 {
  position: relative; margin: 0; font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
}
.adm-login-showcase p {
  position: relative; margin: 1rem 0 0; color: rgba(255,255,255,.72); font-size: 1.02rem; max-width: 36ch;
}
.adm-login-panel {
  display: grid; place-items: center; padding: 2rem; background: var(--adm-bg);
}
.adm-login-box {
  width: min(420px, 100%); background: var(--adm-surface);
  border: 1px solid var(--adm-border-soft); border-radius: var(--adm-radius-lg);
  padding: 2rem; box-shadow: var(--adm-shadow);
}
.adm-login-box h2 { margin: 0 0 .35rem; font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }
.adm-login-box > p { margin: 0 0 1.35rem; color: var(--adm-muted); }

/* ── Responsive ── */
@media (max-width: 1280px) {
  .adm-metrics { grid-template-columns: repeat(3, 1fr); }
  .adm-studio { grid-template-columns: 180px 1fr; }
  .adm-studio-preview { grid-column: 1 / -1; position: static; }
}
@media (max-width: 1024px) {
  .adm-grid-2, .adm-grid-3, .adm-quick-grid { grid-template-columns: 1fr; }
  .adm-login-wrap { grid-template-columns: 1fr; }
  .adm-login-showcase { min-height: 220px; padding: 2rem; }
}
@media (max-width: 900px) {
  .adm-sidebar { transform: translateX(-105%); transition: .28s ease; box-shadow: var(--adm-shadow-lg); }
  .adm-sidebar.open { transform: translateX(0); }
  .adm-shell { margin-left: 0; }
  .adm-menu-btn { display: grid; }
  .adm-main { padding-inline: 1rem; }
  .adm-hero { flex-direction: column; align-items: stretch; }
  .adm-studio { grid-template-columns: 1fr; }
  .adm-studio-nav { position: static; display: flex; flex-wrap: wrap; gap: .35rem; }
  .adm-studio-nav button { width: auto; }
  .adm-row-2, .adm-row-3 { grid-template-columns: 1fr; }
  .adm-metrics { grid-template-columns: repeat(2, 1fr); }
}