/* ════════════════════════════════════════════════════════════════
   TPT — Tareekh Pe Tareekh
   Premium Design System v3 — Ubuntu Font, Indian Dark Luxury
   Built by Hidrogen for Ram Shree Legal Services
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,400;1,700&family=Ubuntu+Mono:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
code, pre { font-family: 'Ubuntu Mono', 'JetBrains Mono', ui-monospace, monospace; }

/* ─── DESIGN TOKENS — Premium Indian Dark Luxury ─── */
:root {
  /* Dark palette — deep navy-black premium */
  --d-bg:        #070A14;
  --d-bg-soft:   #040710;
  --d-surface:   #0D1220;
  --d-surface-2: #121828;
  --d-surface-3: #1A2235;
  --d-surface-glass: rgba(13,18,32,0.75);
  --d-border:    #1C2438;
  --d-border-strong: #253047;
  --d-text:      #EEF2FA;
  --d-text-2:    #B8C4DA;
  --d-muted:     #6B7A9A;
  --d-input:     #0A0F1C;

  /* Light palette — warm ivory */
  --l-bg:        #F8F5EE;
  --l-bg-soft:   #F0EBE0;
  --l-surface:   #FFFFFF;
  --l-surface-2: #F4EFE4;
  --l-surface-3: #EAE3D4;
  --l-surface-glass: rgba(255,255,255,0.85);
  --l-border:    #E2D9C6;
  --l-border-strong: #CEC3AA;
  --l-text:      #14120F;
  --l-text-2:    #3D3827;
  --l-muted:     #7A7060;
  --l-input:     #F0EBE0;

  /* Client accent — deep crimson red (Indian judiciary) */
  --client-1:    #E5432E;
  --client-2:    #C73520;
  --client-3:    rgba(229,67,46,0.12);
  --client-deep: #1A0A07;

  /* Advocate accent — deep saffron-gold (Indian bar council) */
  --advocate-1:  #D4A034;
  --advocate-2:  #B8861C;
  --advocate-3:  rgba(212,160,52,0.13);
  --advocate-deep: #16120A;

  /* Admin accent — royal sapphire */
  --admin-1:     #3D8EF5;
  --admin-2:     #2578E0;
  --admin-3:     rgba(61,142,245,0.13);
  --admin-deep:  #050D1A;

  /* Status colors */
  --green-1:  #22C55E; --green-2:  rgba(34,197,94,.14);
  --red-1:    #EF4444; --red-2:    rgba(239,68,68,.14);
  --yellow-1: #F59E0B; --yellow-2: rgba(245,158,11,.14);
  --blue-1:   #3B82F6; --blue-2:   rgba(59,130,246,.14);

  /* Motion */
  --t-fast: .12s cubic-bezier(.4,0,.2,1);
  --t-base: .22s cubic-bezier(.4,0,.2,1);
  --t-slow: .38s cubic-bezier(.4,0,.2,1);
  --t-spring: .3s cubic-bezier(0.34,1.56,0.64,1);

  /* Radii */
  --r-xs: 5px; --r-sm: 8px; --r-md: 11px; --r-lg: 16px; --r-xl: 22px; --r-2xl: 28px; --r-pill: 9999px;

  /* Shadows — premium depth */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.12);
  --shadow-sm: 0 2px 6px rgba(0,0,0,.16);
  --shadow-md: 0 6px 18px -4px rgba(0,0,0,.28);
  --shadow-lg: 0 16px 40px -12px rgba(0,0,0,.36);
  --shadow-xl: 0 28px 72px -18px rgba(0,0,0,.44);
  --shadow-glow: 0 0 24px -4px var(--accent);

  /* Layout */
  --sidenav-w: 252px;
  --sidenav-w-collapsed: 72px;
  --topbar-h: 62px;
  --bottomnav-h: 68px;
}

/* DARK MODE — default */
:root, [data-mode="dark"] {
  --bg: var(--d-bg); --bg-soft: var(--d-bg-soft);
  --surface: var(--d-surface); --surface-2: var(--d-surface-2); --surface-3: var(--d-surface-3);
  --surface-glass: var(--d-surface-glass);
  --border: var(--d-border); --border-strong: var(--d-border-strong);
  --text: var(--d-text); --text-2: var(--d-text-2); --muted: var(--d-muted);
  --input-bg: var(--d-input);
  color-scheme: dark;
}
[data-mode="light"] {
  --bg: var(--l-bg); --bg-soft: var(--l-bg-soft);
  --surface: var(--l-surface); --surface-2: var(--l-surface-2); --surface-3: var(--l-surface-3);
  --surface-glass: var(--l-surface-glass);
  --border: var(--l-border); --border-strong: var(--l-border-strong);
  --text: var(--l-text); --text-2: var(--l-text-2); --muted: var(--l-muted);
  --input-bg: var(--l-input);
  color-scheme: light;
}

/* THEME ACCENTS */
:root, [data-theme="client"] {
  --accent: var(--client-1); --accent-2: var(--client-2);
  --accent-soft: var(--client-3); --accent-fg: #FFFFFF;
  --accent-glow: rgba(229,67,46,0.35);
}
[data-theme="advocate"] {
  --accent: var(--advocate-1); --accent-2: var(--advocate-2);
  --accent-soft: var(--advocate-3); --accent-fg: #0E0B06;
  --accent-glow: rgba(212,160,52,0.35);
}
[data-theme="admin"] {
  --accent: var(--admin-1); --accent-2: var(--admin-2);
  --accent-soft: var(--admin-3); --accent-fg: #FFFFFF;
  --accent-glow: rgba(61,142,245,0.3);
}

/* LEGACY ALIASES */
:root {
  --card-bg: var(--surface);
  --c-text: var(--text); --c-text-muted: var(--muted);
  --c-card: var(--surface); --c-border: var(--border);
  --c-shell: var(--bg); --c-shell-2: var(--surface-2);
  --c-accent: var(--accent); --c-primary: var(--accent); --c-accent-soft: var(--accent-soft);
}

/* ─── TYPOGRAPHY — Ubuntu throughout ─── */
body {
  background: var(--bg); color: var(--text);
  font-family: 'Ubuntu', -apple-system, system-ui, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background var(--t-base), color var(--t-base);
}

h1, h2, h3, h4 {
  font-family: 'Ubuntu', sans-serif;
  line-height: 1.2; font-weight: 700;
  letter-spacing: -0.015em;
}
h1 { font-size: 28px; } h2 { font-size: 20px; }
h3 { font-size: 17px; } h4 { font-size: 15px; }

/* display headings — italic Ubuntu for drama */
.display {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.025em;
}

.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.mono { font-family: 'Ubuntu Mono', ui-monospace, monospace; }

/* ═══════════════════════════════════════════════════════════════
   APP SHELL
   ═══════════════════════════════════════════════════════════════ */
body.app { background: var(--bg); }
.app-shell {
  display: grid;
  grid-template-columns: var(--sidenav-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-areas: "sidenav topbar" "sidenav main";
  min-height: 100vh;
}

/* SIDENAV */
.sidenav {
  grid-area: sidenav;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  z-index: 30;
  transition: transform var(--t-base);
}

/* Subtle vertical gradient on sidenav */
[data-mode="dark"] .sidenav {
  background: linear-gradient(180deg, #0D1220 0%, #0A0F1C 100%);
}

.sidenav-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  min-height: var(--topbar-h);
}
.sidenav-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.sidenav-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sidenav-brand-name { font-weight: 700; font-size: 14px; color: var(--text); letter-spacing: -0.01em; }
.sidenav-brand-sub { font-size: 11px; color: var(--muted); }

.sidenav-section {
  padding: 16px 14px 6px;
  font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.sidenav-list {
  padding: 0 8px;
  display: flex; flex-direction: column; gap: 2px;
  flex: 1; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.sidenav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px;
  border-radius: var(--r-md);
  color: var(--muted);
  font-size: 13.5px; font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
  position: relative;
  white-space: nowrap; overflow: hidden;
}
.sidenav-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.sidenav-link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.sidenav-link.is-active::before {
  content: ''; position: absolute;
  left: 0; top: 7px; bottom: 7px; width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px var(--accent-glow);
}
.sidenav-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.sidenav-badge {
  margin-left: auto;
  background: var(--accent); color: var(--accent-fg);
  font-size: 9.5px; font-weight: 700;
  padding: 2px 6px; border-radius: var(--r-pill);
  min-width: 18px; text-align: center;
  box-shadow: 0 2px 6px var(--accent-glow);
}
.sidenav-foot { padding: 10px; border-top: 1px solid var(--border); }
.sidenav-user {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-md);
  background: var(--surface-2);
  transition: background var(--t-fast);
  cursor: pointer;
}
.sidenav-user:hover { background: var(--surface-3); }
.sidenav-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.sidenav-user-text { flex: 1; min-width: 0; }
.sidenav-user-name { font-weight: 600; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidenav-user-role { font-size: 11px; color: var(--muted); }

/* TOPBAR */
.topbar {
  grid-area: topbar;
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.topbar-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  color: var(--text);
  align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all var(--t-fast);
}
.topbar-toggle:hover { background: var(--surface-3); }
.topbar-search { flex: 1; max-width: 440px; position: relative; }
.topbar-search input {
  width: 100%; height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 14px 0 40px;
  font-size: 13.5px; color: var(--text);
  font-family: 'Ubuntu', sans-serif;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.topbar-search input::placeholder { color: var(--muted); }
.topbar-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.topbar-search svg {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--muted);
  pointer-events: none;
}
.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topbar-icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
  position: relative;
  flex-shrink: 0;
}
.topbar-icon-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.topbar-icon-btn svg { width: 17px; height: 17px; flex-shrink: 0; display: block; }
.topbar-icon-btn .badge-dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 6px var(--accent-glow);
}
.topbar-icon-btn .badge-count {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: var(--accent-fg);
  font-size: 9px; font-weight: 700;
  padding: 1px 4px; border-radius: var(--r-pill);
  min-width: 15px; text-align: center;
  border: 2px solid var(--bg); line-height: 1.2;
}

/* MAIN AREA */
.main {
  grid-area: main;
  padding: 24px 28px 64px;
  max-width: 1440px;
  width: 100%;
}

/* MOBILE BOTTOM NAV */
.bottomnav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 40;
  padding: 6px 8px env(safe-area-inset-bottom, 6px);
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(12px);
}
.bottomnav-tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px;
  color: var(--muted);
  font-size: 10px; font-weight: 600;
  border-radius: var(--r-md);
  transition: color var(--t-fast);
  position: relative;
}
.bottomnav-tab svg { width: 21px; height: 21px; }
.bottomnav-tab.is-active { color: var(--accent); }
.bottomnav-tab.is-active::before {
  content: ''; position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 2.5px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 8px var(--accent-glow);
}
.bottomnav-tab .badge-dot {
  position: absolute; top: 4px; right: calc(50% - 14px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 5px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.page-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
  overflow: hidden;
}
.card.is-elevated { box-shadow: var(--shadow-md); }
.card.is-interactive { cursor: pointer; }
.card.is-interactive:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.card-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }

/* Premium card variant — glass */
.card-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
}
[data-mode="light"] .card-glass {
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,0,0,0.06);
}

/* STAT CARDS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color var(--t-fast), transform var(--t-fast);
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.stat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.stat::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.stat:hover::after { opacity: 1; }
.stat-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.stat-label svg { width: 14px; height: 14px; color: var(--accent); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-delta { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.stat-delta.is-up   { color: var(--green-1); }
.stat-delta.is-down { color: var(--red-1); }

.stat-hero {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--accent-fg);
  border-color: transparent;
  box-shadow: 0 8px 28px -6px var(--accent-glow);
}
.stat-hero .stat-label,
.stat-hero .stat-value { color: var(--accent-fg); }
.stat-hero .stat-label { opacity: 0.8; }
.stat-hero::after { display: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 600;
  font-family: 'Ubuntu', sans-serif;
  transition: all var(--t-fast);
  cursor: pointer; white-space: nowrap;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  box-shadow: 0 3px 12px var(--accent-glow);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
  filter: brightness(1.06);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--border-strong);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover:not(:disabled) {
  background: var(--accent-soft);
  box-shadow: 0 0 12px var(--accent-glow);
}
.btn-danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  box-shadow: 0 3px 12px rgba(239,68,68,.3);
}
.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239,68,68,.4);
}
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: var(--r-lg); }
.btn-icon { width: 38px; height: 38px; padding: 0; background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-icon:hover:not(:disabled) { background: var(--surface-3); color: var(--accent); }
.btn-block { width: 100%; }
.btn-full { width: 100%; }

/* CHIPS */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2);
  white-space: nowrap; letter-spacing: 0.01em;
}
.chip-success { background: var(--green-2); color: var(--green-1); }
.chip-danger  { background: var(--red-2); color: var(--red-1); }
.chip-warning { background: var(--yellow-2); color: var(--yellow-1); }
.chip-info    { background: var(--blue-2); color: var(--blue-1); }
.chip-accent  { background: var(--accent-soft); color: var(--accent); }

/* FORM INPUTS */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: 0.01em; }
.field-hint  { font-size: 12px; color: var(--muted); }
.field-error { font-size: 12px; color: var(--red-1); margin-top: 4px; }

.field-input,
.input, input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="number"], input[type="date"],
input[type="time"], input[type="search"], select, textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 14px; color: var(--text);
  font-family: 'Ubuntu', sans-serif;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field-input:focus,
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder, input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 80px; }
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236B7A9A' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.field-input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-input--mono { font-family: 'Ubuntu Mono', ui-monospace, monospace; letter-spacing: 1px; }
.field-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: 0; color: var(--muted); cursor: pointer;
}
.field-with-icon { position: relative; }
.field-with-icon .field-input { padding-right: 40px; }

.checkbox {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
}
.checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent); cursor: pointer;
}

/* ROW LIST */
.row-list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.row:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.row-avatar {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-3));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--accent);
  flex-shrink: 0; overflow: hidden;
}
.row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.row-body { flex: 1; min-width: 0; }
.row-title { font-weight: 600; font-size: 14px; color: var(--text); }
.row-meta { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-actions { display: flex; gap: 6px; align-items: center; }

/* DATE BLOCK */
.datebox {
  text-align: center;
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 8px 10px;
  min-width: 54px; flex-shrink: 0;
}
.datebox-day { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1; }
.datebox-month { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 1px; margin-top: 2px; text-transform: uppercase; }

/* EMPTY STATES */
.empty,
.empty-state {
  padding: 56px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  margin-top: 16px;
}
.empty-state h3 { font-size: 16px; margin-bottom: 4px; }
.empty-state p  { color: var(--muted); font-size: 14px; max-width: 360px; margin: 0 auto 12px; }
.empty-state .btn { margin-top: 8px; }
.empty-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.empty-icon svg { width: 26px; height: 26px; }
.empty h3 { font-size: 16px; margin-bottom: 4px; }
.empty p { color: var(--muted); font-size: 14px; max-width: 320px; margin: 0 auto 16px; }

/* BANNER / ALERT */
.banner {
  background: var(--accent-soft);
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.banner-icon { color: var(--accent); flex-shrink: 0; }
.banner-icon svg { width: 19px; height: 19px; }
.banner-body { flex: 1; }
.banner-title { font-weight: 600; font-size: 14px; color: var(--text); }
.banner-text { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* SEGMENTED CONTROL */
.segmented {
  display: inline-flex; padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  gap: 2px;
}
.segmented-tab {
  padding: 6px 14px;
  border-radius: calc(var(--r-md) - 4px);
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  transition: all var(--t-fast);
}
.segmented-tab.is-active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ADVOCATE CARDS */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.adv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  transition: all var(--t-base);
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.adv-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.adv-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity var(--t-base);
}
.adv-card:hover::before { opacity: 1; }
.adv-head { display: flex; gap: 12px; align-items: center; }
.adv-avatar {
  width: 50px; height: 50px;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-3));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--accent);
  flex-shrink: 0;
}
.adv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.adv-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.adv-bar  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.adv-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #F59E0B; font-weight: 600; }
.adv-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.adv-fee {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.adv-fee-value { font-weight: 700; color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.adv-fee-label { font-size: 11px; color: var(--muted); }

/* PROFILE META */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.dl-item { padding: 0; }
.dl-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 4px; }
.dl-value { font-size: 14px; color: var(--text); font-weight: 500; }
.dl-value code { font-size: 13px; background: var(--surface-2); padding: 2px 7px; border-radius: 5px; font-family: 'Ubuntu Mono', monospace; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}

/* UTILITY */
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.w-full { width: 100%; }
.hide-mobile { }
.show-mobile { display: none; }
.text-sm { font-size: 13px; } .text-xs { font-size: 12px; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'Ubuntu Mono', ui-monospace, monospace; }

/* MOBILE */
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-areas: "topbar" "main";
  }
  .sidenav {
    position: fixed;
    top: 0; left: 0;
    width: 280px; height: 100vh;
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }
  .sidenav.is-open { transform: translateX(0); }
  .sidenav-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 25;
    backdrop-filter: blur(3px);
  }
  .sidenav-backdrop.is-open { display: block; }
  .topbar { padding: 0 16px; }
  .topbar-toggle { display: inline-flex; }
  .topbar-search { display: none; }
  .main { padding: 16px 16px calc(var(--bottomnav-h) + 16px); }
  .bottomnav { display: flex; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: initial !important; }
  h1 { font-size: 22px; } h2 { font-size: 17px; }
  .page-head h1 { font-size: 22px; }
  .stat-hero { grid-column: span 1; }
}

/* AUTH PAGES */
body.auth { background: var(--bg); min-height: 100vh; display: flex; align-items: stretch; }

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--bg);
}
.auth-shell--center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-panel { display: flex; flex-direction: column; }
.auth-panel--form {
  padding: 32px 48px;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  justify-content: center;
}
.auth-panel--art {
  background: var(--surface-2);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

/* Premium art panel — layered dark gradient */
[data-mode="dark"] .auth-panel--art {
  background: linear-gradient(160deg, #0D1220 0%, #070A14 60%, #0A0F1C 100%);
}

.auth-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.brand-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--t-fast);
}
.brand-link:hover { color: var(--accent); }

.auth-title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  font-family: 'Ubuntu', sans-serif;
}
.auth-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.auth-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.auth-link {
  color: var(--accent);
  font-weight: 600;
  transition: opacity var(--t-fast);
}
.auth-link:hover { opacity: 0.8; }

/* AUTH ART PANEL */
.art-panel { position: relative; overflow: hidden; }
.art-panel__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.art-panel__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,10,20,.25) 0%, rgba(7,10,20,.9) 100%);
  z-index: 1;
}
.art-panel__content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.art-panel__top { display: flex; justify-content: space-between; align-items: flex-start; }
.art-panel__quote {
  font-family: 'Ubuntu', sans-serif;
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.art-panel__quote cite {
  display: block;
  margin-top: 16px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  opacity: 0.65;
}
.art-panel__stats {
  display: flex; gap: 32px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.art-panel__stats .stat {
  background: transparent; border: 0; padding: 0;
}
.art-panel__stats .stat strong {
  display: block; font-size: 24px; font-weight: 700; color: #fff;
}
.art-panel__stats .stat span { font-size: 12px; color: rgba(255,255,255,.6); }
.art-features { display: flex; flex-direction: column; gap: 12px; }
.art-features .feat {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #fff;
}
.dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-1);
  box-shadow: 0 0 6px rgba(34,197,94,.6);
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel--art { display: none; }
  .auth-panel--form { padding: 24px 20px; }
  .auth-form-side { padding: 24px 20px; }
  .auth-art-side { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE — lp- prefix
   ═══════════════════════════════════════════════════════════════ */
body.landing { background: var(--bg); overflow-x: hidden; }

/* Ambient glow effect — top of landing */
body.landing::before {
  content: '';
  position: fixed;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 400px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  opacity: 0.4;
}

/* HEADER */
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.lp-nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 13px 32px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.lp-brand { display: inline-flex; align-items: center; gap: 10px; }
.lp-brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 16px var(--accent-glow);
  letter-spacing: 0.5px;
}
.lp-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.lp-brand-name { font-weight: 700; font-size: 15px; color: var(--text); letter-spacing: -0.01em; }
.lp-brand-sub  { font-size: 11px; color: var(--muted); }
.lp-nav-links { display: flex; align-items: center; gap: 28px; }
.lp-nav-links a {
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: color var(--t-fast);
}
.lp-nav-links a:hover { color: var(--accent); }
.lp-nav-cta { display: flex; align-items: center; gap: 8px; }

/* HERO */
.lp-hero {
  max-width: 1280px; margin: 0 auto;
  padding: 64px 32px 88px;
  position: relative; z-index: 1;
}
.lp-hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: center;
}
.lp-hero-copy { max-width: 580px; }
.lp-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; color: var(--text-2);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.lp-hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-1);
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  animation: lpPulse 2.5s ease-in-out infinite;
}
@keyframes lpPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
  50% { box-shadow: 0 0 0 7px rgba(34,197,94,.04); }
}
.lp-hero-title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 62px; font-weight: 700;
  line-height: 1.04; letter-spacing: -0.035em;
  margin-bottom: 24px; color: var(--text);
}
.lp-hero-title em { font-style: italic; color: var(--accent); }
.lp-hero-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lp-hero-sub {
  font-size: 18px; color: var(--text-2);
  line-height: 1.65; margin-bottom: 32px;
}
.lp-hero-sub strong { color: var(--text); font-weight: 600; }
.lp-hero-cta { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.lp-hero-cta .btn-lg { padding: 15px 28px; font-size: 15px; }
.lp-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.lp-hero-stat strong {
  display: block;
  font-size: 28px; font-weight: 700;
  color: var(--text); letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.lp-hero-stat span { font-size: 12px; color: var(--muted); font-weight: 500; }

.lp-hero-art {
  position: relative; aspect-ratio: 4/5;
  max-width: 480px; margin-left: auto;
}
.lp-hero-image {
  position: relative; width: 100%; height: 100%;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 32px 64px -20px rgba(0,0,0,.5), 0 0 0 1px var(--border);
}
.lp-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.lp-hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,10,20,.55));
  pointer-events: none;
}

/* Floating cards */
.lp-float-card {
  position: absolute;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 2; min-width: 200px;
}
.lp-float-card--1 { top: 8%; left: -36px; animation: lpFloat1 6s ease-in-out infinite; }
.lp-float-card--2 { top: 42%; right: -48px; animation: lpFloat2 7s ease-in-out infinite; }
.lp-float-card--3 { bottom: 8%; left: -28px; animation: lpFloat3 8s ease-in-out infinite; }
@keyframes lpFloat1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lpFloat2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes lpFloat3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.lp-float-card-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.lp-float-card-icon svg { width: 16px; height: 16px; }
.lp-float-card-title { font-weight: 600; font-size: 13px; color: var(--text); }
.lp-float-card-sub { font-size: 11px; color: var(--muted); }

/* TRUST BAR */
.lp-trust {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 32px;
}
.lp-trust-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center;
  gap: 32px; flex-wrap: wrap; justify-content: center;
}
.lp-trust-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--muted);
}
.lp-trust-items { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; }
.lp-trust-item { font-size: 13px; font-weight: 500; color: var(--text-2); }

/* SECTION COMMONS */
.lp-section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.lp-eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent); margin-bottom: 16px;
}
.lp-h2 {
  font-family: 'Ubuntu', sans-serif;
  font-size: 42px; font-weight: 700;
  line-height: 1.1; letter-spacing: -0.025em;
  color: var(--text); margin-bottom: 16px;
}
.lp-h2 em { font-style: italic; color: var(--accent); }
.lp-section-sub { font-size: 17px; color: var(--muted); line-height: 1.65; }

/* HOW IT WORKS */
.lp-how { max-width: 1280px; margin: 0 auto; padding: 100px 32px; }
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  transition: all var(--t-base);
  position: relative; overflow: hidden;
}
.lp-step:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.lp-step-num {
  font-size: 13px; font-weight: 700;
  color: var(--muted); margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.lp-step-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.lp-step-icon svg { width: 24px; height: 24px; }
.lp-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.lp-step p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* PRACTICE AREAS */
.lp-practice { background: var(--surface-2); padding: 100px 32px; }
.lp-practice .lp-section-head { max-width: 1280px; }
.lp-practice-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.lp-practice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px; display: flex; align-items: center; gap: 14px;
  transition: all var(--t-base); position: relative; overflow: hidden;
}
.lp-practice-card:hover {
  border-color: var(--lp-pcolor, var(--accent));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.lp-practice-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--lp-pcolor, var(--accent)) 12%, transparent);
  color: var(--lp-pcolor, var(--accent));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lp-practice-icon svg { width: 22px; height: 22px; }
.lp-practice-name { flex: 1; font-weight: 600; font-size: 15px; color: var(--text); }
.lp-practice-arrow { color: var(--muted); font-weight: 700; transition: transform var(--t-fast), color var(--t-fast); }
.lp-practice-card:hover .lp-practice-arrow { color: var(--lp-pcolor, var(--accent)); transform: translateX(4px); }

/* FEATURES */
.lp-features { max-width: 1280px; margin: 0 auto; padding: 100px 32px; }
.lp-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-feature {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: all var(--t-base);
}
.lp-feature:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.lp-feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.lp-feature-icon svg { width: 24px; height: 24px; }
.lp-feature-icon--coral  { background: rgba(229,67,46,.12); color: var(--client-1); }
.lp-feature-icon--gold   { background: rgba(212,160,52,.16); color: var(--advocate-1); }
.lp-feature-icon--cyan   { background: rgba(61,142,245,.14); color: var(--admin-1); }
.lp-feature-icon--green  { background: rgba(34,197,94,.14); color: var(--green-1); }
.lp-feature-icon--purple { background: rgba(139,92,246,.14); color: #8B5CF6; }
.lp-feature-icon--orange { background: rgba(249,115,22,.14); color: #F97316; }
.lp-feature h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.lp-feature p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* CITIES */
.lp-cities { background: var(--surface-2); padding: 100px 32px; }
.lp-cities .lp-section-head { max-width: 720px; }
.lp-cities-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.lp-city {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
  transition: all var(--t-fast);
}
.lp-city:hover { border-color: var(--accent); background: var(--accent-soft); }
.lp-city-name { font-weight: 600; color: var(--text); font-size: 14px; }
.lp-city-count { font-size: 12px; color: var(--muted); }
.lp-city:hover .lp-city-count { color: var(--accent); }
.lp-cities-foot { max-width: 1280px; margin: 32px auto 0; text-align: center; }
.lp-cities-foot p { color: var(--muted); margin-bottom: 16px; }

/* TESTIMONIALS */
.lp-testimonials { max-width: 1280px; margin: 0 auto; padding: 100px 32px; }
.lp-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-testimonial {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 32px 28px;
  transition: all var(--t-base);
}
.lp-testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.lp-testimonial-rating { color: #F59E0B; font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; }
.lp-testimonial-quote {
  font-family: 'Ubuntu', sans-serif;
  font-size: 17px; line-height: 1.6;
  font-weight: 400; font-style: italic;
  color: var(--text); margin-bottom: 24px;
}
.lp-testimonial-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.lp-testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 3px 10px var(--accent-glow);
}
.lp-testimonial-name { font-weight: 600; color: var(--text); font-size: 14px; }
.lp-testimonial-meta { font-size: 12px; color: var(--muted); }

/* ADVOCATE CTA */
.lp-advocate-cta {
  padding: 100px 32px;
  background: linear-gradient(160deg, #070A14 0%, #0D1220 50%, #070A14 100%);
  color: #fff; position: relative; overflow: hidden;
}
.lp-advocate-cta::before {
  content: ''; position: absolute;
  top: -250px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--advocate-1) 0%, transparent 70%);
  opacity: 0.1; filter: blur(80px); pointer-events: none;
}
.lp-advocate-cta-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: center; position: relative; z-index: 1;
}
.lp-advocate-cta-copy .lp-eyebrow { color: var(--advocate-1); }
.lp-advocate-cta-copy .lp-h2 { color: #fff; margin-bottom: 16px; }
.lp-advocate-cta-copy .lp-h2 em { color: var(--advocate-1); -webkit-text-fill-color: var(--advocate-1); }
.lp-advocate-cta-copy > p { font-size: 16px; color: rgba(255,255,255,.72); line-height: 1.65; margin-bottom: 28px; }
.lp-advocate-cta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.lp-advocate-cta-list div { font-size: 14px; color: rgba(255,255,255,.9); display: flex; align-items: center; gap: 8px; }
.lp-advocate-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-advocate-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); padding: 24px 20px;
  backdrop-filter: blur(8px);
}
.lp-advocate-stat-num {
  display: block;
  font-size: 36px; font-weight: 700;
  color: var(--advocate-1); margin-bottom: 4px;
  letter-spacing: -0.025em;
}
.lp-advocate-stat-label {
  font-size: 12px; color: rgba(255,255,255,.55);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px;
}

/* FAQ */
.lp-faq { max-width: 840px; margin: 0 auto; padding: 100px 32px; }
.lp-faq-list { display: flex; flex-direction: column; gap: 10px; }
.lp-faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px 22px;
  transition: border-color var(--t-fast);
}
.lp-faq-item[open] { border-color: var(--accent); }
.lp-faq-q {
  font-weight: 600; font-size: 15px; color: var(--text);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; padding: 4px 0;
}
.lp-faq-q::-webkit-details-marker { display: none; }
.lp-faq-q::after {
  content: '+'; color: var(--accent);
  font-weight: 400; font-size: 22px; line-height: 1;
}
.lp-faq-item[open] .lp-faq-q::after { content: '−'; }
.lp-faq-a {
  color: var(--text-2); font-size: 14px; line-height: 1.65;
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border);
}
.lp-faq-foot { text-align: center; margin-top: 32px; }

/* FINAL CTA */
.lp-final-cta {
  padding: 100px 32px;
  background: radial-gradient(ellipse at center top, var(--accent-soft) 0%, transparent 60%);
}
.lp-final-cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.lp-final-cta .lp-h2 { font-size: 52px; margin-bottom: 12px; }
.lp-final-cta p { font-size: 18px; color: var(--text-2); margin-bottom: 32px; }
.lp-final-cta .lp-hero-cta { justify-content: center; }

/* FOOTER */
.lp-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 32px 32px;
}
.lp-footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.lp-footer-brand .lp-brand { margin-bottom: 16px; }
.lp-footer-tagline { color: var(--muted); font-size: 14px; max-width: 280px; line-height: 1.6; }
.lp-footer-col h4 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text); margin-bottom: 18px;
}
.lp-footer-col a {
  display: block; color: var(--muted); font-size: 14px;
  padding: 6px 0; transition: color var(--t-fast);
}
.lp-footer-col a:hover { color: var(--accent); }
.lp-footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px;
}

/* ADVOCATES PREVIEW */
.lp-advocates-preview { max-width: 1280px; margin: 0 auto; padding: 100px 32px; }
.lp-adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.lp-adv-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 22px 20px;
  transition: all var(--t-base);
  display: flex; flex-direction: column; color: inherit;
}
.lp-adv-card:hover {
  transform: translateY(-5px); border-color: var(--accent);
  box-shadow: var(--shadow-xl);
}
.lp-adv-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.lp-adv-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.lp-adv-avatar {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 22px;
}
.lp-adv-verified {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(34,197,94,.14); color: var(--green-1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lp-adv-verified svg { width: 14px; height: 14px; }
.lp-adv-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 2px; letter-spacing: -0.01em; }
.lp-adv-spec { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.lp-adv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.lp-adv-rate { color: #F59E0B; font-weight: 600; }
.lp-adv-rate small { color: var(--muted); font-weight: 400; }
.lp-adv-dot { color: var(--border); }
.lp-adv-langs {
  font-size: 11px; color: var(--text-2);
  background: var(--surface-2); padding: 5px 10px;
  border-radius: 6px; font-weight: 600; letter-spacing: 0.5px;
  display: inline-block; margin-bottom: 16px; align-self: flex-start;
}
.lp-adv-footer {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.lp-adv-fee {
  font-size: 20px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.lp-adv-fee-label { font-size: 11px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════
   PREMIUM ADVOCATE SEARCH — adv- prefix
   ═══════════════════════════════════════════════════════════════ */
.adv-page-title {
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.025em; color: var(--text); line-height: 1.1;
}
.adv-page-title span { color: var(--accent); }
.adv-page-sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.adv-quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adv-quick-stat {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: all var(--t-fast);
}
.adv-quick-stat:hover { border-color: var(--accent); color: var(--accent); }
.adv-quick-stat svg { color: var(--accent); }

/* Search bar */
.adv-search-bar-row { margin-bottom: 20px; }
.adv-search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px 8px 8px 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.adv-search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.adv-search-icon { color: var(--muted); flex-shrink: 0; }
.adv-search-input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 15px; color: var(--text);
  font-family: 'Ubuntu', sans-serif;
  padding: 10px 0;
}
.adv-search-input::placeholder { color: var(--muted); }

/* BENTO LAYOUT */
.adv-bento { display: grid; grid-template-columns: 272px 1fr; gap: 22px; align-items: start; }

/* Filter panel */
.adv-filters {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 20px;
  position: sticky; top: 80px;
  max-height: calc(100vh - 100px); overflow-y: auto;
}
.adv-filters-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.adv-filters-head h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }
.adv-clear-link { font-size: 12px; font-weight: 600; color: var(--accent); }
.adv-filter-block { padding: 14px 0; border-bottom: 1px solid var(--border); }
.adv-filter-block:last-of-type { border-bottom: 0; }
.adv-filter-block h4 {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--muted); margin-bottom: 10px;
}
.adv-filter-block h4 svg { color: var(--accent); }
.adv-field { display: block; margin-bottom: 8px; }
.adv-field:last-child { margin-bottom: 0; }
.adv-field-label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.adv-field-input {
  width: 100%; padding: 8px 10px; font-size: 13px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text);
  font-family: 'Ubuntu', sans-serif;
  transition: border-color var(--t-fast);
}
.adv-field-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
select.adv-field-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236B7A9A' stroke-width='3'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px;
}
.adv-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.adv-chip {
  cursor: pointer;
  display: inline-flex; align-items: center;
  padding: 5px 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; color: var(--text-2);
  transition: all var(--t-fast); user-select: none;
}
.adv-chip input { display: none; }
.adv-chip:hover { border-color: var(--accent); color: var(--accent); }
.adv-chip-on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.adv-chip-on:hover { color: var(--accent-fg); }
.adv-apply-btn { width: 100%; margin-top: 16px; }

/* Results grid */
.adv-results { min-width: 0; }
.adv-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* Premium advocate card */
.adv-pro-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 20px;
  display: flex; flex-direction: column;
  transition: all var(--t-base);
  position: relative; overflow: hidden;
}
.adv-pro-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity var(--t-base);
}
.adv-pro-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 48px -16px rgba(0,0,0,.35);
}
.adv-pro-card:hover::before { opacity: 1; }
.adv-pro-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px;
}
.adv-pro-avatar {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 22px;
  font-family: 'Ubuntu', sans-serif;
  overflow: hidden;
}
.adv-pro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.adv-pro-verified {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px;
  background: rgba(34,197,94,.12); color: var(--green-1);
  border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.adv-pro-verified svg { width: 12px; height: 12px; }
.adv-pro-name-link { text-decoration: none; color: inherit; }
.adv-pro-name {
  font-size: 17px; font-weight: 700; color: var(--text);
  margin: 0 0 2px; line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color var(--t-fast);
}
.adv-pro-name-link:hover .adv-pro-name { color: var(--accent); }
.adv-pro-spec { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.adv-pro-tagline {
  font-size: 13px; color: var(--text-2); line-height: 1.5;
  margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.adv-pro-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 10px;
}
.adv-pro-meta strong { color: var(--text); font-weight: 600; }
.adv-pro-rating { color: #F59E0B; font-weight: 600; }
.adv-pro-rating small { color: var(--muted); font-weight: 400; }
.adv-pro-dot { color: var(--border); }
.adv-pro-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.adv-pro-chip {
  display: inline-block; padding: 3px 8px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 6px; font-size: 10px; font-weight: 600; white-space: nowrap;
}
.adv-pro-chip-more {
  display: inline-block; padding: 3px 8px;
  background: var(--surface-2); color: var(--muted);
  border-radius: 6px; font-size: 10px; font-weight: 600;
}
.adv-pro-langs {
  font-size: 11px; font-weight: 600; color: var(--text-2);
  background: var(--surface-2); padding: 5px 10px;
  border-radius: 6px; letter-spacing: 0.5px;
  display: inline-block; margin-bottom: 14px; align-self: flex-start;
}
.adv-pro-foot {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.adv-pro-fee {
  font-size: 22px; font-weight: 700; color: var(--text);
  line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.adv-pro-fee-label { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* Empty state */
.adv-empty {
  text-align: center; padding: 80px 24px;
  background: var(--surface);
  border: 1px dashed var(--border); border-radius: var(--r-xl);
}
.adv-empty-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.adv-empty-icon svg { width: 28px; height: 28px; }
.adv-empty h3 { font-size: 21px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.adv-empty p { color: var(--muted); margin-bottom: 24px; max-width: 360px; margin-left: auto; margin-right: auto; }

/* Pagination */
.adv-pagination {
  margin-top: 28px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 12px;
}
.adv-pagination-info { text-align: center; color: var(--muted); font-size: 13px; }
.adv-pagination-info strong { color: var(--text); }
.adv-pagination > a:first-child { justify-self: start; }
.adv-pagination > a:last-child { justify-self: end; }

/* Mobile search */
@media (max-width: 1024px) {
  .adv-bento { grid-template-columns: 1fr; }
  .adv-filters { position: static; max-height: none; }
}
@media (max-width: 720px) {
  .adv-page-title { font-size: 26px; }
  .adv-quick-actions { width: 100%; }
  .adv-results-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   KYC / PROFILE
   ═══════════════════════════════════════════════════════════════ */
.profile-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 16px;
}
.profile-section h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.profile-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.profile-list > div { padding: 0; }
.profile-list dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; margin-bottom: 4px; }
.profile-list dd { font-size: 14px; color: var(--text); font-weight: 500; }
.profile-note { color: var(--muted); font-size: 13px; }

.kyc-banner {
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: var(--r-lg); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.kyc-status-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.kyc-status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
}
.badge-success      { background: var(--green-2); color: var(--green-1); }
.badge-danger       { background: var(--red-2); color: var(--red-1); }
.badge-warn         { background: var(--yellow-2); color: var(--yellow-1); }
.badge-muted        { background: var(--surface-2); color: var(--muted); }
.badge-success-soft { background: var(--green-2); color: var(--green-1); padding: 2px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; }
.ref-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; background: var(--surface-2); border-radius: 6px;
  font-family: 'Ubuntu Mono', monospace; font-size: 12px; font-weight: 600;
}
.kyc-form { display: flex; flex-direction: column; gap: 14px; }

/* ═══════════════════════════════════════════════════════════════
   DATA TABLE
   ═══════════════════════════════════════════════════════════════ */
.data-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.data-table th, .data-table td {
  padding: 12px 16px; text-align: left; font-size: 13.5px;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: var(--surface-2);
  font-weight: 700; color: var(--muted);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--surface-2); }

/* ACTION ROWS */
.action-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.action-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 12px;
}
.action-section h3 { font-size: 14px; margin-bottom: 8px; }

/* ═══════════════════════════════════════════════════════════════
   BOOKINGS / HEARINGS
   ═══════════════════════════════════════════════════════════════ */
.bookings-list { display: flex; flex-direction: column; gap: 10px; }
.booking-card {
  display: flex; gap: 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-fast);
}
.booking-card:hover { border-color: var(--accent); background: var(--surface-2); }
.booking-card-time {
  text-align: center; background: var(--surface-2);
  border-radius: var(--r-md); padding: 10px 12px;
  min-width: 80px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.booking-date { font-weight: 700; font-size: 13px; color: var(--text); }
.booking-time { font-size: 16px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.booking-duration { font-size: 11px; color: var(--muted); }
.booking-card-body { flex: 1; min-width: 0; }
.booking-card-body h3 { font-size: 15px; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.booking-brief { font-size: 13px; color: var(--muted); margin-top: 6px; }
.booking-hero {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg); border-radius: var(--r-lg);
  padding: 24px; margin-bottom: 16px;
  box-shadow: 0 8px 28px var(--accent-glow);
}
.profile-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }

.hearing-list { display: flex; flex-direction: column; gap: 10px; }
.hearing-card {
  display: flex; gap: 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast);
}
.hearing-today { border-color: var(--accent); background: var(--accent-soft); }
.hearing-date-block {
  text-align: center; background: var(--surface-2);
  border-radius: var(--r-md); padding: 10px 12px;
  min-width: 60px; flex-shrink: 0;
}
.hearing-day { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1; }
.hearing-body { flex: 1; min-width: 0; }
.hearing-case-title { font-weight: 700; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */
.notif-list { display: flex; flex-direction: column; gap: 6px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.notif-item:hover { background: var(--surface-2); border-color: var(--border-strong); }
.notif-item-unread { border-left: 3px solid var(--accent); }
.notif-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: 14px; color: var(--text); }
.notif-body { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.notif-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-left: auto;
  align-self: center; flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════════
   BOOKING PICKER
   ═══════════════════════════════════════════════════════════════ */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 24px 0 12px; gap: 12px;
}
.section-head h2 { font-size: 16px; }
.duration-row { display: flex; gap: 8px; flex-wrap: wrap; }
.duration-chip {
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--t-fast);
}
.duration-chip:hover { border-color: var(--accent); color: var(--accent); }
.duration-chip-on, .duration-chip.is-active {
  background: var(--accent); color: var(--accent-fg); border-color: var(--accent);
  box-shadow: 0 3px 10px var(--accent-glow);
}
.slot-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px; margin-top: 12px;
}
.slot-btn {
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); font-size: 13px; font-weight: 600;
  color: var(--text); cursor: pointer; transition: all var(--t-fast);
  font-family: 'Ubuntu', sans-serif;
}
.slot-btn:hover { border-color: var(--accent); color: var(--accent); }
.slot-btn.is-selected, .slot-btn[aria-pressed="true"] {
  background: var(--accent); color: var(--accent-fg); border-color: var(--accent);
  box-shadow: 0 3px 10px var(--accent-glow);
}
.slot-day {
  background: var(--surface-2); padding: 8px 12px; border-radius: var(--r-md);
  font-weight: 600; font-size: 13px; color: var(--text-2); margin-top: 12px;
}
.fee-summary {
  background: var(--surface-2); border-radius: var(--r-md);
  padding: 14px 16px; margin-top: 16px;
  display: flex; flex-direction: column; gap: 6px; font-size: 13px;
}
.fee-summary .fee-row { display: flex; justify-content: space-between; }
.fee-summary .fee-total {
  border-top: 1px solid var(--border); margin-top: 6px;
  padding-top: 10px; font-weight: 700; font-size: 15px;
}
.lock-countdown {
  background: var(--yellow-2); color: var(--yellow-1);
  padding: 6px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; display: inline-block;
}

/* Cases detail */
.appt-detail-hero {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px;
}
.docs-list { display: flex; flex-direction: column; gap: 8px; }
.doc-desc { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq-section { margin-bottom: 24px; }
.faq-section h2 { font-size: 17px; margin-bottom: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 8px;
  transition: border-color var(--t-fast);
}
.faq-item[open] { border-color: var(--accent); }
.faq-q {
  font-weight: 600; font-size: 14px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; color: var(--accent); font-weight: 400; font-size: 20px; }
.faq-item[open] .faq-q::after { content: '−'; }
.faq-a {
  font-size: 13px; color: var(--text-2); line-height: 1.65;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   LEGACY DASHBOARD CLASSES
   ═══════════════════════════════════════════════════════════════ */
.dash-header { display: none; }
.dash-foot { display: none; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.dash-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all var(--t-fast); cursor: pointer;
}
.dash-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dash-card-icon {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.dash-card h3 { font-size: 15px; }
.dash-card p { font-size: 13px; color: var(--muted); }
.dash-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); margin-top: 24px;
}
.dash-meta strong { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.dash-meta code { font-size: 13px; background: var(--surface-2); padding: 3px 7px; border-radius: 4px; font-family: 'Ubuntu Mono', monospace; }
.dash-hero { margin-bottom: 24px; }
.dash-greeting { font-size: 13px; color: var(--muted); }
.dash-name { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.dash-main { padding: 0; }

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ═══════════════════════════════════════════════════════════════
   SEARCH PAGE (legacy)
   ═══════════════════════════════════════════════════════════════ */
.search-shell { max-width: 1400px; margin: 0 auto; padding: 0; }
.search-header { margin-bottom: 24px; }
.search-header h1 { font-size: 26px; margin-bottom: 4px; }
.search-bar { display: flex; gap: 8px; margin-bottom: 20px; }
.search-bar .search-input {
  flex: 1; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 16px; color: var(--text);
  font-family: 'Ubuntu', sans-serif;
}
.search-bar .search-input:focus { outline: none; border-color: var(--accent); }
.search-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.search-filters {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px;
  position: sticky; top: calc(var(--topbar-h) + 16px);
}
.filter-block { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.filter-block:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.filter-block h3 { font-size: 13px; margin-bottom: 10px; color: var(--text-2); }
.filter-block label {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; font-size: 13px; color: var(--text-2); cursor: pointer;
}
.filter-block input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--accent); }
.filter-block select { width: 100%; }
@media (max-width: 900px) {
  .search-grid { grid-template-columns: 1fr; }
  .search-filters { position: static; }
}

/* ═══════════════════════════════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════════════════════════════ */
.theme-toggle {
  position: fixed; top: 20px; right: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); z-index: 50;
  box-shadow: var(--shadow-md);
  transition: all var(--t-fast); cursor: pointer;
}
.theme-toggle:hover {
  transform: scale(1.1);
  background: var(--surface-2);
  box-shadow: 0 0 16px var(--accent-glow);
}
.theme-toggle svg { width: 18px; height: 18px; }

.th-sun, .th-moon { width: 18px; height: 18px; display: none !important; }
#themeToggleBtn .th-sun,
.theme-toggle .th-sun { display: block !important; }
[data-mode="light"] #themeToggleBtn .th-sun,
[data-mode="light"] .theme-toggle .th-sun { display: none !important; }
[data-mode="light"] #themeToggleBtn .th-moon,
[data-mode="light"] .theme-toggle .th-moon { display: block !important; }
#themeToggleBtn .icon-sun,
.theme-toggle .icon-sun { display: inline-flex !important; }
#themeToggleBtn .icon-moon,
.theme-toggle .icon-moon { display: none !important; }
[data-mode="light"] #themeToggleBtn .icon-sun,
[data-mode="light"] .theme-toggle .icon-sun { display: none !important; }
[data-mode="light"] #themeToggleBtn .icon-moon,
[data-mode="light"] .theme-toggle .icon-moon { display: inline-flex !important; }

/* Topbar actions right-align */
.topbar > .topbar-actions { margin-left: auto; }
.topbar-search svg { left: 13px; width: 15px; height: 15px; }
.topbar-search input { padding-left: 40px; }

/* ═══════════════════════════════════════════════════════════════
   LANDING — MOBILE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .lp-hero-art { max-width: 100%; }
  .lp-float-card--1 { left: 8%; }
  .lp-float-card--2 { right: 8%; }
  .lp-float-card--3 { left: 8%; }
  .lp-steps,
  .lp-features-grid,
  .lp-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-practice-grid,
  .lp-cities-grid { grid-template-columns: repeat(3, 1fr); }
  .lp-advocate-cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-adv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .lp-nav-inner { padding: 12px 20px; }
  .lp-nav-links { display: none; }
  .lp-nav-cta .btn-sm { padding: 6px 10px; font-size: 12px; }
  .lp-brand-text { display: none; }
  .lp-hero { padding: 36px 20px 60px; }
  .lp-hero-title { font-size: 36px; line-height: 1.08; }
  .lp-hero-sub { font-size: 15px; }
  .lp-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .lp-hero-stat strong { font-size: 22px; }
  .lp-float-card { min-width: 160px; padding: 10px 12px; }
  .lp-trust-inner { gap: 16px; }
  .lp-trust-items { gap: 12px 20px; justify-content: center; }
  .lp-how, .lp-features, .lp-testimonials, .lp-faq, .lp-final-cta { padding: 60px 20px; }
  .lp-practice, .lp-cities { padding: 60px 20px; }
  .lp-advocate-cta { padding: 60px 20px; }
  .lp-section-head { margin-bottom: 36px; }
  .lp-h2 { font-size: 28px; }
  .lp-section-sub { font-size: 15px; }
  .lp-steps, .lp-features-grid, .lp-testimonials-grid,
  .lp-practice-grid, .lp-cities-grid, .lp-advocate-cta-list,
  .lp-advocate-stats, .lp-adv-grid { grid-template-columns: 1fr; }
  .lp-cities-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-final-cta .lp-h2 { font-size: 34px; }
  .lp-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .lp-footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════ */
@media print {
  .sidenav, .topbar, .bottomnav, .theme-toggle { display: none !important; }
  .main { padding: 0; }
  body { background: white; color: black; }
}

/* ═══════════════════════════════════════════════════════════════
   LANGUAGES SECTION
   ═══════════════════════════════════════════════════════════════ */
.lp-langs {
  max-width: 1280px; margin: 0 auto; padding: 100px 32px;
}
.lp-langs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.lp-lang-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px 16px;
  text-align: center;
  transition: all var(--t-base);
  cursor: pointer;
}
.lp-lang-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--accent-soft);
}
.lp-lang-native {
  font-size: 26px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; line-height: 1.2;
}
.lp-lang-en {
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.lp-lang-count {
  font-size: 13px; font-weight: 600; color: var(--accent);
}
.lp-adv-foot {
  text-align: center; margin-top: 32px;
}
@media (max-width: 720px) {
  .lp-langs { padding: 60px 20px; }
  .lp-langs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── TPT Logo image — dark/light mode handling ─── */
.tpt-logo-img {
  display: block;
  filter: none;
  transition: filter var(--t-fast);
}
/* Dark mode: logo is black — invert to white */
[data-mode="dark"] .sidenav .tpt-logo-img,
[data-mode="dark"] .topbar .tpt-logo-img,
[data-mode="dark"] .lp2-nav .tpt-logo-img,
[data-mode="dark"] .lp-nav .tpt-logo-img,
[data-mode="dark"] .auth-panel .tpt-logo-img,
[data-mode="dark"] .lp-footer .tpt-logo-img,
[data-mode="dark"] .lp2-footer .tpt-logo-img,
[data-mode="dark"] .tpt-footer .tpt-logo-img {
  filter: invert(1);
}
/* On accent-colored backgrounds (nav in dark mode, footer) — invert */
.lp2-trust .tpt-logo-img,
.lp-trust .tpt-logo-img {
  filter: invert(1);
}
/* Auth pages — always dark bg side */
.auth-panel--art .tpt-logo-img { filter: invert(1); }
/* Light mode on dark bg sections */
.adv-cta-section .tpt-logo-img { filter: invert(1); }

/* ═══════════════════════════════════════════════════════════════
   MISSING COMPONENT STYLES — Bulk fix for views using these classes
   ═══════════════════════════════════════════════════════════════ */

/* ─── Empty state ─── */
.empty-state {
  text-align: center; padding: 48px 20px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.empty-state p { font-size: 13px; color: var(--muted); margin: 0; }

/* ─── Grid helpers ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .grid-3 { grid-template-columns: 1fr; } }

/* ─── Spacing utilities ─── */
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.text-sm { font-size: 13px; }
.muted { color: var(--muted); }

/* ─── Section headings ─── */
.section-h3 {
  font-size: 14px; font-weight: 700; color: var(--text); margin: 20px 0 12px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.section-h3 .profile-note { font-weight: 400; }

/* ─── Profile components ─── */
.profile-hero {
  display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap;
  padding: 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; margin-bottom: 18px;
}
.profile-hero-info { flex: 1; min-width: 200px; }
.profile-avatar-large {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
}
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-placeholder { font-size: 28px; font-weight: 700; color: var(--accent); }
.profile-tagline { font-size: 14px; color: var(--text-2); margin: 0 0 8px; font-style: italic; }
.profile-bio { color: var(--text); font-size: 14px; line-height: 1.6; }
.profile-form { max-width: 100%; }
.profile-form .btn { margin-top: 8px; }

/* Avatar edit row */
.avatar-edit-row { display: flex; align-items: center; gap: 16px; }
.avatar-edit-actions { display: flex; flex-direction: column; gap: 6px; }

/* Cover banner */
.cover-banner {
  height: 160px; background-size: cover; background-position: center;
  border-radius: var(--r-lg); margin-bottom: -40px; position: relative;
  background-color: var(--surface-2);
}
.cover-banner-placeholder { background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); }

/* ─── Description list grid ─── */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; padding: 4px 0; }
.dl-item { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.dl-item:last-child { border-bottom: 0; }
.dl-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.dl-value { font-size: 14px; color: var(--text); font-weight: 500; display: flex; align-items: center; }

/* ─── Chip grid (selectable chips for practice areas, languages) ─── */
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip-grid .chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--r-pill); font-size: 13px; font-weight: 500;
  color: var(--text); cursor: pointer; transition: all var(--t-fast); user-select: none;
}
.chip-grid .chip:hover { border-color: var(--accent); color: var(--accent); }
.chip-grid .chip input { display: none; }
.chip-on, .chip-grid .chip:has(input:checked) {
  background: var(--accent) !important; color: var(--accent-fg) !important; border-color: var(--accent) !important;
}

/* Chip row (display-only chips) */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── Fee grid ─── */
.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.fee-card { padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.fee-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.fee-amount { font-size: 20px; font-weight: 700; color: var(--text); }

/* ─── Stat card (used in billing, dashboards) ─── */
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.stat-card-accent {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 60%);
  border-color: var(--accent);
}

/* ─── Page head (used widely) ─── */
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px; flex-wrap: wrap; margin-bottom: 22px;
}
.adv-page-title { font-size: 24px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; color: var(--text); }
.adv-page-sub { font-size: 13px; color: var(--muted); margin: 0; }
.adv-page-sub strong { color: var(--text); font-weight: 600; }

/* ─── Pagination ─── */
.adv-pagination {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 20px; padding: 12px 0;
}
.adv-pagination-info { font-size: 13px; color: var(--muted); }