/* =========================================================================
   VATvocate — user-facing redesign (navy #1F1F44 / coral #CC4E54, IBM Plex)
   Loaded LAST on public/user pages. Redefines brand tokens so existing +
   JS-generated components rebrand, and adds the redesigned components.
   Admin pages do NOT load this file.
   ========================================================================= */

/* ---- Brand token overrides (win over modern-style.css :root) ---- */
:root {
  --vv-navy:        #1F1F44;
  --vv-navy-2:      #141430;
  --vv-navy-3:      #16162F;
  --vv-navy-4:      #0F0F26;
  --vv-coral:       #CC4E54;
  --vv-coral-hover: #B23F45;
  --vv-coral-light: #E06A70;
  --vv-coral-l2:    #E9868B;
  --vv-coral-badge: #FBEDED;
  --vv-text:        #1F1F44;
  --vv-text-2:      #3B3F57;
  --vv-text-3:      #5A5E74;
  --vv-muted:       #9498AC;
  --vv-muted-2:     #8A8FA6;
  --vv-page:        #F4F5F9;
  --vv-card:        #FFFFFF;
  --vv-panel:       #F7F8FC;
  --vv-panel-2:     #F5F6FA;
  --vv-mode-bg:     #F4F6FB;
  --vv-border:      #E7E9F1;
  --vv-border-in:   #D8DBE7;
  --vv-sep:         #EEF0F6;
  --vv-success:     #1F8A5B;
  --vv-card-shadow: 0 16px 40px -30px rgba(24,25,45,.5);
  --vv-hero-shadow: 0 26px 60px -30px rgba(24,25,45,.5);
  --vv-focus-ring:  0 0 0 3px rgba(204,78,84,.12);

  /* Remap legacy variables used by existing CSS + JS-generated markup */
  --primary-color: #1F1F44;
  --primary-dark:  #16162F;
  --primary-light: #3B3F57;
  --search-navy:   #1F1F44;
  --text-primary:  #1F1F44;
  --text-secondary:#5A5E74;
  --text-light:    #9498AC;
  --border-color:  #E7E9F1;
  --border-light:  #EEF0F6;
  --bg-secondary:  #F7F8FC;
  --bg-tertiary:   #F4F6FB;
  --success-color: #1F8A5B;
}

body.public-site,
body.vv-page {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  color: var(--vv-text);
  background: var(--vv-page);
}

/* Sticky footer: full-height flex column so the footer is pinned to the bottom
   on short pages instead of riding up and leaving empty page background below. */
body.vv-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.vv-page > main { flex: 1 0 auto; }
body.vv-page > footer,
body.vv-page > .vv-footer { flex-shrink: 0; }

body.vv-page ::selection { background: var(--vv-coral); color: #fff; }

.vv-page a { color: var(--vv-coral); text-decoration: none; }
.vv-page a:hover { color: var(--vv-coral-hover); }

/* ---- Animations ---- */
@keyframes vv-spin { to { transform: rotate(360deg); } }
@keyframes vv-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vv-fade { animation: vv-fade .45s ease both; }
.vv-spin { animation: vv-spin .9s linear infinite; }

/* ---- Dark mesh motif (hero / answer header / plan card / footer) ---- */
.vv-dark {
  background-color: #141430;
  background-image:
    radial-gradient(760px 380px at 86% -12%, rgba(204,78,84,0.32), transparent 60%),
    radial-gradient(680px 460px at 6% 118%, rgba(56,64,120,0.55), transparent 62%),
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
}

/* ---- Typography helpers ---- */
.vv-serif { font-family: 'IBM Plex Serif', Georgia, serif; }
.vv-mono  { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.vv-eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--vv-coral); margin-bottom: 10px;
}

/* ---- Shared layout containers ---- */
.vv-wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.vv-screen { animation: vv-fade .45s ease both; }
.vv-screen h1.vv-h1 {
  margin: 0 0 6px; font-family: 'IBM Plex Serif', serif; font-weight: 600;
  font-size: 30px; letter-spacing: -.01em; color: var(--vv-text);
}
.vv-screen p.vv-lead { margin: 0 0 26px; font-size: 15px; color: var(--vv-text-3); }

/* ---- Buttons ----
   Scoped under .vv-page and using compound selectors so they always beat the
   generic `.vv-page a { color: coral }` link rule (buttons are often <a>). */
.vv-page .vv-btn,
.vv-page a.vv-btn,
.vv-page button.vv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-sizing: border-box; font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1;
  border-radius: 10px; padding: 12px 20px; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, box-shadow .15s, border-color .15s, color .15s;
  text-decoration: none; white-space: nowrap;
}
.vv-page .vv-btn.vv-btn-coral { background: var(--vv-coral); color: #fff; border-color: var(--vv-coral); }
.vv-page .vv-btn.vv-btn-coral:hover { background: var(--vv-coral-hover); border-color: var(--vv-coral-hover); color: #fff; }
.vv-page .vv-btn.vv-btn-navy { background: var(--vv-navy); color: #fff; border-color: var(--vv-navy); }
.vv-page .vv-btn.vv-btn-navy:hover { background: var(--vv-navy-2); color: #fff; }
.vv-page .vv-btn.vv-btn-outline { background: #fff; color: var(--vv-navy); border-color: #D3D6E2; }
.vv-page .vv-btn.vv-btn-outline:hover { background: var(--vv-panel); color: var(--vv-navy); }
.vv-page .vv-btn.vv-btn-lg { font-size: 15px; padding: 15px 30px; border-radius: 11px; }
.vv-page .vv-btn.vv-btn-block { width: 100%; }
.vv-page .vv-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---- Cards ---- */
.vv-card {
  background: var(--vv-card); border: 1px solid var(--vv-border); border-radius: 16px;
  padding: 26px; box-shadow: var(--vv-card-shadow);
}
.vv-card-flat { box-shadow: none; }
.vv-card-coraltop { border-top: 3px solid var(--vv-coral); }

/* ---- Forms ---- */
.vv-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--vv-text-2); margin-bottom: 7px;
}
.vv-input, .vv-textarea, .vv-select {
  width: 100%; border: 1px solid var(--vv-border-in); border-radius: 10px;
  padding: 13px 14px; font-size: 15px; color: var(--vv-text); background: #fff;
  font-family: inherit; outline: none; box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.vv-textarea { border-radius: 12px; padding: 15px; line-height: 1.55; min-height: 110px; resize: vertical; }
.vv-select { font-weight: 500; cursor: pointer; padding: 12px 14px; font-size: 14.5px; }
.vv-input:focus, .vv-textarea:focus, .vv-select:focus {
  border-color: var(--vv-coral); box-shadow: var(--vv-focus-ring);
}
.vv-checkbox { accent-color: var(--vv-coral); width: 16px; height: 16px; flex-shrink: 0; }

/* Rebrand focus ring on legacy .form-control (JS-generated + auth pages) */
.public-site .form-control:focus,
.vv-page .form-control:focus {
  border-color: var(--vv-coral) !important;
  box-shadow: var(--vv-focus-ring) !important;
}

/* =========================================================================
   HEADERS
   ========================================================================= */
.vv-header {
  position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--vv-border);
}
.vv-header-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.vv-header-logo { height: 46px; width: auto; cursor: pointer; display: block; }
.vv-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vv-page .vv-nav-link {
  display: inline-flex; align-items: center; font-size: 14px; color: var(--vv-text-3);
  background: none; border: none; padding: 9px 13px; cursor: pointer; border-radius: 9px;
  font-family: inherit; text-decoration: none;
}
.vv-page .vv-nav-link:hover { color: var(--vv-navy); background: var(--vv-panel); }
.vv-page .vv-nav-app-link {
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--vv-text-3);
  background: none; border: none; padding: 9px 14px; cursor: pointer; border-radius: 9px;
  font-family: inherit; text-decoration: none;
}
.vv-page .vv-nav-app-link:hover { color: var(--vv-navy); background: var(--vv-panel); }
.vv-page .vv-nav-app-link.active { color: var(--vv-coral); background: var(--vv-coral-badge); }
.vv-nav-sep { width: 1px; height: 24px; background: var(--vv-border); margin: 0 8px; }
.vv-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--vv-navy); color: #fff;
  font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  text-transform: uppercase; flex-shrink: 0;
}
.vv-header-logout { display: inline-flex; margin: 0; }
.vv-page .vv-btn-login {
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--vv-navy);
  background: #fff; border: 1px solid #D3D6E2; border-radius: 9px; padding: 10px 18px; cursor: pointer;
  margin-left: 6px; font-family: inherit; text-decoration: none; white-space: nowrap;
}
.vv-page .vv-btn-login:hover { background: var(--vv-panel); color: var(--vv-navy); }
.vv-page .vv-btn-signup {
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: #fff;
  background: var(--vv-coral); border: none; border-radius: 9px; padding: 11px 20px; cursor: pointer;
  font-family: inherit; text-decoration: none; white-space: nowrap;
}
.vv-page .vv-btn-signup:hover { background: var(--vv-coral-hover); color: #fff; }
.vv-nav-user { display: flex; align-items: center; gap: 9px; }
.vv-page .vv-linkbtn {
  font-size: 14px; color: var(--vv-text-3); background: none; border: none; cursor: pointer;
  padding: 8px 6px; font-family: inherit;
}
.vv-page .vv-linkbtn:hover { color: var(--vv-coral); }

/* =========================================================================
   FOOTER (dark)
   ========================================================================= */
.site-footer, .vv-footer {
  background: #0F0F26; color: #B9BCD0; border: 0;
}
.vv-footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 40px 28px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.vv-footer-brand { display: flex; align-items: center; gap: 14px; }
.vv-footer-word { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.vv-footer-word .a { color: #fff; }
.vv-footer-word .b { color: var(--vv-coral-light); }
.vv-footer-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: .22em; color: #8A8FA6;
  border: 1px solid rgba(255,255,255,.16); border-radius: 4px; padding: 2px 6px;
}
.vv-footer-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.vv-footer-nav a, .vv-footer-nav button {
  color: #B9BCD0; font-size: 13.5px; background: none; border: none; cursor: pointer;
  padding: 0; font-family: inherit; text-decoration: none;
}
.vv-footer-nav a:hover, .vv-footer-nav button:hover { color: #fff; }
.vv-footer-copy { font-size: 12.5px; color: #7C819A; }

/* =========================================================================
   LANDING
   ========================================================================= */
.vv-hero { padding: 0; }
.vv-hero-inner { max-width: 1180px; margin: 0 auto; padding: 96px 28px 104px; text-align: center; }
.vv-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; letter-spacing: .08em; color: #E9868B; border: 1px solid rgba(204,78,84,.42);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 28px;
}
.vv-hero h1 {
  margin: 0 auto 22px; font-family: 'IBM Plex Serif', serif; font-weight: 600;
  font-size: 56px; line-height: 1.05; letter-spacing: -.02em; color: #fff; max-width: 820px;
}
.vv-hero h1 .accent { color: var(--vv-coral-light); }
.vv-hero-sub { margin: 0 auto 36px; font-size: 18px; line-height: 1.6; color: #C3C6D8; max-width: 600px; }
.vv-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: stretch; }
.vv-page .vv-hero-cta .ghost {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  font-size: 15px; color: #fff; font-weight: 600; padding: 15px 30px; line-height: 1;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.28); border-radius: 11px;
  cursor: pointer; font-family: inherit; text-decoration: none; white-space: nowrap;
}
.vv-page .vv-hero-cta .ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.vv-hero-stats { display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; margin-top: 52px; }
.vv-stat-num { font-family: 'IBM Plex Serif', serif; font-size: 30px; font-weight: 700; color: #fff; }
.vv-stat-label { font-size: 13px; color: #9CA0BA; letter-spacing: .04em; }
.vv-stat-sep { width: 1px; background: rgba(255,255,255,.12); }

.vv-how { max-width: 1180px; margin: 0 auto; padding: 72px 28px 40px; }
.vv-how-head { text-align: center; margin-bottom: 40px; }
.vv-how-head h2 {
  margin: 0; font-family: 'IBM Plex Serif', serif; font-weight: 600; font-size: 34px; letter-spacing: -.01em;
}
.vv-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vv-how-card { background: #fff; border: 1px solid var(--vv-border); border-radius: 16px; padding: 30px; }
.vv-how-num {
  font-family: 'IBM Plex Serif', serif; font-weight: 700; font-size: 22px; color: var(--vv-coral); margin-bottom: 12px;
}
.vv-how-card b { font-size: 17px; }
.vv-how-card p { margin: 8px 0 0; font-size: 14.5px; color: var(--vv-text-3); line-height: 1.6; }
.vv-how-cta { text-align: center; margin-top: 48px; }

/* Club-access banner (VATvocate Intelligence is gated behind Club membership) */
.vv-access { max-width: 1180px; margin: 20px auto 64px; padding: 0 28px; }
.vv-access-inner {
  border-radius: 20px; padding: 52px 40px; text-align: center; color: #fff;
  box-shadow: var(--vv-hero-shadow);
}
.vv-access-inner h2 {
  margin: 0 0 12px; font-family: 'IBM Plex Serif', serif; font-weight: 600;
  font-size: 30px; letter-spacing: -.01em; color: #fff;
}
.vv-access-inner p {
  max-width: 620px; margin: 0 auto 26px; font-size: 16px; line-height: 1.6; color: #C3C6D8;
}
.vv-access-note { margin: 16px 0 0; font-size: 13px; color: #9CA0BA; }
.vv-access-note a { color: #E9868B; }

/* =========================================================================
   AUTH (login / register)
   ========================================================================= */
.vv-auth { max-width: 440px; margin: 0 auto; padding: 64px 28px 90px; }
.vv-auth-head { text-align: center; margin-bottom: 28px; }
.vv-auth-head h1 {
  margin: 0 0 6px; font-family: 'IBM Plex Serif', serif; font-weight: 600; font-size: 30px; letter-spacing: -.01em;
}
.vv-auth-head p { margin: 0; font-size: 15px; color: var(--vv-text-3); }
.vv-auth-card {
  background: #fff; border: 1px solid var(--vv-border); border-radius: 16px; padding: 30px;
  box-shadow: 0 20px 46px -30px rgba(24,25,45,.5);
}
.vv-auth-alt { text-align: center; margin: 22px 0 0; font-size: 14px; color: var(--vv-text-3); }
.vv-auth-alt a, .vv-auth-alt .vv-linktext {
  background: none; border: none; color: var(--vv-coral); font-weight: 600; font-size: 14px;
  cursor: pointer; padding: 0; font-family: inherit;
}
.vv-auth-legal { text-align: center; margin: 16px 0 0; font-size: 12.5px; color: var(--vv-muted); }
.vv-auth-legal a, .vv-auth-legal button {
  color: var(--vv-muted); background: none; border: none; cursor: pointer; padding: 0;
  font-size: 12.5px; font-family: inherit; text-decoration: underline;
}
.vv-auth-legal a:hover, .vv-auth-legal button:hover { color: var(--vv-coral); }
.vv-field { margin-bottom: 18px; }
.vv-field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.vv-field-row a { font-size: 12.5px; }
.vv-hint { font-size: 12px; color: var(--vv-muted); margin-top: 6px; }
.vv-consent-row {
  display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--vv-text-3);
  line-height: 1.5; margin-bottom: 22px; cursor: pointer;
}
.vv-consent-row a, .vv-consent-row button {
  background: none; border: none; color: var(--vv-coral); font-size: 13px; padding: 0; cursor: pointer; font-family: inherit;
}
.vv-alert { padding: 12px 15px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; line-height: 1.5; }
.vv-alert-danger { background: #FBEDED; border: 1px solid #E3C7C9; color: #9A2D33; }
.vv-alert-success { background: #E7F5EE; border: 1px solid #BFE3D0; color: #14603F; }
.vv-error-field { color: #9A2D33; font-size: 12.5px; margin-top: 6px; }

/* =========================================================================
   SEARCH (works with unified-search.js: .visible toggle, .stepper .step)
   ========================================================================= */
.vv-search { max-width: 820px; margin: 0 auto; padding: 44px 28px 90px; }
.vv-search .search-card,
.vv-search .vv-card { }
.vv-mode-desc {
  margin-top: 12px; padding: 12px 15px; background: var(--vv-mode-bg);
  border-left: 3px solid var(--vv-navy); border-radius: 6px; font-size: 13.5px;
  color: #374151; line-height: 1.5;
}
.vv-mode-desc:empty { display: none; }
.vv-search-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; flex-wrap: wrap; gap: 12px;
}
.vv-quota-hint { font-size: 13px; color: var(--vv-muted); }

/* progress / result visibility — driven by .visible from unified-search.js */
#searchProgress, #searchResult { display: none; }
#searchProgress.visible, #searchResult.visible { display: block; }
#searchError { display: none; margin-top: 14px; }
#searchError.visible { display: block; }
.vv-search .search-error, #searchError {
  color: #9A2D33; font-size: 13.5px; background: #FBEDED; border: 1px solid #E3C7C9;
  border-radius: 10px; padding: 12px 15px;
}
#searchError:not(.visible) { display: none; }

/* stepper — fully overrides search-style.css (which positions .step::before
   absolutely at left:-9px; we neutralise that so the circle is an in-flow chip). */
.vv-search .stepper { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.vv-search .step {
  display: flex; gap: 14px; align-items: flex-start; background: #fff;
  border: 1px solid var(--vv-border); border-radius: 12px; padding: 16px 18px;
  margin-left: 0; position: relative;
}
.vv-search .step h3 { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--vv-text); }
.vv-search .step .step-meta { margin: 2px 0 0; font-size: 13px; color: var(--vv-muted); }
.vv-search .step .step-meta:empty { display: none; }
.vv-search .step::before {
  content: ''; position: static; left: auto; top: auto; inset: auto;
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: transparent; border: 2px solid #C7CAD8; box-shadow: none;
  box-sizing: border-box; margin-top: 1px; animation: none;
}
.vv-search .step.active { align-items: center; }
.vv-search .step.active::before {
  background: transparent; border: 2.5px solid #EEDDDE; border-top-color: var(--vv-coral);
  box-shadow: none; animation: vv-spin .9s linear infinite;
}
.vv-search .step.done::before {
  content: '✓'; border: none; background: var(--vv-success); color: #fff; box-shadow: none;
  display: flex; align-items: center; justify-content: center; font-size: 14px; animation: none;
}
.vv-search .step:not(.active):not(.done) {
  border-style: dashed; border-color: #DADDE8; opacity: .55;
}
.vv-search #searchProgress > h2 { display: none; }
.tag-badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag-badge {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; background: #F1F2F7;
  border-radius: 6px; padding: 3px 8px; color: var(--vv-text-2);
}

/* answer */
.vv-answer-badgerow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.vv-answer-badge {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .1em; color: #fff;
  background: var(--vv-navy); padding: 5px 11px; border-radius: 999px; text-transform: uppercase;
}
.vv-answer-when { font-size: 12.5px; color: var(--vv-muted); }
.vv-answer-card {
  background: #fff; border: 1px solid var(--vv-border); border-radius: 16px; overflow: hidden;
  box-shadow: var(--vv-card-shadow); padding: 0;
}
.vv-answer-head {
  margin: 0; font-family: 'IBM Plex Serif', serif; font-weight: 600; font-size: 22px;
  color: #fff; padding: 22px 30px;
}
.vv-search .result-answer { padding: 24px 30px 4px; }
.vv-search .result-answer p { margin: 0 0 13px; font-size: 15px; line-height: 1.7; color: var(--vv-text-2); }
.vv-search .result-answer h1, .vv-search .result-answer h2, .vv-search .result-answer h3 {
  font-family: 'IBM Plex Serif', serif; color: var(--vv-navy);
}
.vv-search .result-sources { margin: 20px 30px 0; border-top: 1px solid var(--vv-sep); padding-top: 20px; }
.vv-search .result-sources summary {
  font-weight: 600; font-size: 14.5px; color: var(--vv-navy); cursor: pointer; margin-bottom: 14px;
}
.vv-search .sources-inner { display: flex; flex-direction: column; gap: 10px; }
.vv-search .source-item {
  padding: 13px 15px; border: 1px solid var(--vv-sep); border-left: 3px solid var(--vv-coral);
  border-radius: 10px; font-size: 14px; color: var(--vv-text-2);
}
.vv-search .source-item strong { font-family: 'IBM Plex Mono', monospace; color: var(--vv-coral); font-weight: 500; }
.vv-search .source-summary { margin-top: 6px; font-size: 13px; color: var(--vv-text-3); line-height: 1.5; }
.vv-answer-actions { display: flex; gap: 10px; margin: 24px 30px 30px; flex-wrap: wrap; }
.vv-search .tech-footer { margin: 0 30px 22px; font-size: 12px; color: var(--vv-muted); font-family: 'IBM Plex Mono', monospace; }
.vv-answer-disclaimer { margin: 18px 0 0; font-size: 12.5px; color: var(--vv-muted); line-height: 1.5; }

/* =========================================================================
   HISTORY (works with history.js table markup)
   ========================================================================= */
.vv-history { max-width: 900px; margin: 0 auto; padding: 44px 28px 90px; }
.vv-history-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; margin-bottom: 26px;
}
.vv-history-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.vv-history-filters label { font-size: 13.5px; font-weight: 600; color: var(--vv-text-3); }
.vv-history-filters .form-control, .vv-history-filters .vv-select {
  border: 1px solid var(--vv-border-in); border-radius: 9px; padding: 9px 12px; font-size: 14px;
  color: var(--vv-text); background: #fff; min-width: 200px; max-width: 280px; cursor: pointer;
}
.vv-history .history-table-wrap {
  background: #fff; border: 1px solid var(--vv-border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 40px -32px rgba(24,25,45,.5);
}
.vv-history .history-table { width: 100%; border-collapse: collapse; }
.vv-history .history-table thead th {
  text-align: left; padding: 13px 18px; background: var(--vv-panel);
  border-bottom: 1px solid var(--vv-border); font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: .08em; color: var(--vv-muted-2); text-transform: uppercase; font-weight: 500;
}
.vv-history .history-table tbody td { padding: 14px 18px; font-size: 14px; color: var(--vv-text-2); border-bottom: 1px solid var(--vv-sep); }
.vv-history .history-row-main { cursor: pointer; transition: background .12s; }
.vv-history .history-row-main:hover { background: #FCF9F9; }
.vv-history .history-row-main td:nth-child(2) {
  font-weight: 600; color: var(--vv-navy); max-width: 320px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vv-history .status-pill {
  display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 6px; background: var(--vv-panel-2); color: var(--vv-text-3);
}
.vv-history .status-pill.status-COMPLETED { color: var(--vv-success); background: #E7F5EE; }
.vv-history .status-pill.status-PROCESSING { color: #9A6A12; background: #FBF1DE; }
.vv-history .status-pill.status-ERROR { color: #9A2D33; background: var(--vv-coral-badge); }
.vv-history .history-row-detail > td { background: #FCF6F6; padding: 4px 18px 24px; }
.vv-history .history-detail-inner {
  background: #fff; border: 1px solid var(--vv-sep); border-radius: 12px; padding: 20px 22px;
}
.vv-history .history-detail-inner h3 {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; color: var(--vv-muted-2);
  text-transform: uppercase; margin: 18px 0 6px;
}
.vv-history .history-question-highlight { margin-bottom: 4px; }
.vv-history .history-question-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; color: var(--vv-muted-2);
  text-transform: uppercase; margin-bottom: 6px;
}
.vv-history .history-question-text { font-size: 15px; font-weight: 600; color: var(--vv-navy); margin: 0 0 4px; line-height: 1.5; }
.vv-history .history-answer { font-size: 14.5px; line-height: 1.68; color: var(--vv-text-2); }
.vv-history .history-answer p { margin: 0 0 12px; }
.vv-history .history-raw {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; background: var(--vv-panel); border: 1px solid var(--vv-sep);
  border-radius: 8px; padding: 12px; overflow-x: auto; color: var(--vv-text-2);
}
.vv-history .history-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.vv-history .history-actions-cell { text-align: right; }
.vv-history .btn-sm { padding: 8px 14px; font-size: 13px; }
.vv-history .history-loading { padding: 40px; text-align: center; color: var(--vv-muted); }
.vv-history .history-error {
  background: #FBEDED; border: 1px solid #E3C7C9; color: #9A2D33; padding: 12px 15px;
  border-radius: 10px; margin-bottom: 12px; font-size: 13.5px;
}
.vv-history .history-pager {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap;
}
.vv-history .history-pager-info { font-size: 13px; color: var(--vv-text-3); }
.vv-history .history-pager button {
  border: 1px solid #E1E4EE; background: #fff; color: var(--vv-navy); font-size: 14px;
  padding: 8px 14px; border-radius: 9px; cursor: pointer; font-family: inherit; font-weight: 500;
}
.vv-history .history-pager button:hover:not(:disabled) { border-color: var(--vv-coral); color: var(--vv-coral); }
.vv-history .history-pager button:disabled { color: var(--vv-muted); cursor: not-allowed; }

/* =========================================================================
   PROFILE
   ========================================================================= */
.vv-profile { max-width: 900px; margin: 0 auto; padding: 44px 28px 90px; }
.vv-profile-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.vv-profile-col { display: flex; flex-direction: column; gap: 20px; }
.vv-profile .vv-card h2, .vv-profile .vv-card .section-title { margin: 0 0 18px; }
.vv-account-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.vv-account-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--vv-navy); color: #fff;
  font-size: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; text-transform: uppercase;
}
.vv-account-name { font-size: 17px; font-weight: 600; }
.vv-account-email { font-size: 14px; color: var(--vv-text-3); }
.vv-plan-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .12em; color: #E9868B; margin-bottom: 10px; }
.vv-plan-title { font-family: 'IBM Plex Serif', serif; font-size: 24px; font-weight: 600; margin-bottom: 4px; color: #fff; }
.vv-plan-sub { font-size: 13.5px; color: #C3C6D8; margin-bottom: 20px; }
.vv-plan-usage-row { font-size: 13px; color: #C3C6D8; margin-bottom: 6px; display: flex; justify-content: space-between; }
.vv-plan-usage-row .val { color: #fff; font-weight: 600; }
.vv-plan-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.15); overflow: hidden; }
.vv-plan-bar > span { display: block; height: 100%; background: var(--vv-coral); }
.vv-profile .info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
}
.vv-profile .info-item { padding: 14px; background: var(--vv-panel); border-radius: 10px; border: 1px solid var(--vv-sep); }
.vv-profile .info-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--vv-muted-2);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.vv-profile .info-value { font-size: 14.5px; color: var(--vv-navy); font-weight: 600; }
.vv-profile .badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.vv-profile .badge-success { background: #E7F5EE; color: var(--vv-success); }
.vv-security-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 16px; border-top: 1px solid var(--vv-sep); margin-top: 14px;
}
.vv-pref-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px;
  font-size: 14.5px; color: var(--vv-text-2);
}

/* =========================================================================
   LEGAL (privacy / terms)
   ========================================================================= */
.vv-legal { max-width: 760px; margin: 0 auto; padding: 56px 28px 90px; }
.vv-legal h1 {
  margin: 0 0 8px; font-family: 'IBM Plex Serif', serif; font-weight: 600; font-size: 34px; letter-spacing: -.01em;
}
.vv-legal-updated { margin: 0 0 34px; font-size: 14px; color: var(--vv-muted); }
.vv-legal-body { display: flex; flex-direction: column; gap: 26px; font-size: 15px; line-height: 1.72; color: var(--vv-text-2); }
.vv-legal-body h2 {
  margin: 0 0 8px; font-size: 18px; font-family: 'IBM Plex Serif', serif; font-weight: 600; color: var(--vv-navy);
}
.vv-legal-body p { margin: 0; }
.vv-legal-back { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--vv-sep); }

/* Long-form prose (privacy / terms with real legal text) */
.vv-legal-prose { display: block; }
.vv-legal-prose h2 {
  margin: 34px 0 10px; font-size: 20px; font-family: 'IBM Plex Serif', serif; font-weight: 600; color: var(--vv-navy);
}
.vv-legal-prose h2:first-child { margin-top: 0; }
.vv-legal-prose h3 {
  margin: 22px 0 8px; font-size: 15.5px; font-weight: 600; color: var(--vv-navy);
}
.vv-legal-prose p { margin: 0 0 12px; font-size: 15px; line-height: 1.72; color: var(--vv-text-2); }
.vv-legal-prose ul { margin: 0 0 14px; padding-left: 22px; }
.vv-legal-prose li { font-size: 15px; line-height: 1.65; color: var(--vv-text-2); margin-bottom: 6px; }
.vv-legal-prose strong { color: var(--vv-navy); }
.vv-legal-prose table {
  width: 100%; border-collapse: collapse; margin: 4px 0 18px; font-size: 13px;
  display: block; overflow-x: auto;
}
.vv-legal-prose th {
  text-align: left; padding: 8px 10px; background: var(--vv-panel); color: var(--vv-text-2);
  font-weight: 600; border-bottom: 1px solid var(--vv-border); white-space: nowrap;
}
.vv-legal-prose td { padding: 8px 10px; border-bottom: 1px solid var(--vv-sep); color: var(--vv-text-3); }
.vv-legal-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--vv-sep); }

/* =========================================================================
   CONTACT
   ========================================================================= */
.vv-contact { max-width: 900px; margin: 0 auto; padding: 56px 28px 90px; }
.vv-contact-head { text-align: center; margin-bottom: 40px; }
.vv-contact-head h1 {
  margin: 0 0 8px; font-family: 'IBM Plex Serif', serif; font-weight: 600; font-size: 34px; letter-spacing: -.01em;
}
.vv-contact-head p { margin: 0 auto; font-size: 15px; color: var(--vv-text-3); max-width: 520px; }
.vv-contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.vv-contact-aside { display: flex; flex-direction: column; gap: 14px; }
.vv-contact-aside .vv-card { padding: 24px; }
.vv-contact-card-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .12em; margin-bottom: 10px; }
.vv-contact-row2 { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.vv-contact-row2 > div { flex: 1; min-width: 180px; }
.vv-social { display: flex; gap: 10px; flex-wrap: wrap; }
.vv-social a {
  font-size: 13.5px; font-weight: 600; color: var(--vv-navy); border: 1px solid #E1E4EE;
  border-radius: 8px; padding: 8px 14px; text-decoration: none;
}
.vv-social a:hover { border-color: var(--vv-coral); color: var(--vv-coral); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 820px) {
  .vv-profile-grid, .vv-contact-grid { grid-template-columns: 1fr; }
  .vv-how-grid { grid-template-columns: 1fr; }
  .vv-hero h1 { font-size: 40px; }
  .vv-hero-inner { padding: 64px 24px 72px; }
}
@media (max-width: 520px) {
  .vv-header-inner { padding: 10px 18px; }
  .vv-nav { gap: 2px; }
  .vv-nav-link, .vv-nav-app-link { padding: 8px 9px; font-size: 13px; }
  .vv-btn-login, .vv-btn-signup { padding: 9px 12px; }
  .vv-history .history-table thead th:nth-child(4),
  .vv-history .history-row-main td:nth-child(4) { display: none; }
}