/* =============================================================================
   DETECTIN — Premium Design System v3
   Dark-first · Light via [data-theme="light"] · Zero build · CSS puro
   ============================================================================= */

/* === CHUNK 1: tokens + reset === */
/* === CHUNK 2: typography + base + utilities === */
/* === CHUNK 3: layout shell (header, footer, mobile-menu, main-wrapper) === */
/* === CHUNK 4: buttons + badges + chips === */
/* === CHUNK 5: forms (form-control, form-group, OTP, checkbox/radio) === */
/* === CHUNK 6: cards + feature-card + data-grid + section eyebrow === */
/* === CHUNK 7: auth-shell + auth-card + user-menu + session-timer + modals === */
/* === CHUNK 8: alerts + toasts + error/success-message === */
/* === CHUNK 9: hero + features-section + pricing === */
/* === CHUNK 10: faq + legal + checkout + wallet === */
/* === CHUNK 11: dashboard core (metrics, history tables) === */
/* === CHUNK 12: admin shell === */
/* === CHUNK 13: query (search, result cards, copy-paste, address-list) === */
/* === CHUNK 14: org panels === */
/* === CHUNK 15: animations + keyframes + media queries === */


/* =============================================================================
   CHUNK 1 — TOKENS + RESET
   ============================================================================= */

:root {
  color-scheme: dark;

  /* Surfaces (dark-first) */
  --bg:            #0A0B0E;
  --bg-soft:       #0E1014;
  --surface:       #13151A;
  --surface-2:     #181B22;
  --elevated:      #1A1D24;
  --elevated-2:    #21252E;
  --overlay:       rgba(10, 11, 14, .72);
  --glass:         rgba(19, 21, 26, .72);

  /* Borders / separators */
  --border:        #22262F;
  --border-soft:   #1B1E26;
  --border-strong: #2F3440;

  /* Text */
  --text:          #E6E8EC;
  --text-strong:   #F6F7F9;
  --text-muted:    #9AA0AE;
  --text-dim:      #6B7180;
  --text-inverse:  #0B0D12;

  /* Brand / accent (electric cyan) */
  --accent:        #22D3EE;
  --accent-strong: #06B6D4;
  --accent-soft:   rgba(34, 211, 238, .12);
  --accent-ring:   rgba(34, 211, 238, .35);
  --accent-glow:   0 0 32px rgba(34, 211, 238, .28);

  /* Gradients */
  --grad-brand:    linear-gradient(135deg, #22D3EE 0%, #6366F1 100%);
  --grad-brand-dim: linear-gradient(135deg, rgba(34,211,238,.18) 0%, rgba(99,102,241,.18) 100%);
  --grad-surface:  linear-gradient(180deg, #151821 0%, #101218 100%);
  --grad-hero:     radial-gradient(1200px 600px at 50% -10%, rgba(34,211,238,.18), transparent 60%),
                   radial-gradient(900px 500px at 85% 10%, rgba(99,102,241,.14), transparent 55%),
                   linear-gradient(180deg, #0A0B0E 0%, #0A0B0E 100%);

  /* Semantic */
  --success:       #22C55E;
  --success-soft:  rgba(34, 197, 94, .14);
  --warning:       #F59E0B;
  --warning-soft:  rgba(245, 158, 11, .14);
  --danger:        #F87171;
  --danger-strong: #EF4444;
  --danger-soft:   rgba(248, 113, 113, .14);
  --info:          #60A5FA;
  --info-soft:     rgba(96, 165, 250, .14);

  /* Legacy aliases (templates antigos referenciam --primary) */
  --primary:        var(--accent);
  --primary-strong: var(--accent-strong);

  /* Typography */
  --font-ui:       "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display:  "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* Shadows (dark-tuned) */
  --shadow-xs:   0 1px 2px rgba(0,0,0,.4);
  --shadow-sm:   0 2px 6px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.4);
  --shadow-md:   0 8px 24px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.3);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.55), 0 4px 12px rgba(0,0,0,.35);
  --shadow-xl:   0 32px 80px rgba(0,0,0,.6);
  --ring:        0 0 0 3px var(--accent-ring);
  --ring-danger: 0 0 0 3px rgba(248,113,113,.28);

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px; --s-6: 24px;  --s-8: 32px;  --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  /* Motion */
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 120ms;
  --dur:      200ms;
  --dur-slow: 360ms;

  /* Layout */
  --container:        1200px;
  --container-narrow: 880px;
  --header-h:         68px;
  --mobile-tab-h:     64px;

  /* Z-index */
  --z-header:   60;
  --z-dropdown: 70;
  --z-toast:    90;
  --z-modal:    100;
}

/* ---- LIGHT MODE OVERRIDES ---- */
[data-theme="light"] {
  color-scheme: light;

  --bg:            #F7F8FA;
  --bg-soft:       #FFFFFF;
  --surface:       #FFFFFF;
  --surface-2:     #F5F6F8;
  --elevated:      #FFFFFF;
  --elevated-2:    #F0F2F6;
  --overlay:       rgba(15, 20, 30, .5);
  --glass:         rgba(255, 255, 255, .78);

  --border:        #E4E7EB;
  --border-soft:   #EEF0F4;
  --border-strong: #D3D7DE;

  --text:          #1F2430;
  --text-strong:   #0B0D12;
  --text-muted:    #5B6270;
  --text-dim:      #8A909C;
  --text-inverse:  #FFFFFF;

  --accent:        #0891B2;
  --accent-strong: #0E7490;
  --accent-soft:   rgba(8, 145, 178, .10);
  --accent-ring:   rgba(8, 145, 178, .28);
  --accent-glow:   0 0 28px rgba(8, 145, 178, .18);

  --grad-brand:     linear-gradient(135deg, #0891B2 0%, #4F46E5 100%);
  --grad-brand-dim: linear-gradient(135deg, rgba(8,145,178,.10) 0%, rgba(79,70,229,.10) 100%);
  --grad-surface:   linear-gradient(180deg, #FFFFFF 0%, #F5F6F8 100%);
  --grad-hero:      radial-gradient(1200px 600px at 50% -10%, rgba(8,145,178,.18), transparent 60%),
                    radial-gradient(900px 500px at 85% 10%, rgba(79,70,229,.10), transparent 55%),
                    linear-gradient(180deg, #FBFCFD 0%, #F7F8FA 100%);

  --success:       #0F9D58;
  --success-soft:  rgba(15, 157, 88, .12);
  --warning:       #D97706;
  --warning-soft:  rgba(217, 119, 6, .12);
  --danger:        #DC2626;
  --danger-strong: #B91C1C;
  --danger-soft:   rgba(220, 38, 38, .10);
  --info:          #2563EB;
  --info-soft:     rgba(37, 99, 235, .10);

  --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 2px 6px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 10px 30px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.06);
  --shadow-xl: 0 32px 80px rgba(15,23,42,.14);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; letter-spacing: -0.01em; color: var(--text-strong); }

hr { border: 0; height: 1px; background: var(--border); margin: var(--s-6) 0; }

::selection { background: var(--accent-soft); color: var(--text-strong); }

:focus-visible {
  outline: 0;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
}

* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-pill);
  border: 2px solid var(--bg);
}
*::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =============================================================================
   CHUNK 2 — TYPOGRAPHY + BASE + UTILITIES
   ============================================================================= */

/* ---- Type scale (fluid, premium) ---- */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.4vw + .8rem, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h3, .h3 {
  font-size: clamp(1.25rem, 1.4vw + .6rem, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
h4, .h4 { font-size: 1.125rem; line-height: 1.35; }
h5, .h5 { font-size: 1rem; line-height: 1.4; }
h6, .h6 { font-size: .875rem; line-height: 1.45; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

small, .small { font-size: .8125rem; color: var(--text-muted); }

strong, b { color: var(--text-strong); font-weight: 700; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text-strong);
  padding: 2px 6px;
  border-radius: var(--r-xs);
}

kbd {
  box-shadow: 0 1px 0 var(--border-strong);
  font-weight: 600;
}

a:not(.btn):not(.nav-link):not(.mobile-nav-link):not(.logo) {
  color: var(--accent);
  transition: color var(--dur-fast) var(--ease);
}
a:not(.btn):not(.nav-link):not(.mobile-nav-link):not(.logo):hover {
  color: var(--accent-strong);
}

/* ---- Layout containers ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* ---- Text utilities ---- */
.text-center   { text-align: center; }
.text-left     { text-align: left; }
.text-right    { text-align: right; }
.text-muted    { color: var(--text-muted); }
.text-dim      { color: var(--text-dim); }
.text-strong   { color: var(--text-strong); }
.text-accent   { color: var(--accent); }
.text-success  { color: var(--success); }
.text-warning  { color: var(--warning); }
.text-danger,
.danger-text   { color: var(--danger); }
.text-upper    { text-transform: uppercase; letter-spacing: .06em; }
.text-balance  { text-wrap: balance; }
.text-pretty   { text-wrap: pretty; }

.mono, .numeric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Flex / grid helpers ---- */
.flex        { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.gap-6 { gap: var(--s-6); }
.gap-8 { gap: var(--s-8); }

.grid       { display: grid; }
.grid-auto  { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-5); }

/* ---- Spacing utilities (compact set) ---- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-8 { margin-bottom: var(--s-8); }

/* ---- Visibility ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hidden { display: none !important; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ---- Elevation helpers ---- */
.elevation-1 { box-shadow: var(--shadow-sm); }
.elevation-2 { box-shadow: var(--shadow-md); }
.elevation-3 { box-shadow: var(--shadow-lg); }

/* ---- Dividers ---- */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--s-5) 0;
  border: 0;
}
.divider-labeled {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-5) 0;
  color: var(--text-dim);
  font-size: .8125rem;
}
.divider-labeled::before,
.divider-labeled::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}


/* =============================================================================
   CHUNK 3 — LAYOUT SHELL (header, footer, mobile menu, main wrapper)
   ============================================================================= */

/* ---- Header / topbar ---- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              height var(--dur) var(--ease);
}
.header.shrink {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  transition: opacity var(--dur-fast) var(--ease);
}
.logo:hover { opacity: .85; }
.logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  object-fit: contain;
}

/* ---- Desktop nav ---- */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.nav-link:hover {
  color: var(--text-strong);
  background: var(--surface-2);
}
.nav-link.active {
  color: var(--text-strong);
  background: var(--accent-soft);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--accent);
}

/* ---- Theme toggle ---- */
.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--dur-fast) var(--ease);
}
.theme-toggle:hover {
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: inline; }
[data-theme="light"] .theme-toggle .i-sun { display: inline; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }

/* ---- Mobile toggle (hamburger) ---- */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--text-strong);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--dur-fast) var(--ease);
}
.mobile-toggle:hover { border-color: var(--border-strong); }

/* ---- Mobile menu (drawer) ---- */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: var(--s-3) var(--s-5) var(--s-5);
  background: var(--surface);
  border-top: 1px solid var(--border);
  gap: 2px;
}
.mobile-menu.open { display: flex; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px var(--s-3);
  border-radius: var(--r-md);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  transition: background var(--dur-fast) var(--ease);
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--surface-2);
  color: var(--text-strong);
}
.mobile-nav-link i {
  width: 18px;
  color: var(--text-dim);
}

/* ---- Mobile bottom nav (logged-in only) ---- */
.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-header);
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border);
  padding: 8px max(16px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
}
.mobile-tabbar-inner {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: var(--r-md);
  font-size: .6875rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.tab-item i { font-size: 18px; }
.tab-item.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.tab-item:hover { color: var(--text-strong); }

/* ---- Main wrapper ---- */
.main-wrapper {
  min-height: calc(100vh - var(--header-h) - 200px);
}

/* ---- Footer ---- */
footer {
  margin-top: var(--s-16);
  padding: var(--s-10) 0 var(--s-8);
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  color: var(--text-dim);
  font-size: .875rem;
}
footer .container { text-align: center; }
footer a {
  color: var(--text-muted);
  margin: 0 var(--s-3);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}
footer a:hover { color: var(--accent); }

/* ---- Mobile breakpoint: nav behavior ---- */
@media (max-width: 860px) {
  .nav-desktop { display: none !important; }
  .mobile-toggle { display: inline-flex; }
}
@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
  .mobile-toggle { display: none !important; }
}
@media (max-width: 640px) {
  body.has-tabbar { padding-bottom: calc(var(--mobile-tab-h) + 24px); }
  body.has-tabbar .mobile-tabbar { display: block; }
  footer { padding-bottom: calc(var(--mobile-tab-h) + 24px); }
}


/* =============================================================================
   CHUNK 4 — BUTTONS + BADGES + CHIPS
   ============================================================================= */

/* ---- Button base ---- */
.btn {
  --_bg:     var(--surface-2);
  --_bgH:    var(--elevated-2);
  --_fg:     var(--text-strong);
  --_border: var(--border);
  --_ring:   var(--accent-ring);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 10px 18px;
  min-height: 42px;
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--_fg);
  background: var(--_bg);
  border: 1px solid var(--_border);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  user-select: none;
}
.btn:hover {
  background: var(--_bgH);
  border-color: var(--border-strong);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--_ring); }
.btn:disabled,
.btn[disabled],
.btn.is-loading {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn i + span,
.btn span + i,
.btn i + i { margin-left: 0; }

/* ---- Variants ---- */
.btn-primary {
  --_bg:     var(--accent);
  --_bgH:    var(--accent-strong);
  --_fg:     #021016;
  --_border: transparent;
  color: #021016;
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset,
              0 10px 24px -12px rgba(34,211,238,.55);
}
.btn-primary:hover {
  background: var(--accent-strong);
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset,
              0 16px 32px -12px rgba(34,211,238,.7),
              var(--accent-glow);
}
[data-theme="light"] .btn-primary {
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
              0 10px 24px -12px rgba(8,145,178,.45);
}
[data-theme="light"] .btn-primary:hover { color: #fff; }

.btn-secondary {
  --_bg:     var(--elevated);
  --_bgH:    var(--elevated-2);
  --_fg:     var(--text-strong);
  --_border: var(--border);
}

.btn-outline,
.btn-outline-secondary {
  --_bg:     transparent;
  --_bgH:    var(--surface-2);
  --_fg:     var(--text-strong);
  --_border: var(--border-strong);
}
.btn-outline:hover,
.btn-outline-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  --_bg:     transparent;
  --_bgH:    var(--surface-2);
  --_fg:     var(--text);
  --_border: transparent;
}

.btn-danger {
  --_bg:     var(--danger);
  --_bgH:    var(--danger-strong);
  --_fg:     #fff;
  --_border: transparent;
  --_ring:   rgba(248,113,113,.28);
  color: #fff;
  background: var(--danger);
}
.btn-danger:hover { background: var(--danger-strong); color: #fff; }

.btn-success {
  --_bg:     var(--success);
  --_bgH:    #16a34a;
  --_fg:     #06140A;
  --_border: transparent;
  color: var(--_fg);
  background: var(--success);
}

/* ---- Sizes ---- */
.btn-sm  { min-height: 34px; padding: 7px 12px; font-size: .8125rem; border-radius: var(--r-sm); }
.btn-lg  { min-height: 52px; padding: 14px 24px; font-size: 1rem; border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.btn-row.center { justify-content: center; }

/* ---- Copy button (used inline with values) ---- */
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  min-height: 28px;
  border-radius: var(--r-sm);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all var(--dur-fast) var(--ease);
}
.btn-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn-copy.copied {
  color: var(--success);
  border-color: var(--success);
  background: var(--success-soft);
}

/* ---- Glow (optional emphasis) ---- */
.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad-brand);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--dur) var(--ease);
  filter: blur(16px);
}
.btn-glow:hover::before { opacity: .6; }

/* ---- Icon-only button ---- */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  min-height: 0;
  border-radius: var(--r-md);
}


/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge-primary {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}
.badge-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.badge-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge-danger  { background: var(--danger-soft);  color: var(--danger);  border-color: transparent; }
.badge-info    { background: var(--info-soft);    color: var(--info);    border-color: transparent; }
.badge-dark {
  background: var(--elevated-2);
  color: var(--text-strong);
  border-color: var(--border-strong);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cost-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--success-soft);
  color: var(--success);
  font-size: .75rem;
  font-weight: 700;
}

/* ---- Chips (tags / filters) ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}
.chip:hover { border-color: var(--border-strong); color: var(--text-strong); }
.chip.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.chip .remove {
  width: 16px; height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 10px;
}


/* =============================================================================
   CHUNK 5 — FORMS
   ============================================================================= */

/* ---- Form group ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--s-4);
}
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-group .hint,
.form-hint {
  font-size: .75rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.form-group .error {
  font-size: .75rem;
  color: var(--danger);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Input / textarea / select ---- */
.form-control,
input[type="text"]:not(.unstyled),
input[type="email"]:not(.unstyled),
input[type="password"]:not(.unstyled),
input[type="tel"]:not(.unstyled),
input[type="url"]:not(.unstyled),
input[type="number"]:not(.unstyled),
input[type="search"]:not(.unstyled),
input[type="date"]:not(.unstyled),
textarea.form-control,
select.form-control {
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  font-family: var(--font-ui);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-strong);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.form-control::placeholder { color: var(--text-dim); font-weight: 400; }
.form-control:hover { border-color: var(--border-strong); }
.form-control:focus {
  outline: 0;
  border-color: var(--accent);
  background: var(--bg-soft);
  box-shadow: var(--ring);
}
.form-control:disabled,
.form-control[readonly] {
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: not-allowed;
}
.form-control.is-invalid {
  border-color: var(--danger);
  box-shadow: var(--ring-danger);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}

/* ---- Select with caret ---- */
select.form-control {
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239AA0AE' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
[data-theme="light"] select.form-control {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6270' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
}

/* ---- Input with leading icon ---- */
.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon > i,
.input-icon > .icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  pointer-events: none;
  font-size: 14px;
}
.input-icon > .form-control { padding-left: 42px; }
.input-icon > .form-control:focus ~ i,
.input-icon > .form-control:focus ~ .icon { color: var(--accent); }

/* ---- Input group (prefix/suffix addons) ---- */
.input-group {
  display: flex;
  align-items: stretch;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.input-group:focus-within {
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.input-group > .form-control {
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 10px 14px;
}
.input-group > .form-control:focus { box-shadow: none; }
.input-group .addon {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text-muted);
  background: var(--surface-2);
  font-size: .875rem;
  font-weight: 600;
  border-inline: 1px solid var(--border);
}
.input-group .addon:first-child { border-left: 0; }
.input-group .addon:last-child  { border-right: 0; }

/* ---- OTP inputs ---- */
.otp-input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: var(--s-3) 0;
}
.otp-digit {
  width: 48px;
  height: 58px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-strong);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--dur-fast) var(--ease);
}
.otp-digit:focus {
  outline: 0;
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--ring);
  transform: translateY(-1px);
}
.otp-digit:not(:placeholder-shown),
.otp-digit.filled {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---- Checkbox / radio (custom) ---- */
.check,
.radio {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  cursor: pointer;
  user-select: none;
  font-size: .875rem;
  color: var(--text);
}
.check input[type="checkbox"],
.radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  flex-shrink: 0;
}
.check input[type="checkbox"] { border-radius: 5px; }
.radio input[type="radio"]    { border-radius: 50%; }
.check input[type="checkbox"]::before {
  content: "";
  width: 10px; height: 10px;
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease);
  box-shadow: inset 10px 10px var(--text-inverse);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.radio input[type="radio"]::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease);
  background: var(--text-inverse);
}
.check input[type="checkbox"]:checked,
.radio input[type="radio"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check input[type="checkbox"]:checked::before,
.radio input[type="radio"]:checked::before { transform: scale(1); }
.check input:focus-visible,
.radio input:focus-visible { box-shadow: var(--ring); }

/* ---- Switch ---- */
.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  cursor: pointer;
  user-select: none;
}
.switch input { display: none; }
.switch-track {
  width: 40px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  position: relative;
  transition: all var(--dur-fast) var(--ease);
}
.switch-track::after {
  content: "";
  position: absolute;
  left: 2px; top: 50%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text);
  transform: translateY(-50%);
  transition: all var(--dur-fast) var(--ease);
}
.switch input:checked + .switch-track {
  background: var(--accent);
  border-color: var(--accent);
}
.switch input:checked + .switch-track::after {
  left: calc(100% - 18px);
  background: var(--text-inverse);
}

/* ---- Password strength meter ---- */
.pwd-meter {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.pwd-meter span {
  flex: 1;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--border);
  transition: background var(--dur) var(--ease);
}
.pwd-meter[data-score="1"] span:nth-child(-n+1) { background: var(--danger); }
.pwd-meter[data-score="2"] span:nth-child(-n+2) { background: var(--warning); }
.pwd-meter[data-score="3"] span:nth-child(-n+3) { background: var(--accent); }
.pwd-meter[data-score="4"] span { background: var(--success); }


/* =============================================================================
   CHUNK 6 — CARDS + FEATURE-CARD + DATA-GRID + SECTION EYEBROW
   ============================================================================= */

/* ---- Card primitive ---- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.card:hover { border-color: var(--border-strong); }
.card.interactive {
  cursor: pointer;
}
.card.interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.card-body,
.card-content {
  padding: var(--s-6);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border-soft);
}
.card-head h3,
.card-head h4 {
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.card-foot {
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* Elevated / gradient card variants */
.card-elevated {
  box-shadow: var(--shadow-md);
  background: var(--grad-surface);
}
.card-gradient {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-brand) border-box;
  border: 1px solid transparent;
}

/* ---- Feature card (landing) ---- */
.feature-card {
  position: relative;
  padding: var(--s-8) var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.feature-card:hover::before { opacity: 1; }
.feature-card h3 {
  margin: var(--s-4) 0 var(--s-2);
  font-family: var(--font-ui);
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: .9375rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
  border: 1px solid var(--accent-soft);
  transition: all var(--dur) var(--ease);
}
.feature-card:hover .feature-icon {
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: var(--accent-glow);
}

/* ---- Data grid (key/value cards in dashboards) ---- */
.data-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.data-item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.data-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.data-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 18px;
}
.data-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.data-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
}
.data-value {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Stat (large metric) ---- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-5) var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.stat-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .8125rem;
  font-weight: 600;
}
.stat-delta.up   { color: var(--success); }
.stat-delta.down { color: var(--danger); }

/* ---- Section headers (eyebrow + title + subtitle) ---- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw + .8rem, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin: var(--s-3) 0 var(--s-2);
  text-wrap: balance;
}
.section-subtitle {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Helper: section base spacing */
.section {
  padding: clamp(48px, 8vw, 96px) 0;
}
.section-sm { padding: clamp(32px, 5vw, 56px) 0; }


/* =============================================================================
   CHUNK 7 — AUTH SHELL + USER MENU + SESSION TIMER + MODALS
   ============================================================================= */

/* ---- Auth wrapper (full viewport) ---- */
.auth-wrapper,
.auth-shell {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid;
  place-items: center;
  padding: var(--s-10) var(--s-5);
  overflow: hidden;
  isolation: isolate;
}
.auth-wrapper::before,
.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-hero);
  opacity: .9;
}
.auth-wrapper::after,
.auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}
[data-theme="light"] .auth-wrapper::after,
[data-theme="light"] .auth-shell::after {
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
}

/* ---- Auth card ---- */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}
.auth-card > h1,
.auth-card > h2,
.auth-card > header h1,
.auth-card > header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + .8rem, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
}
.auth-card > p.text-muted,
.auth-card > header p {
  color: var(--text-muted);
  font-size: .9375rem;
  line-height: 1.55;
  margin-bottom: var(--s-6);
}
.auth-card .auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: var(--grad-brand);
  color: #fff;
  font-size: 22px;
  margin-bottom: var(--s-4);
  box-shadow: var(--accent-glow);
}
.auth-card form { display: flex; flex-direction: column; gap: var(--s-3); }
.auth-card .auth-foot {
  text-align: center;
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: .875rem;
}
.auth-card .auth-foot a {
  color: var(--accent);
  font-weight: 600;
}

/* Social auth button (Google etc.) */
.btn-social {
  --_bg: var(--surface);
  --_bgH: var(--surface-2);
  --_fg: var(--text-strong);
  --_border: var(--border);
  gap: 10px;
}
.btn-social:hover { border-color: var(--accent); }

/* ---- User menu (topbar avatar dropdown) ---- */
.user-menu { position: relative; }

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.user-avatar:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.user-menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: var(--z-dropdown);
  overflow: hidden;
  animation: dropdown-in var(--dur) var(--ease-out);
}
.user-menu-dropdown.open { display: block; }

.user-menu-header {
  padding: var(--s-3) var(--s-4) var(--s-4);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 4px;
}
.user-menu-header .name {
  font-weight: 700;
  font-size: .875rem;
  color: var(--text-strong);
  line-height: 1.2;
}
.user-menu-header .email {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-menu-dropdown a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 12px;
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.user-menu-dropdown a:hover {
  background: var(--surface-2);
  color: var(--text-strong);
}
.user-menu-dropdown a i {
  width: 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.user-menu-dropdown a:hover i { color: var(--accent); }
.user-menu-dropdown a.danger { color: var(--danger); }
.user-menu-dropdown a.danger:hover { background: var(--danger-soft); color: var(--danger); }
.user-menu-dropdown a.danger i { color: var(--danger); }
.user-menu-dropdown .menu-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 4px 0;
}

/* ---- Session timer pill ---- */
.session-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease);
}
.session-timer.warn    { background: var(--warning-soft); color: var(--warning); }
.session-timer.danger  { background: var(--danger-soft);  color: var(--danger);  animation: pulse-timer 1.2s infinite; }

/* ---- Modal ---- */
.modal-overlay,
.session-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
}
.modal-overlay.show,
.session-modal-overlay.show {
  display: flex;
  animation: fade-in var(--dur) var(--ease);
}

.modal,
.session-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 32px);
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modal-in var(--dur-slow) var(--ease-out);
}
.modal h3,
.session-modal h3 {
  margin: 0 0 var(--s-2);
  font-size: 1.25rem;
  color: var(--text-strong);
}
.modal p,
.session-modal p {
  color: var(--text-muted);
  margin: 0 0 var(--s-6);
  line-height: 1.6;
}
.modal .btn-row,
.session-modal .btn-row { justify-content: center; }

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  font-size: 22px;
}
.modal-icon.warning { background: var(--warning-soft); color: var(--warning); }
.modal-icon.danger  { background: var(--danger-soft);  color: var(--danger); }
.modal-icon.success { background: var(--success-soft); color: var(--success); }
.modal-icon.accent  { background: var(--accent-soft);  color: var(--accent); }


/* =============================================================================
   CHUNK 8 — ALERTS + TOASTS + ERROR/SUCCESS MESSAGES
   ============================================================================= */

/* ---- Alert base ---- */
.alert {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text);
  font-size: .875rem;
  line-height: 1.5;
  margin-bottom: var(--s-4);
}
.alert::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f05a"; /* info-circle default */
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}
.alert-info    { background: var(--info-soft);    color: var(--info);    border-color: transparent; }
.alert-info::before { content: "\f05a"; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.alert-success::before { content: "\f058"; } /* check-circle */
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.alert-warning::before { content: "\f071"; } /* triangle-exclamation */
.alert-danger,
.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}
.alert-danger::before,
.alert-error::before { content: "\f06a"; } /* circle-exclamation */

.alert strong { color: currentColor; }
.alert .alert-title {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

/* ---- Inline error/success message (used in forms) ---- */
.error-message {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: var(--s-4);
  border: 1px solid transparent;
}
.error-message::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f06a";
  font-size: 14px;
}

.success-message {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--success-soft);
  color: var(--success);
  font-size: .875rem;
  font-weight: 500;
  margin-bottom: var(--s-4);
}
.success-message i { flex-shrink: 0; }

/* ---- Toast stack ---- */
.toast-stack {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: var(--s-5);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: calc(100vw - 32px);
  width: 360px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: 14px 14px 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: .875rem;
  line-height: 1.45;
  transform: translateX(calc(100% + 32px));
  opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out),
              opacity var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.toast-success::before { background: var(--success); }
.toast-error::before   { background: var(--danger); }
.toast-warning::before { background: var(--warning); }
.toast-info::before    { background: var(--info); }

.toast-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
}
.toast-success .toast-icon { background: var(--success-soft); color: var(--success); }
.toast-error   .toast-icon { background: var(--danger-soft);  color: var(--danger); }
.toast-warning .toast-icon { background: var(--warning-soft); color: var(--warning); }
.toast-info    .toast-icon { background: var(--info-soft);    color: var(--info); }

.toast-body {
  flex: 1;
  min-width: 0;
  color: var(--text-strong);
  font-weight: 500;
  word-break: break-word;
}
.toast-body strong { color: var(--text-strong); font-weight: 700; }

.toast-close {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  font-size: 12px;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.toast-close:hover { background: var(--surface-2); color: var(--text-strong); }

@media (max-width: 640px) {
  .toast-stack {
    top: auto;
    bottom: calc(var(--mobile-tab-h) + 16px);
    right: var(--s-3);
    left: var(--s-3);
    width: auto;
  }
}


/* =============================================================================
   CHUNK 9 — HERO + FEATURES SECTION + PRICING
   ============================================================================= */

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--grad-hero);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, black 20%, transparent 80%);
}
[data-theme="light"] .hero::after {
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
}

.hero .container { max-width: 880px; position: relative; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: var(--s-6);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-5);
  text-wrap: balance;
}
.hero h1 .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 640px;
  margin: 0 auto var(--s-8);
  font-size: clamp(1rem, 1.2vw + .5rem, 1.1875rem);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  margin-bottom: var(--s-10);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-6);
  color: var(--text-dim);
  font-size: .8125rem;
}
.hero-trust .dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-trust .dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

/* ---- Features section (landing) ---- */
.features-section,
.pricing-section {
  padding: clamp(64px, 9vw, 112px) 0;
}
.features-section .container > h2,
.pricing-section .container > h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: var(--s-3);
}
.features-section .container > p {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto var(--s-12);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.features-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ---- Pricing hero ---- */
.pricing-hero {
  position: relative;
  padding: clamp(80px, 10vw, 120px) 0 clamp(56px, 8vw, 88px);
  overflow: hidden;
  isolation: isolate;
}
.pricing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-hero);
  opacity: .8;
}
.pricing-hero .section-title { margin-top: var(--s-5); }

/* ---- Pricing grid ---- */
.pricing-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: var(--s-10);
}

/* ---- Pricing card ---- */
.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 4px; /* outer padding for gradient border effect on popular */
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.pricing-card .card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(24px, 3vw, 36px);
  border-radius: calc(var(--r-xl) - 4px);
  background: var(--surface);
}

.pricing-card.popular {
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: 0 20px 60px -20px rgba(34,211,238,.5);
}
.pricing-card.popular:hover {
  box-shadow: 0 28px 70px -20px rgba(34,211,238,.65), var(--accent-glow);
}
.pricing-card.popular .card-content { background: var(--elevated); }

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #021016;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: var(--accent-glow);
}
[data-theme="light"] .popular-badge { color: #fff; }

.plan-name {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--s-3);
}
.price-container .currency {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}
.price-container .amount {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4vw + 1rem, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.price-container .period {
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  margin-left: 4px;
}

.plan-description {
  color: var(--text-muted);
  font-size: .9375rem;
  line-height: 1.55;
  margin-bottom: var(--s-5);
  min-height: 42px;
}

.pricing-card .divider {
  height: 1px;
  background: var(--border-soft);
  margin: var(--s-4) 0;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: var(--s-3) 0 var(--s-6);
  flex: 1;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: .9375rem;
  color: var(--text);
  line-height: 1.5;
}
.features-list li > i {
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 4px;
}
.features-list li strong { color: var(--text-strong); }

/* Pricing card action ordering */
.pricing-card .btn { margin-top: auto; }


/* =============================================================================
   CHUNK 10 — FAQ + LEGAL + CHECKOUT + WALLET
   ============================================================================= */

/* ---- FAQ ---- */
.faq-section {
  max-width: 980px;
  margin: clamp(64px, 10vw, 120px) auto 0;
  padding: 0 var(--s-5);
}
.faq-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.4vw + .8rem, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-8);
}
.faq-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.faq-item {
  position: relative;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.faq-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.faq-item h4 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.faq-item h4::before {
  content: "?";
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
}
.faq-item p {
  color: var(--text-muted);
  font-size: .9375rem;
  line-height: 1.6;
}

/* ---- Legal (terms / privacy) ---- */
.legal-section {
  padding: clamp(48px, 8vw, 96px) 0;
}
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw + 1rem, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-2);
}
.legal-content .last-updated {
  color: var(--text-muted);
  font-size: .875rem;
  margin-bottom: var(--s-10);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legal-content .last-updated::before {
  content: "\f017"; /* clock */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--text-dim);
}
.legal-content h2 {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: var(--s-10) 0 var(--s-3);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: var(--s-3);
  font-size: .9375rem;
}
.legal-content ul {
  margin: var(--s-3) 0 var(--s-5);
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.legal-content ul li {
  position: relative;
  padding-left: var(--s-6);
  color: var(--text);
  line-height: 1.6;
  font-size: .9375rem;
}
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- Checkout ---- */
.checkout-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--s-5);
}
.checkout-header {
  margin-bottom: var(--s-8);
}
.checkout-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--s-2);
}
.checkout-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-6);
}
@media (max-width: 900px) {
  .checkout-container { grid-template-columns: 1fr; }
}

.checkout-payment,
.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 32px);
}
.checkout-summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  background: var(--surface-2);
}

.copy-paste-section {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  margin-top: var(--s-4);
}
.copy-paste-section .code {
  font-family: var(--font-mono);
  font-size: .875rem;
  color: var(--text-strong);
  word-break: break-all;
  padding: var(--s-3);
  background: var(--surface);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

/* ---- Wallet ---- */
.wallet-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-8);
}
@media (max-width: 800px) {
  .wallet-hero { grid-template-columns: 1fr; }
}
.wallet-balance {
  padding: clamp(28px, 4vw, 40px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(34,211,238,.2), transparent 60%),
    var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.wallet-balance .label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--text-muted);
}
.wallet-balance .amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw + 1rem, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text-strong);
  margin: var(--s-3) 0;
  font-variant-numeric: tabular-nums;
}
.wallet-balance .actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-5);
}


/* =============================================================================
   CHUNK 11 — DASHBOARD CORE (metrics, tables, filters, empty state)
   ============================================================================= */

/* ---- Dashboard shell ---- */
.dashboard-container {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) clamp(16px, 4vw, 40px);
}
@media (max-width: 960px) {
  .dashboard-container { grid-template-columns: 1fr; }
}
.dashboard-container > .main-content { min-width: 0; }
.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--border-soft);
}
.dashboard-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.25rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--s-1);
}
.dashboard-header .greeting {
  color: var(--text-muted);
  font-size: .9375rem;
}

/* ---- Section blocks inside dashboard ---- */
.dash-section {
  margin-bottom: var(--s-10);
}
.dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}
.dash-section-head h2,
.dash-section-head h3 {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.dash-section-head h2 i,
.dash-section-head h3 i { color: var(--accent); font-size: .875em; }

/* ---- Filter bar ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}
.filter-bar .form-control { min-height: 40px; padding: 8px 12px; font-size: .875rem; }
.filter-bar .filter-group {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 160px;
  flex: 1 1 200px;
}
.filter-bar label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---- Table (generic) ---- */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .875rem;
}
.table thead th {
  text-align: left;
  padding: 14px var(--s-5);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.table tbody td {
  padding: 14px var(--s-5);
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr {
  transition: background var(--dur-fast) var(--ease);
}
.table tbody tr:hover { background: var(--surface-2); }
.table tbody td.numeric,
.table tbody td .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.table tbody td .actions {
  display: inline-flex;
  gap: var(--s-2);
  justify-content: flex-end;
}
.table tbody td strong { color: var(--text-strong); }

.table-row-link {
  cursor: pointer;
}

/* Mobile-friendly table rows (stacked) */
@media (max-width: 640px) {
  .table.responsive thead { display: none; }
  .table.responsive tbody tr {
    display: block;
    padding: var(--s-4);
    border-bottom: 1px solid var(--border-soft);
  }
  .table.responsive tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: 0;
  }
  .table.responsive tbody td::before {
    content: attr(data-label);
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--text-dim);
  }
}

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: clamp(48px, 8vw, 96px) var(--s-5);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--text-muted);
}
.empty-state .empty-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 26px;
  margin-bottom: var(--s-4);
}
.empty-state h3 {
  font-size: 1.125rem;
  color: var(--text-strong);
  margin-bottom: var(--s-2);
}
.empty-state p {
  max-width: 420px;
  margin: 0 auto var(--s-5);
  color: var(--text-muted);
  font-size: .9375rem;
  line-height: 1.55;
}

/* ---- Pagination ---- */
.pager {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  align-items: center;
  margin-top: var(--s-6);
}
.pager-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  transition: all var(--dur-fast) var(--ease);
}
.pager-btn:hover {
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.pager-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-inverse);
}
.pager-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---- Skeleton (loading state) ---- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  animation: skeleton-slide 1.4s infinite;
}
.skeleton.text  { height: 12px; border-radius: var(--r-xs); }
.skeleton.line  { height: 14px; border-radius: var(--r-xs); width: 100%; }
.skeleton.block { height: 80px; }
.skeleton.pill  { height: 24px; border-radius: var(--r-pill); width: 80px; }


/* =============================================================================
   CHUNK 12 — ADMIN SHELL (sidebar, panels, tables, modals, forms)
   ============================================================================= */

/* ---- Admin layout (sidebar + main) ---- */
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--header-h));
  background: var(--bg);
}
@media (max-width: 1024px) {
  .admin-shell { grid-template-columns: 1fr; }
}

.admin-sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  padding: var(--s-6) var(--s-4);
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
@media (max-width: 1024px) {
  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border-soft);
}
.admin-brand-kicker {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.admin-brand strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-nav a,
.admin-nav button {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 600;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.admin-nav a i,
.admin-nav button i {
  width: 18px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.admin-nav a:hover,
.admin-nav button:hover {
  color: var(--text-strong);
  background: var(--surface-2);
}
.admin-nav a.active,
.admin-nav button.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.admin-nav a.active i,
.admin-nav button.active i { color: var(--accent); }
.admin-nav .nav-group-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: var(--s-4) var(--s-3) var(--s-2);
}

/* ---- Admin main ---- */
.admin-main {
  padding: clamp(24px, 4vw, 40px);
  min-width: 0;
}

/* ---- Admin hero strip ---- */
.admin-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-5);
  padding: var(--s-8);
  background:
    radial-gradient(800px 300px at 100% 0%, rgba(34,211,238,.14), transparent 60%),
    var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--s-8);
}
@media (max-width: 900px) {
  .admin-hero { grid-template-columns: 1fr; }
}
.admin-hero-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.admin-hero-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}
.admin-hero-aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.admin-eyebrow {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}

/* ---- Metric grid ---- */
.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
.admin-metric-card {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.admin-metric-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.admin-metric-card .label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.admin-metric-card .value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.admin-metric-card .delta {
  font-size: .8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-metric-card .delta.up   { color: var(--success); }
.admin-metric-card .delta.down { color: var(--danger); }

/* ---- Admin panel (main content blocks) ---- */
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--s-8);
}
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.admin-panel-head h2,
.admin-panel-head h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.admin-panel-kicker {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.admin-panel > .body,
.admin-panel > .panel-body {
  padding: var(--s-6);
}

/* ---- Admin toolbar (filters + actions) ---- */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-4) var(--s-6);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
}
.admin-toolbar .grow { flex: 1; }

/* ---- Admin tables ---- */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .875rem;
}
.admin-table thead th {
  text-align: left;
  padding: 12px var(--s-5);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 14px var(--s-5);
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--surface-2); }

/* ---- Admin input/textarea ---- */
.admin-input,
.admin-textarea {
  width: 100%;
  padding: 10px 14px;
  min-height: 42px;
  font-size: .875rem;
  font-family: var(--font-ui);
  color: var(--text-strong);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.admin-textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.admin-input:focus,
.admin-textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}

/* ---- Admin action row ---- */
.admin-action-row {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-soft);
  margin-top: var(--s-5);
}

/* ---- Plan card grid (admin) ---- */
.admin-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-4);
}
.admin-plan-card,
.admin-plan-card-new {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.admin-plan-card-new {
  border-style: dashed;
  background: var(--bg-soft);
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.admin-plan-card-new:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.admin-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

/* ---- Admin modals ---- */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
}
.admin-modal-overlay.show { display: flex; animation: fade-in var(--dur) var(--ease); }
.admin-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modal-in var(--dur-slow) var(--ease-out);
}
.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border-soft);
}
.admin-modal-head h3 {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.admin-modal .body {
  padding: var(--s-6);
  overflow-y: auto;
  flex: 1;
}

/* ---- Misc admin pieces ---- */
.admin-detail-content,
.admin-detail-meta {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.admin-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 900px) { .admin-dual-grid { grid-template-columns: 1fr; } }

.admin-json-view {
  font-family: var(--font-mono);
  font-size: .8125rem;
  padding: var(--s-4);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: auto;
  max-height: 420px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.admin-toggle.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.admin-create-user {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}
.admin-create-user:hover { border-color: var(--accent); color: var(--accent); }


/* =============================================================================
   CHUNK 13 — QUERY (search, result cards, address-list, copy-paste)
   ============================================================================= */

/* ---- Query shell ---- */
.query-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 32px);
}
.query-head {
  margin-bottom: var(--s-6);
}
.query-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.25rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--s-2);
}
.query-head p { color: var(--text-muted); }

/* ---- Search box (hero) ---- */
.search-box {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 8px 8px 8px 20px;
  background:
    radial-gradient(600px 260px at 100% -40%, rgba(34,211,238,.12), transparent 60%),
    var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), var(--ring);
}
.search-box > i {
  font-size: 18px;
  color: var(--text-dim);
}
.search-box input[type="text"],
.search-box input[type="search"],
.search-box > .form-control {
  flex: 1;
  border: 0;
  background: transparent;
  min-height: 48px;
  padding: 0 8px;
  font-size: 1.0625rem;
  color: var(--text-strong);
}
.search-box input:focus { outline: 0; box-shadow: none; }
.search-box .btn { min-height: 44px; }

/* ---- Query type tabs ---- */
.query-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
  overflow-x: auto;
  max-width: 100%;
}
.query-tab {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}
.query-tab:hover { color: var(--text-strong); }
.query-tab.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}

/* ---- Result header ---- */
.result-header {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-6);
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(34,211,238,.12), transparent 60%),
    var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--s-5);
}
.result-header .avatar-placeholder {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--accent-glow);
}
.result-header .result-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw + .6rem, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-bottom: 4px;
}
.result-header .result-subtitle {
  color: var(--text-muted);
  font-size: .9375rem;
}
.result-header .badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

/* ---- Result groups (sections) ---- */
.result-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-4);
  overflow: hidden;
}
.result-group > .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
}
.result-group > .head h3 {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-ui);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text-strong);
}
.result-group > .head h3 > i {
  color: var(--accent);
  font-size: 14px;
}
.result-group > .body {
  padding: var(--s-4) var(--s-5);
}

/* Value row (key + value + copy) */
.kv-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.kv-row:last-child { border-bottom: 0; }
.kv-row .k {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
}
.kv-row .v {
  font-family: var(--font-mono);
  font-size: .9375rem;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.kv-row .v.text { font-family: var(--font-ui); }
@media (max-width: 640px) {
  .kv-row {
    grid-template-columns: 1fr auto;
    gap: var(--s-2);
  }
  .kv-row .k {
    grid-column: 1 / -1;
    margin-bottom: -4px;
  }
}

/* ---- Address list ---- */
.address-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.address-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  transition: all var(--dur-fast) var(--ease);
}
.address-item:hover {
  border-color: var(--border-strong);
  background: var(--elevated);
}
.address-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.address-details {
  flex: 1;
  min-width: 0;
}
.address-details .line {
  color: var(--text-strong);
  font-size: .9375rem;
  line-height: 1.5;
}
.address-details .muted {
  color: var(--text-muted);
  font-size: .8125rem;
  margin-top: 2px;
}

/* ---- Copy / paste feedback ---- */
.copy-feedback {
  position: fixed;
  bottom: calc(var(--mobile-tab-h) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--success);
  color: var(--success);
  font-size: .8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  opacity: 0;
  transition: transform var(--dur) var(--ease-out),
              opacity var(--dur) var(--ease);
  pointer-events: none;
}
.copy-feedback.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---- Content split (2-col layout inside result pages) ---- */
.content-split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-6);
}
@media (max-width: 960px) {
  .content-split { grid-template-columns: 1fr; }
}

/* ---- Export actions bar ---- */
.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}
.export-actions .label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-right: var(--s-2);
}


/* =============================================================================
   CHUNK 14 — ORG PANELS (whitelabel dashboard, team, reports, settings, invite)
   ============================================================================= */

/* ---- Org shell ---- */
.org-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--header-h));
}
@media (max-width: 1024px) { .org-shell { grid-template-columns: 1fr; } }

.org-sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  padding: var(--s-6) var(--s-4);
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
@media (max-width: 1024px) {
  .org-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
}

.org-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border-soft);
}
.org-brand .logo-badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}
.org-brand .name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.org-brand .role {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

.org-main {
  padding: clamp(24px, 4vw, 40px);
  min-width: 0;
}

/* ---- Org hero (credit usage + quick actions) ---- */
.org-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-5);
  padding: var(--s-8);
  background:
    radial-gradient(700px 260px at 100% 0%, rgba(99,102,241,.14), transparent 55%),
    var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--s-8);
}
@media (max-width: 900px) { .org-hero { grid-template-columns: 1fr; } }

/* ---- Usage bar ---- */
.usage {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.usage .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .875rem;
}
.usage .head .title {
  color: var(--text-strong);
  font-weight: 700;
}
.usage .head .muted { color: var(--text-muted); font-size: .8125rem; }
.usage-bar {
  position: relative;
  height: 10px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.usage-bar > .fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--grad-brand);
  border-radius: var(--r-pill);
  transition: width var(--dur-slow) var(--ease);
  box-shadow: 0 0 24px rgba(34,211,238,.45);
}
.usage-bar.warn > .fill  { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.usage-bar.danger > .fill{ background: linear-gradient(90deg, var(--danger), #ef4444); }
.usage .legend {
  display: flex;
  gap: var(--s-5);
  font-size: .75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

/* ---- Team member list ---- */
.team-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.team-member {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease);
}
.team-member:hover { border-color: var(--border-strong); }
.team-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.team-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.team-info .name { color: var(--text-strong); font-weight: 600; font-size: .9375rem; }
.team-info .email { color: var(--text-muted); font-size: .8125rem; }
.team-role {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
}
.team-role.admin { background: var(--warning-soft); color: var(--warning); }
.team-role.owner { background: var(--grad-brand); color: #021016; border: 0; }
[data-theme="light"] .team-role.owner { color: #fff; }

/* ---- Invite card ---- */
.invite-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
}
.invite-card .info {
  flex: 1;
  min-width: 200px;
}
.invite-card .info .title {
  color: var(--text-strong);
  font-weight: 700;
  font-size: .9375rem;
  margin-bottom: 2px;
}
.invite-card .info .hint {
  color: var(--text-muted);
  font-size: .8125rem;
}

/* ---- Report card (with chart placeholder) ---- */
.report-card {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.report-card .chart-placeholder {
  height: 180px;
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(34,211,238,.18), transparent 80%),
    repeating-linear-gradient(90deg, var(--border-soft) 0 1px, transparent 1px 40px);
  border: 1px solid var(--border-soft);
  position: relative;
}
.report-card .chart-placeholder::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  bottom: 20%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}


/* =============================================================================
   CHUNK 15 — ANIMATIONS + KEYFRAMES + RESPONSIVE REFINEMENTS
   ============================================================================= */

/* ---- Keyframes ---- */
@keyframes pulse-timer {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes skeleton-slide {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

/* ---- Reveal helpers ---- */
.reveal {
  animation: reveal-up .6s var(--ease-out) both;
}
.reveal.delay-1 { animation-delay: .08s; }
.reveal.delay-2 { animation-delay: .16s; }
.reveal.delay-3 { animation-delay: .24s; }
.reveal.delay-4 { animation-delay: .32s; }

/* ---- Spinner ---- */
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: spin .7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  color: var(--text-inverse);
  animation: spin .7s linear infinite;
}

/* ---- Subtle ambient glow helper ---- */
.glow { box-shadow: var(--accent-glow); }
.glow-strong { box-shadow: 0 0 60px rgba(34,211,238,.45); }

/* ---- Final responsive refinements ---- */
@media (max-width: 768px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-actions { max-width: 360px; margin-inline: auto; }

  .pricing-grid,
  .features-grid,
  .faq-grid,
  .data-grid,
  .admin-metric-grid,
  .admin-plan-grid { grid-template-columns: 1fr; }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-hero,
  .org-hero { padding: var(--s-5); }

  .legal-content { padding: var(--s-6); }
}

@media (max-width: 480px) {
  body { font-size: 14.5px; }
  .section-title, .features-section .container > h2 {
    font-size: 1.75rem;
  }
  .auth-card { padding: var(--s-6); }
  .otp-digit { width: 42px; height: 52px; font-size: 1.25rem; }
  .user-menu-dropdown {
    right: auto;
    left: 0;
    min-width: min(260px, calc(100vw - 32px));
  }
}

/* ---- Print ---- */
@media print {
  .header, .mobile-menu, .mobile-tabbar, footer,
  .btn, .btn-copy, .export-actions, .toast-stack,
  .session-timer, .user-menu { display: none !important; }
  body { background: #fff; color: #000; }
  .result-group, .card, .admin-panel {
    border: 1px solid #ccc;
    break-inside: avoid;
    box-shadow: none;
  }
}


/* =============================================================================
   CHUNK 16 — DASHBOARD POLISH (sidebar, premium-hero, metric-strip, insights)
   ============================================================================= */

/* ---- Sidebar nav (dashboard left column) ---- */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
@media (max-width: 960px) {
  .sidebar { position: static; }
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease);
}
.sidebar-nav a i {
  width: 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.sidebar-nav a:hover {
  background: var(--surface-2);
  color: var(--text-strong);
}
.sidebar-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.sidebar-nav a.active i { color: var(--accent); }
.sidebar-nav a.logout {
  margin-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
  padding-top: var(--s-3);
  border-radius: 0 0 var(--r-md) var(--r-md);
  color: var(--text-dim);
}
.sidebar-nav a.logout:hover { color: var(--danger); background: var(--danger-soft); }

.main-content {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

/* ---- Premium hero ---- */
.premium-hero {
  padding: clamp(28px, 4vw, 40px);
  background:
    radial-gradient(720px 280px at 100% 0%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(600px 260px at 0% 100%, rgba(99,102,241,.14), transparent 60%),
    var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.premium-hero-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}
@media (max-width: 820px) {
  .premium-hero-content { grid-template-columns: 1fr; }
}
.premium-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.premium-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw + 1rem, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-3);
}
.premium-lead {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 52ch;
}
.hero-panel {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.hero-panel-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.hero-panel-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-bottom: var(--s-2);
  line-height: 1.1;
}
.hero-panel-copy { color: var(--text-muted); font-size: .875rem; line-height: 1.55; }

/* ---- Metric strip (3 spotlights) ---- */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 900px) { .metric-strip { grid-template-columns: 1fr; } }
.metric-spotlight {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.metric-spotlight:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.metric-spotlight.metric-tone-success { border-color: rgba(34,197,94,.35); background: linear-gradient(180deg, rgba(34,197,94,.06), transparent 60%), var(--surface); }
.metric-spotlight.metric-tone-warning { border-color: rgba(245,158,11,.35); background: linear-gradient(180deg, rgba(245,158,11,.06), transparent 60%), var(--surface); }
.metric-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.metric-title { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.metric-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
}
.metric-tone-success .metric-icon { background: var(--success-soft); color: var(--success); }
.metric-tone-warning .metric-icon { background: var(--warning-soft); color: var(--warning); }
.metric-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.metric-copy { color: var(--text-muted); font-size: .8125rem; line-height: 1.5; }

/* ---- Content split (dashboard: main + sidebar stack) ---- */
.main-content > .content-split {
  grid-template-columns: minmax(0, 1fr) 360px;
}
@media (min-width: 1400px) {
  .main-content > .content-split { grid-template-columns: minmax(0, 1fr) 400px; }
}
@media (max-width: 1100px) {
  .main-content > .content-split { grid-template-columns: 1fr; }
}

/* Sidebar size should shrink to content, not stretch full height */
.sidebar { align-self: start; }

/* Metric strip: 4-col on ultra-wide, keep 3 on most desktops */
@media (min-width: 1600px) {
  .metric-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.insight-stack { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }

/* ---- Premium surface (card variant) ---- */
.premium-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color var(--dur) var(--ease);
}
.premium-surface:hover { border-color: var(--border-strong); }
.premium-surface .card-body { padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: var(--s-4); }
.premium-surface h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-strong) !important;
}

/* ---- Shared helpers used on dashboard ---- */
.history-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.soft-link {
  color: var(--accent);
  font-weight: 600;
  font-size: .875rem;
  transition: color var(--dur-fast) var(--ease);
}
.soft-link:hover { color: var(--accent-strong); text-decoration: underline; }

.history-stat-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text);
  font-size: .75rem;
  font-weight: 600;
}
.stat-pill i { color: var(--accent); font-size: 11px; }

/* ---- Quick action grid ---- */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-3);
}
.quick-action-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all var(--dur-fast) var(--ease);
}
.quick-action-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--elevated);
}
.quick-action-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 16px;
  margin-bottom: var(--s-1);
}
.quick-action-card h4 {
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text-strong);
}
.quick-action-card p {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.quick-action-card .soft-link { margin-top: var(--s-2); }

/* ---- History feed ---- */
.history-feed { display: flex; flex-direction: column; gap: var(--s-2); }
.history-feed-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  transition: border-color var(--dur-fast) var(--ease);
}
.history-feed-item:hover { border-color: var(--border-strong); }
.history-feed-item .btn { min-height: 34px; padding: 6px 14px; font-size: .8125rem; }

.history-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.history-icon.pf { background: rgba(99,102,241,.12); color: #A5B4FC; }
.history-icon.pj { background: var(--accent-soft);     color: var(--accent); }

.history-title-row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.history-doc {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .9375rem;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}
.history-meta-row {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: .75rem;
  color: var(--text-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.status-pill.success { background: var(--success-soft); color: var(--success); }
.status-pill.error   { background: var(--danger-soft);  color: var(--danger); }

.history-empty {
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--text-muted);
}
.history-empty > i {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.history-empty p:first-of-type { color: var(--text-strong) !important; font-weight: 700; }

/* ---- Insight card (right sidebar) ---- */
.insight-card {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.insight-card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.insight-list { display: flex; flex-direction: column; gap: var(--s-3); }
.insight-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: flex-start;
}
.insight-row strong { display: block; font-weight: 700; color: var(--text-strong); font-size: .875rem; margin-bottom: 2px; }
.insight-row p { font-size: .8125rem; line-height: 1.5; }
.insight-bullet {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}


/* =============================================================================
   CHUNK 17 — QUERY PAGE (tabs, radio cards, inputs, results, rail)
   ============================================================================= */

/* ---- Hero intro grid (3 mini-cards) ---- */
.query-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-5);
}
@media (max-width: 720px) { .query-intro-grid { grid-template-columns: 1fr; } }
.query-intro-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
}
.query-intro-card strong {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}
.query-intro-card span {
  font-size: .75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---- Page grid (main + rail) ---- */
.query-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--s-5);
  align-items: start;
}
@media (max-width: 1100px) {
  .query-page-grid { grid-template-columns: 1fr; }
}

/* ---- Query card ---- */
.query-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.query-header {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
}
.query-header .header-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.query-header h1 {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin-bottom: 2px;
}
.query-header p { font-size: .8125rem; color: var(--text-muted); line-height: 1.5; }

/* ---- Tabs (CPF/CNPJ, PF, PJ) — override with tab-btn ---- */
.query-card > .query-tabs {
  display: flex;
  gap: 0;
  padding: 0 var(--s-6);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
  max-width: 100%;
}
.query-card > .query-tabs .tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  border-radius: 0;
  background: transparent;
  transition: color var(--dur-fast) var(--ease);
}
.query-card > .query-tabs .tab-btn i { font-size: 13px; color: var(--text-dim); }
.query-card > .query-tabs .tab-btn:hover { color: var(--text-strong); }
.query-card > .query-tabs .tab-btn:hover i { color: var(--accent); }
.query-card > .query-tabs .tab-btn.active { color: var(--accent); }
.query-card > .query-tabs .tab-btn.active i { color: var(--accent); }
.query-card > .query-tabs .tab-btn.active::after {
  content: "";
  position: absolute;
  left: var(--s-3); right: var(--s-3);
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--r-pill);
}

/* ---- Query body (form area) ---- */
.query-body {
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.search-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ---- Radio-card (CPF/CNPJ toggle) ---- */
.radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px var(--s-4);
  min-height: 54px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
}
.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-card span {
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text-strong);
}
.radio-card::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  transition: all var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.radio-card:hover { border-color: var(--border-strong); }
.radio-card.active,
.radio-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.radio-card.active::before,
.radio-card:has(input:checked)::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--surface);
}

/* ---- Input wrapper (with leading icon) ---- */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrapper .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
  transition: color var(--dur-fast) var(--ease);
}
.input-wrapper > .form-control { padding-left: 46px !important; }
.input-wrapper > .form-control:focus ~ .input-icon,
.input-wrapper:focus-within .input-icon { color: var(--accent); }

/* ---- Select wrapper (with caret icon) ---- */
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.select-wrapper > select,
.select-wrapper > .form-control {
  padding-right: 40px;
  background-image: none;
}
.select-wrapper .select-icon {
  position: absolute;
  right: 14px;
  color: var(--text-dim);
  font-size: 12px;
  pointer-events: none;
}

/* ---- Inline hint ---- */
.query-hint {
  font-size: .75rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 2px;
}

/* ---- Cost badge — reposition on query body ---- */
.query-body > .cost-badge {
  align-self: flex-start;
  margin-bottom: 0;
}

/* ---- Results shell ---- */
.results-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
  flex-wrap: wrap;
}
.results-header h3 {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.results-header h3 i { color: var(--accent); }
.results-header .export-actions {
  padding: 0;
  background: transparent;
  border: 0;
  margin: 0;
}
#formattedResult { padding: clamp(20px, 3vw, 28px); }

/* ---- Query rail (right sidebar on query page) ---- */
.query-rail {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
}
@media (max-width: 1100px) { .query-rail { position: static; } }
.query-rail-card {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.query-rail-card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-strong);
}


/* =============================================================================
   CHUNK 18 — HISTORY TABLE + PREMIUM MODAL FIX
   ============================================================================= */

/* ---- Premium table (history timeline) ---- */
.premium-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  margin-top: var(--s-4);
}
.premium-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .875rem;
}
.premium-table thead th {
  text-align: left;
  padding: 12px var(--s-5);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.premium-table tbody td {
  padding: 14px var(--s-5);
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.premium-table tbody tr:last-child td { border-bottom: 0; }
.premium-table tbody tr { transition: background var(--dur-fast) var(--ease); }
.premium-table tbody tr:hover { background: var(--surface-2); }
.premium-table tbody td .text-sm { font-size: .75rem; }

/* Override inline hard-coded #0f172a on history cells */
.premium-table td [style*="color:#0f172a"],
.premium-table td [style*="color: #0f172a"] { color: var(--text-strong) !important; }
.history-empty p[style*="color:#0f172a"],
.history-empty p[style*="color: #0f172a"] { color: var(--text-strong) !important; }

/* Inline mono font fallback used on some cells */
.premium-table td[style*="font-family:ui-monospace"] {
  font-family: var(--font-mono) !important;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

/* ---- Modal premium (history detail overlay) ----
   IMPORTANT: o template usa <div class="modal modal-premium"> no
   overlay externo e <div class="modal-content"> no diálogo. Sem os
   resets abaixo, o overlay herda as regras de .modal (max-width 440px,
   text-align center, etc.) do CHUNK 7 e fica pinado na esquerda. */
.modal.modal-premium {
  position: fixed !important;
  inset: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  padding: 0 !important;
  text-align: left !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: fade-in var(--dur) var(--ease) !important;
  background: var(--overlay) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: var(--z-modal) !important;
}

/* New helper classes for the cleaned-up modal */
.modal.modal-premium .modal-header-actions {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.modal.modal-premium .modal-header-actions .dropdown {
  position: relative;
  display: inline-block;
}
.modal.modal-premium .modal-loading {
  text-align: center;
  padding: clamp(32px, 5vw, 56px);
  color: var(--accent);
}
.modal.modal-premium .modal-loading p {
  margin-top: var(--s-3);
  color: var(--text-muted);
  font-size: .875rem;
}
.modal.modal-premium .dropdown-content a i { margin-right: 10px; font-size: 13px; color: var(--accent); }

/* ---- Modal body content: fix truncated values + better readability ---- */

/* Values wrap on multiple lines instead of being cut off with ellipsis */
.modal.modal-premium .data-value {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
  font-size: .9375rem;
  line-height: 1.35;
  font-weight: 600;
}
/* Long single tokens (CPF, CNPJ) should still be mono + tabular */
.modal.modal-premium .data-item { align-items: flex-start; padding: 12px 14px; }
.modal.modal-premium .data-content { gap: 4px; }
.modal.modal-premium .data-label {
  font-size: .6875rem;
  letter-spacing: .1em;
  color: var(--text-dim);
}
.modal.modal-premium .data-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  font-size: 14px;
}

/* Denser grid — let cards expand naturally to accommodate longer values */
.modal.modal-premium .data-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
}

/* Section headers inside modal (e.g. "Telefones") */
.modal.modal-premium .modal-body h3,
.modal.modal-premium .modal-body h4 {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 0 8px;
  margin: var(--s-5) 0 var(--s-3);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-ui);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text-strong);
  text-transform: none;
}
.modal.modal-premium .modal-body h3:first-child,
.modal.modal-premium .modal-body h4:first-child { margin-top: 0; }
.modal.modal-premium .modal-body h3 i,
.modal.modal-premium .modal-body h4 i { color: var(--accent); font-size: .875em; }

/* The result-header card (name + CPF badge) inside modal */
.modal.modal-premium .modal-body .avatar-placeholder {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
}
.modal.modal-premium .modal-body .result-header {
  padding: var(--s-5);
  margin-bottom: var(--s-5);
}

/* Empty values ("-") render as muted to reduce visual noise */
.modal.modal-premium .data-value:where(
  :not(:has(*))
):is(
  *:where([class~="data-value"])
) {
  /* fallback — see :empty rule below */
}
.modal.modal-premium .data-item:has(.data-value:empty),
.modal.modal-premium .data-item:has(.data-value:-webkit-empty) { opacity: .55; }

/* When value content is just "-" text, soften the card */
.modal.modal-premium .data-item .data-value {
  color: var(--text-strong);
}

/* Telefones — group phone blocks visually with a subtle container */
.modal.modal-premium .modal-body > div:has(> h3),
.modal.modal-premium .modal-body > div:has(> h4) {
  background: transparent;
}

/* ---- History modal: real renderHistoryResult() classes ---- */

/* Top chips (Histórico · Exportação disponível) */
.modal.modal-premium .result-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.modal.modal-premium .result-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.modal.modal-premium .result-summary-chip i { font-size: 11px; }

/* Profile card (main) — hero with name, avatar, badges */
.modal.modal-premium .profile-card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: var(--s-5);
}
.modal.modal-premium .profile-card.main-card {
  background:
    radial-gradient(600px 220px at 100% 0%, var(--accent-soft), transparent 60%),
    var(--elevated);
  border: 1px solid var(--border);
}
.modal.modal-premium .profile-card.sub-card { margin-bottom: var(--s-3); }
.modal.modal-premium .profile-card > .data-grid { margin-top: 0; }

/* Header with avatar + name + badges */
.modal.modal-premium .profile-header-premium {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--border-soft);
}
.modal.modal-premium .profile-avatar-premium {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--r-lg);
  background: var(--grad-brand);
  color: #021016;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--accent-glow);
}
[data-theme="light"] .modal.modal-premium .profile-avatar-premium { color: #fff; }
.modal.modal-premium .profile-info-premium { flex: 1; min-width: 0; }
.modal.modal-premium .profile-info-premium h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw + .6rem, 1.875rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--s-2);
  color: var(--text-strong);
  word-break: break-word;
}
.modal.modal-premium .profile-info-premium .badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* Section header (Telefones, Endereços, Emails etc.) */
.modal.modal-premium .section-header {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 0 8px;
  margin: var(--s-6) 0 var(--s-3);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-ui);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text-strong);
}
.modal.modal-premium .section-header i {
  color: var(--accent);
  font-size: .875em;
}

/* Inside sub-cards, reduce grid card density for tighter visual */
.modal.modal-premium .profile-card.sub-card .data-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.modal.modal-premium .profile-card.main-card .data-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
}

/* Modal body padding tighten */
.modal.modal-premium .modal-body { padding: clamp(20px, 2.5vw, 28px) !important; }
.modal.modal-premium .modal-content {
  margin: clamp(16px, 4vh, 48px) auto !important;
  width: min(calc(100% - 32px), 1280px) !important;
  max-width: min(calc(100% - 32px), 1280px) !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-2xl) !important;
  box-shadow: var(--shadow-xl) !important;
  animation: modal-in var(--dur-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden;
}
@media (max-width: 640px) {
  .modal.modal-premium .modal-content {
    margin: 12px auto !important;
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    max-height: calc(100vh - 24px);
    border-radius: var(--r-xl) !important;
  }
}
.modal.modal-premium .modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: var(--s-4);
  background: var(--bg-soft) !important;
  border-bottom: 1px solid var(--border-soft) !important;
  padding: var(--s-5) var(--s-6) !important;
  flex-shrink: 0;
}
.modal.modal-premium .modal-header h3 {
  margin: 0;
}
.modal.modal-premium .modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.modal.modal-premium .modal-body {
  padding: clamp(20px, 3vw, 32px) !important;
  max-height: none !important;
  overflow-y: auto;
  flex: 1;
  color: var(--text);
}

/* Dropdown inside modal header (export menu) */
.modal.modal-premium .dropdown-content {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: none;
  z-index: 2;
  min-width: 180px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg) !important;
  padding: 6px;
  overflow: hidden;
}
.modal.modal-premium .dropdown-content a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  transition: background var(--dur-fast) var(--ease);
}
.modal.modal-premium .dropdown-content a:hover {
  background: var(--surface-2);
  color: var(--text-strong);
}

/* Inside the modal body, any inline cards using hard-coded colors get harmonized */
.modal.modal-premium .modal-body [style*="background:#f"] { background: var(--surface-2) !important; }
.modal.modal-premium .modal-body [style*="color:#0f172a"],
.modal.modal-premium .modal-body [style*="color: #0f172a"] { color: var(--text-strong) !important; }
.modal.modal-premium .modal-body [style*="color:#1e293b"],
.modal.modal-premium .modal-body [style*="color: #1e293b"] { color: var(--text-strong) !important; }
.modal.modal-premium .modal-body [style*="color:#64748b"],
.modal.modal-premium .modal-body [style*="color: #64748b"] { color: var(--text-muted) !important; }
.modal.modal-premium .modal-body [style*="border:1px solid #e"],
.modal.modal-premium .modal-body [style*="border: 1px solid #e"] { border-color: var(--border-soft) !important; }


/* =============================================================================
   CHUNK 19 — DASHBOARD SPACE UTILIZATION (wider layout, better rail)
   ============================================================================= */

/* On wider screens, give sidebar a touch more room and the insight rail too */
@media (min-width: 1300px) {
  .dashboard-container { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (min-width: 1500px) {
  .dashboard-container { grid-template-columns: 280px minmax(0, 1fr); }
}

/* Make main-content breathe on ultra-wide */
@media (min-width: 1200px) {
  .main-content { gap: var(--s-8); }
}

/* Org shell: match dashboard widening */
.org-shell { max-width: 1560px; margin: 0 auto; }
@media (min-width: 1300px) {
  .org-shell { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (min-width: 1500px) {
  .org-shell { grid-template-columns: 280px minmax(0, 1fr); }
}

/* Admin shell: same treatment */
.admin-shell { max-width: 1640px; margin: 0 auto; }
@media (min-width: 1500px) {
  .admin-shell { grid-template-columns: 280px minmax(0, 1fr); }
}

/* ── Dossiê Detectin (compartilhado: consulta + histórico) ─────────────────── */
.raw-provider { margin-top: 1rem; border: 1px solid var(--border, #e3e6ea); border-radius: 12px; overflow: hidden; background: var(--surface, #fff); }
.raw-provider > summary { cursor: pointer; padding: .75rem 1rem; font-weight: 600; font-size: .9rem; list-style: none; display: flex; align-items: center; gap: .5rem; }
.raw-provider > summary::before { content: "\f0ae"; font-family: "Font Awesome 6 Free"; font-weight: 900; opacity: .6; }
.raw-provider[open] > summary { border-bottom: 1px solid var(--border, #e3e6ea); }
.raw-json { margin: 0; padding: 1rem; font-family: 'JetBrains Mono', monospace; font-size: .78rem; line-height: 1.5; max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.dossier { border: 1px solid var(--border, #e3e6ea); border-radius: 20px; overflow: hidden; background: var(--surface, #fff); box-shadow: 0 12px 40px -24px rgba(0,0,0,.35); }
.dossier-head { display: flex; gap: 16px; align-items: center; padding: 24px; border-bottom: 1px solid var(--border, #e3e6ea); background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #22D3EE) 12%, transparent), transparent 70%); }
.dossier-ico { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; flex-shrink: 0; background: color-mix(in srgb, var(--accent, #22D3EE) 18%, transparent); color: var(--accent, #06B6D4); }
.dossier-head h2 { font-family: 'Fraunces', serif; font-size: 1.65rem; line-height: 1.1; margin: 0; }
.dossier-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dossier-badge { font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; background: var(--elevated, #f2f4f7); color: var(--text, #101317); border: 1px solid var(--border, #e3e6ea); }
.dossier-badge.doc { font-family: 'JetBrains Mono', monospace; }
.dossier-badge.ok { background: color-mix(in srgb, #10B981 16%, transparent); color: #059669; border-color: transparent; }
.dossier-meta { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 24px; border-bottom: 1px solid var(--border, #e3e6ea); }
.dossier-meta .chip { font-size: .76rem; color: var(--text-muted, #6b7280); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--elevated, #f6f7f9); }
.dossier-block { padding: 20px 24px; border-bottom: 1px solid var(--border, #e3e6ea); }
.dossier-block:last-of-type { border-bottom: none; }
.dossier-block-h { display: flex; align-items: center; gap: 9px; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted, #6b7280); font-weight: 800; margin-bottom: 16px; }
.dossier-block-h i { color: var(--accent, #06B6D4); font-size: .95rem; }
.dossier-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; }
.dossier-field label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted, #9ca3af); margin-bottom: 3px; }
.dossier-field span { font-weight: 600; font-size: .98rem; word-break: break-word; }
.dossier-list { display: flex; flex-direction: column; gap: 10px; }
.dossier-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--elevated, #f6f7f9); }
.dossier-row > i { color: var(--accent, #06B6D4); margin-top: 3px; }
.dossier-row strong { display: block; font-weight: 600; }
.dossier-row small { color: var(--text-muted, #6b7280); }
.dossier-skeleton { padding: 24px; }
.sk-line { height: 14px; border-radius: 7px; margin-bottom: 12px; background: linear-gradient(90deg, var(--elevated,#eef0f3) 25%, var(--border,#e3e6ea) 37%, var(--elevated,#eef0f3) 63%); background-size: 400% 100%; animation: skitter 1.3s ease infinite; }
@keyframes skitter { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ═══════════════════════════════════════════════════════════════════════
   PAINEL MASTER — Integrações e Auditoria
   Estas telas referenciavam classes que nunca existiram na folha de estilo:
   as integrações e a auditoria saíam como <div> empilhadas, sem cor, sem
   hierarquia e com o estado em inglês cru. É por isso que a tela estava
   ilegível — não era conteúdo demais, era ausência de forma.
   ═══════════════════════════════════════════════════════════════════════ */

/* ---- Barra de resumo (contagem por estado) ---- */
.status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.status-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
}
.status-count strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}
.status-count.ok      { border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.status-count.ok strong      { color: var(--success); }
.status-count.atencao { border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
.status-count.atencao strong { color: var(--warning); }
.status-count.fora    { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.status-count.fora strong    { color: var(--danger); }

/* ---- Selo de estado ---- */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-muted);
}
.status-chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.status-chip.ok      { color: var(--success); background: var(--success-soft);
                       border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.status-chip.atencao { color: var(--warning); background: var(--warning-soft);
                       border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
.status-chip.fora    { color: var(--danger);  background: var(--danger-soft);
                       border-color: color-mix(in srgb, var(--danger) 45%, transparent); }

/* Um dado verificado ao vivo e um dado só conferido no ambiente não podem
   parecer a mesma coisa — a diferença é sublinhada, não escondida. */
.check-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--text-dim);
}
.check-badge.live { color: var(--accent); }

/* ---- Grade de integrações ---- */
.integration-group + .integration-group { margin-top: var(--s-6); }
.integration-group-title {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s-4);
}
.integration-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s-4);
}
.integration-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.integration-card:hover { transform: translateY(-2px); }
.integration-card.status-atencao { border-color: color-mix(in srgb, var(--warning) 40%, var(--border)); }
.integration-card.status-fora    { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.integration-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}
.integration-head strong {
  font-size: .9375rem;
  color: var(--text-strong);
  line-height: 1.3;
}
.integration-purpose {
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.integration-detail {
  font-size: .8125rem;
  color: var(--text);
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
}
.integration-impact {
  display: flex;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.integration-impact i { color: var(--text-dim); margin-top: 2px; flex: none; }
.integration-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
  font-size: .6875rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* ---- Lista de sinais (visão geral) ---- */
.signal-list { display: flex; flex-direction: column; gap: var(--s-2); }
.signal-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
}
.signal-item p { margin: 0; font-size: .8125rem; color: var(--text-muted); line-height: 1.5; }
.signal-item p strong { color: var(--text-strong); font-variant-numeric: tabular-nums; }
.signal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex: none;
}
.signal-item.is-ok      .signal-dot { background: var(--success); }
.signal-item.is-atencao .signal-dot { background: var(--warning); }
.signal-item.is-fora    .signal-dot { background: var(--danger); }

/* ---- Auditoria ---- */
.audit-day + .audit-day { margin-top: var(--s-6); }
.audit-day-title {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 8px 0;
  margin-bottom: var(--s-3);
  background: var(--surface);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.audit-day-title::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
.audit-list { display: flex; flex-direction: column; gap: var(--s-2); }
.audit-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--s-4);
  align-items: start;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-left: 3px solid transparent;
}
.audit-row.sensitive { border-left-color: var(--warning); }
.audit-time {
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  padding-top: 2px;
}
.audit-what { min-width: 0; }
.audit-what h4 {
  margin: 0 0 2px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-strong);
}
.audit-target {
  font-size: .8125rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.audit-target code {
  font-size: .75rem;
  color: var(--text-dim);
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 6px;
}
.audit-change {
  margin: 6px 0 0;
  font-size: .8125rem;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
}
.audit-who {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: right;
  overflow-wrap: anywhere;
  max-width: 220px;
}
.audit-empty {
  padding: var(--s-8);
  text-align: center;
  color: var(--text-dim);
  font-size: .875rem;
}

@media (max-width: 640px) {
  .audit-row { grid-template-columns: 1fr; gap: var(--s-2); }
  .audit-who { text-align: left; max-width: none; }
}

/* ---- Cartões de estatística (carteira) ---- */
.stat-unit { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.stat-note {
  margin: 6px 0 0;
  font-size: .8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}


/* ═══════════════════════════════════════════════════════════════════════
   DOSSIÊ  (prefixo .dx)
   Superfície de TRABALHO: o cliente está decidindo se contrata alguém, não
   admirando a tela. Densidade e varredura antes de expressão; a marca vive
   na precisão dos detalhes.

   Duas correções estruturais em relação à versão anterior:
   1. Dado tabular volta a ser linha e tabela. Cartão de 240px para um
      telefone desperdiçava a largura inteira e espalhava 4 informações por
      uma faixa onde cabiam 20.
   2. Nada de cartão dentro de cartão nem de barra colorida grossa marcando
      severidade — a cor vive no ícone e no selo, que é onde o olho procura.
   ═══════════════════════════════════════════════════════════════════════ */
.dx { display: flex; flex-direction: column; gap: var(--s-4); }

/* O modal do histórico transforma TODO h3/h4 do corpo numa caixa com barra
   ciano. Era escrito para a apresentação antiga e sequestrava cada título
   desta tela. Aqui o dossiê recupera os próprios títulos. */
.modal.modal-premium .modal-body .dx :is(h2, h3, h4),
.dx :is(h2, h3, h4) {
  display: block;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

/* ---- Cabeçalho ---- */
.dx-head {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.dx-head-ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--accent);
  background: var(--accent-soft);
}
.dx-head-txt { min-width: 0; flex: 1; }
.dx-nome {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}
.dx-fantasia {
  margin: 3px 0 0;
  font-size: .875rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}
.dx-fantasia-l { font-size: .75rem; color: var(--text-dim); }
.dx-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dx-badge {
  font-size: .75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.dx-badge.doc { font-variant-numeric: tabular-nums; color: var(--text); }
.dx-badge.ok   { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.dx-badge.ruim { color: var(--danger);  border-color: color-mix(in srgb, var(--danger) 45%, transparent); }

/* ---- Seção colapsável ---- */
.dx-sec {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.dx-sec-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px var(--s-5);
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background var(--dur-fast) var(--ease);
}
.dx-sec-h::-webkit-details-marker { display: none; }
.dx-sec-h:hover { background: var(--surface-2); }
.dx-sec-h:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: -2px; }
.dx-sec-ico { color: var(--text-dim); font-size: 13px; width: 16px; text-align: center; flex: none; }
.dx-sec-t { font-size: .9375rem; font-weight: 600; color: var(--text-strong); flex: none; }
/* A prévia é o que permite decidir sem abrir. Sem ela, um acordeão só troca
   rolagem por cliques. */
.dx-sec-previa {
  flex: 1;
  min-width: 0;
  font-size: .8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dx-sec[open] > .dx-sec-h > .dx-sec-previa { opacity: 0; }
.dx-sec-chev {
  flex: none;
  font-size: 11px;
  color: var(--text-dim);
  transition: transform 180ms var(--ease);
}
.dx-sec[open] > .dx-sec-h > .dx-sec-chev { transform: rotate(180deg); }
.dx-count {
  flex: none;
  font-size: .75rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.dx-sec-body { padding: 0 var(--s-5) var(--s-5); }

/* O tom colore o ícone da seção — não uma barra. Severidade se lê no símbolo. */
.dx-sec.tom-limpo   > .dx-sec-h > .dx-sec-ico { color: var(--success); }
.dx-sec.tom-atencao > .dx-sec-h > .dx-sec-ico { color: var(--warning); }
.dx-sec.tom-alerta  > .dx-sec-h > .dx-sec-ico { color: var(--danger); }

.dx-nota {
  margin: var(--s-3) 0 0;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.dx-nota.aviso {
  color: var(--warning);
  background: var(--warning-soft);
}

/* ---- Verificações: linha densa, uma por conferência ---- */
.dx-verifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2px; }
.dx-v {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 13px;
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.dx-v-marca { flex: none; font-size: 15px; line-height: 1.4; }
.dx-v.est-limpo          .dx-v-marca { color: var(--success); }
.dx-v.est-atencao        .dx-v-marca { color: var(--warning); }
.dx-v.est-alerta         .dx-v-marca { color: var(--danger); }
.dx-v.est-nao_verificado .dx-v-marca { color: var(--text-dim); }
.dx-v-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dx-v-t { font-size: .75rem; color: var(--text-dim); line-height: 1.3; }
.dx-v-r { font-size: .9375rem; font-weight: 600; color: var(--text-strong); line-height: 1.3; }
.dx-v-d { font-size: .8125rem; color: var(--text-muted); line-height: 1.5; }

/* ---- Pontos de atenção ---- */
.dx-pontos { display: flex; flex-direction: column; gap: var(--s-3); }
.dx-ponto { border-radius: var(--r-md); background: var(--surface-2); padding: 13px 14px; }
.dx-ponto-h { display: flex; align-items: center; gap: 9px; }
.dx-ponto-h > i { font-size: 14px; flex: none; }
.dx-ponto-h strong { flex: 1; font-size: .9375rem; font-weight: 600; color: var(--text-strong); line-height: 1.35; }
.dx-ponto.sev-alerta  .dx-ponto-h > i { color: var(--danger); }
.dx-ponto.sev-atencao .dx-ponto-h > i { color: var(--warning); }
.dx-ponto-sev {
  flex: none;
  font-size: .6875rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 6px;
}
.dx-ponto.sev-alerta  .dx-ponto-sev { color: var(--danger);  background: var(--danger-soft); }
.dx-ponto.sev-atencao .dx-ponto-sev { color: var(--warning); background: var(--warning-soft); }
/* O motivo cola no ponto: alerta sem explicação obriga o cliente a adivinhar. */
.dx-ponto-why {
  margin: 7px 0 0 23px;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 72ch;
}
.dx-evid-wrap { margin: 9px 0 0 23px; }
.dx-evid-wrap > summary {
  cursor: pointer;
  font-size: .75rem;
  color: var(--text-dim);
  list-style: none;
}
.dx-evid-wrap > summary::-webkit-details-marker { display: none; }
.dx-evid-wrap > summary::before { content: "▸ "; }
.dx-evid-wrap[open] > summary::before { content: "▾ "; }
.dx-evid-wrap > summary:hover { color: var(--text); }
.dx-evid { margin-top: 6px; padding: 8px 11px; border-radius: 8px; background: var(--bg-soft); }
.dx-evid-row { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8125rem; padding: 2px 0; }
.dx-evid-f { min-width: 150px; color: var(--text-dim); }
.dx-evid-v { flex: 1; color: var(--text); overflow-wrap: anywhere; }

/* ---- Grade de campos ---- */
.dx-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--s-4) var(--s-5);
  padding-top: 2px;
}
.dx-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dx-field-label { font-size: .75rem; color: var(--text-dim); line-height: 1.3; }
.dx-field-value { font-size: .9375rem; color: var(--text-strong); line-height: 1.4; overflow-wrap: anywhere; }

/* ---- Linhas densas ---- */
.dx-rows { display: flex; flex-direction: column; }
.dx-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px var(--s-4);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.dx-row:last-child { border-bottom: 0; }
.dx-row-main { min-width: 0; flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.dx-row-t { font-size: .9375rem; color: var(--text-strong); overflow-wrap: anywhere; }
.dx-row-s { font-size: .8125rem; color: var(--text-muted); }
.dx-row-aside { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dx-row-x { font-size: .8125rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* ---- Tabela ---- */
.dx-tab-wrap { overflow-x: auto; margin-top: 2px; }
.dx-tab { width: 100%; border-collapse: collapse; font-size: .875rem; }
.dx-tab th {
  text-align: left;
  padding: 8px 12px 8px 0;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.dx-tab td {
  padding: 11px 12px 11px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.dx-tab tr:last-child td { border-bottom: 0; }
.dx-tab-forte { color: var(--text-strong); font-weight: 500; }
.dx-tab-sub { margin-top: 5px; font-size: .8125rem; color: var(--text-muted); line-height: 1.45; }
.dx-tab-aviso { margin-top: 5px; font-size: .75rem; color: var(--warning); line-height: 1.45; max-width: 46ch; }

/* ---- Selos ---- */
.dx-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--surface-2);
}
.dx-pill > i { font-size: 11px; }
.dx-pill.ok   { color: var(--success); background: var(--success-soft); }
.dx-pill.ruim { color: var(--danger);  background: var(--danger-soft); }
.dx-pill.wa   { color: #0B3D24; background: #25D366; font-weight: 600; }

/* ---- Procedência ---- */
.dx-fontes { display: flex; flex-direction: column; }
.dx-fonte {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px var(--s-4);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: .875rem;
}
.dx-fonte:last-child { border-bottom: 0; }
.dx-fonte strong { color: var(--text-strong); font-weight: 500; }
.dx-fonte-idade { color: var(--text-muted); margin-left: auto; font-size: .8125rem; }
.dx-fonte-tag {
  font-size: .75rem;
  padding: 2px 9px;
  border-radius: 6px;
  color: var(--warning);
  background: var(--warning-soft);
}
.dx-fonte-fora { color: var(--danger); margin-left: auto; font-size: .8125rem; }

/* ---- Dados brutos ---- */
.dx-raw { border-radius: var(--r-md); border: 1px solid var(--border-soft); background: var(--surface); overflow: hidden; }
.dx-raw > summary { cursor: pointer; padding: 11px var(--s-5); font-size: .8125rem; color: var(--text-muted); }
.dx-raw > summary:hover { color: var(--text); background: var(--surface-2); }
.dx-raw-json {
  margin: 0;
  padding: var(--s-4) var(--s-5);
  max-height: 340px;
  overflow: auto;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: var(--bg-soft);
}

@media (prefers-reduced-motion: reduce) {
  .dx-sec-chev { transition: none; }
}

@media (max-width: 720px) {
  .dx-head { flex-direction: column; gap: var(--s-3); }
  .dx-sec-previa { display: none; }
  .dx-fonte-idade, .dx-fonte-fora { margin-left: 0; }
  .dx-verifs { grid-template-columns: 1fr; }
}
