/* ============================================================
   PR Monk — Customer Dashboard Styles
   Shared by: index, marketplace, orders, order, favorites,
              wallet, reports, membership, settings, login
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --bg-soft-2: #f0f0f7;
  --bg-ink: #0b0b14;
  --bg-ink-2: #11111d;
  --ink: #0b0b14;
  --ink-2: #1f2030;
  --muted: #5b5d72;
  --muted-2: #8a8da3;
  --line: #ececf2;
  --line-2: #e2e3eb;

  --brand: #6366f1;
  --brand-2: #8b5cf6;
  --brand-3: #ec4899;
  --accent: #22d3ee;
  --green: #10b981;
  --red: #ef4444;
  --amber: #f59e0b;
  --blue: #3b82f6;

  --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, #eef2ff 0%, #fdf4ff 100%);
  --grad-ink: linear-gradient(180deg, #0b0b14 0%, #11111d 100%);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 17, 33, 0.06), 0 1px 3px rgba(15, 17, 33, 0.04);
  --shadow: 0 8px 24px -10px rgba(15, 17, 33, 0.18), 0 2px 6px rgba(15, 17, 33, 0.06);
  --shadow-lg: 0 24px 48px -16px rgba(15, 17, 33, 0.22), 0 6px 14px rgba(15, 17, 33, 0.08);
  --shadow-glow: 0 16px 40px -16px rgba(99, 102, 241, 0.5);

  --t: 200ms cubic-bezier(0.2, 0.7, 0.2, 1);

  --sidebar-w: 252px;
  --topbar-h: 64px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }

/* ============== APP SHELL ============== */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ============== SIDEBAR ============== */
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 30;
}
.sidebar__brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.brand__mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 9px;
  box-shadow: var(--shadow-glow);
}
.brand__mark svg { width: 18px; height: 18px; }

.sidebar__group {
  padding: 14px 12px;
  border-top: 1px solid var(--line);
}
.sidebar__group:first-of-type { border-top: 0; }
.sidebar__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 6px 10px 8px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
  position: relative;
  transition: background var(--t), color var(--t);
}
.nav-item:hover { background: var(--bg-soft); color: var(--ink); }
.nav-item.is-active {
  background: var(--bg-soft);
  color: var(--brand);
  font-weight: 600;
}
.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad-primary);
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
.nav-item .nav__count {
  margin-left: auto;
  background: var(--bg-soft-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.nav-item.is-active .nav__count {
  background: rgba(99, 102, 241, 0.12);
  color: var(--brand);
}

.sidebar__upgrade {
  margin: 14px 14px 18px;
  padding: 18px;
  border-radius: 14px;
  background: var(--grad-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sidebar__upgrade::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.4), transparent 60%),
              radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.4), transparent 60%);
  pointer-events: none;
}
.sidebar__upgrade > * { position: relative; }
.sidebar__upgrade h4 {
  font-size: 15px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.sidebar__upgrade p {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* ============== TOPBAR ============== */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}
.topbar__search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.topbar__search input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 0 14px 0 38px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color var(--t), background var(--t);
}
.topbar__search input::placeholder { color: var(--muted-2); }
.topbar__search input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}
.topbar__search svg {
  position: absolute;
  left: 12px; top: 10px;
  width: 18px; height: 18px;
  color: var(--muted-2);
}
.topbar__kbd {
  position: absolute;
  right: 10px; top: 8px;
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.topbar__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink-2);
  cursor: pointer;
  position: relative;
  transition: background var(--t), border-color var(--t);
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn .dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-3);
  border: 2px solid #fff;
}
.topbar__user {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--t);
}
.topbar__user:hover { border-color: #d8d9e3; }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.avatar--lg { width: 44px; height: 44px; font-size: 15px; }
.topbar__user b { font-size: 13px; font-weight: 600; }
.topbar__user span { font-size: 11.5px; color: var(--muted-2); display: block; }

/* ============== PAGE LAYOUT ============== */
.page {
  padding: 28px 32px 60px;
  /*max-width: 1320px;*/
  width: 100%;
}
.page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page__title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.page__sub { font-size: 14px; color: var(--muted); margin: 0; }
.page__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(11, 11, 20, 0.45); }
.btn--brand {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--brand:hover { transform: translateY(-1px); }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: #cfd0dc; }
.btn--soft {
  background: var(--bg-soft);
  color: var(--ink);
}
.btn--soft:hover { background: var(--bg-soft-2); }
.btn--sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn--lg { padding: 12px 20px; font-size: 14.5px; border-radius: 11px; }
.btn--block { width: 100%; }
.btn--danger { background: #fff; color: var(--red); border: 1px solid #fbd5d5; }
.btn--danger:hover { background: #fef2f2; }

/* ============== CARDS ============== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.card--pad-sm { padding: 16px; }
.card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.card__title { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.card__sub { font-size: 12.5px; color: var(--muted-2); margin: 2px 0 0; }

/* ============== STATS / KPI ============== */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .kpi-grid { grid-template-columns: 1fr; } }

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  position: relative;
  transition: border-color var(--t), transform var(--t);
}
.kpi:hover { border-color: #d8d9e3; transform: translateY(-1px); }
.kpi__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.kpi__icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--grad-soft);
  color: var(--brand);
}
.kpi__icon svg { width: 18px; height: 18px; }
.kpi__icon--green { background: rgba(16, 185, 129, 0.1); color: var(--green); }
.kpi__icon--amber { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.kpi__icon--blue  { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.kpi__icon--pink  { background: rgba(236, 72, 153, 0.1); color: var(--brand-3); }
.kpi__lbl { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.kpi__val { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.kpi__delta { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.kpi__delta--up { color: var(--green); background: rgba(16, 185, 129, 0.1); }
.kpi__delta--down { color: var(--red); background: rgba(239, 68, 68, 0.1); }
.kpi__delta--neu { color: var(--muted); background: var(--bg-soft); }
.kpi__foot { font-size: 12px; color: var(--muted-2); margin-top: 8px; display: flex; align-items: center; gap: 6px; }

/* ============== TABLES ============== */
.tbl-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tbl-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 12px;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
}
.tbl th, .tbl td {
  text-align: left;
  padding: 14px 22px;
  font-size: 13.5px;
  vertical-align: middle;
}
.tbl th {
  background: var(--bg-soft);
  color: var(--muted);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.tbl tbody tr { border-bottom: 1px solid var(--line); transition: background var(--t); }
.tbl tbody tr:last-child { border-bottom: 0; }
.tbl tbody tr:hover { background: #fafaff; }
.tbl td b { font-weight: 600; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }

.site-cell { display: flex; align-items: center; gap: 10px; }
.favicon {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}
.favicon--a { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.favicon--b { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.favicon--c { background: linear-gradient(135deg, #f59e0b, #ec4899); }
.favicon--d { background: linear-gradient(135deg, #10b981, #14b8a6); }
.favicon--e { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.favicon--f { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.favicon--lg { width: 44px; height: 44px; font-size: 16px; border-radius: 10px; }

/* ============== BADGES / STATUS ============== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.badge--blue   { background: rgba(59, 130, 246, 0.1);  color: var(--blue); }
.badge--green  { background: rgba(16, 185, 129, 0.1); color: var(--green); }
.badge--amber  { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.badge--red    { background: rgba(239, 68, 68, 0.1);  color: var(--red); }
.badge--violet { background: rgba(139, 92, 246, 0.1); color: var(--brand-2); }
.badge--gray   { background: var(--bg-soft-2);          color: var(--muted); }
.badge--solid {
  background: var(--grad-primary);
  color: #fff;
}
.badge--solid::before { display: none; }

/* ============== TABS ============== */
.tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 11px;
  border: 1px solid var(--line);
}
.tab {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--t), color var(--t);
  display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.tab .count {
  font-size: 11px;
  background: var(--bg-soft-2);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.tab.is-active .count { background: rgba(99, 102, 241, 0.12); color: var(--brand); }

/* ============== CHIPS ============== */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.chip:hover { border-color: #d8d9e3; }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip .x { color: var(--muted-2); margin-left: 2px; }

/* ============== FORM FIELDS ============== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="search"],
.field select,
.field textarea,
.input, .select, .textarea {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea, .textarea { height: auto; padding: 10px 12px; min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.field-hint { font-size: 12px; color: var(--muted-2); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--muted-2); }
.input-icon input { padding-left: 38px; }

/* ============== EMPTY STATES ============== */
.empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}
.empty__icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--grad-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.empty h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.empty p { margin: 0 auto 18px; max-width: 360px; }

/* ============== SITE GRID (Marketplace / Favorites) ============== */
.sites-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .sites-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .sites-grid { grid-template-columns: 1fr; } }

.site-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.site-card:hover { border-color: #d2d3df; transform: translateY(-2px); box-shadow: var(--shadow); }
.site-card__top { display: flex; align-items: flex-start; gap: 12px; }
.site-card__title { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.site-card__niche { font-size: 12px; color: var(--muted-2); }
.fav-btn {
  margin-left: auto;
  width: 32px; height: 32px;
  background: var(--bg-soft);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t);
}
.fav-btn:hover { background: var(--bg-soft-2); color: var(--brand-3); }
.fav-btn.is-on { color: var(--brand-3); background: rgba(236, 72, 153, 0.1); }

.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  background: var(--bg-soft);
  padding: 10px;
  border-radius: 10px;
}
.metrics > div { display: flex; flex-direction: column; align-items: center; }
.metrics b { font-size: 14px; font-weight: 700; }
.metrics span { font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.02em; text-transform: uppercase; }

.site-card__price {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 4px;
}
.site-card__price-l { display: flex; flex-direction: column; }
.price-strike { color: var(--muted-2); text-decoration: line-through; font-size: 12px; }
.price-now { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.price-tag { font-size: 11px; color: var(--brand); font-weight: 600; }

/* ============== TWO-COLUMN PAGE (filters + list) ============== */
.split { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }

/* ============== FILTER PANEL ============== */
.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  position: sticky; top: calc(var(--topbar-h) + 16px);
}
.filters__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.filters__head b { font-size: 14px; }
.filters__head a { font-size: 12px; color: var(--brand); font-weight: 600; }
.filter-group { padding: 14px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group h5 { font-size: 12.5px; margin: 0 0 10px; font-weight: 600; }
.filter-list { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.filter-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.filter-list input { accent-color: var(--brand); }
.filter-list .count { margin-left: auto; color: var(--muted-2); font-size: 12px; }

.range {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--bg-soft-2); border-radius: 999px;
  margin: 14px 0 6px;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand); cursor: pointer;
  box-shadow: 0 2px 6px rgba(99,102,241,0.4);
}
.range-vals { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ============== ORDER STEPPER ============== */
.stepper { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; overflow-x: auto; }
.step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  flex: 1;
  min-width: 0;
}
.step__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft-2);
  color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.step__txt { display: flex; flex-direction: column; min-width: 0; }
.step__lbl { font-size: 13px; font-weight: 600; }
.step__time { font-size: 11.5px; color: var(--muted-2); }
.step__bar { flex: 1; height: 2px; background: var(--bg-soft-2); margin: 0 4px; min-width: 12px; }
.step.is-done .step__num { background: rgba(16,185,129,0.15); color: var(--green); }
.step.is-done + .step__bar { background: var(--green); }
.step.is-current .step__num { background: var(--grad-primary); color: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,0.18); }

/* ============== CHAT / MESSAGES ============== */
.chat { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 14px; }
.msg { display: flex; gap: 12px; }
.msg__bubble {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  max-width: 580px;
  line-height: 1.55;
}
.msg__name { font-size: 12px; font-weight: 700; margin-bottom: 2px; color: var(--ink-2); }
.msg__time { font-size: 11px; color: var(--muted-2); margin-top: 6px; display: block; }
.msg--me { flex-direction: row-reverse; }
.msg--me .msg__bubble { background: var(--ink); color: #fff; }
.msg--me .msg__name, .msg--me .msg__time { text-align: right; color: rgba(255,255,255,0.7); }
.msg--me .msg__name { color: var(--ink-2); }

.composer {
  display: flex; align-items: center; gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.composer textarea {
  flex: 1;
  border: 0;
  resize: none;
  height: 38px;
  padding: 8px 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: transparent;
}

/* ============== UTIL ============== */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row--end { justify-content: flex-end; }
.row--between { justify-content: space-between; }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.spaced > * + * { margin-top: 18px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }
.hide-md { display: initial; }
.show-md { display: none; }
@media (max-width: 800px) {
  .hide-md { display: none; }
  .show-md { display: initial; }
}
.scroll-x { overflow-x: auto; }
.scroll-x .tbl { min-width: 720px; }

/* Wallet specifics */
.wallet-card {
  background: var(--grad-ink);
  border-radius: var(--r-xl);
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.wallet-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(99,102,241,0.4), transparent 60%),
              radial-gradient(circle at 0% 100%, rgba(236,72,153,0.35), transparent 60%);
  pointer-events: none;
}
.wallet-card > * { position: relative; }
.wallet-card__lbl { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0 0 6px; }
.wallet-card__bal { font-size: 38px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 4px; }
.wallet-card__sub { font-size: 13px; color: rgba(255,255,255,0.65); margin: 0 0 18px; }

/* Membership / plan card */
.plan-card {
  background: #fff;
  border: 2px solid transparent;
  background-image: linear-gradient(#fff,#fff), var(--grad-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: var(--r-xl);
  padding: 26px;
}

/* ============== LOGIN ============== */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.auth__visual {
  position: relative;
  background: var(--grad-ink);
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px;
  overflow: hidden;
}
.auth__visual::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(99,102,241,0.4), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(236,72,153,0.35), transparent 50%);
  pointer-events: none;
}
.auth__visual > * { position: relative; }
.auth__visual h2 { font-size: 32px; letter-spacing: -0.025em; margin: 0 0 10px; line-height: 1.15; }
.auth__visual h2 em { color: #c4b5fd; }
.auth__visual p { color: rgba(255,255,255,0.7); margin: 0 0 22px; max-width: 440px; }
.auth__quote {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
  font-size: 14px;
  max-width: 440px;
}
.auth__form {
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.auth__inner { width: 100%; max-width: 380px; }
.auth__inner .brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; font-size: 18px; margin-bottom: 28px; }
.auth__inner h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth__inner > p { color: var(--muted); margin: 0 0 24px; }
.auth__split { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted-2); font-size: 12px; }
.auth__split::before, .auth__split::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t);
}
.social-btn:hover { border-color: #cfd0dc; }
.auth__footer { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.auth__footer a { color: var(--brand); font-weight: 600; }

@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__visual { display: none; } }

/* ============== MOBILE SHELL ============== */
.menu-btn {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
@media (max-width: 1000px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0;
    transform: translateX(-100%);
    transition: transform var(--t);
    width: 252px;
    box-shadow: var(--shadow-lg);
  }
  .app.is-menu-open .sidebar { transform: translateX(0); }
  .menu-btn { display: inline-flex; }
  .page { padding: 22px 18px 60px; }
}

/* Reveal animation (light) */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 400ms ease, transform 400ms ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===================== ADMIN ADDITIONS ===================== */
.admin-tag {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--grad-primary);
  color: #fff;
  margin-left: 6px;
}

.rev-card {
  background: var(--grad-ink);
  border-radius: var(--r-xl);
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.rev-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.4), transparent 60%),
              radial-gradient(circle at 0% 100%, rgba(236, 72, 153, 0.35), transparent 60%);
  pointer-events: none;
}
.rev-card > * { position: relative; }
.rev-card__lbl { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0 0 6px; }
.rev-card__val { font-size: 38px; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 4px; }
.rev-card__sub { font-size: 13px; color: rgba(255,255,255,0.65); margin: 0; }

.mini-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 16px;
}
.mini-stat__lbl { font-size: 11.5px; color: rgba(255,255,255,0.65); margin: 0 0 4px; }
.mini-stat__val { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0; color: #fff; }
.mini-stat__sub { font-size: 11.5px; margin: 4px 0 0; color: rgba(255,255,255,0.55); }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--ink);
  margin-bottom: 18px;
}
.alert__icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--amber);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.alert--red { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.18); }
.alert--red .alert__icon { background: rgba(239, 68, 68, 0.14); color: var(--red); }
.alert--blue { background: rgba(59, 130, 246, 0.06); border-color: rgba(59, 130, 246, 0.16); }
.alert--blue .alert__icon { background: rgba(59, 130, 246, 0.14); color: var(--blue); }

.queue-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  transition: border-color var(--t), box-shadow var(--t);
}
.queue-card:hover { border-color: #d2d3df; box-shadow: var(--shadow-sm); }
.queue-card + .queue-card { margin-top: 10px; }
.queue-card__meta { font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell b { font-size: 13.5px; font-weight: 600; }
.user-cell .muted-2 { font-size: 11.5px; }

.risk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.risk__dot { width: 8px; height: 8px; border-radius: 50%; }
.risk--low .risk__dot { background: var(--green); }
.risk--low { color: var(--green); }
.risk--med .risk__dot { background: var(--amber); }
.risk--med { color: var(--amber); }
.risk--high .risk__dot { background: var(--red); }
.risk--high { color: var(--red); }

.act-row { display: inline-flex; gap: 4px; }
.act-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
  border-radius: 8px;
  color: var(--ink-2);
  cursor: pointer;
  border: 0;
  transition: background var(--t), color var(--t);
}
.act-icon:hover { background: var(--bg-soft-2); color: var(--brand); }
.act-icon svg { width: 15px; height: 15px; }
.act-icon--danger:hover { color: var(--red); background: rgba(239,68,68,0.08); }

.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 24px; }
.spark i { display: block; width: 4px; background: var(--brand); border-radius: 1px; opacity: 0.7; }

.stat-block {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  background: var(--bg-soft);
  padding: 14px;
  border-radius: 12px;
}
.stat-block > div { text-align: center; }
.stat-block b { display: block; font-size: 18px; letter-spacing: -0.02em; }
.stat-block span { font-size: 11px; color: var(--muted-2); }
