/* ---- Tokens ---- */
:root{
  --bg:#0b0f14; --panel:#111826; --brand:#4f46e5; --brand-2:#22d3ee;
  --text:#e5e7eb; --muted:#94a3b8; --ok:#10b981; --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:16px; --ring:0 0 0 3px rgba(79,70,229,.35);
  --banner-h:32px; --nav-h:110px; --logo-w:300px; --nav-h-sm:72px; --logo-w-sm:200px;
}

/* ---- Base ---- */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(79,70,229,.15), transparent),
    radial-gradient(900px 500px at -10% 20%, rgba(34,211,238,.15), transparent),
    var(--bg);
  color:var(--text); line-height:1.6;
}
a{color:var(--brand); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:1100px; margin:0 auto; padding:0 20px}
.block{display:block}

/* === Smooth section transitions (soft teal shimmer version) === */
section {
  position: relative;
  padding: 56px 0;
  background: linear-gradient(
    180deg,
    rgba(13,17,25,0.0) 0%,
    rgba(34,211,238,0.10) 25%,
    rgba(13,17,25,0.95) 75%,
    rgba(13,17,25,1) 100%
  );
  transition: background 1.2s ease-in-out;
}
section:nth-of-type(even) {
  background: linear-gradient(
    180deg,
    rgba(15,20,28,0.0) 0%,
    rgba(99,102,241,0.12) 25%,
    rgba(15,20,28,0.95) 75%,
    rgba(15,20,28,1) 100%
  );
}
main{
  background:
    radial-gradient(circle at top center, rgba(99,102,241,0.06), transparent 70%),
    radial-gradient(1600px 800px at 70% 0%, rgba(34,211,238,0.08), transparent 60%),
    linear-gradient(180deg, #0b0f14 0%, #111826 100%);
  transition: background 1s ease-in-out;
}

/* ---- Header / Nav ---- */
header.nav, header{
  position: sticky; top: var(--banner-h, 0px); z-index: 50;
  background: rgba(11,15,20,.65); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px; margin: 12px 16px 0 16px; overflow: visible;
  box-shadow: 0 0 25px rgba(79,70,229,.45), 0 0 45px rgba(34,211,238,.2);
}
.nav--brand{
  display:grid; grid-template-columns: var(--logo-w) 1fr; align-items:center;
  height: var(--nav-h); column-gap:22px; padding:0 18px; position:relative;
}
.logo-bay{
  height: calc(var(--nav-h) - 12px); padding-left:10px;
  display:flex; align-items:center; justify-content:flex-start; overflow:hidden;
}
.logo-img{ height:125%; width:auto; object-fit:contain; object-position:left center; display:block; }
.topnav{ display:flex; align-items:center; justify-content:flex-end; gap:24px; flex-wrap:wrap; }
.topnav a{ color: rgba(229,231,235,.92); font-weight:600; line-height:1; padding:8px 10px; border-radius:999px; text-decoration:none; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.topnav a:hover{ background: rgba(255,255,255,.06); color:#fff; transform: translateY(-1px); }
.nav-toggle{ display:none; position:relative; justify-self:end; width:42px; height:36px; border:1px solid rgba(255,255,255,.18); border-radius:10px; background: rgba(17,24,38,.65); cursor:pointer; }
.nav-toggle .bar{ position:absolute; left:8px; right:8px; height:2px; background:#e5e7eb; border-radius:1px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.nav-toggle .bar:nth-child(1){ top:10px; } .nav-toggle .bar:nth-child(2){ top:17px; } .nav-toggle .bar:nth-child(3){ top:24px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1){ top:17px; transform:rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3){ top:17px; transform:rotate(-45deg); }

@media (max-width:900px){
  .nav--brand{ grid-template-columns: var(--logo-w-sm) auto; height: var(--nav-h-sm); column-gap:12px; }
  .logo-bay{ height: calc(var(--nav-h-sm) - 8px) !important; padding-left:6px; }
  .logo-img{ height:auto !important; max-height:100% !important; width:auto; max-width:100%; object-fit:contain; }
  .nav-toggle{ display:flex; align-items:center; justify-content:center; }
  .topnav{
    position: fixed; left: 16px; right: 16px; top: calc(var(--banner-h) + var(--nav-h-sm) + 12px);
    display:none; flex-direction:column; align-items:stretch; gap:0;
    background: rgba(11,15,20,.95); border:1px solid rgba(255,255,255,.06); border-top:none; border-radius:0 0 18px 18px;
    overflow:hidden; transform:translateY(-6px); opacity:0; transition: transform .2s ease, opacity .2s ease; z-index:60;
  }
  .topnav a{ padding:14px 18px; border-bottom:1px solid rgba(255,255,255,.06); }
  header.nav-open .topnav{ display:flex; transform:translateY(0); opacity:1; }
  body.menu-open::after{ content:""; position:fixed; inset:0; background:rgba(0,0,0,.35); backdrop-filter:blur(2px); z-index:40; }
  .nav--brand{ grid-template-columns: minmax(140px, var(--logo-w-sm)) auto !important; }
}

/* ---- Cards / Grids / Text ---- */
.card{ background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); border:1px solid rgba(255,255,255,.08); border-radius:var(--radius); box-shadow:var(--shadow); padding:20px; }
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
.grid-2{display:grid; grid-template-columns:repeat(2,1fr); gap:20px}
@media (max-width: 940px){ .grid-3, .grid-2{grid-template-columns:1fr} }
.badge{display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border:1px solid rgba(255,255,255,.12); border-radius:999px; color:var(--muted); font-size:14px}
.muted{color:var(--muted)}

/* ---- Utilities ---- */
.mb-10{ margin-bottom:10px; }
.mt-8{ margin-top:8px; }
.mt-6{ margin-top:6px; }
.flex{ display:flex; }
.between{ justify-content:space-between; }
.wrap{ flex-wrap:wrap; }
.w-100{ width:100%; }
.block{ display:block; }

/* ---- Hero (index) ---- */
body.page-index .hero{padding:72px 0 40px}
body.page-index .hero-grid{display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:center}
body.page-index h1{margin:14px 0 8px; font-size:44px; line-height:1.1}
body.page-index .lead{color:var(--muted); font-size:18px}
body.page-index .cta{display:flex; gap:12px; margin-top:22px; flex-wrap:wrap}
body.page-index .stat{ display:flex; align-items:center; justify-content:space-between; background:rgba(17,24,38,.6); padding:12px 14px; border-radius:12px; border:1px solid rgba(255,255,255,.06) }

/* ---- What / Why sections ---- */
:root{ --card-bg: rgba(17,24,38,.55); --card-bd: rgba(255,255,255,.08); --card-radius: 16px; }
.card, #what .card.item, #why .card.item{ background: var(--card-bg); border: 1px solid var(--card-bd); border-radius: var(--card-radius); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
section#what{ background: transparent; position: relative; padding: 72px 0 56px; }
section#what::before{ content:""; position:absolute; left:0; right:0; top:-120px; height:140px; background: linear-gradient(180deg, rgba(11,15,20,0) 0%, rgba(11,15,20,.55) 55%, rgba(11,15,20,1) 100%); pointer-events:none; }
section#what .container{ max-width: 1200px; }
section#what .grid-2{ display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap:20px; align-items:stretch; }
section#what .card.item{ display:flex; flex-direction:column; height:100%; box-sizing:border-box; padding:20px; }
@media (max-width: 940px){ section#what .grid-2{ grid-template-columns:1fr; } }
.feature-list{ list-style:none; margin:12px 0 0; padding:0; }
.feature-list li{ position:relative; padding-left:26px; margin:8px 0; color:var(--text); }
.feature-list li::before{ content:""; position:absolute; left:0; top:7px; width:12px; height:12px; border-radius:50%; background: linear-gradient(45deg, #10b981, #34d399); box-shadow: 0 0 0 2px rgba(16,185,129,.25); }
.steps{ list-style:none; counter-reset:step; margin:12px 0 0; padding:0; }
.steps li{ counter-increment:step; display:grid; grid-template-columns:28px 1fr; gap:10px; margin:8px 0; color:var(--text); }
.steps li::before{ content: counter(step); display:grid; place-items:center; width:28px; height:28px; border-radius:999px; font-weight:800; color:#0b0f14; background: radial-gradient(circle at 30% 30%, #22d3ee, #4f46e5); box-shadow: 0 8px 18px rgba(79,70,229,.35); }
#what .section-title{ margin:0 0 12px; }
#what p{ color:#b6c2d9; max-width:760px; }

/* ---- Contact ---- */
.contact-cta{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.contact-cta .actions{ display:flex; gap:12px; flex-wrap:wrap; }
.contact-form{ display:grid; gap:12px; max-width:520px; margin-top:14px; }
.contact-input, .contact-textarea{ width:100%; padding:12px; border-radius:10px; border:1px solid rgba(255,255,255,.12); background:#0e1420; color:var(--text); }
.sr-only-trap{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }

/* ---- Footer ---- */
footer{padding:32px 0 60px; border-top:1px solid rgba(255,255,255,.08); color:var(--muted)}
.footer-bar{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }

/* ---- Prototype page specific ---- */
body.page-prototype .proto-banner{
  position:sticky; top:0; z-index:60; height:var(--banner-h);
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(90deg, rgba(79,70,229,.9), rgba(34,211,238,.9));
  color:#fff; font-size:14px; border-bottom:1px solid rgba(255,255,255,.2);
}
body.page-prototype .section{padding:56px 0}
body.page-prototype h1{font-size:42px; margin:20px 0 12px}
body.page-prototype h2{margin:24px 0 10px; font-size:28px}
body.page-prototype p{margin-bottom:14px}
body.page-prototype .lead{color:#94a3b8; font-size:18px}
body.page-prototype .grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:20px}
body.page-prototype .grid-2{display:grid; grid-template-columns:repeat(2,1fr); gap:20px}
@media(max-width:900px){ body.page-prototype .grid-3, body.page-prototype .grid-2{ grid-template-columns:1fr } body.page-prototype h1{font-size:34px} }
body.page-prototype .card{ background:rgba(17,24,38,.6); border:1px solid rgba(255,255,255,.08); border-radius:16px; box-shadow:var(--shadow); padding:24px }
body.page-prototype .pill{ display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border:1px solid rgba(255,255,255,.12); border-radius:999px; color:#94a3b8; font-size:14px }
body.page-prototype .kbd{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.15); border-radius:8px; padding:3px 6px; font-size: .95em; }
body.page-prototype pre{ background:#0e1420; border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:14px; overflow:auto }
body.page-prototype .cta-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top:10px }

/* ===== MetaSearch UI ===== */
.search-card { display:grid; gap:14px; }
.ms-form{ display:grid; gap:12px; }
.ms-label{ display:grid; gap:6px; }
.ms-label-text{ font-weight:700; color:#dbe4ff; }
.ms-two{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width: 900px){ .ms-two{ grid-template-columns:1fr; } }
.ms-input-wrap{ display:grid; grid-template-columns:auto 1fr; align-items:center; gap:8px; background:#0e1420; border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:10px 12px; }
.ms-icon{ opacity:.9; }
.ms-input{ width:100%; border:0; background:transparent; color:var(--text); font-size:16px; line-height:1.4; padding:0; }
.ms-input:focus{ outline:none; }
.ms-sites{ border:0; padding:0; margin:4px 0 0; }
.ms-legend{ font-weight:700; margin-bottom:8px; color:#c8d3f9; }
.ms-site-grid{ display:flex; flex-wrap:wrap; gap:8px; }
.pill-check{ display:inline-flex; align-items:center; gap:8px; background:#0f1726; border:1px solid rgba(255,255,255,.12); color:#e5e7eb; padding:8px 12px; border-radius:999px; cursor:pointer; user-select:none; }
.pill-check input{ appearance:none; width:14px; height:14px; border-radius:3px; border:1px solid rgba(255,255,255,.35); display:inline-block; position:relative; }
.pill-check input:checked{ background:linear-gradient(45deg,var(--brand),var(--brand-2)); border-color:transparent; }
.pill-check input:checked::after{ content:""; position:absolute; inset:3px; background:#fff; border-radius:1px; mix-blend-mode:soft-light; }
.ms-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ms-hint{ font-size:14px; }
.ms-links{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.ms-links a.btn{ padding:10px 14px; }

/* ---- Broker teaser (homepage + brokers) ---- */
.tvb-broker-teaser{
  position:relative; padding:clamp(40px,6vw,72px) 0;
  background:
    radial-gradient(1000px 520px at 105% 10%, rgba(34,211,238,.08), transparent 60%),
    radial-gradient(1200px 600px at -5% 40%, rgba(99,102,241,.12), transparent 70%);
}
.tvb-wrap{ max-width:1100px; margin:0 auto; padding:0 20px; }
.tvb-head h2{ font-size:clamp(24px,2.4vw,34px); color:var(--text); margin:0 0 6px; }
.tvb-sub{ color:var(--muted); font-size:clamp(15px,1.4vw,18px); margin:0 0 24px; }
.tvb-benefits{ display:grid; grid-template-columns:1fr; gap:14px; margin:24px 0; padding:0; list-style:none; }
.tvb-benefits li{ display:grid; grid-template-columns:24px 1fr; align-items:center; gap:12px; background:rgba(16,24,39,.5); border:1px solid rgba(148,163,184,.18); padding:12px 14px; border-radius:14px; color:var(--text); box-shadow:var(--shadow); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.tvb-benefits li:hover{ transform: translateY(-2px); border-color: rgba(99,102,241,.35); background: rgba(16,24,39,.7); }
.tvb-benefits svg{ width:20px; height:20px; display:block; stroke:currentColor; }
@media (min-width:820px){ .tvb-benefits{ grid-template-columns:1fr 1fr 1fr; } }
.tvb-cta{ display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }

/* ---- Buttons: Canonical System (keep at end) ---- */
a.btn, button.btn, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,.10); background: var(--panel, #111826); color: var(--text, #e5e7eb);
  transition: transform .15s ease, box-shadow .15s ease, background .20s ease, border-color .20s ease, opacity .20s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring, 0 0 0 3px rgba(79,70,229,.35)); }
.btn[disabled], .btn[aria-disabled="true"], .btn.is-loading { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary, .btn.primary { background: linear-gradient(90deg, var(--brand, #4f46e5), var(--brand-2, #22d3ee)); border-color: transparent; color: #0b0f14; box-shadow: 0 8px 26px rgba(34,211,238,.18); }
.btn-primary:hover, .btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(34,211,238,.24); }
.btn-ghost, .btn.ghost { background: transparent; border-color: rgba(148,163,184,.28); color: var(--text, #e5e7eb); }
.btn-ghost:hover, .btn.ghost:hover { border-color: var(--brand-2, #22d3ee); background: rgba(255,255,255,.05); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.35); }
.btn-outline:hover { border-color: var(--brand-2, #22d3ee); background: rgba(255,255,255,.06); }
.btn-link { background: transparent; border-color: transparent; color: var(--brand, #4f46e5); padding: 0; border-radius: 8px; }
.btn-link:hover { text-decoration: underline; transform: none; }
.btn-sm { padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.btn-lg { padding: 14px 22px; border-radius: 14px; font-weight: 700; }
.btn-block, .btn.w-full { width: 100%; }
.btn > svg, .btn > img { width: 18px; height: 18px; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transition: none !important; transform: none !important; box-shadow: none !important; }
}
/* --- TixMarketSearch tweaks --- */

.page-search .search-card {
  margin-top: 24px;
}

.tms-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tms-info-pill {
  border: 1px solid rgba(148, 163, 184, .6);
  background: rgba(15, 23, 42, .8);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.tms-info-pill span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .7);
  font-weight: 600;
}

.tms-info-pill:hover {
  background: rgba(30, 64, 175, .72);
  border-color: rgba(129, 140, 248, .9);
  transform: translateY(-1px);
}

.ms-explainer {
  margin-top: 18px;
  font-size: 0.94rem;
  transition: max-height .25s ease, opacity .22s ease, margin-top .22s ease, padding .22s ease;
  overflow: hidden;
}

.ms-explainer.is-collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  border-width: 0;
}

.ms-explainer-title {
  margin-top: 0;
  margin-bottom: 6px;
}

.ms-hint {
  display: block;
  margin-top: 8px;
  max-width: 480px;
}

/* Compact layout on small screens */
@media (max-width: 640px) {
  .tms-header-row {
    flex-direction: row;
    align-items: center;
  }

  .tms-info-pill {
    padding-inline: 8px;
    font-size: 12px;
  }
}

/* Visually-hidden helper class if you don't already have one */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* === Broker Pilot CTA (shared) === */

.tvg-pilot-card {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.tvg-pilot-label h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #e5e7eb;
}

.tvg-pilot-label p {
  margin: 0;
}

.tvg-pilot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #cbd5f5;
}

.tvg-pilot-list li::before {
  content: "•";
  margin-right: 6px;
  color: #22d3ee;
}

.tvg-pilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tvg-pilot-btn {
  font-weight: 600;
}

.tvg-pilot-secondary {
  font-size: 12px;
}

/* Slight visual boost on Brokers page hero CTA */
.tvg-pilot-highlight {
  border-color: rgba(34,211,238,0.5);
  box-shadow: 0 18px 40px rgba(15,23,42,0.7);
}

/* ========== Verify Table Layout ========== */
/* ============================
   Ticket VeriGuard - Verify Table
   ============================ */

   .tvg-table-wrap {
    margin-top: 8px;
    max-height: 360px;            /* scroll area */
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    border-radius: 16px;
  }
  
  /* Base table */
  #tvg-results-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;          /* keeps columns aligned */
    font-size: 0.9rem;
  }
  
  /* Sticky header */
  #tvg-results-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
  
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  
    background: #020817;          /* match card bg */
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
  }
  
  /* Generic body cells */
  #tvg-results-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    vertical-align: middle;
    white-space: nowrap;
  }
  
  /* All data rows (any row that is NOT a group label) */
  #tvg-results-table tbody tr:not(.tvg-group-label-row) {
    background-color: rgba(0, 0, 0, 0.18);
    transition: background-color 0.15s ease;
  }
  
  #tvg-results-table tbody tr:not(.tvg-group-label-row):hover {
    background-color: rgba(255, 255, 255, 0.04);
  }
  
  /* Conflict rows: subtle tint */
  #tvg-results-table tbody tr.tvg-conflict-row {
    background-color: rgba(255, 0, 0, 0.04);
  }
  
  /* Conflict group label rows */
  #tvg-results-table tbody tr.tvg-group-label-row td {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    background: #050816;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    white-space: normal;
  }
  /* Table row hover: soft accent glow */
#tvg-results-table tbody tr:not(.tvg-group-label-row):hover {
  background-color: rgba(34, 211, 238, 0.06); /* accent tint */
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12) inset;
}
/* Download cleaned CSV button */
#tvg-download-clean.btn,
#tvg-download-clean.btn-ghost {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 253, 0.35);
  color: rgba(226, 232, 240, 0.9);
  background: radial-gradient(
    circle at top left,
    rgba(148, 163, 253, 0.16),
    rgba(15, 23, 42, 1)
  );
  transition: all 0.16s ease;
}

#tvg-download-clean:hover:not(:disabled) {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
  transform: translateY(-1px);
}

#tvg-download-clean:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
  transform: none;
}

  /* Ensure no rogue borders from old styles */
  #tvg-results-table th:first-child,
  #tvg-results-table td:first-child {
    border-left: none;
  }
  
  /* Column widths driven by header only (table-layout: fixed uses this) */
  #tvg-results-table thead th:nth-child(1) { width: 40px; }   /* ID */
  #tvg-results-table thead th:nth-child(2) { width: 110px; }  /* Decision */
  #tvg-results-table thead th:nth-child(3) { width: 130px; }  /* Marketplace */
  #tvg-results-table thead th:nth-child(4) { width: 260px; }  /* Event */
  #tvg-results-table thead th:nth-child(5) { width: 70px; }   /* Section */
  #tvg-results-table thead th:nth-child(6) { width: 70px; }   /* Row */
  #tvg-results-table thead th:nth-child(7) { width: 70px; }   /* Seat */
  #tvg-results-table thead th:nth-child(8) { width: 140px; }  /* When */
  
  /* Empty state row */
  .tvg-empty-row td {
    padding: 14px 12px;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
  }
  

/* Responsive */
@media (max-width: 768px) {
  .tvg-pilot-card {
    gap: 8px;
  }
}

/* === Normalize the "What is Ticket VeriGuard?" section === */
:root{
  --section-pt: 72px;   /* same top padding as neighbors */
  --section-pb: 56px;   /* same bottom padding as neighbors */
}

/* global section rhythm (safe) */
section { padding: var(--section-pt) 0 var(--section-pb); }

/* match #what to neighbors exactly */
/* --- Broker-only buttons (scoped) --- */
.tvb-broker-teaser .btn,
.tvb-page .btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 16px; border-radius:12px; font-weight:600; text-decoration:none;
  border:1px solid rgba(255,255,255,.10); background:var(--panel); color:var(--text);
  transition:transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease;
  cursor:pointer;
}
.tvb-broker-teaser .btn:hover,
.tvb-page .btn:hover{ transform: translateY(-1px); text-decoration:none; }

.tvb-broker-teaser .btn-primary,
.tvb-page .btn-primary{
  background:linear-gradient(90deg, var(--brand), var(--brand-2));
  border-color:transparent; color:#0b0f14;
}
.tvb-broker-teaser .btn-ghost,
.tvb-page .btn-ghost{
  background:transparent; border-color:rgba(148,163,184,.28); color:var(--text);
}
.tvb-broker-teaser .btn-ghost:hover,
.tvb-page .btn-ghost:hover{ border-color:var(--brand-2); }
/* === Brokers page (scoped) === */
.tvb-page { padding: clamp(36px, 6vw, 64px) 0 80px; }
.tvb-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.tvb-hero h1 { font-size: clamp(28px, 3vw, 42px); margin: 0; }
.tvb-hero p { color: var(--muted); font-size: clamp(16px, 1.6vw, 20px); margin: 6px 0 0; }

.tvb-panels { display: grid; gap: 16px; margin: 28px 0; }
.tvb-card { background: rgba(16,24,39,.55); border: 1px solid rgba(148,163,184,.18); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.tvb-card h3 { margin: 0 0 8px; font-size: clamp(18px, 1.8vw, 22px); }
.tvb-card p { margin: 0; color: var(--muted); }

.tvb-grid-2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .tvb-grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tvb-panels { grid-template-columns: 1.2fr .8fr; } }

.tvb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tvb-list li { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.tvb-list svg { width: 20px; height: 20px; display: block; stroke: currentColor; }

.tvb-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.tvb-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* Make sure no oversized page ornament shows on brokers page */
.tvb-page::before { content: none !important; }
/* ===== Brokers page ===== */
.tvb-page { padding: clamp(36px, 6vw, 64px) 0 80px; }
.tvb-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Hero panel */
.tvb-hero { margin: 0 0 18px; }
.tvb-hero h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.2; margin: 0 0 8px; }
.tvb-hero p  { color: var(--muted); font-size: clamp(16px, 1.6vw, 20px); margin: 0 0 14px; }
.tvb-hero .panel {
  background: rgba(16,24,39,.55);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

/* Card rows */
.tvb-row { display: grid; gap: 22px; margin: 24px 0 0; }
@media (min-width: 1000px){ .tvb-row { grid-template-columns: 1.1fr .9fr; } }

.tvb-card {
  background: rgba(16,24,39,.55);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.tvb-card h3 { margin: 0 0 8px; font-size: clamp(18px, 1.8vw, 22px); }
.tvb-card p  { margin: 0; color: var(--muted); }

/* Lists inside cards */
.tvb-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.tvb-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.tvb-list svg { width: 20px; height: 20px; stroke: currentColor; display: block; }

/* Buttons (reuse your site’s .btn but ensure spacing here) */
.tvb-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.tvb-card .btn { margin-top: 10px; }

/* Subtle section gutters between rows (like your screenshots) */
.tvb-section-gap { margin-top: 34px; }

/* Optional: soften the large shield SVG if present so it doesn’t dominate */
.tvb-hero .shield-bg {
  position: absolute; inset: auto 0 -80px 0; height: 340px; opacity: .06; pointer-events: none;
}
/* Brokers hero = panel */
.tvb-hero{
  margin: 0 0 18px;
  background: rgba(16,24,39,.55);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.tvb-hero h1{ font-size: clamp(28px,3vw,42px); line-height:1.2; margin:0 0 8px; }
.tvb-hero p{ color: var(--muted); font-size: clamp(16px,1.6vw,20px); margin:0 0 14px; }
.tvb-cta-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 12px; }
.tvb-note{ font-size:13.5px; color:var(--muted); margin-top:10px; }

/* Panels + two-column rows as in your shot */
.tvb-page{ padding: clamp(36px,6vw,64px) 0 80px; }
.tvb-container{ max-width:1100px; margin:0 auto; padding:0 20px; }
.tvb-panels{ display:grid; gap:16px; margin: 28px 0; }
.tvb-card{
  background: rgba(16,24,39,.55);
  border:1px solid rgba(148,163,184,.18);
  border-radius:16px;
  padding:18px;
  box-shadow: var(--shadow);
}
.tvb-card h3{ margin:0 0 8px; font-size: clamp(18px,1.8vw,22px); }
.tvb-card p{ margin:0; color: var(--muted); }

.tvb-grid-2{ display:grid; gap:16px; }
@media(min-width:900px){ .tvb-grid-2{ grid-template-columns:1fr 1fr; } }
@media(min-width:1100px){ .tvb-panels{ grid-template-columns:1.2fr .8fr; } }

.tvb-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.tvb-list li{ display:grid; grid-template-columns:22px 1fr; align-items:start; gap:10px; }
.tvb-list svg{ width:20px; height:20px; display:block; stroke:currentColor; }
/* Brokers page */
.tvb-page{ padding:clamp(36px,6vw,64px) 0 80px; }
.tvb-container{ max-width:1100px; margin:0 auto; padding:0 20px; }

/* Hero panel */
.tvb-hero{
  margin:0 0 18px;
  background: rgba(16,24,39,.55);
  border:1px solid rgba(148,163,184,.18);
  border-radius:16px;
  padding:18px;
  box-shadow: var(--shadow);
}
.tvb-hero h1{ font-size: clamp(28px,3vw,42px); margin:0 0 8px; }
.tvb-hero p{ color:var(--muted); font-size: clamp(16px,1.6vw,20px); margin:0 0 14px; }
.tvb-cta-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; }
.tvb-note{ font-size:13.5px; color:var(--muted); margin-top:10px; }

/* Panels / grids */
.tvb-panels{ display:grid; gap:16px; margin:28px 0; }
.tvb-card{ background: rgba(16,24,39,.55); border:1px solid rgba(148,163,184,.18); border-radius:16px; padding:18px; box-shadow: var(--shadow); }
.tvb-card h3{ margin:0 0 8px; font-size: clamp(18px,1.8vw,22px); }
.tvb-card p{ margin:0; color: var(--muted); }
.tvb-grid-2{ display:grid; gap:16px; }
@media (min-width:900px){ .tvb-grid-2{ grid-template-columns:1fr 1fr; } }
@media (min-width:1100px){ .tvb-panels{ grid-template-columns:1.2fr .8fr; } }
.tvb-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.tvb-list li{ display:grid; grid-template-columns:22px 1fr; align-items:start; gap:10px; }
.tvb-list svg{ width:20px; height:20px; display:block; stroke:currentColor; }

/* Buttons already shared with index */
a.btn, button.btn, .btn{ display:inline-flex; align-items:center; justify-content:center; padding:10px 16px; border-radius:12px; font-weight:600; text-decoration:none; border:1px solid rgba(255,255,255,.10); background:var(--panel); color:var(--text); transition:transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease; cursor:pointer; }
a.btn:hover, button.btn:hover, .btn:hover{ transform: translateY(-1px); text-decoration:none; }
/* Brokers page */
.tvb-page{ padding:clamp(36px,6vw,64px) 0 80px; }
.tvb-container{ max-width:1100px; margin:0 auto; padding:0 20px; }
.tvb-hero h1{ font-size: clamp(28px,3vw,42px); margin:0; }
.tvb-hero p{ color:var(--muted); font-size: clamp(16px,1.6vw,20px); margin: 6px 0 0; }
.tvb-panels{ display:grid; gap:16px; margin: 28px 0; }
.tvb-card{ background: rgba(16,24,39,.55); border:1px solid rgba(148,163,184,.18); border-radius:16px; padding:18px; box-shadow: var(--shadow); }
.tvb-card h3{ margin:0 0 8px; font-size: clamp(18px,1.8vw,22px); }
.tvb-card p{ margin:0; color: var(--muted); }
.tvb-grid-2{ display:grid; gap:16px; }
@media(min-width:900px){ .tvb-grid-2{ grid-template-columns:1fr 1fr; } }
@media(min-width:1100px){ .tvb-panels{ grid-template-columns:1.2fr .8fr; } }
.tvb-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.tvb-list li{ display:grid; grid-template-columns:22px 1fr; align-items:start; gap:10px; }
.tvb-list svg{ width:20px; height:20px; display:block; stroke:currentColor; }
.tvb-cta-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }
.tvb-note{ font-size:13.5px; color:var(--muted); margin-top:10px; }
/* --- Button system (robust aliases) --- */
a.btn, button.btn, .btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px; border-radius:12px; font-weight:600; text-decoration:none;
  border:1px solid rgba(255,255,255,.10); background:var(--panel); color:var(--text);
  transition:transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease;
  cursor:pointer;
}
a.btn:hover, button.btn:hover, .btn:hover { transform: translateY(-1px); text-decoration:none; }

/* Primary variant: supports both 'btn-primary' and 'btn primary' */
.btn-primary, .btn.primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #0b0f14;
}

/* Ghost variant: supports 'btn-ghost' and 'btn ghost' */
.btn-ghost, .btn.ghost {
  background: transparent;
  border-color: rgba(148,163,184,.28);
  color: var(--text);
}
.btn-ghost:hover, .btn.ghost:hover { border-color: var(--brand-2); }/* Homepage broker teaser */
.tvb-broker-teaser{
  position:relative; padding:clamp(40px,6vw,72px) 0;
  background:
    radial-gradient(1000px 520px at 105% 10%, rgba(34,211,238,.08), transparent 60%),
    radial-gradient(1200px 600px at -5% 40%, rgba(99,102,241,.12), transparent 70%);
}
.tvb-wrap{ max-width:1100px; margin:0 auto; padding:0 20px; }
.tvb-head h2{ font-size:clamp(24px,2.4vw,34px); color:var(--text); margin:0 0 6px; }
.tvb-sub{ color:var(--muted); font-size:clamp(15px,1.4vw,18px); margin:0 0 24px; }
.tvb-benefits{ display:grid; grid-template-columns:1fr; gap:14px; margin:24px 0; padding:0; list-style:none; }
.tvb-benefits li{
  display:grid; grid-template-columns:24px 1fr; align-items:center; gap:12px;
  background:rgba(16,24,39,.5); border:1px solid rgba(148,163,184,.18);
  padding:12px 14px; border-radius:14px; color:var(--text); box-shadow:var(--shadow);
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.tvb-benefits li:hover{ transform:translateY(-2px); border-color:rgba(99,102,241,.35); background:rgba(16,24,39,.7); }
.tvb-benefits svg{ width:20px; height:20px; display:block; stroke:currentColor; }
@media (min-width:820px){ .tvb-benefits{ grid-template-columns:1fr 1fr 1fr; } }

/* Brokers page */
.tvb-page{ padding:clamp(36px,6vw,64px) 0 80px; }
.tvb-container{ max-width:1100px; margin:0 auto; padding:0 20px; }
.tvb-hero h1{ font-size: clamp(28px,3vw,42px); margin:0; }
.tvb-hero p{ color:var(--muted); font-size: clamp(16px,1.6vw,20px); margin: 6px 0 0; }
.tvb-panels{ display:grid; gap:16px; margin: 28px 0; }
.tvb-card{ background: rgba(16,24,39,.55); border:1px solid rgba(148,163,184,.18); border-radius:16px; padding:18px; box-shadow: var(--shadow); }
.tvb-card h3{ margin:0 0 8px; font-size: clamp(18px,1.8vw,22px); }
.tvb-card p{ margin:0; color: var(--muted); }
.tvb-grid-2{ display:grid; gap:16px; }
@media(min-width:900px){ .tvb-grid-2{ grid-template-columns:1fr 1fr; } }
@media(min-width:1100px){ .tvb-panels{ grid-template-columns:1.2fr .8fr; } }
.tvb-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.tvb-list li{ display:grid; grid-template-columns:22px 1fr; align-items:start; gap:10px; }
.tvb-list svg{ width:20px; height:20px; display:block; stroke:currentColor; }
.tvb-cta-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }
.tvb-note{ font-size:13.5px; color:var(--muted); margin-top:10px; }
/* --- Button system (robust aliases) --- */
a.btn, button.btn, .btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px; border-radius:12px; font-weight:600; text-decoration:none;
  border:1px solid rgba(255,255,255,.10); background:var(--panel); color:var(--text);
  transition:transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease;
  cursor:pointer;
}
a.btn:hover, button.btn:hover, .btn:hover { transform: translateY(-1px); text-decoration:none; }

/* Primary variant: supports both 'btn-primary' and 'btn primary' */
.btn-primary, .btn.primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #0b0f14;
}

/* Ghost variant: supports 'btn-ghost' and 'btn ghost' */
.btn-ghost, .btn.ghost {
  background: transparent;
  border-color: rgba(148,163,184,.28);
  color: var(--text);
}
.btn-ghost:hover, .btn.ghost:hover { border-color: var(--brand-2); }/* === Base Button === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 14px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 38, 0.6);
  color: #e5e7eb;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(79, 70, 229, 0.35);
  color: #fff;
}

/* === Primary Gradient Button === */
.btn-primary {
  background: linear-gradient(90deg, #22d3ee, #4f46e5);
  border: none;
  color: #fff;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.45),
              0 0 30px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(79, 70, 229, 0.6),
              0 0 40px rgba(34, 211, 238, 0.35);
}

/* === Ghost Button (used in nav & secondary actions) === */
.btn-ghost {
  background: rgba(17, 24, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}

.btn-ghost:hover {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.15), rgba(79, 70, 229, 0.15));
  border-color: rgba(79, 70, 229, 0.35);
  color: #fff;
}

/* === Outline Button (optional) === */
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(34, 211, 238, 0.8);
  color: #22d3ee;
}

.btn-outline:hover {
  background: rgba(34, 211, 238, 0.1);
  color: #fff;
}

/* === Disabled (optional) === */
.btn[disabled],
.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
  border-color: rgba(255, 255, 255, 0.1);
}
/* === Glowing Button === */
.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 20px;
  color: #fff;
  background: rgba(17, 24, 38, 0.85);
  border: none;
  box-shadow:
    0 0 12px rgba(79, 70, 229, 0.45),
    0 0 25px rgba(34, 211, 238, 0.25),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  transition: all 0.25s ease;
}

.btn-glow:hover {
  box-shadow:
    0 0 20px rgba(79, 70, 229, 0.65),
    0 0 40px rgba(34, 211, 238, 0.4),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  transform: translateY(-1px);
  background: rgba(17, 24, 38, 0.95);
}
/* Hero layout */
.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: center;
}

/* Copy */
.hero-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
}

.hero-copy .lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
  max-width: 34rem;
}

/* CTA row */
.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* Stats card */
.hero-card {
  display: grid;
  gap: 10px;
  align-self: stretch;
}

.hero-card .stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11,15,20,0.9);
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-card .note {
  margin-top: 4px;
  display: block;
  font-size: 12px;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 900px) {
  .hero {
    padding: 56px 0 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-card {
    order: 2;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .hero .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero .cta .btn {
    width: auto;
    min-width: 56%;
  }

  .hero-card {
    width: 100%;
  }
}
/* ==== Responsive hero stacking (fix rough tablet/mobile layout) ==== */

@media (max-width: 640px) {
  .hero {
    padding: 56px 0 32px;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .hero .cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero .cta .btn {
    width: auto;
    min-width: 60%;
  }
}

/* Small mobile: tighten spacing + full-width CTAs */
@media (max-width: 640px) {
  body.page-index .hero {
    padding: 56px 0 32px;
  }

  body.page-index .hero-copy h1 {
    font-size: clamp(24px, 7vw, 32px);
  }

  body.page-index .hero .cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body.page-index .hero .cta .btn {
    width: 100%;
  }
}
body {
  overflow-x: hidden;
}
/* === Nav links (shared) === */

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(229,231,235,0.92);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-active {
  background: linear-gradient(90deg, #4f46e5, #22d3ee);
  color: #0b0f14;
  border-color: transparent;
}

/* === Buttons (shared) === */

a.btn, button.btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.10);
  background: #111826;
  color: #e5e7eb;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background 0.2s ease, border-color 0.2s ease;
}

a.btn:hover, button.btn:hover, .btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary, .btn.primary {
  background: linear-gradient(90deg, #4f46e5, #22d3ee);
  border-color: transparent;
  color: #0b0f14;
}

.btn-ghost, .btn.ghost {
  background: transparent;
  border-color: rgba(148,163,184,0.28);
  color: #e5e7eb;
}

.btn-ghost:hover, .btn.ghost:hover {
  border-color: #22d3ee;
}

/* === Brokers / verify layout (tvb-*) === */

.tvb-page {
  padding: clamp(40px, 6vw, 70px) 0 72px;
}

.tvb-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.tvb-hero h1 {
  font-size: clamp(26px, 3vw, 40px);
  margin: 0 0 8px;
}

.tvb-hero p {
  margin: 0 0 10px;
  color: #94a3b8;
  font-size: 16px;
}

.tvb-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tvb-note {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 6px;
}

.tvb-panels {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.tvb-grid-2 {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.tvb-card {
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}

.tvb-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #e5e7eb;
}

.tvb-card p {
  margin: 0;
  color: #94a3b8;
}

.tvb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.tvb-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: flex-start;
  color: #e5e7eb;
}

.tvb-list svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Responsive grid for panels */
@media (min-width: 900px) {
  .tvb-panels {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .tvb-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Embed preview on brokers page === */

.tvg-embed-preview {
  margin-top: 22px;
}

.tvg-embed-preview h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #e5e7eb;
}
/* === Verify page enhancements (tvg-*) === */

.tvg-upload-card { margin-top: 18px; }

.tvg-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tvg-file-label input[type="file"] {
  display: none;
}

.tvg-file-label {
  cursor: pointer;
}

.tvg-file-name {
  min-width: 140px;
}

.tvg-microcopy {
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.tvg-summary-strip {
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.98);
  border: 1px solid rgba(75,85,99,0.6);
  color: #9ca3af;
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.tvg-summary-strip.is-visible {
  display: flex;
}

.tvg-summary-strip strong {
  color: #e5e7eb;
  font-weight: 600;
}

.tvg-summary-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(17,24,39,1);
  font-size: 11px;
  color: #9ca3af;
}

/* Filters */

.tvg-filter-card { margin-top: 14px; }

.tvg-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tvg-filter-select {
  padding-inline: 10px;
  min-width: 150px;
}

.tvg-filter-spacer {
  flex: 1;
}

/* Table */

.tvg-table-card { margin-top: 14px; }

.tvg-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.tvg-table-wrap {
  overflow: auto;
  max-height: 540px;
  border-radius: 16px;
}

/* Status pills */

.tvg-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  gap: 4px;
}

.tvg-status-risk {
  background: rgba(127,29,29,0.95);
  color: #fecaca;
}

.tvg-status-ok {
  background: rgba(22,101,52,0.98);
  color: #bbf7d0;
}

/* Feedback */

.tvg-feedback-card { margin-top: 14px; }

.tvg-feedback-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Footer */

.tvg-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Animations */

@keyframes tvg-fade-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}



/* === What is Ticket VeriGuard (match Why section) === */

#what {
  padding: 72px 0 56px;
  background: transparent;
}

#what .container {
  max-width: 1100px;      /* same as global .container */
  margin: 0 auto;
  padding: 0 20px;
}

/* Heading & intro align with Why */
#what .section-title,
#what > .container > h2 {
  margin: 0 0 16px;
}

#what > .container > p {
  margin: 0 0 24px;
  max-width: 68ch;
  color: var(--muted);
}

/* Cards layout: same grid + card style as Why */
#what .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#what .card.item {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

@media (max-width: 940px) {
  #what .grid-2 {
    grid-template-columns: 1fr;
  }
}
/* === Hero layout: side-by-side on desktop, stack only on small screens === */

/* Desktop / tablet: two columns */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: center;
}

/* Stack only under 900px */
@media (max-width: 900px) {
  .hero-grid,
  body.page-index .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: flex-start;
  }

  .hero-copy {
    order: 1;
  }

  .hero-card[aria-label="Key stats"] {
    order: 2;
    max-width: 480px;
    width: 100%;
    margin: 0 auto 4px;
  }
}
/* === What & Why: align with each other and remove hard background seam === */

/* Turn off the global gradient background just for these two sections */
#what,
#why {
  padding: 72px 0 56px;
  background: transparent !important;
}

/* Kill any leftover decorative overlays */
#what::before,
#what::after,
#why::before,
#why::after {
  content: none !important;
}

/* Use the same container as the hero + why cards */
#what .container,
#why .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Headings: same left indent & spacing */
#what h2,
#why h2 {
  margin: 0 0 16px;
}

/* Intro text under "What is" */
#what > .container > p {
  margin: 0 0 24px;
  max-width: 68ch;
  color: var(--muted);
}

/* "What is" cards: same grid rhythm as Why section */
#what .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

#what .card.item {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

@media (max-width: 940px) {
  #what .grid-2 {
    grid-template-columns: 1fr;
  }
}
/* === Hero: side-by-side on desktop, matching full-width cards when stacked === */

/* Desktop / tablet: two columns */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: center;
}

/* Stack only under 900px, and make both cards full container width */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: flex-start;
  }

  .hero-copy {
    order: 1;
  }

  .hero-card {
    order: 2;
  }

  /* Both hero blocks = full-width cards like the sections below */
  .hero-copy.card.hero-card,
  .hero > .container > .hero-grid > .hero-card[aria-label="Key stats"] {
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
  }
}
/* === Hero fixes === */

/* Side-by-side on large screens */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: stretch;
}

/* Match both cards visually */
.hero-copy.card.hero-card,
.hero-card[aria-label="Key stats"] {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Center buttons horizontally */
.hero .cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Stack on smaller screens, but same width cards */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy.card.hero-card,
  .hero-card[aria-label="Key stats"] {
    max-width: none;
    width: 100%;
    margin: 0 auto;
  }

  .hero .cta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero .cta .btn {
    width: 80%;
    max-width: 320px;
  }
}
/* === Hero: when stacked, make both cards full-width === */

@media (max-width: 900px) {
  /* Stack the hero */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Both hero cards take full container width */
  .hero-copy.card.hero-card,
  .hero-card[aria-label="Key stats"] {
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;      /* remove narrow centered look */
  }

  /* Optional: keep the stats card snug under the main card */
  .hero-card[aria-label="Key stats"] {
    margin-top: 0;
  }
}

/* === Hero: make both cards full-width only when stacked === */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;      /* stack the two cards */
    gap: 24px;
  }

  /* both hero cards use the full container width */
  .hero-card {
    width: 100%;
    max-width: 100%;
    margin: 0;                       /* no centered/narrow look */
  }

  /* optional: nicer CTA when stacked */
  .hero .cta {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}


/* Ensure main content never overlaps or “eats” the nav */
.tvb-page {
  padding: clamp(40px, 6vw, 70px) 0 72px;
}

/* Standard container for brokers/verify pages */
.tvb-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Shared page layout for brokers/verify */
.brokers-page .tvb-page,
.verify-page .tvb-page {
  padding: 40px 0 72px;   /* creates breathing room below sticky nav */
}

.tvb-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tiny nudge so hero cards don't glue to nav */
.brokers-page .tvb-hero,
.verify-page .tvb-hero {
  margin-top: 0;
}

/* === Sort indicators for table headers === */
#tvg-results-table thead th {
  position: relative;
  cursor: pointer;
  user-select: none;
  padding-right: 20px; /* space for arrow */
}

#tvg-results-table thead th::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  opacity: 0.3;
}
.tvg-table-wrap {
  margin-top: 8px;
  max-height: 360px;       /* controls vertical scroll region */
  overflow-y: auto;
  overflow-x: auto;
  position: relative;
  border-radius: 16px;
}

/* Table */
#tvg-results-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Sticky header */
#tvg-results-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #020817;     /* solid bg so text stays readable when stuck */
}

/* Active column (ascending / descending) */
#tvg-results-table thead th.sort-asc::after {
  content: "▲";
  opacity: 0.8;
  color: var(--brand-2);
}

#tvg-results-table thead th.sort-desc::after {
  content: "▼";
  opacity: 0.8;
  color: var(--brand-2);
}

/* Hover effect for clarity */
#tvg-results-table thead th:hover {
  color: var(--brand-2);
}

/* Buttons */
.btn{
  display:inline-block; padding:12px 16px; border-radius:12px;
  font-weight:600; border:1px solid rgba(255,255,255,.12);
  background:#111826; color:var(--text); text-decoration:none;
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform:translateY(-1px) }
.btn--primary{
  background:linear-gradient(45deg,var(--brand),var(--brand-2)); color:#fff;
  box-shadow: var(--shadow);
}
.btn--ghost{
  background:transparent; border:1px solid rgba(255,255,255,.25);
}
/* ====== Search / Embed styles ====== */
.page-search {
  background:
    radial-gradient(900px 500px at -10% 20%, rgba(34,211,238,.15), transparent),
    var(--bg);
}
.tvg-embed-shell{
  max-width:1100px;
  margin:12px auto 32px;
  padding:14px 20px 20px;
  border-radius:18px;
  background:rgba(11,15,20,.96);
  box-shadow:var(--shadow);
  border:1px solid rgba(148,163,184,.18);
}
.tvg-embed-header{
  display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;
}
.tvg-embed-title{font-size:18px;font-weight:600;}
.tvg-embed-sub{font-size:13px;color:var(--muted);}
.tvg-embed-brand{font-size:11px;color:var(--muted);}
.tvg-embed-brand a{color:var(--brand-2);text-decoration:none;}

.tvg-upload-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;}
.tvg-stats{display:flex;flex-wrap:wrap;gap:18px;margin-top:14px;}
.tvg-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:10px;}
.tvg-select{padding-inline:10px; min-width:160px;}

#tvg-file-input{display:none;} /* hidden, label acts as trigger */
.tvg-file-label{cursor:pointer; margin:0;}

.tvg-table-wrap{overflow:auto; max-height:480px; border-radius:16px;}
.tvg-table{width:100%; border-collapse:collapse; min-width:720px;}
.tvg-table thead th{
  position:sticky; top:0; background:rgba(17,24,39,.98);
  text-align:left; padding:10px; border-bottom:1px solid rgba(255,255,255,.08);
  cursor:pointer; user-select:none;
}
.tvg-table tbody td{padding:10px; border-bottom:1px solid rgba(255,255,255,.04);}
.tvg-row--blocked{ background:rgba(127,29,29,.92); color:#e5e7eb; }
.tvg-row--approved{ background:rgba(6,95,70,.96); color:#e5e7eb; }
.tvg-row--default{ background:rgba(17,24,39,.96); color:#e5e7eb; }

/* Keep buttons consistent */
.btn{
  display:inline-block; padding:12px 16px; border-radius:12px;
  font-weight:600; border:1px solid rgba(255,255,255,.12);
  background:#111826; color:var(--text); text-decoration:none;
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform:translateY(-1px) }
.btn--primary{
  background:linear-gradient(45deg,var(--brand),var(--brand-2)); color:#fff;
  box-shadow: var(--shadow);
}
.btn--ghost{
  background:transparent; border:1px solid rgba(255,255,255,.25);
}

/* Proto banner + shared header if you want it sitewide */
.proto-banner{
  position:sticky; top:0; z-index:60; height:var(--banner-h, 32px);
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(90deg, rgba(79,70,229,.9), rgba(34,211,238,.9));
  color:#fff; font-size:14px; border-bottom:1px solid rgba(255,255,255,.2);
  pointer-events:auto;
}

/* Thanks page card */
.center-card{
  margin: 60px auto 80px; max-width: 640px;
  background: rgba(17,24,38,.6);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px; box-shadow: var(--shadow);
  padding: 34px 24px; text-align:center;
}
/* ===== MetaSearch ===== */
.page-search {
  background:
    radial-gradient(900px 500px at -10% 20%, rgba(34,211,238,.15), transparent),
    var(--bg);
}

.search-card { padding: 18px; }

.ms-form { display: grid; gap: 16px; }

.ms-label .ms-label-text { display:block; font-weight:600; margin-bottom:6px; }

.ms-input-wrap {
  display:flex; align-items:center; gap:8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px; padding:10px 12px; background:rgba(17,24,38,.6);
}

.ms-input {
  flex:1; background:transparent; border:none; outline:none; color:var(--text);
}

.ms-two {
  display:grid; gap:14px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px){
  .ms-two { grid-template-columns: 1fr; }
}

.ms-sites { border:none; margin:0; padding:0; }
.ms-legend { font-weight:700; margin-bottom:8px; }

.ms-site-grid {
  display:flex; flex-wrap:wrap; gap:10px;
}

.pill-check {
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:999px; padding:8px 12px; background:rgba(17,24,38,.5);
  cursor:pointer; user-select:none;
}
.pill-check input { accent-color: var(--brand); }

.ms-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

.ms-hint { font-size: 12px; }

.ms-links {
  display:grid; gap:8px; margin-top:10px;
}
.ms-links a {
  display:block; padding:10px 12px; border-radius:10px;
  background:rgba(17,24,39,.6); border:1px solid rgba(255,255,255,.08);
  color: var(--text); text-decoration: none; word-break: break-all;
}
.ms-links a:hover { transform: translateY(-1px); transition: transform .15s ease; }
/* Prevent closed mobile nav from blocking clicks */
@media (max-width: 900px) {
  .topnav {
    pointer-events: none;   /* don't intercept taps when "closed" */
  }

  header.nav.nav-open .topnav,
  #primary-nav.is-open {
    pointer-events: auto;   /* only clickable when menu is actually open */
  }
}
/* --- Mobile nav: don't block the page when closed --- */
@media (max-width: 900px) {
  /* By default, the nav should NOT receive taps */
  .topnav {
    pointer-events: none;
  }

  /* When the menu is open, re-enable interactions */
  header.nav.nav-open .topnav,
  #primary-nav.is-open {
    pointer-events: auto;
  }
}
@media (max-width:900px){
  .nav--brand{ grid-template-columns: var(--logo-w-sm) auto; height: var(--nav-h-sm); column-gap:12px; }
  .logo-bay{ height: calc(var(--nav-h-sm) - 8px) !important; padding-left:6px; }
  .logo-img{ height:auto !important; max-height:100% !important; width:auto; max-width:100%; object-fit:contain; }
  .nav-toggle{ display:flex; align-items:center; justify-content:center; }
  .topnav{
    position: fixed; left: 16px; right: 16px; top: calc(var(--banner-h) + var(--nav-h-sm) + 12px);
    display:none; flex-direction:column; align-items:stretch; gap:0;
    background: rgba(11,15,20,.95); border:1px solid rgba(255,255,255,.06); border-top:none; border-radius:0 0 18px 18px;
    overflow:hidden; transform:translateY(-6px); opacity:0; transition: transform .2s ease, opacity .2s ease; z-index:60;
  }
  .topnav a{ padding:14px 18px; border-bottom:1px solid rgba(255,255,255,.06); }
  header.nav-open .topnav{ display:flex; transform:translateY(0); opacity:1; }
  body.menu-open::after{ content:""; position:fixed; inset:0; background:rgba(0,0,0,.35); backdrop-filter:blur(2px); z-index:40; }
  .nav--brand{ grid-template-columns: minmax(140px, var(--logo-w-sm)) auto !important; }
}
/* Don’t let the mobile nav/overlay block clicks lower on the page */
@media (max-width: 900px) {
  /* Nav itself only clickable when open */
  .topnav {
    pointer-events: none;
  }
  header.nav-open .topnav {
    pointer-events: auto;
  }

  /* Dim overlay is visual only, not click-blocking */
  body.menu-open::after {
    pointer-events: none;
  }
}
