/* ═══════════════════════════════════════════════════════════
 *  TVS AFFILIATE — FRONTEND CSS
 *  Clean, professional, mobile-first
 * ═══════════════════════════════════════════════════════════ */

:root {
  --gold:   #f1c349;
  --gold-d: #d4a93a;
  --gold-l: #fff9e6;
  --gold-b: #e8d878;
  --green:  #2e7d32;
  --green-l:#e8f5e9;
  --tx:     #1a1a1a;
  --tx2:    #555;
  --tx3:    #888;
  --bg:     #f5f5f5;
  --bd:     #e0e0e0;
  --white:  #ffffff;
  --r:      10px;
  --sh:     0 2px 16px rgba(0,0,0,.07);
  --sh-lg:  0 4px 32px rgba(0,0,0,.10);
}

* { box-sizing: border-box; }

/* ── BASE PAGE ── */
.tvs-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--tx);
}

/* ── CARD ── */
.tvs-card {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.tvs-card-head {
  background: var(--gold);
  padding: 36px 32px 28px;
  text-align: center;
}
.tvs-logo-wrap { margin-bottom: 14px; }
.tvs-logo-wrap img {
  display: block;
  margin: 0 auto;
  background: rgba(255,255,255,.95);
  border-radius: 10px;
  padding: 8px 16px;
  max-width: 160px;
  height: auto;
}
.tvs-card-head h2 {
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
}
.tvs-card-head p {
  color: #ffffff;
  opacity: .9;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* ── FORM ── */
.tvs-form-body { padding: 32px; }
.tvs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tvs-full { grid-column: 1 / -1; }

.tvs-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 6px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.tvs-field label span { color: #e53935; }
.tvs-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--bd);
  border-radius: 8px;
  font-size: 15px;
  color: var(--tx);
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
}
.tvs-input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(241,195,73,.15);
  background: var(--white);
}
.tvs-input[readonly] { background: #f0f0f0; color: var(--tx3); }
.tvs-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--tx2);
  cursor: pointer;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.tvs-check input { margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }

/* ── BUTTONS ── */
.tvs-btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  text-align: center;
  letter-spacing: .2px;
}
.tvs-btn-gold {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 3px 14px rgba(241,195,73,.35);
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.tvs-btn-gold:hover { background: var(--gold-d); transform: translateY(-1px); color: #ffffff; }
.tvs-btn-outline {
  background: var(--white);
  color: var(--tx);
  border: 2px solid var(--gold);
}
.tvs-btn-outline:hover { background: var(--gold-l); }
.tvs-btn-full { width: 100%; display: block; padding: 15px; font-size: 17px; margin-top: 20px; text-align: center; }
.tvs-btn-sm   { padding: 9px 20px; font-size: 13px; }
.tvs-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── NOTICE BOXES ── */
.tvs-success-box {
  text-align: center;
  padding: 40px 24px;
  background: var(--green-l);
  border-radius: var(--r);
  margin: 24px;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.tvs-success-icon { font-size: 40px; margin-bottom: 12px; }
.tvs-success-box h3 { color: var(--green); font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.tvs-success-box p  { color: var(--tx2); font-size: 15px; line-height: 1.6; margin: 0 0 4px; }
.tvs-info-box {
  background: var(--gold-l);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--tx);
  line-height: 1.6;
}
.tvs-info-box a { color: var(--gold-d); font-weight: 600; }
.tvs-alt-box {
  background: #f8f9fb;
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 24px;
  margin: 24px;
  text-align: center;
}
.tvs-alt-box strong { color: var(--tx); font-size: 16px; }
.tvs-alt-box p { color: var(--tx2); margin: 8px 0 16px; font-size: 14px; }

/* ── VIDEO ── */
.tvs-video-wrap {
  margin: 0 24px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.tvs-video-wrap video { display: block; width: 100%; }
.tvs-progress-wrap { margin: 14px 24px 0; }
.tvs-prog-track { height: 7px; background: #e8e8e8; border-radius: 4px; overflow: hidden; }
.tvs-prog-fill  { height: 100%; background: linear-gradient(90deg, var(--gold), #66bb6a); border-radius: 4px; transition: width .3s; width: 0; }
.tvs-prog-text  { text-align: center; font-size: 13px; color: var(--tx3); margin-top: 7px; }

/* ── GATE ── */
.tvs-gate { display: flex; justify-content: center; align-items: center; min-height: 440px; padding: 20px; }
.tvs-gate-card {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  border-top: 4px solid var(--gold);
}
.tvs-gate-card .tvs-logo-wrap { margin-bottom: 20px; }
.tvs-gate-card .tvs-logo-wrap img { max-width: 140px; background: none; padding: 0; }
.tvs-gate-card h2 { color: var(--tx); font-size: 22px; margin: 0 0 8px; }
.tvs-gate-card p  { color: var(--tx2); margin: 0 0 20px; font-size: 15px; }
.tvs-gate-form .tvs-input { margin-bottom: 0; }
.tvs-small { font-size: 13px; color: var(--tx3); margin-top: 16px; }

/* ═══════════════════════════════════════════════════════════
 *  AGREEMENT PAGE
 * ═══════════════════════════════════════════════════════════ */
.tvs-agree-doc-wrap { margin: 0; }

/* Desktop: iframe */
.tvs-pdf-desktop { display: block; margin: 24px; }
.tvs-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f5f5f5;
  border: 1px solid var(--bd);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-size: 14px;
  color: var(--tx);
}
.tvs-pdf-toolbar-link { font-size: 13px; color: var(--gold-d); text-decoration: none; font-weight: 600; }
.tvs-pdf-toolbar-link:hover { text-decoration: underline; }
.tvs-pdf-iframe-wrap {
  border: 1px solid var(--bd);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.tvs-pdf-iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 75vh;
  min-height: 560px;
  border: none;
}

/* Mobile: accordion sections */
.tvs-pdf-mobile { display: none; margin: 16px; }
.tvs-mobile-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gold);
  color: var(--tx);
  padding: 14px 18px;
  border-radius: 8px 8px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.tvs-mobile-doc-header a {
  color: var(--tx);
  font-size: 13px;
  text-decoration: underline;
  opacity: .8;
}
.tvs-accord-list {
  border: 1px solid var(--bd);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: var(--white);
}
.tvs-accord-item { border-bottom: 1px solid #eee; }
.tvs-accord-item:last-child { border-bottom: none; }

/* ── FIX: accordion button — no black, no dark background ── */
.tvs-accord-btn {
  width: 100%;
  background: var(--white);       /* pure white, never black */
  border: none;
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx);               /* dark text on white */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .15s;
}
.tvs-accord-btn:hover    { background: var(--gold-l); }
.tvs-accord-btn:focus    { outline: 2px solid var(--gold); outline-offset: -2px; background: var(--white); }
.tvs-accord-btn[aria-expanded="true"] { background: var(--gold-l); }
.tvs-accord-icon {
  font-size: 20px;
  color: var(--gold-d);
  font-weight: 300;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  line-height: 1;
}

/* ── FIX: accordion body — always white bg, dark text ── */
.tvs-accord-body {
  display: none;
  background: var(--white);      /* white, never black */
  padding: 0 18px 16px;
}
.tvs-accord-body.open { display: block; }
.tvs-accord-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #444;                   /* readable dark grey */
  white-space: pre-line;
}

/* Signing section */
.tvs-sig-section { padding: 0 28px 36px; }
.tvs-sig-section-header {
  text-align: center;
  padding: 28px 0 20px;
  border-top: 2px solid var(--bd);
  margin-top: 8px;
}
.tvs-sig-section-header h3 {
  color: var(--tx);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}
.tvs-sig-section-header p { color: var(--tx3); font-size: 13px; margin: 0; }
.tvs-sig-block { margin-bottom: 20px; }
.tvs-sig-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.tvs-sig-label small {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--tx3);
  font-size: 12px;
}
.tvs-sig-wrap { position: relative; }
.tvs-sig-wrap canvas {
  width: 100%;
  height: 180px;
  border: 2px dashed var(--bd);
  border-radius: 8px;
  cursor: crosshair;
  touch-action: none;
  background: #fafafa;
  display: block;
}
.tvs-sig-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--tx2);
  transition: background .15s;
}
.tvs-sig-clear:hover { background: #f5f5f5; }

/* Sign status */
#tvs-sign-status {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  display: none;
}

/* Form sections inside agreement */
.tvs-form-section {
  margin-bottom: 0;
  padding: 22px 28px 18px;
  border-top: 1px solid #f0f0f0;
}
.tvs-form-section:first-of-type { border-top: 2px solid var(--bd); }
.tvs-form-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--tx);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tvs-form-section-note {
  font-size: 13px;
  color: var(--tx3);
  margin: -8px 0 14px;
  line-height: 1.5;
}
.tvs-field-hint {
  display: block;
  font-size: 11px;
  color: var(--tx3);
  margin-top: 5px;
}

/* SSN reveal toggle */
.tvs-input-reveal {
  position: relative;
}
.tvs-input-reveal .tvs-input {
  padding-right: 46px;
}
.tvs-reveal-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--tx3);
  padding: 4px;
  line-height: 1;
  opacity: .7;
  transition: opacity .2s;
}
.tvs-reveal-btn:hover { opacity: 1; }

/* Signature placeholder text */
.tvs-sig-wrap { position: relative; }
.tvs-sig-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: #bbb;
  font-size: 18px;
  font-style: italic;
  pointer-events: none;
  user-select: none;
  transition: opacity .2s;
  white-space: nowrap;
  letter-spacing: .5px;
}
.tvs-sig-placeholder.hidden { opacity: 0; pointer-events: none; }

/* Agreement checkbox */
.tvs-agree-check-wrap {
  margin: 0 28px 20px;
  padding: 16px 20px;
  background: var(--gold-l);
  border: 1px solid var(--gold-b);
  border-radius: 8px;
}
.tvs-agree-check-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  font-size: 14px !important;
  color: var(--tx) !important;
  line-height: 1.6 !important;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
}
.tvs-agree-check-label input { margin-top: 3px; flex-shrink: 0; }

/* Sign legal disclaimer */
.tvs-sign-legal {
  text-align: center;
  font-size: 12px;
  color: var(--tx3);
  margin: 10px 28px 0;
  line-height: 1.5;
}

/* Download button — full width on mobile */
.tvs-dl-btn-wrap {
  margin-top: 16px;
}
.tvs-dl-btn-wrap a {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════
 *  AFFILIATE PORTAL
 * ═══════════════════════════════════════════════════════════ */
.tvs-portal {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 60px;
  font-family: -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--tx);
}

/* Header */
.tvs-p-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--r);
  border-top: 5px solid var(--gold);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: var(--sh);
  flex-wrap: wrap;
}
.tvs-p-logo img {
  height: 48px;
  width: auto;
  max-width: 160px;
  display: block;
}
.tvs-p-welcome { flex: 1; min-width: 180px; }
.tvs-p-welcome h1 { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: var(--tx); }
.tvs-p-welcome p  { margin: 0; font-size: 14px; color: var(--tx3); }
.tvs-p-dash-btn {
  background: var(--gold);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.tvs-p-dash-btn:hover { background: var(--gold-d); }

/* Banner */
.tvs-p-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tvs-p-banner-success { background: var(--green-l); border: 1px solid #a5d6a7; }
.tvs-p-banner-info    { background: var(--gold-l);  border: 1px solid var(--gold-b); }
.tvs-p-banner-warn    { background: #fff8e1;        border: 1px solid #ffe082; }
.tvs-p-banner-icon    { font-size: 28px; flex-shrink: 0; }
.tvs-p-banner > div   { flex: 1; min-width: 160px; }
.tvs-p-banner strong  { display: block; font-size: 15px; color: var(--tx); margin-bottom: 2px; }
.tvs-p-banner span    { font-size: 13px; color: var(--tx2); }
.tvs-p-banner-btn {
  background: var(--gold);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 1px 1px rgba(0,0,0,0.08);
}
.tvs-p-banner-btn:hover { background: var(--gold-d); color: #ffffff; }

/* Grid */
.tvs-p-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}

/* Card */
.tvs-p-card {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh);
  margin-bottom: 16px;
  overflow: hidden;
}
.tvs-p-card-title {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tx);
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  letter-spacing: .2px;
}
.tvs-p-card-sub {
  padding: 10px 20px 0;
  font-size: 12px;
  color: var(--tx3);
  margin: 0;
}

/* Portal guides header */
.tvs-p-guides-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fdf8e8, #fff9e6);
  border-bottom: 1px solid #e8e0c0;
}
.tvs-p-guides-header-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.tvs-p-guides-header-text strong {
  display: block;
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: 3px;
}
.tvs-p-guides-header-text span {
  font-size: 13px;
  color: #5a4400;
  line-height: 1.5;
}

/* Calculator range + input row */
.tvs-calc-range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tvs-calc-range-row .tvs-calc-range {
  flex: 1;
}
.tvs-calc-refs-num {
  width: 72px !important;
  min-width: 72px;
  text-align: center;
  font-weight: 700;
  font-size: 16px !important;
  padding: 8px 6px !important;
}

/* Steps */
.tvs-p-steps { padding: 16px 20px; }
.tvs-p-step {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
}
.tvs-p-step:last-child { padding-bottom: 0; }
.tvs-p-step-left { display: flex; flex-direction: column; align-items: center; }
.tvs-p-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  color: var(--tx3);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #ddd;
}
.tvs-p-step-num.done   { background: var(--green); border-color: var(--green); color: #fff; }
.tvs-p-step-num.active { background: var(--gold);  border-color: var(--gold-d); color: var(--tx); }
.tvs-p-step-line {
  width: 2px;
  flex: 1;
  background: #e8e8e8;
  margin-top: 6px;
  min-height: 20px;
}
.tvs-p-step-done .tvs-p-step-line { background: var(--green-l); }
.tvs-p-step-body { flex: 1; padding-top: 4px; }
.tvs-p-step-title { font-size: 15px; font-weight: 700; color: var(--tx); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tvs-p-step-desc  { font-size: 13px; color: var(--tx2); line-height: 1.5; margin-bottom: 10px; }
.tvs-p-badge-done {
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.tvs-p-step-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tvs-p-step-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--gold);
  color: #ffffff;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0,0,0,0.08);
}
.tvs-p-step-btn:hover { background: var(--gold-d); color: #ffffff; }
.tvs-p-step-btn-outline {
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--tx);
}
.tvs-p-step-btn-outline:hover { background: var(--gold-l); }

/* Quick Actions */
.tvs-p-actions-grid { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tvs-p-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s;
  background: #fafafa;
}
.tvs-p-action:hover { background: var(--gold-l); border-color: var(--gold-b); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.tvs-p-action-highlight { background: var(--gold-l); border-color: var(--gold-b); }
.tvs-p-action-icon { font-size: 22px; flex-shrink: 0; }
.tvs-p-action-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--tx); margin-bottom: 2px; }
.tvs-p-action-text span   { font-size: 12px; color: var(--tx3); }

/* Resources */
.tvs-p-resource {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.tvs-p-resource:last-child { border-bottom: none; }
.tvs-p-resource:hover { background: #fafafa; }
.tvs-p-resource-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.tvs-p-resource-info { flex: 1; min-width: 0; }
.tvs-p-resource-info strong { display: block; font-size: 13px; font-weight: 700; color: var(--tx); margin-bottom: 2px; }
.tvs-p-resource-info span   { font-size: 11px; color: var(--tx3); line-height: 1.4; }
.tvs-p-resource-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  background: var(--gold);
  color: var(--tx);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.tvs-p-resource-btn:hover { background: var(--gold-d); }

/* Commission table */
.tvs-p-comm-table { padding: 8px 20px 16px; }
.tvs-p-comm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}
.tvs-p-comm-row:last-child { border-bottom: none; }
.tvs-p-comm-row span  { color: var(--tx2); }
.tvs-p-comm-row strong { color: var(--tx); font-weight: 700; }

/* Socials */
.tvs-p-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px; }
.tvs-p-social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--tx);
  transition: all .2s;
}
.tvs-p-social:hover { background: var(--gold-l); border-color: var(--gold-b); }
.tvs-p-social span { font-size: 18px; }
.tvs-p-social-tip { padding: 0 16px 14px; font-size: 11px; color: var(--tx3); margin: 0; }

/* Footer */
.tvs-p-footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--tx3);
}
.tvs-p-footer a { color: var(--gold-d); text-decoration: none; }
.tvs-p-footer a:hover { text-decoration: underline; }
.tvs-p-footer p { margin: 4px 0; }

/* ═══════════════════════════════════════════════════════════
 *  MOBILE RESPONSIVE
 * ═══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .tvs-p-grid { grid-template-columns: 1fr; }
  .tvs-p-col-main { order: 1; }
  .tvs-p-col-side { order: 2; }
  /* Actions grid stays 2-col down to 640px */
  .tvs-p-actions-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* On small tablets collapse actions to 1 col */
  .tvs-p-actions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Agreement */
  .tvs-pdf-desktop { display: none !important; }
  .tvs-pdf-mobile  { display: block !important; }

  /* Portal */
  .tvs-p-header { padding: 16px; gap: 12px; }
  .tvs-p-welcome h1 { font-size: 18px; }
  .tvs-p-actions-grid { grid-template-columns: 1fr; }
  .tvs-p-socials { grid-template-columns: 1fr 1fr; }

  /* Forms */
  .tvs-grid-2 { grid-template-columns: 1fr; }
  .tvs-form-body { padding: 20px 16px; }
  .tvs-form-section { padding: 18px 16px 14px; }
  .tvs-agree-check-wrap { margin: 0 16px 20px; }
  .tvs-sig-section { padding: 0 0 28px; }
  .tvs-sign-legal { margin: 10px 16px 0; }
  .tvs-btn-full { margin-left: 16px; margin-right: 16px; width: calc(100% - 32px); }
  .tvs-sig-wrap canvas { height: 150px; }

  /* Cards */
  .tvs-card-head { padding: 24px 20px; }
  .tvs-card-head h2 { font-size: 20px; }
  .tvs-success-box { padding: 28px 16px; margin: 16px; }
  .tvs-alt-box { margin: 12px; }

  /* Video */
  .tvs-video-wrap { margin: 0 12px; background: #000; }
  .tvs-video-wrap video { max-height: 260px; object-fit: contain; }
  .tvs-progress-wrap { margin: 12px 12px 0; }

  /* Gate */
  .tvs-gate-card { padding: 32px 20px; }

  .tvs-page { padding: 8px 0 40px; }
  .tvs-portal { padding: 0 0 40px; }
  .tvs-p-footer { padding: 16px 6px 30px; }

  .tvs-btn-full { font-size: 15px; padding: 14px; }

  /* Signing page — eliminate side gaps on mobile */
  .tvs-sig-section { padding: 0 12px 28px; }
  .tvs-form-section { padding: 18px 12px 14px; }
  .tvs-agree-check-wrap { margin: 0 12px 20px; }
  .tvs-sign-legal { margin: 10px 12px 0; }
  .tvs-btn-full { margin-left: 12px; margin-right: 12px; width: calc(100% - 24px); }
  .tvs-celebrate { padding: 24px 12px; }
  .tvs-celebrate-actions .tvs-btn { font-size: 14px; padding: 13px 16px; }
}

/* Extra small phones (under 400px) */
@media (max-width: 400px) {
  .tvs-page { padding: 4px 0 32px; }
  .tvs-portal { padding: 0 0 32px; }
  .tvs-card { border-radius: 0; margin-left: 0; margin-right: 0; }
  .tvs-card-head { padding: 20px 14px; }
  .tvs-card-head h2 { font-size: 18px; }
  .tvs-sig-section { padding: 0 8px 24px; }
  .tvs-form-section { padding: 16px 8px 12px; }
  .tvs-form-body { padding: 18px 10px; }
  .tvs-agree-check-wrap { margin: 0 8px 16px; }
  .tvs-sign-legal { margin: 8px 8px 0; }
  .tvs-btn-full { margin-left: 8px; margin-right: 8px; width: calc(100% - 16px); font-size: 14px; }
  .tvs-sig-wrap canvas { height: 130px; }
  .tvs-success-box { padding: 24px 10px; margin: 12px 0; }
  .tvs-celebrate { padding: 20px 8px; }
  .tvs-pdf-mobile { margin: 12px 0; }
}

/* ═══════════════════════════════════════════════════════════
 *  v8.0 — NEW PORTAL SECTIONS
 * ═══════════════════════════════════════════════════════════ */

/* FAQ list uses same accordion pattern */
.tvs-p-faq-list { background: var(--white); }
.tvs-p-faq-list .tvs-accord-item { border-bottom: 1px solid #f0f0f0 !important; }
.tvs-p-faq-list .tvs-accord-item:last-child { border-bottom: none !important; }
.tvs-p-faq-list .tvs-accord-btn {
  background: var(--white) !important;
  color: var(--tx) !important;
  border: none !important;
  padding: 16px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
.tvs-p-faq-list .tvs-accord-btn:hover { background: var(--gold-l) !important; }
.tvs-p-faq-list .tvs-accord-btn[aria-expanded="true"] { background: var(--gold-l) !important; }
.tvs-p-faq-list .tvs-accord-body {
  background: var(--white) !important;
  color: #444 !important;
  padding: 0 20px 16px !important;
}
.tvs-p-faq-list .tvs-accord-body p {
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: var(--tx2) !important;
  margin: 0 !important;
}

/* Help & Support grid */
.tvs-p-help-grid { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tvs-p-help-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 10px;
  text-decoration: none;
  transition: all .2s;
  background: #fafafa;
}
.tvs-p-help-item:hover {
  background: var(--gold-l);
  border-color: var(--gold-b);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.tvs-p-help-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.tvs-p-help-info { flex: 1; min-width: 0; }
.tvs-p-help-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 4px;
}
.tvs-p-help-info span {
  font-size: 12px;
  color: var(--tx3);
  line-height: 1.5;
  display: block;
}

/* Commission head row */
.tvs-p-comm-head {
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--tx3) !important;
  border-bottom: 2px solid #eee !important;
  padding: 8px 0 !important;
}
.tvs-p-comm-head span { color: var(--tx3) !important; font-weight: 600 !important; }
.tvs-p-comm-head strong { color: var(--tx3) !important; font-weight: 600 !important; font-size: 11px !important; }

/* Commission example box */
.tvs-p-comm-example {
  margin: 4px 20px 12px;
  border: 1px solid var(--gold-b);
  border-radius: 8px;
  overflow: hidden;
  background: var(--gold-l);
}
.tvs-p-comm-example-title {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx);
  background: rgba(241,195,73,.15);
  border-bottom: 1px solid var(--gold-b);
}
.tvs-p-comm-example-body { padding: 8px 16px; }
.tvs-p-comm-ex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(241,195,73,.2);
}
.tvs-p-comm-ex-row:last-child { border-bottom: none; }
.tvs-p-comm-ex-row span { color: var(--tx2); }
.tvs-p-comm-ex-row strong { color: var(--tx); font-weight: 700; }
.tvs-p-comm-ex-total {
  margin-top: 4px;
  padding-top: 8px !important;
  border-top: 2px solid var(--gold) !important;
  border-bottom: none !important;
}
.tvs-p-comm-ex-total span { font-weight: 700; color: var(--tx); }
.tvs-p-comm-ex-total strong { color: var(--green); font-size: 15px; }

/* Commission key details */
.tvs-p-comm-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 20px 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.tvs-p-comm-detail {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.tvs-p-comm-detail:nth-child(odd) { border-right: 1px solid #f0f0f0; }
.tvs-p-comm-detail:nth-last-child(-n+2) { border-bottom: none; }
.tvs-p-comm-detail-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--tx3);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 2px;
}
.tvs-p-comm-detail-value {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--tx);
}

/* ═══════════════════════════════════════════════════════════
 *  v8.0 — ACCORDION ULTRA-FIX (override any theme)
 * ═══════════════════════════════════════════════════════════ */
.tvs-accord-btn,
.tvs-portal .tvs-accord-btn,
.tvs-page .tvs-accord-btn,
.tvs-pdf-mobile .tvs-accord-btn,
.tvs-p-faq-list .tvs-accord-btn,
button.tvs-accord-btn {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #1a1a1a !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.tvs-accord-btn:hover,
.tvs-portal .tvs-accord-btn:hover,
.tvs-p-faq-list .tvs-accord-btn:hover {
  background-color: #fff9e6 !important;
}
.tvs-accord-btn:focus,
.tvs-accord-btn:active {
  background-color: #ffffff !important;
  outline: 2px solid #f1c349 !important;
  outline-offset: -2px !important;
}
.tvs-accord-btn[aria-expanded="true"],
.tvs-portal .tvs-accord-btn[aria-expanded="true"],
.tvs-p-faq-list .tvs-accord-btn[aria-expanded="true"] {
  background-color: #fff9e6 !important;
}
.tvs-accord-body,
.tvs-portal .tvs-accord-body,
.tvs-page .tvs-accord-body,
.tvs-pdf-mobile .tvs-accord-body,
.tvs-p-faq-list .tvs-accord-body {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #444444 !important;
}
.tvs-accord-body p,
.tvs-portal .tvs-accord-body p,
.tvs-p-faq-list .tvs-accord-body p {
  color: #444444 !important;
  background: transparent !important;
}

/* ═══ v8 MOBILE: Help grid + FAQ responsive ═══ */
@media (max-width: 720px) {
  .tvs-p-help-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tvs-p-help-grid { grid-template-columns: 1fr; padding: 8px; }
  .tvs-p-help-item { padding: 14px; }
  .tvs-p-comm-details { grid-template-columns: 1fr; margin: 0 12px 12px; }
  .tvs-p-comm-detail:nth-child(odd) { border-right: none; }
  .tvs-p-comm-detail { border-bottom: 1px solid #f0f0f0; }
  .tvs-p-comm-detail:last-child { border-bottom: none; }
  .tvs-p-comm-example { margin: 4px 12px 12px; }
}


/* ═══════════════════════════════════════════════════════════
 *  v9.0 — PROGRESS STEPPER (reusable across all pages)
 * ═══════════════════════════════════════════════════════════ */
.tvs-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  margin: 0;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}
.tvs-stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 60px;
}
.tvs-stepper-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #e0e0e0;
  color: #999;
  border: 2px solid #d0d0d0;
  transition: all .3s;
}
.tvs-stepper-done .tvs-stepper-circle {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.tvs-stepper-active .tvs-stepper-circle {
  background: var(--gold);
  border-color: var(--gold-d);
  color: var(--tx);
  box-shadow: 0 0 0 4px rgba(241,195,73,.2);
}
.tvs-stepper-current .tvs-stepper-circle {
  box-shadow: 0 0 0 4px rgba(241,195,73,.3);
  transform: scale(1.1);
}
.tvs-stepper-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--tx3);
  text-align: center;
  letter-spacing: .2px;
}
.tvs-stepper-done .tvs-stepper-label { color: var(--green); }
.tvs-stepper-active .tvs-stepper-label { color: var(--tx); }
.tvs-stepper-line {
  flex: 1;
  height: 3px;
  background: #e0e0e0;
  margin: 0 8px;
  min-width: 30px;
  border-radius: 2px;
  align-self: flex-start;
  margin-top: 17px;
}
.tvs-stepper-line-done { background: var(--green-l); }

/* ═══ v9.0 — ANNOUNCEMENT BANNER ═══ */
.tvs-p-announce {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--r);
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.tvs-p-announce-info    { background: var(--gold-l); border: 1px solid var(--gold-b); }
.tvs-p-announce-promo   { background: linear-gradient(135deg, #fff3e0, #fff8e1); border: 1px solid #ffe082; }
.tvs-p-announce-success { background: var(--green-l); border: 1px solid #a5d6a7; }
.tvs-p-announce-icon    { font-size: 24px; flex-shrink: 0; }
.tvs-p-announce-text    { flex: 1; color: var(--tx); }
.tvs-p-announce-text strong { font-weight: 700; }

/* ═══ v9.0 — SMART DASHBOARD CTA ═══ */
.tvs-p-dash-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--r);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tvs-p-dash-cta-active {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 2px solid #a5d6a7;
}
.tvs-p-dash-cta-locked {
  background: #f5f5f5;
  border: 2px dashed #d0d0d0;
}
.tvs-p-dash-cta-icon { font-size: 32px; flex-shrink: 0; }
.tvs-p-dash-cta-body { flex: 1; min-width: 180px; }
.tvs-p-dash-cta-body strong { display: block; font-size: 16px; font-weight: 700; color: var(--tx); margin-bottom: 4px; }
.tvs-p-dash-cta-body span { font-size: 13px; color: var(--tx2); line-height: 1.5; }
.tvs-p-dash-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gold);
  color: #ffffff;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.tvs-p-dash-cta-btn:hover { background: var(--gold-d); transform: translateY(-1px); color: #ffffff; }
.tvs-p-dash-cta-btn-locked {
  background: #e0e0e0 !important;
  color: #999 !important;
  cursor: not-allowed;
  pointer-events: none;
  font-size: 13px !important;
  padding: 10px 20px !important;
}

/* Glow animation for primary CTA */
.tvs-btn-glow {
  animation: tvs-glow 2s ease-in-out infinite;
}
@keyframes tvs-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(241,195,73,.3); }
  50%      { box-shadow: 0 0 20px rgba(241,195,73,.6); }
}

/* ═══ v9.0 — CELEBRATION SCREEN ═══ */
.tvs-celebrate {
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(180deg, #e8f5e9 0%, #fff 60%);
}
.tvs-celebrate-inner { max-width: 500px; margin: 0 auto; }
.tvs-celebrate-icon { font-size: 64px; margin-bottom: 16px; }
.tvs-celebrate h3 {
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}
.tvs-celebrate p {
  color: var(--tx2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.tvs-celebrate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.tvs-celebrate-actions .tvs-btn {
  width: 100%;
  max-width: 380px;
}

/* Confetti animation */
.tvs-confetti {
  position: fixed;
  top: -10px;
  border-radius: 2px;
  z-index: 99999;
  pointer-events: none;
  animation: tvs-confetti-fall linear forwards;
}
@keyframes tvs-confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ═══ v9.0 — EARNINGS CALCULATOR ═══ */
.tvs-calc-wrap { padding: 20px; }
.tvs-calc-intro { font-size: 13px; color: var(--tx2); margin: 0 0 16px; }
.tvs-calc-inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.tvs-calc-field { display: flex; flex-direction: column; gap: 6px; }
.tvs-calc-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--tx);
}
.tvs-calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  cursor: pointer;
}
.tvs-calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--gold-d);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.tvs-calc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--gold-d);
  cursor: pointer;
}
.tvs-calc-range-val {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--tx);
}
.tvs-calc-dollar {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tvs-calc-dollar span {
  font-size: 16px;
  font-weight: 700;
  color: var(--tx);
}
.tvs-calc-aov-input {
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 8px 12px !important;
}
.tvs-calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.tvs-calc-result {
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  background: #fafafa;
  border: 1px solid #eee;
}
.tvs-calc-result-main {
  background: var(--green-l);
  border-color: #a5d6a7;
}
.tvs-calc-result-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--tx3);
  margin-bottom: 4px;
}
.tvs-calc-result-value { font-size: 24px; font-weight: 700; color: var(--tx); }
.tvs-calc-result-big   { font-size: 30px; color: var(--green); }
.tvs-calc-note {
  font-size: 11px;
  color: var(--tx3);
  text-align: center;
  margin: 0;
}

/* ═══ v9.0 — RESPONSIVE: New sections ═══ */
@media (max-width: 860px) {
  .tvs-p-dash-cta { flex-direction: column; text-align: center; }
  .tvs-p-dash-cta-body { text-align: center; }
}
@media (max-width: 720px) {
  .tvs-calc-inputs { grid-template-columns: 1fr; }
  .tvs-stepper-label { font-size: 10px; }
  .tvs-stepper-line { min-width: 20px; }
}
@media (max-width: 640px) {
  .tvs-stepper { padding: 16px 12px; }
  .tvs-stepper-circle { width: 28px; height: 28px; font-size: 11px; }
  .tvs-stepper-line { min-width: 14px; margin: 0 4px; margin-top: 14px; }
  .tvs-stepper-label { font-size: 9px; }
  .tvs-calc-results { grid-template-columns: 1fr; }
  .tvs-p-dash-cta { padding: 16px; }
  .tvs-p-dash-cta-btn { width: 100%; text-align: center; }
  .tvs-celebrate { padding: 28px 16px; }
  .tvs-celebrate h3 { font-size: 20px; }
  .tvs-celebrate-icon { font-size: 48px; }
}

/* ═══════════════════════════════════════════════════════════
 *  YOUTUBE EMBED CONTAINER — Responsive 16:9
 * ═══════════════════════════════════════════════════════════ */
.tvs-yt-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}
.tvs-yt-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}
