/* ═══════════════════════════════════════════════════════════════════════
   FRAMEWEL DESIGN SYSTEM
   Curated wedding marketplace · Plus Jakarta Sans + DM Serif Display
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── RESET ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-size: 14px; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ─── DESIGN TOKENS ──────────────────────────────────────────────────── */
:root {
  /* brand */
  --primary:        #C8311A;
  --primary-deep:   #A3260F;
  --primary-soft:   rgba(200, 49, 26, .10);
  --primary-bg:     #fff3f1;
  --primary-glow:   rgba(200, 49, 26, .28);

  --gold:           #A68B55;
  --gold-light:     #f5ead6;
  --gold-deep:      #7D6640;

  --teal:           #006a62;
  --teal-light:     #d0f0ed;
  --teal-bg:        #e8faf8;

  /* neutrals */
  --text:           #0f1117;
  --text-2:         #3d4554;
  --text-3:         #8a96a3;
  --border:         #e8eaed;
  --border-2:       #d0d5dd;
  --surface:        #f8f9fb;
  --surface-2:      #f0f2f5;
  --bg:             #ffffff;
  --ink:            #0c111d;

  /* feedback */
  --success:        #16a34a;
  --warning:        #d97706;
  --danger:         #dc2626;

  /* legacy aliases (kept for back-compat with older styles) */
  --color-primary:  var(--primary);
  --color-secondary: var(--gold);
  --color-success:  var(--success);
  --color-warning:  var(--warning);
  --color-error:    var(--danger);
  --color-text:     var(--text);
  --color-text-muted: var(--text-3);
  --color-border:   var(--border);
  --color-bg:       var(--bg);
  --color-surface:  var(--surface);

  /* radii */
  --r-xs:  6px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* shadows */
  --sh-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh:       0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --sh-lg:    0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --sh-xl:    0 24px 60px rgba(0,0,0,.14), 0 8px 24px rgba(0,0,0,.07);
  --sh-brand: 0 4px 20px rgba(200, 49, 26, .28);

  /* layout */
  --sidebar-w: 228px;
  --topbar-h:  60px;
}

/* ─── MATERIAL SYMBOLS ───────────────────────────────────────────────── */
.material-symbols-outlined,
.mi {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
  flex-shrink: 0;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
.mi.fill,
.material-symbols-outlined.fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.mi.sz12, .nav-icon-xs { font-size: 12px; }
.mi.sz14 { font-size: 14px; }
.mi.sz16, .nav-icon-sm { font-size: 16px; }
.mi.sz18 { font-size: 18px; }
.mi.sz20, .nav-icon { font-size: 20px; }
.mi.sz22, .nav-icon-lg { font-size: 22px; }
.mi.sz24 { font-size: 24px; }
.mi.sz28 { font-size: 28px; }
.mi.sz32 { font-size: 32px; }
.mi.sz36 { font-size: 36px; }
.icon-lg { font-size: 22px !important; }
.icon-base, .text-base { font-size: 16px !important; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────── */
.display {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.display-sm {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
  font-weight: 400;
}
.h1  { font-size: 2rem;    font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.h2  { font-size: 1.5rem;  font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.h3  { font-size: 1.1rem;  font-weight: 700; letter-spacing: -0.01em; }
.h4  { font-size: 0.95rem; font-weight: 700; }
.body-lg { font-size: 1rem;     color: var(--text-2); line-height: 1.7; }
.body    { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }
.body-sm { font-size: 0.8rem;   color: var(--text-3); line-height: 1.5; }
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

/* ─── BUTTONS ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 20px;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
  line-height: 1;
}
.btn-primary       { background: var(--primary); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--primary-deep); box-shadow: 0 6px 24px rgba(200, 49, 26, .4); transform: translateY(-1px); }
.btn-secondary     { background: var(--surface); color: var(--text); border: 1.5px solid var(--border-2); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-gold          { background: var(--gold); color: #fff; box-shadow: 0 4px 16px rgba(166, 139, 85, .32); }
.btn-gold:hover    { background: #8A7146; transform: translateY(-1px); }
.btn-ghost         { background: transparent; color: var(--text-2); }
.btn-ghost:hover   { background: var(--surface); color: var(--text); }
.btn-outline       { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-bg); }
.btn-dark          { background: var(--ink); color: #fff; }
.btn-dark:hover    { background: #1e2435; }
.btn-danger        { background: var(--danger); color: #fff; }
.btn-danger:hover  { background: #b91c1c; }
.btn-link          { background: transparent; color: var(--primary); padding: 4px 8px; }
.btn-link:hover    { text-decoration: underline; }
.btn-sm            { padding: 7px 14px;  font-size: 0.8rem;  }
.btn-lg            { padding: 13px 28px; font-size: 1rem;    font-weight: 700; }
.btn-xl            { padding: 16px 36px; font-size: 1.05rem; font-weight: 700; }
.btn-block         { width: 100%; }
.btn:disabled      { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover    { background: var(--surface-2); color: var(--text); }
.btn-icon.btn-icon-sm { width: 28px; height: 28px; }
.btn-icon.btn-icon-lg { width: 44px; height: 44px; }

/* ─── BADGES ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-teal    { background: var(--teal-light);   color: var(--teal); }
.badge-gold    { background: var(--gold-light);   color: var(--gold-deep); }
.badge-neutral { background: var(--surface-2);    color: var(--text-2); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-dark    { background: var(--ink); color: #fff; }

/* status-pill (back-compat with older pages) */
.status-pill          { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700; }
.status-pending       { background: #fef3c7; color: #92400e; }
.status-confirmed     { background: var(--teal-light); color: var(--teal); }
.status-completed     { background: #d1fae5; color: #065f46; }
.status-cancelled     { background: #fee2e2; color: #991b1b; }
.status-refunded      { background: var(--surface-2); color: var(--text-2); }
.status-active        { background: var(--teal-light); color: var(--teal); }
.status-inactive      { background: var(--surface-2); color: var(--text-3); }
.status-draft         { background: var(--surface-2); color: var(--text-2); }

/* ─── CHIPS ──────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid var(--border-2);
  background: var(--bg);
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
  white-space: nowrap;
}
.chip:hover  { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.chip.active,
.chip-active { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); font-weight: 600; }
.chip[disabled],
.chip.disabled { pointer-events: none; opacity: .55; }

/* ─── FORMS ──────────────────────────────────────────────────────────── */
.input, .select, .textarea,
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.input::placeholder, .textarea::placeholder, .form-control::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus, .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 49, 26, .08);
}
.input.is-invalid, .form-control.is-invalid,
.input[aria-invalid="true"], .form-control[aria-invalid="true"] {
  border-color: var(--danger);
}
.input.is-invalid:focus, .form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}
.input-wrap { position: relative; }
.input-wrap .input,
.input-wrap .form-control { padding-left: 40px; }
.input-wrap .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 18px;
  pointer-events: none;
}
.label, .form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-group { margin-bottom: 16px; }
.form-hint, .form-text {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 4px;
}
.textarea { resize: vertical; min-height: 96px; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a96a3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.validation-message {
  display: block;
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
  font-weight: 500;
}

/* ─── ALERTS ─────────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 14px;
  border: 1.5px solid transparent;
}
.alert-info     { background: var(--teal-bg);   color: var(--teal);     border-color: var(--teal-light); }
.alert-success  { background: #d1fae5;          color: #065f46;         border-color: #a7f3d0; }
.alert-warning  { background: #fef3c7;          color: #92400e;         border-color: #fde68a; }
.alert-error,
.alert-danger   { background: #fee2e2;          color: #991b1b;         border-color: #fecaca; }
.alert .material-symbols-outlined { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ─── CARDS ──────────────────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-sm);
}
.card-xl { padding: 28px; border-radius: var(--r-xl); }
.card-flush { padding: 0; }
.card-hover { transition: border-color .2s, box-shadow .2s, transform .2s; cursor: pointer; }
.card-hover:hover { border-color: var(--primary); box-shadow: var(--sh); transform: translateY(-2px); }
.card-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-surface { background: var(--surface); }
.card-brand-border { border-color: var(--primary); background: var(--primary-bg); }
.card-section { padding: 16px 20px; border-bottom: 1.5px solid var(--border); }
.card-section:last-child { border-bottom: none; }

/* ─── STAT CARD ──────────────────────────────────────────────────────── */
.stat-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--sh-sm);
}
.stat-val {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 6px 0 2px;
}
.stat-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
}
.stat-sub { font-size: 0.75rem; color: var(--text-3); }
.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon-p { background: var(--primary-bg); color: var(--primary); }
.stat-icon-t { background: var(--teal-bg);    color: var(--teal); }
.stat-icon-g { background: var(--gold-light); color: var(--gold-deep); }

/* ─── APP SHELL ──────────────────────────────────────────────────────── */
.app, .layout-shell {
  display: flex;
  min-height: 100vh;
  background: var(--surface);
}
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  z-index: 60;
}
.sidebar-logo, .sidebar-brand {
  padding: 18px 16px;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}
.sidebar-logo svg, .sidebar-brand svg { flex-shrink: 0; }
/* sidebar-brand-text display:none removed — SVG+text markup is now canonical */
.landing-layout { display: contents; }
.sidebar-section,
.sidebar-chip-wrap {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-3);
  padding: 16px 16px 4px;
}
.sidebar-nav {
  padding: 4px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-item, .sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color .15s, color .15s;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.nav-item:hover,
.sidebar-nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active,
.sidebar-nav-item.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 700;
}
.nav-item .material-symbols-outlined,
.sidebar-nav-item .material-symbols-outlined { font-size: 18px; color: var(--text-3); }
.nav-item.active .material-symbols-outlined,
.sidebar-nav-item.active .material-symbols-outlined { color: var(--primary); }

.sidebar-footer {
  padding: 10px 8px;
  border-top: 1.5px solid var(--border);
}
.user-row, .sidebar-user-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: 6px;
}
.sidebar-user-meta { flex: 1; min-width: 0; overflow: hidden; }
.sidebar-user-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-role {
  font-size: 0.7rem;
  color: var(--text-3);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 17, 29, .45);
  z-index: 50;
  opacity: 0;
  transition: opacity .2s;
}
.sidebar-overlay.is-visible { opacity: 1; }

.main-content, .main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.top-nav, .topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.layout-topbar-group { display: flex; align-items: center; gap: 12px; }
.layout-topbar-actions { display: flex; align-items: center; gap: 10px; }
.layout-title { font-size: 0.85rem; color: var(--text-3); font-weight: 500; }
.layout-user-inline { display: flex; align-items: center; gap: 8px; }
.layout-user-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1.5px solid var(--border);
  cursor: pointer;
}
.hamburger-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.page-container, .page {
  padding: 28px;
  flex: 1;
}
.page-hdr {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.page-sub {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 4px;
}

/* ─── AVATAR ─────────────────────────────────────────────────────────── */
.av, .avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  overflow: hidden;
  text-transform: uppercase;
}
.av-xs { width: 26px; height: 26px; font-size: 0.65rem; }
.av-sm,
.sidebar-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
.av-md,
.sidebar-avatar-lg { width: 40px; height: 40px; font-size: 1rem; }
.av-lg { width: 52px; height: 52px; font-size: 1.1rem; }
.av-xl { width: 72px; height: 72px; font-size: 1.4rem; }
.av img, .avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ─── IMG PLACEHOLDER ────────────────────────────────────────────────── */
.img-ph {
  background: repeating-linear-gradient(45deg,
    var(--surface) 0, var(--surface) 6px,
    var(--surface-2) 6px, var(--surface-2) 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.4;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ─── LOGO ───────────────────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo-text { font-weight: 700; }
.logo.white,
.logo-white { color: rgba(255, 255, 255, .95); }
.logo-sm { font-size: 1rem; }
.logo-lg { font-size: 1.4rem; }

/* ─── DIVIDER ────────────────────────────────────────────────────────── */
.divider {
  height: 1.5px;
  background: var(--border);
  margin: 16px 0;
  width: 100%;
}
.divider-with-label {
  position: relative;
  text-align: center;
  margin: 22px 0;
  font-size: 0.78rem;
  color: var(--text-3);
}
.divider-with-label::before,
.divider-with-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1.5px;
  background: var(--border);
}
.divider-with-label::before { left: 0; }
.divider-with-label::after  { right: 0; }

/* ─── PROGRESS ───────────────────────────────────────────────────────── */
.prog-track, .progress {
  height: 5px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.prog-fill, .progress-bar {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--primary), #e8724d);
  transition: width .45s ease;
}

/* ─── TOGGLE ─────────────────────────────────────────────────────────── */
.toggle {
  width: 42px;
  height: 23px;
  border-radius: 12px;
  background: var(--border-2);
  position: relative;
  cursor: pointer;
  transition: background-color .2s;
  flex-shrink: 0;
  border: none;
}
.toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.toggle.on { background: var(--primary); }
.toggle.on::after { transform: translateX(19px); }

/* ─── CHECKBOX / RADIO (custom) ──────────────────────────────────────── */
.fw-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--border-2);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
  flex-shrink: 0;
}
.fw-check.on {
  border-color: var(--primary);
  background: var(--primary);
}
.fw-check.on::after {
  content: '';
  width: 10px;
  height: 6px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg) translate(1px, -1px);
}
.fw-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.fw-radio.on { border-color: var(--primary); }
.fw-radio.on::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* ─── TABLE ──────────────────────────────────────────────────────────── */
.tbl, .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--bg);
}
.tbl thead th, .data-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
  background: var(--surface);
}
.tbl tbody td, .data-table tbody td {
  padding: 13px 14px;
  border-bottom: 1.5px solid var(--border);
  vertical-align: middle;
}
.tbl tbody tr:last-child td,
.data-table tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td,
.data-table tbody tr:hover td { background: var(--surface); }

/* ─── SELECTABLE ─────────────────────────────────────────────────────── */
.selectable {
  border: 2px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
  background: var(--bg);
}
.selectable:hover { border-color: var(--primary); background: var(--primary-bg); }
.selectable.picked,
.selectable.is-selected {
  border-color: var(--primary);
  background: var(--primary-bg);
}

/* ─── STEP INDICATOR ─────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.step-dot.active   { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(200, 49, 26, .3); }
.step-dot.done     { background: var(--teal); color: #fff; }
.step-dot.inactive { background: var(--surface-2); color: var(--text-3); border: 1.5px solid var(--border-2); }
.step-label { font-size: 0.75rem; font-weight: 600; }
.step-line { flex: 1; height: 2px; background: var(--border-2); margin: 0 8px; }
.step-line.done { background: var(--teal); }

/* ─── VENDOR CARD (portrait) ─────────────────────────────────────────── */
.vcard {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 300px;
  cursor: pointer;
  box-shadow: var(--sh);
  transition: transform .3s, box-shadow .3s;
  background: var(--surface-2);
}
.vcard:hover { transform: translateY(-4px); box-shadow: var(--sh-xl); }
.vcard-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vcard-ph { position: absolute; inset: 0; }
.vcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 17, 29, .9) 0%, rgba(12, 17, 29, .4) 50%, transparent 80%);
}
.vcard:hover .vcard-overlay {
  background: linear-gradient(to top, rgba(12, 17, 29, .95) 0%, rgba(12, 17, 29, .5) 55%, transparent 80%);
}
.vcard-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  z-index: 2;
}
.vcard-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 0.2rem 0.625rem;
  border-radius: var(--r-pill);
  margin-bottom: 6px;
}
.vcard-name { font-weight: 800; font-size: 1rem; color: #fff; line-height: 1.2; margin-bottom: 2px; }
.vcard-loc {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.vcard-price { font-weight: 700; font-size: 0.85rem; color: #f5e0b5; }
.vcard-badge { position: absolute; top: 12px; right: 12px; z-index: 3; }
.vcard-fav {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background-color .2s;
}
.vcard-fav:hover { background: rgba(255, 255, 255, .25); }

/* ─── BOOKING ROW ────────────────────────────────────────────────────── */
.brow {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow .18s, border-color .18s;
}
.brow:hover { box-shadow: var(--sh-sm); border-color: var(--border-2); }

/* ─── PUBLIC NAV ─────────────────────────────────────────────────────── */
.pub-nav, .topnav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 62px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border);
}
.pub-nav-inner, .topnav-inner {
  max-width: 1260px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 16px;
}
.pub-nav-links, .topnav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.pub-nav-link, .topnav-link {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: color .15s, background-color .15s;
  text-decoration: none;
}
.pub-nav-link:hover, .topnav-link:hover { color: var(--text); background: var(--surface); }
.pub-nav-link.active { color: var(--primary); font-weight: 700; }
.topnav-actions { display: flex; align-items: center; gap: 10px; }
.topnav-action-icon { width: 36px; height: 36px; }
.topnav-action-symbol { font-size: 18px; color: var(--text-2); }
.topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
}
.topnav-brand svg { flex-shrink: 0; }
/* topnav-brand-text display:none removed — SVG+text markup is now canonical */
.topnav-signin { font-weight: 600; color: var(--text); }
.public-shell { min-height: 100vh; }
.public-main  { min-height: calc(100vh - 62px); }

/* ─── AUTH LAYOUT ────────────────────────────────────────────────────── */
.auth-wrap, .auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 460px;
  background: var(--surface);
}
.auth-brand, .auth-brand-panel {
  background: var(--ink);
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, .9);
}
.auth-brand-panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 24px;
}
.auth-blob, .auth-brand-blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 49, 26, .18), transparent 70%);
  pointer-events: none;
}
.auth-brand-blob-1 { width: 420px; height: 420px; top: -160px; right: -140px; }
.auth-brand-blob-2 { width: 300px; height: 300px; bottom: -120px; left: -80px; }
.auth-brand-blob-3 { width: 200px; height: 200px; top: 40%; right: 10%; background: radial-gradient(circle, rgba(184, 147, 90, .12), transparent 70%); }
.auth-brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, .95);
  text-decoration: none;
}
.auth-brand-content { padding-top: 8px; }
.auth-brand-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .3);
  margin-bottom: 16px;
}
.auth-brand-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.08;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 400;
}
.auth-brand-title em,
.auth-brand-accent {
  font-style: italic;
  color: #ff6b9d;
}
.auth-brand-subtitle {
  color: rgba(255, 255, 255, .55);
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 380px;
}
.auth-brand-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.auth-feat, .auth-brand-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.auth-feat-icon, .auth-brand-feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, .8);
}
.auth-brand-feature span:not(.material-symbols-outlined) {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.55;
}

.auth-form-side, .auth-form-panel {
  background: var(--bg);
  display: flex;
  align-items: stretch;
}
.auth-form-inner {
  width: 100%;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.auth-card-inner, .auth-form-card {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.auth-form-header { margin-bottom: 24px; }
.auth-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-form-subtitle {
  color: var(--text-2);
  font-size: 0.9rem;
}
.auth-divider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}
.auth-divider-line {
  flex: 1;
  height: 1.5px;
  background: var(--border);
}
.auth-divider-label {
  font-size: 0.78rem;
  color: var(--text-3);
  white-space: nowrap;
}
.auth-alt-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── OTP inputs ─────────────────────────────────────────────────────── */
.otp-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.otp-box {
  width: 52px;
  height: 60px;
  border: 2px solid var(--border-2);
  border-radius: var(--r-md);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
  background: var(--bg);
}
.otp-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 49, 26, .1);
}
.otp-box.filled {
  border-color: var(--primary);
  background: var(--primary-bg);
}

/* ─── PW STRENGTH ────────────────────────────────────────────────────── */
.pw-bars {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.pw-bar {
  flex: 1;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  transition: background-color .2s;
}

/* ─── SCOPE BTN ──────────────────────────────────────────────────────── */
.scope-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--border-2);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
  background: var(--bg);
}
.scope-btn:hover { border-color: var(--primary); background: var(--primary-bg); }
.scope-btn.on { border-color: var(--primary); background: var(--primary-bg); }

/* ─── MARKETPLACE ────────────────────────────────────────────────────── */
.mkt-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}
.mkt-searchbar {
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mkt-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 14px;
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.mkt-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 49, 26, .07);
}
.mkt-input-wrap input {
  border: none;
  outline: none;
  font-size: 0.875rem;
  font-family: inherit;
  background: transparent;
  width: 180px;
  color: var(--text);
}
.mkt-input-wrap input::placeholder { color: var(--text-3); }
.mkt-body {
  display: grid;
  grid-template-columns: 248px 1fr;
  flex: 1;
}
.filter-sidebar {
  border-right: 1.5px solid var(--border);
  padding: 18px 16px;
  overflow-y: auto;
  background: var(--bg);
}
.filter-section { margin-bottom: 22px; }
.filter-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 10px;
  display: block;
}
.price-track {
  height: 4px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  position: relative;
  margin: 12px 0;
}
.price-fill {
  position: absolute;
  left: 15%;
  right: 30%;
  height: 100%;
  background: var(--primary);
  border-radius: var(--r-pill);
}
.price-thumb {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--primary);
  top: -6px;
  box-shadow: var(--sh-sm);
  cursor: grab;
}
.vendor-grid-area {
  padding: 20px 22px;
  overflow-y: auto;
  background: var(--bg);
}
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ─── VENDOR DETAIL ──────────────────────────────────────────────────── */
.vd-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}
.vd-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  flex: 1;
}
.vd-main {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1.5px solid var(--border);
}
.vd-sidebar {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vd-hero {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
}
.booking-widget {
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: var(--r-xl);
  padding: 20px;
  position: sticky;
  top: 22px;
  box-shadow: var(--sh-brand);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.portfolio-thumb {
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 1;
}

/* ─── SUMMARY CARD ───────────────────────────────────────────────────── */
.summary-block {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.875rem;
  border-bottom: 1.5px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }

/* ─── ONBOARDING TRACKER ─────────────────────────────────────────────── */
.track-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  position: relative;
  z-index: 1;
}
.track-step.highlighted {
  background: var(--primary-bg);
  border-radius: var(--r-lg);
  margin: 0 -16px;
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
}
.track-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
}
.track-dot.done    { background: var(--teal); color: #fff; }
.track-dot.active  { background: var(--primary); color: #fff; box-shadow: 0 2px 10px rgba(200, 49, 26, .3); }
.track-dot.pending { background: var(--surface-2); color: var(--text-3); border: 2px solid var(--border-2); }
.track-line {
  position: absolute;
  left: 16px;
  top: 48px;
  width: 2px;
  height: calc(100% - 14px);
  background: var(--border);
  z-index: 0;
}
.track-line.done { background: var(--teal); }

/* ─── QUICK ACTION LINK ──────────────────────────────────────────────── */
.quick-action-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: background-color .15s;
}
.quick-action-link:hover { background: var(--surface-2); }

/* ─── ADMIN STRIP ────────────────────────────────────────────────────── */
.admin-strip {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #e8724d, var(--gold));
}

/* ─── EMPTY / LOADING STATES ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-3);
}
.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.empty-state-icon .material-symbols-outlined { font-size: 32px; color: var(--text-3); }
.empty-state h3 {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1rem;
}
.empty-state p { font-size: 0.85rem; }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.6s ease-in-out infinite;
  border-radius: var(--r-md);
}
@keyframes skeletonPulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── UTILITIES ──────────────────────────────────────────────────────── */
.g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flex     { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-1   { flex: 1; }
.between  { display: flex; align-items: center; justify-content: space-between; }
.center   { display: flex; align-items: center; justify-content: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-start  { align-items: flex-start; }
.items-center { align-items: center; }
.gap2  { gap: 2px; }
.gap4  { gap: 4px; }  .gap-1 { gap: 4px; }
.gap6  { gap: 6px; }  .gap-1\.5 { gap: 6px; }
.gap8  { gap: 8px; }  .gap-2 { gap: 8px; }
.gap10 { gap: 10px; } .gap-2\.5 { gap: 10px; }
.gap12 { gap: 12px; } .gap-3 { gap: 12px; }
.gap14 { gap: 14px; } .gap-3\.5 { gap: 14px; }
.gap16 { gap: 16px; } .gap-4 { gap: 16px; }
.gap20 { gap: 20px; } .gap-5 { gap: 20px; }
.gap24 { gap: 24px; } .gap-6 { gap: 24px; }
.gap28 { gap: 28px; } .gap-7 { gap: 28px; }
.gap32 { gap: 32px; } .gap-8 { gap: 32px; }
.gap40 { gap: 40px; }
.mb2  { margin-bottom: 2px; }
.mb4  { margin-bottom: 4px; }
.mb6  { margin-bottom: 6px; }
.mb8  { margin-bottom: 8px; }
.mb10 { margin-bottom: 10px; }
.mb12 { margin-bottom: 12px; }
.mb14 { margin-bottom: 14px; }
.mb16 { margin-bottom: 16px; }
.mb18 { margin-bottom: 18px; }
.mb20 { margin-bottom: 20px; }
.mb22 { margin-bottom: 22px; }
.mb24 { margin-bottom: 24px; }
.mb28 { margin-bottom: 28px; }
.mb32 { margin-bottom: 32px; }
.mb40 { margin-bottom: 40px; }
.mt2  { margin-top: 2px; }
.mt4  { margin-top: 4px; }
.mt6  { margin-top: 6px; }
.mt8  { margin-top: 8px; }
.mt10 { margin-top: 10px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.mt20 { margin-top: 20px; }
.mt24 { margin-top: 24px; }
.mt28 { margin-top: 28px; }
.mt32 { margin-top: 32px; }
.mt-1   { margin-top: 4px; }
.mt-2   { margin-top: 8px; }
.mt-2\.5 { margin-top: 10px; }
.mt-3   { margin-top: 12px; }
.mt-4   { margin-top: 16px; }
.mt-5   { margin-top: 20px; }
.mt-6   { margin-top: 24px; }
.mb-2\.5 { margin-bottom: 10px; }
.pb14 { padding-bottom: 14px; }
.pb16 { padding-bottom: 16px; }
.pb20 { padding-bottom: 20px; }
.pb24 { padding-bottom: 24px; }
.pb32 { padding-bottom: 32px; }
.pt8  { padding-top: 8px; }
.pt12 { padding-top: 12px; }
.pt16 { padding-top: 16px; }
.pt20 { padding-top: 20px; }
.pt32 { padding-top: 32px; }
.w100 { width: 100%; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.muted, .text-muted { color: var(--text-3); }
.primary-c, .text-primary { color: var(--primary); }
.gold-c, .text-gold { color: var(--gold-deep); }
.teal-c, .text-teal { color: var(--teal); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.fw800 { font-weight: 800; }
.fw700 { font-weight: 700; }
.fw600 { font-weight: 600; }
.fw500 { font-weight: 500; }
.rounded-full { border-radius: var(--r-pill); }
.rounded-md   { border-radius: var(--r-md); }
.relative     { position: relative; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer  { cursor: pointer; }
.no-wrap { white-space: nowrap; }
.text-2xl { font-size: 1.4rem; }
.text-xs  { font-size: 0.72rem; }
.text-sm  { font-size: 0.8rem; }
.text-md  { font-size: 0.875rem; }
.text-white { color: #fff; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────────── */
.page-enter { animation: fadeUp .22s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .vd-layout    { grid-template-columns: 1fr; }
  .vd-main      { border-right: none; }
  .vd-sidebar   { border-top: 1.5px solid var(--border); }
  .mkt-body     { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .auth-wrap, .auth-shell { grid-template-columns: 1fr; }
  .auth-brand, .auth-brand-panel { display: none; }
}

@media (max-width: 768px) {
  html { font-size: 13.5px; }
  :root { --sidebar-w: 280px; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: var(--sh-xl);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-overlay { display: block; pointer-events: none; }
  .sidebar-overlay.is-visible { pointer-events: auto; }
  .hamburger-btn { display: flex; }

  .page-container, .page { padding: 18px 16px; }
  .pub-nav-inner, .topnav-inner { padding: 0 18px; gap: 8px; }
  .pub-nav-links, .topnav-links { display: none; }

  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .vendor-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .page-title { font-size: 1.3rem; }

  .layout-user-name, .d-sm-inline { display: none; }
  .auth-form-inner { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .otp-box { width: 42px; height: 52px; font-size: 1.2rem; }
  .vendor-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ─── PRINT ──────────────────────────────────────────────────────────── */
@media print {
  .sidebar, .top-nav, .topbar, .mob-nav { display: none !important; }
  body { background: #fff; }
  .page-container, .page { padding: 0; }
}

/* ─── LEGACY ALIASES ─────────────────────────────────────────────────── */
/* Existing pages use older class names — alias them to new system. */
.page-header,
.page-header.flex-header {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-subtitle, .flex-subtitle { font-size: 0.85rem; color: var(--text-3); margin-top: 4px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--border);
  margin: -20px -20px 16px;
}
.card-xl .card-header { margin: -28px -28px 20px; padding: 18px 24px; }
.card-flush .card-header { margin: 0; }
.card-body { padding: 0; }
.card-footer {
  padding: 14px 18px;
  border-top: 1.5px solid var(--border);
  background: var(--surface);
  margin: 16px -20px -20px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-section-title { font-weight: 700; font-size: 0.95rem; }
.card-link-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.card-link-primary:hover { text-decoration: underline; }

.text             { color: var(--text); }
.text-secondary   { color: var(--text-2); }
.text-amber       { color: var(--gold-deep); }
.text-teal        { color: var(--teal); }
.text-success     { color: var(--success); }
.text-error       { color: var(--danger); }
.bg-surface       { background: var(--surface); }
.bg-surface-2     { background: var(--surface-2); }
.bg-primary-container { background: var(--primary-bg); }
.bg-teal-bg       { background: var(--teal-bg); }
.bg-amber-bg      { background: var(--gold-light); }
.bg-gradient-primary { background: linear-gradient(135deg, var(--primary), #c43370); }
.bg-gradient-teal    { background: linear-gradient(135deg, var(--teal), #14b8a6); }
.bg-gradient-amber   { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.gradient-primary    { background: linear-gradient(135deg, var(--primary), #c43370); color: #fff; }
.bg-gradient         { background: linear-gradient(135deg, var(--primary-bg), var(--gold-light)); }
.border             { border: 1.5px solid var(--border); }
.border-t           { border-top: 1.5px solid var(--border); }
.border-b           { border-bottom: 1.5px solid var(--border); }
.no-underline       { text-decoration: none; }
.opacity-65         { opacity: .65; }
.opacity-40         { opacity: .4; }

.form-row.responsive-stats-grid,
.responsive-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.activity-list { padding: 0; margin: 0; list-style: none; }
.activity-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1.5px solid var(--border);
}
.activity-list-item:last-child { border-bottom: none; }
.activity-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activity-icon-wrap.icon-primary { background: var(--primary-bg);  color: var(--primary); }
.activity-icon-wrap.icon-teal    { background: var(--teal-bg);     color: var(--teal); }
.activity-icon-wrap.icon-amber   { background: var(--gold-light);  color: var(--gold-deep); }
.activity-icon-wrap.icon-orange  { background: #ffedd5;            color: #c2410c; }
.activity-text p { font-size: 0.85rem; color: var(--text); margin: 0; }
.activity-text p.timestamp { font-size: 0.7rem; color: var(--text-3); }

.stat-card.border-top-primary { border-top: 3px solid var(--primary); }
.stat-card.border-top-teal    { border-top: 3px solid var(--teal); }
.stat-card.border-top-amber   { border-top: 3px solid var(--gold); }
.stat-card.border-top-orange  { border-top: 3px solid #f97316; }
.stat-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.stat-icon-primary { background: var(--primary-bg);  color: var(--primary); }
.stat-icon-teal    { background: var(--teal-bg);     color: var(--teal); }
.stat-icon-amber   { background: var(--gold-light);  color: var(--gold-deep); }
.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  margin-top: 6px;
  color: var(--text-3);
}
.stat-trend.is-success { color: var(--teal); }
.stat-trend .material-symbols-outlined { font-size: 12px; }

.card-grid          { display: grid; gap: 16px; margin-bottom: 22px; }
.card-grid-stats    { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.responsive-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mb-lg              { margin-bottom: 22px; }
.mb-7               { margin-bottom: 22px; }
.mb-6               { margin-bottom: 20px; }
.mb-8               { margin-bottom: 28px; }
.mb-5               { margin-bottom: 18px; }
.mb-4               { margin-bottom: 16px; }
.mb-3               { margin-bottom: 12px; }
.mb-2               { margin-bottom: 8px; }
.mb-1               { margin-bottom: 4px; }
.p-0                { padding: 0; }
.p-3                { padding: 12px; }
.p-4                { padding: 16px; }
.p-5                { padding: 18px; }
.p-6                { padding: 22px; }
.p-7                { padding: 26px; }
.p-8                { padding: 30px; }
.py-8               { padding-top: 28px; padding-bottom: 28px; }
.py-10              { padding-top: 36px; padding-bottom: 36px; }
.py-14              { padding-top: 50px; padding-bottom: 50px; }
.py-16              { padding-top: 56px; padding-bottom: 56px; }
.py-20              { padding-top: 72px; padding-bottom: 72px; }
.px-7               { padding-left: 26px; padding-right: 26px; }
.px-8               { padding-left: 30px; padding-right: 30px; }

.quick-actions      { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.health-section     {}
.health-metric      { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.health-label       { font-size: 0.82rem; color: var(--text-3); }

.success-state      { text-align: center; padding: 60px 24px; }
.success-icon       {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--teal-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 24px;
}
.success-title      { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.empty-state-title  { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.empty-state-subtitle { font-size: 0.85rem; color: var(--text-3); margin-bottom: 16px; max-width: 380px; margin-left: auto; margin-right: auto; }

.badge.badge-amber  { background: var(--gold-light); color: var(--gold-deep); }
.badge.badge-error  { background: #fee2e2; color: #991b1b; }

.skeleton-sm { height: 36px; border-radius: var(--r-sm); }
.skeleton-md { height: 60px; border-radius: var(--r-md); }
.skeleton-lg { height: 120px; border-radius: var(--r-lg); }
.skeleton-xl { height: 180px; border-radius: var(--r-lg); }
.skeleton-2xl { height: 320px; border-radius: var(--r-lg); }

.spinner-sm { width: 14px; height: 14px; border-width: 2px; }
.spinner-primary { border-color: rgba(200, 49, 26,.2); border-top-color: var(--primary); }

.search-bar { display: flex; align-items: center; gap: 10px; padding: 4px; background: var(--bg); border-radius: var(--r-pill); border: 1.5px solid var(--border-2); }
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200, 49, 26,.07); }
.search-bar-icon { color: var(--text-3); margin-left: 12px; }
.search-bar-input { flex: 1; border: none !important; outline: none !important; background: transparent !important; padding: 9px 0 !important; box-shadow: none !important; }
.search-bar-btn { flex-shrink: 0; }

.input-with-icon { position: relative; }
.input-with-icon-leading { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 18px; pointer-events: none; }
.input-with-icon .form-control { padding-left: 40px; }

.table-container    { overflow-x: auto; }
.table              { width: 100%; border-collapse: collapse; font-size: 0.875rem; background: var(--bg); }
.table thead th     { padding: 10px 14px; text-align: left; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); border-bottom: 1.5px solid var(--border); white-space: nowrap; background: var(--surface); }
.table tbody td     { padding: 13px 14px; border-bottom: 1.5px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--surface); }
.table-action-btn   { white-space: nowrap; }

.form-error         { display: block; font-size: 0.75rem; color: var(--danger); margin-top: 4px; font-weight: 500; }

.selectable-card    { border: 2px solid var(--border-2); border-radius: var(--r-lg); padding: 16px; cursor: pointer; transition: border-color .15s, background-color .15s; background: var(--bg); }
.selectable-card:hover { border-color: var(--primary); background: var(--primary-bg); }
.selectable-card.is-selected { border-color: var(--primary); background: var(--primary-bg); }

.price-display      { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; color: var(--gold-deep); letter-spacing: -0.02em; }
.section-divider    { height: 1.5px; background: var(--border); margin: 12px 0; }
.summary-row span:first-child { color: var(--text-2); }
.summary-row span:last-child  { font-weight: 600; }

.info-banner        { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--teal-bg); color: var(--teal); border: 1.5px solid var(--teal-light); border-radius: var(--r-md); font-size: 0.875rem; line-height: 1.5; margin-bottom: 14px; }
.info-banner .material-symbols-outlined { font-size: 18px; flex-shrink: 0; }

.responsive-main-grid       { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.responsive-sticky-sidebar  { position: sticky; top: 22px; }
.onboarding-callout         { background: var(--teal-bg); border: 1.5px solid var(--teal); }
.steps-track                { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.step-dot-active            { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(200, 49, 26,.3); }
.step-dot-inactive          { background: var(--surface-2); color: var(--text-3); border: 1.5px solid var(--border-2); }
.step-label-active          { color: var(--primary); }
.step-label-inactive        { color: var(--text-3); }
.step-connector             { flex: 1; height: 2px; background: var(--border-2); margin: 0 8px; min-width: 24px; }
.step-connector-active      { background: var(--teal); }
.step-icon                  { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-completed             { background: var(--teal); color: #fff; }
.step-current               { background: var(--primary); color: #fff; }
.step-pending               { background: var(--surface-2); color: var(--text-3); border: 2px solid var(--border-2); }
.step-skipped               { background: var(--surface-2); color: var(--text-3); }

.flex.flex-1.min-w-52       { flex: 1 1 0; min-width: 200px; }
.flex.flex-2                { flex: 2 1 0; }

@media (max-width: 1024px) {
  .responsive-main-grid     { grid-template-columns: 1fr; }
  .responsive-two-col       { grid-template-columns: 1fr; }
  .responsive-sticky-sidebar { position: static; }
}
@media (max-width: 768px) {
  .responsive-stats-grid    { grid-template-columns: 1fr 1fr; }
  .stack-on-mobile          { flex-direction: column; align-items: stretch; }
  .card-header              { flex-wrap: wrap; }
}
