/* ═══════════════════════════════════════════════════════════════════════
   ViralMeter — Complete Stylesheet (single source of truth)
   ═══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f4f3f0;
  --surface:   #ffffff;
  --surface2:  #f0efe9;
  --surface3:  #e8e7e1;
  --border:    rgba(0,0,0,0.08);
  --border-md: rgba(0,0,0,0.14);
  --text:      #181715;
  --text-2:    #5c5b57;
  --text-3:    #9b9a96;

  --green:     #1D9E75; --green-bg:  #E1F5EE; --green-dk:  #0F6E56;
  --red:       #E24B4A; --red-bg:    #FCEBEB; --red-dk:    #A32D2D;
  --amber:     #BA7517; --amber-bg:  #FAEEDA; --amber-dk:  #7A4B0A;
  --blue:      #2F7FD4; --blue-bg:   #E4EFFA; --blue-dk:   #0B3D7A;
  --purple:    #6B5DD3; --purple-bg: #EEEDFB;

  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --header-h: 58px;
  --gap: 20px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Cookie banner ─────────────────────────────────────────────────── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 56px; left: 0; right: 0;
  background: #1a1917;
  color: #fff;
  padding: 14px 24px;
  z-index: 999;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.cookie-text { flex: 1; }
.cookie-text a { color: #7eb3f5; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-btn { padding: 7px 16px; border-radius: var(--r-sm); font-size: 13px; cursor: pointer; border: none; font-family: var(--font); }
.cookie-btn--decline { background: rgba(255,255,255,.15); color: #fff; }
.cookie-btn--accept  { background: #fff; color: var(--text); font-weight: 600; }

/* ── Header ────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--gap);
  height: 100%;
  display: flex; align-items: center; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.03em;
  color: var(--text); flex-shrink: 0;
}
.logo-icon { color: var(--blue); display: flex; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 6px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  transition: background .12s, color .12s;
}
.nav-link:hover { background: var(--surface2); color: var(--text); }
.nav-link.active { background: var(--text); color: #fff; }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.api-warning {
  font-size: 12px; color: var(--amber-dk);
  background: var(--amber-bg); border: 1px solid rgba(186,117,23,.2);
  padding: 4px 10px; border-radius: 20px;
}

/* Credit pill */
.credit-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  background: var(--blue-bg); color: var(--blue-dk);
  border: 1px solid rgba(47,127,212,.2); border-radius: 20px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transition: background .12s;
}
.credit-pill:hover { background: #d0e5f7; }

/* User menu */
.user-menu { position: relative; }
.user-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 1px solid var(--border-md);
  border-radius: var(--r-sm); padding: 5px 10px;
  font-size: 13px; font-family: var(--font); color: var(--text);
  cursor: pointer; transition: background .12s;
}
.user-btn:hover { background: var(--surface2); }
.user-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: 175px; background: var(--surface);
  border: 1px solid var(--border-md); border-radius: var(--r-md);
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  display: none; z-index: 200; overflow: hidden;
}
.user-dropdown.open { display: block; }
.user-dropdown-item {
  display: block; padding: 9px 14px;
  font-size: 13px; color: var(--text-2);
  transition: background .1s;
}
.user-dropdown-item:hover { background: var(--surface2); color: var(--text); }
.user-dropdown-item--danger:hover { background: var(--red-bg); color: var(--red-dk); }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 3px 0; }

/* ── Flash messages ─────────────────────────────────────────────────── */
.flash-bar { max-width: 1200px; margin: 0 auto; padding: 10px var(--gap) 0; }
.flash { padding: 10px 16px; border-radius: var(--r-sm); font-size: 13.5px; margin-bottom: 6px; }
.flash--success { background: var(--green-bg); color: var(--green-dk); border: 1px solid rgba(29,158,117,.2); }
.flash--error   { background: var(--red-bg);   color: var(--red-dk);   border: 1px solid rgba(226,75,74,.2); }
.flash--info    { background: var(--blue-bg);  color: var(--blue-dk);  border: 1px solid rgba(47,127,212,.2); }
.flash--warning { background: var(--amber-bg); color: var(--amber-dk); border: 1px solid rgba(186,117,23,.2); }

/* ── 2-column layout: main + right ad ─────────────────────────────── */
.page-body {
  max-width: 1200px; margin: 0 auto;
  padding: var(--gap) var(--gap) 80px;
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: var(--gap);
  align-items: start;
}
.main { min-width: 0; }

/* Right sidebar */
.sidebar-right { position: sticky; top: calc(var(--header-h) + 16px); }
.ad-slot { background: var(--surface); border: 1px dashed var(--border-md); border-radius: var(--r-lg); overflow: hidden; }
.ad-slot-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); text-align: center; padding: 5px 0; background: var(--surface2); border-bottom: 1px dashed var(--border); }
.ad-slot-body  { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: 10px; }
.ad-slot--tall .ad-slot-body { min-height: 500px; }
.ad-slot--short .ad-slot-body { min-height: 100px; }
.ad-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: .4; font-size: 11px; color: var(--text-3); text-align: center; }

/* Bottom ad bar */
.bottom-ad-bar {
  position: sticky; bottom: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px; text-align: center;
}

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 1.5rem 0; margin-top: 2rem; }
.footer-inner { max-width:1200px; margin:0 auto; padding:0 var(--gap); display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.footer-brand { display:flex; align-items:center; gap:8px; font-size:14px; }
.footer-links { display:flex; gap:16px; }
.footer-links a { font-size:13px; color:var(--text-2); }
.footer-links a:hover { color:var(--text); }

/* ── Common UI components ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 22px;
  background: var(--text); color: #fff; border: none;
  border-radius: var(--r-sm); font-family: var(--font);
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .12s, transform .1s; text-decoration: none;
}
.btn-primary:hover   { background: #2a2927; }
.btn-primary:active  { transform: scale(.98); }
.btn-primary:disabled{ background: var(--text-3); cursor: not-allowed; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px;
  border: 1px solid var(--border-md); border-radius: var(--r-sm);
  font-size: 13px; color: var(--text-2); background: transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .12s;
}
.btn-outline:hover { background: var(--surface2); }

.btn-danger { height:36px; padding:0 14px; border:1px solid rgba(226,75,74,.25); border-radius:var(--r-sm); font-size:13px; color:var(--red-dk); background:var(--red-bg); cursor:pointer; }

.hidden { display: none !important; }

.input-panel { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); padding:1.75rem 2rem; margin-bottom:1.25rem; }
.panel-title { font-size:21px; font-weight:700; letter-spacing:-0.025em; margin-bottom:5px; }
.panel-sub   { font-size:13.5px; color:var(--text-2); margin-bottom:1.25rem; }

.form-row { display:flex; gap:10px; margin-bottom:10px; align-items:center; }
.form-label { font-size:12px; color:var(--text-2); white-space:nowrap; min-width:160px; }
.input-text {
  flex:1; height:40px; padding:0 13px; font-size:13px;
  font-family: var(--mono); border:1px solid var(--border-md);
  border-radius:var(--r-sm); background:var(--surface2); color:var(--text); outline:none;
  transition: border-color .15s, box-shadow .15s;
}
.input-text:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(47,127,212,.1); }
.input-text.plain { font-family:var(--font); }
.input-sm { width:110px; height:40px; padding:0 10px; font-size:13px; border:1px solid var(--border-md); border-radius:var(--r-sm); background:var(--surface2); color:var(--text); outline:none; }
.input-sm:focus { border-color:var(--blue); }

.error-box { margin-top:12px; background:var(--red-bg); color:var(--red-dk); border:1px solid rgba(226,75,74,.2); border-radius:var(--r-sm); padding:10px 14px; font-size:13px; }

.loader { display:flex; align-items:center; justify-content:center; gap:12px; padding:3rem; color:var(--text-2); font-size:14px; }
.spinner { width:20px; height:20px; border:2px solid var(--border-md); border-top-color:var(--blue); border-radius:50%; animation:spin .75s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

.results { animation: fadeUp .3s ease; }
@keyframes fadeUp { from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);} }

/* Cards */
.card-section { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.25rem 1.4rem; margin-bottom:1rem; }
.section-head { font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--text-3); font-weight:500; margin-bottom:14px; }
.section-head span { text-transform:none; letter-spacing:0; font-weight:400; font-size:10.5px; }

/* Metric grid */
.metric-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:1rem; }
.metric-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:14px 16px; }
.metric-label { font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-3); margin-bottom:6px; }
.metric-val   { font-size:22px; font-weight:600; letter-spacing:-0.025em; line-height:1.1; }
.metric-delta { font-size:11px; color:var(--text-3); margin-top:5px; line-height:1.4; }
.metric-delta.pos { color:var(--green); }
.metric-delta.neg { color:var(--red); }

/* Bars */
.bar-row { display:flex; align-items:center; gap:12px; margin-bottom:11px; }
.bar-row:last-child { margin-bottom:0; }
.bar-label { font-size:12.5px; color:var(--text-2); min-width:190px; flex-shrink:0; }
.bar-track { flex:1; height:7px; background:var(--surface2); border-radius:4px; position:relative; overflow:visible; }
.bar-fill  { height:7px; border-radius:4px; transition:width .75s cubic-bezier(.4,0,.2,1); }
.bar-marker { position:absolute; top:-4px; width:2px; height:15px; background:var(--text-3); border-radius:1px; cursor:help; }
.bar-val { font-size:12.5px; font-weight:500; min-width:54px; text-align:right; font-family:var(--mono); }

/* Insights */
.insights-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:1rem; }
.insight-group { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.2rem 1.3rem; }
.insight-group-head { font-size:11px; font-weight:500; text-transform:uppercase; letter-spacing:.07em; margin-bottom:12px; padding-bottom:8px; border-bottom:1px solid var(--border); }
.insight-group-head.good    { color:var(--green-dk); }
.insight-group-head.improve { color:var(--red-dk); }
.insight-item { display:flex; gap:10px; padding:9px 0; border-top:1px solid var(--border); }
.insight-item:first-of-type { border-top:none; padding-top:0; }
.insight-dot { width:18px; height:18px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; margin-top:2px; }
.insight-dot.good    { background:var(--green-bg); color:var(--green-dk); }
.insight-dot.improve { background:var(--red-bg);   color:var(--red-dk); }
.insight-title { font-size:12.5px; font-weight:500; margin-bottom:2px; }
.insight-desc  { font-size:11.5px; color:var(--text-2); line-height:1.55; }

/* Video card */
.video-card { display:flex; gap:14px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.1rem 1.25rem; margin-bottom:1rem; align-items:flex-start; }
.thumb { width:144px; height:81px; object-fit:cover; border-radius:var(--r-sm); flex-shrink:0; background:var(--surface2); }
.video-meta { flex:1; min-width:0; }
.video-title { font-size:14.5px; font-weight:500; margin-bottom:4px; line-height:1.4; }
.channel-name{ font-size:12.5px; color:var(--blue); }
.published   { font-size:11.5px; color:var(--text-3); margin-top:3px; }
.yt-btn { flex-shrink:0; display:inline-flex; align-items:center; height:32px; padding:0 14px; border:1px solid var(--border-md); border-radius:var(--r-sm); font-size:12.5px; color:var(--text-2); transition:background .12s; }
.yt-btn:hover { background:var(--surface2); }

/* Gauge */
.gauge-section { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.5rem 1.25rem 1.25rem; display:flex; flex-direction:column; align-items:center; margin-bottom:1rem; }
.gauge-label   { text-align:center; margin-top:.5rem; }
.score-num     { font-size:52px; font-weight:700; letter-spacing:-0.04em; line-height:1; }
.score-sub     { font-size:13px; color:var(--text-2); margin-top:4px; }
.score-max     { font-size:11px; color:var(--text-3); }
.verdict-badge { display:inline-block; font-size:12px; font-weight:500; padding:4px 16px; border-radius:20px; margin-top:10px; }
.verdict-badge.viral    { background:var(--green-bg); color:var(--green-dk); }
.verdict-badge.good     { background:#EAF3DE;          color:#3B6D11; }
.verdict-badge.moderate { background:var(--amber-bg); color:var(--amber-dk); }
.verdict-badge.low      { background:var(--red-bg);   color:var(--red-dk); }

/* Niche badge */
.niche-badge { background:var(--blue-bg); border:1px solid rgba(47,127,212,.2); border-radius:var(--r-md); padding:10px 16px; font-size:13px; color:var(--text-2); line-height:1.7; margin-bottom:1rem; }
.niche-badge strong { color:var(--text); }
.niche-badge--warn  { background:var(--amber-bg); border-color:rgba(186,117,23,.2); color:var(--amber-dk); }

/* Credit gate / unlock */
.credit-gate { background:var(--surface); border:2px dashed var(--border-md); border-radius:var(--r-xl); padding:1.75rem; margin:1rem 0; text-align:center; }
.credit-gate-inner { display:flex; align-items:center; gap:16px; flex-wrap:wrap; justify-content:center; }
.credit-gate-icon  { width:52px; height:52px; border-radius:50%; background:var(--surface2); color:var(--text-3); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.credit-gate-title { font-size:16px; font-weight:600; margin-bottom:4px; }
.credit-gate-sub   { font-size:13px; color:var(--text-2); line-height:1.5; max-width:320px; }
.credit-gate-text  { text-align:left; }
.credit-gate-balance { font-size:12px; color:var(--text-3); margin-top:10px; }
.unlock-btn { display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 22px; background:var(--text); color:#fff; border:none; border-radius:var(--r-md); font-family:var(--font); font-size:14px; font-weight:600; cursor:pointer; white-space:nowrap; transition:background .12s, transform .1s; flex-shrink:0; text-decoration:none; }
.unlock-btn:hover  { background:#2a2927; }
.unlock-btn:active { transform:scale(.98); }

/* Toolbar */
.toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:.9rem; }
.toolbar .section-head { margin:0; }
.page-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:1.5rem; flex-wrap:wrap; }

/* Tables */
.table-wrap { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; }
.data-table  { width:100%; border-collapse:collapse; font-size:13px; }
.data-table thead th { padding:10px 14px; text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-3); font-weight:500; background:var(--surface2); border-bottom:1px solid var(--border); }
.data-table tbody td { padding:11px 14px; border-bottom:1px solid var(--border); vertical-align:middle; }
.data-table tbody tr:last-child td { border-bottom:none; }
.data-table tbody tr:hover td { background:var(--surface2); }
.score-pill { display:inline-flex; align-items:center; justify-content:center; width:38px; height:24px; border-radius:20px; font-size:12px; font-weight:600; }
.score-pill.viral    { background:var(--green-bg); color:var(--green-dk); }
.score-pill.good     { background:#EAF3DE;          color:#3B6D11; }
.score-pill.moderate { background:var(--amber-bg); color:var(--amber-dk); }
.score-pill.low      { background:var(--red-bg);   color:var(--red-dk); }
.video-link { color:var(--blue); font-weight:500; }
.video-link:hover { text-decoration:underline; }
.cell-muted { color:var(--text-3); font-size:12px; }
.cell-mono  { font-family:var(--mono); font-size:12.5px; }
.del-btn    { background:none; border:none; cursor:pointer; color:var(--text-3); font-size:14px; padding:4px 6px; border-radius:var(--r-xs); transition:color .12s, background .12s; }
.del-btn:hover { color:var(--red); background:var(--red-bg); }

/* Empty state */
.empty-state { text-align:center; padding:4rem 2rem; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); }
.empty-icon  { font-size:40px; margin-bottom:12px; }
.empty-title { font-size:18px; font-weight:600; margin-bottom:6px; }
.empty-sub   { font-size:14px; color:var(--text-2); margin-bottom:1.5rem; }

/* Batch textarea */
.batch-textarea { width:100%; padding:12px 14px; font-family:var(--mono); font-size:13px; border:1px solid var(--border-md); border-radius:var(--r-sm); background:var(--surface2); color:var(--text); resize:vertical; outline:none; line-height:1.6; transition:border-color .15s; }
.batch-textarea:focus { border-color:var(--blue); }

/* Channel cards */
.channel-card { display:flex; gap:16px; align-items:center; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.2rem 1.4rem; margin-bottom:1rem; }
.channel-avatar { width:60px; height:60px; border-radius:50%; object-fit:cover; background:var(--surface2); flex-shrink:0; }
.channel-title-big { font-size:17px; font-weight:600; margin-bottom:3px; }
.channel-sub-count { font-size:13px; color:var(--text-2); }
.video-row-card  { display:flex; gap:12px; align-items:center; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:.85rem 1rem; margin-bottom:8px; transition:box-shadow .15s; }
.video-row-card:hover { box-shadow:0 2px 8px rgba(0,0,0,.07); }
.video-row-thumb { width:80px; height:45px; object-fit:cover; border-radius:var(--r-xs); flex-shrink:0; background:var(--surface2); }
.video-row-title { font-size:13px; font-weight:500; line-height:1.4; margin-bottom:3px; }
.video-row-meta  { font-size:11.5px; color:var(--text-3); }
.video-row-score { margin-left:auto; flex-shrink:0; text-align:center; }
.video-row-score-num   { font-size:22px; font-weight:700; line-height:1; }
.video-row-score-label { font-size:10px; color:var(--text-3); margin-top:2px; }

/* Auth */
.auth-wrap { display:flex; align-items:center; justify-content:center; min-height:calc(100vh - var(--header-h) - 80px); padding:2rem 0; }
.auth-card { width:100%; max-width:420px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); padding:2.25rem 2.5rem; }
.auth-logo { color:var(--blue); margin-bottom:1.25rem; display:flex; }
.auth-title { font-size:22px; font-weight:700; letter-spacing:-0.025em; margin-bottom:4px; }
.auth-sub   { font-size:14px; color:var(--text-2); margin-bottom:1.5rem; }
.auth-error { background:var(--red-bg); color:var(--red-dk); border:1px solid rgba(226,75,74,.2); border-radius:var(--r-sm); padding:9px 12px; font-size:13px; margin-bottom:1rem; }
.auth-form  { display:flex; flex-direction:column; gap:14px; }
.auth-field { display:flex; flex-direction:column; gap:5px; }
.auth-label { font-size:12.5px; font-weight:500; color:var(--text-2); }
.auth-field input { height:40px; padding:0 13px; font-size:14px; font-family:var(--font); border:1px solid var(--border-md); border-radius:var(--r-sm); background:var(--surface2); color:var(--text); outline:none; transition:border-color .15s, box-shadow .15s; width:100%; }
.auth-field input:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(47,127,212,.1); }
.auth-field-error { font-size:11.5px; color:var(--red); }
.auth-btn { width:100%; height:44px; background:var(--text); color:#fff; border:none; border-radius:var(--r-sm); font-family:var(--font); font-size:14px; font-weight:600; cursor:pointer; margin-top:8px; transition:background .12s; letter-spacing:.01em; }
.auth-btn:hover { background:#2a2927; }
.auth-switch { text-align:center; margin-top:1.25rem; font-size:13px; color:var(--text-2); line-height:1.7; }
.auth-switch a { color:var(--blue); font-weight:500; }
.btn-google { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:42px; border:1.5px solid var(--border-md); border-radius:var(--r-sm); font-size:14px; font-weight:500; color:var(--text); background:var(--surface); cursor:pointer; text-decoration:none; transition:background .12s; margin-bottom:14px; }
.btn-google:hover { background:var(--surface2); }
.auth-divider { display:flex; align-items:center; gap:10px; margin:4px 0 14px; }
.auth-divider::before,.auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.auth-divider span { font-size:12px; color:var(--text-3); }

/* Pricing */
.balance-hero { display:flex; align-items:center; justify-content:space-between; gap:16px; background:linear-gradient(135deg,#0B3D7A 0%,#2F7FD4 100%); border-radius:var(--r-xl); padding:1.75rem 2rem; margin-bottom:1.25rem; flex-wrap:wrap; }
.balance-hero-left { display:flex; align-items:center; gap:16px; }
.balance-icon  { width:52px; height:52px; border-radius:50%; background:rgba(255,255,255,.15); color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.balance-label { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.65); margin-bottom:4px; }
.balance-amount{ font-size:44px; font-weight:700; letter-spacing:-0.04em; line-height:1; color:#fff; }
.balance-worth { font-size:13px; color:rgba(255,255,255,.65); margin-top:4px; }
.balance-worth strong { color:#fff; font-weight:600; }
.balance-back-btn { background:rgba(255,255,255,.12); color:#fff; border-color:rgba(255,255,255,.3); }
.balance-back-btn:hover { background:rgba(255,255,255,.22); }
.how-credits-wrap { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.25rem 1.5rem; margin-bottom:1.5rem; }
.how-credits-title { font-size:12px; text-transform:uppercase; letter-spacing:.07em; color:var(--text-3); margin-bottom:14px; font-weight:500; }
.how-credits-grid  { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.hc-item  { display:flex; align-items:center; gap:10px; flex:1; min-width:160px; }
.hc-sep   { font-size:18px; color:var(--text-3); flex-shrink:0; }
.hc-icon  { width:36px; height:36px; border-radius:var(--r-sm); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.hc-icon--blue   { background:var(--blue-bg);   color:var(--blue); }
.hc-icon--purple { background:var(--purple-bg); color:var(--purple); }
.hc-icon--green  { background:var(--green-bg);  color:var(--green); }
.hc-head { font-size:13.5px; font-weight:600; color:var(--text); }
.hc-sub  { font-size:12px; color:var(--text-2); margin-top:1px; }
.hc-note { font-size:12px; color:var(--text-3); text-align:center; padding-top:8px; border-top:1px solid var(--border); }
.pricing-section-head { font-size:12px; text-transform:uppercase; letter-spacing:.07em; color:var(--text-3); font-weight:500; margin-bottom:12px; }
.plan-grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:1.5rem; }
.plan-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); padding:1.75rem; position:relative; display:flex; flex-direction:column; gap:10px; transition:box-shadow .15s; }
.plan-card:hover { box-shadow:0 4px 20px rgba(0,0,0,.08); }
.plan-card--featured { border-color:var(--blue); border-width:2px; }
.plan-card--custom   { border-style:dashed; border-color:var(--amber); background:#fffcf5; }
.plan-badge  { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--blue); color:#fff; font-size:11px; font-weight:600; padding:3px 12px; border-radius:20px; white-space:nowrap; }
.plan-chip   { display:inline-flex; align-items:center; padding:2px 9px; border-radius:20px; font-size:10.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; margin-bottom:6px; }
.plan-chip--blue  { background:var(--blue-bg);  color:var(--blue-dk); }
.plan-chip--amber { background:var(--amber-bg); color:var(--amber-dk); }
.plan-top { display:flex; flex-direction:column; gap:6px; }
.plan-name { font-size:17px; font-weight:600; letter-spacing:-0.02em; }
.plan-price-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.plan-price { font-size:42px; font-weight:700; letter-spacing:-0.04em; line-height:1; color:var(--text); }
.plan-currency { font-size:22px; vertical-align:super; font-weight:600; }
.plan-credits-chip { background:var(--blue-bg); color:var(--blue-dk); font-size:12px; font-weight:600; padding:3px 10px; border-radius:20px; }
.plan-rate  { font-size:12px; color:var(--text-3); }
.plan-divider { height:1px; background:var(--border); margin:4px 0; }
.plan-usage-title { font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-3); margin-bottom:8px; }
.plan-usage-grid  { display:flex; flex-direction:column; gap:5px; margin-bottom:10px; }
.plan-usage-item  { display:flex; align-items:center; gap:10px; }
.plan-usage-item--muted { opacity:.5; }
.plan-usage-count { font-size:20px; font-weight:700; letter-spacing:-0.02em; color:var(--blue); min-width:34px; }
.plan-usage-label { font-size:13px; color:var(--text-2); }
.plan-features    { list-style:none; display:flex; flex-direction:column; gap:6px; flex:1; }
.plan-features li { font-size:13px; color:var(--text-2); }
.plan-btn { display:block; width:100%; height:44px; background:var(--surface2); color:var(--text); border:1px solid var(--border-md); border-radius:var(--r-sm); font-family:var(--font); font-size:14px; font-weight:500; cursor:pointer; text-align:center; line-height:44px; text-decoration:none; margin-top:auto; transition:background .12s; }
.plan-btn:hover { background:var(--surface3); }
.plan-btn--featured { background:var(--blue); color:#fff; border-color:var(--blue); }
.plan-btn--featured:hover { background:#2369b8; }
.plan-btn--custom  { background:var(--amber-dk); color:#fff; border-color:var(--amber-dk); }
.plan-btn--custom:hover:not(:disabled) { background:#5a3408; }
.plan-btn--custom:disabled { opacity:.45; cursor:not-allowed; background:var(--surface2); color:var(--text-3); border-color:var(--border-md); }
.custom-input-wrap { display:flex; flex-direction:column; gap:10px; flex:1; }
.custom-input-label { font-size:12px; font-weight:500; color:var(--text-2); text-transform:uppercase; letter-spacing:.05em; }
.custom-input-row   { display:flex; align-items:center; border:1.5px solid var(--border-md); border-radius:var(--r-md); background:var(--surface); overflow:hidden; transition:border-color .15s; }
.custom-input-row:focus-within { border-color:var(--amber); }
.custom-currency { padding:0 12px; font-size:18px; font-weight:600; color:var(--amber-dk); background:var(--amber-bg); border-right:1.5px solid var(--border-md); line-height:46px; }
.custom-amount-input { flex:1; height:46px; padding:0 14px; font-size:20px; font-weight:600; font-family:var(--mono); border:none; outline:none; background:transparent; color:var(--text); width:100%; }
.custom-amount-input::placeholder { color:var(--text-3); font-weight:400; font-size:16px; }
.custom-amount-input::-webkit-outer-spin-button,.custom-amount-input::-webkit-inner-spin-button{-webkit-appearance:none;}
.custom-amount-input[type=number]{-moz-appearance:textfield;}
.custom-preview { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:12px 14px; display:flex; flex-direction:column; gap:6px; }
.cp-row   { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.cp-label { font-size:12.5px; color:var(--text-3); }
.cp-val   { font-size:13.5px; font-weight:600; color:var(--text); font-family:var(--mono); }
.cp-val--big { font-size:17px; font-weight:700; color:var(--amber-dk); letter-spacing:-0.02em; }
.cp-divider  { height:1px; background:var(--border); margin:2px 0; }
.custom-error { font-size:12px; color:var(--red-dk); background:var(--red-bg); border:1px solid rgba(226,75,74,.2); border-radius:var(--r-xs); padding:6px 10px; }
.trust-strip { display:flex; align-items:center; justify-content:center; gap:24px; flex-wrap:wrap; padding:1rem; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); margin-bottom:1rem; }
.trust-item  { display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-3); }
.pay-message { padding:12px 16px; border-radius:var(--r-sm); font-size:13.5px; margin-top:1rem; font-weight:500; }
.pay-message--success { background:var(--green-bg); color:var(--green-dk); }
.pay-message--error   { background:var(--red-bg);   color:var(--red-dk); }
.pay-message--info    { background:var(--blue-bg);  color:var(--blue-dk); }

/* Profile */
.credit-card { display:flex; align-items:center; justify-content:space-between; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); padding:1.5rem 1.75rem; margin-bottom:1.25rem; gap:16px; flex-wrap:wrap; }
.credit-card-left { display:flex; align-items:center; gap:16px; }
.credit-icon    { width:44px; height:44px; border-radius:50%; background:var(--blue-bg); color:var(--blue); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.credit-label   { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-3); margin-bottom:4px; }
.credit-balance { font-size:36px; font-weight:700; letter-spacing:-0.03em; line-height:1; color:var(--blue-dk); }
.credit-balance--zero { color:var(--text-3); }
.credit-hint    { font-size:12.5px; color:var(--text-2); margin-top:4px; }
.credit-hint a  { color:var(--blue); }
.status-pill { display:inline-flex; align-items:center; padding:3px 10px; border-radius:20px; font-size:11.5px; font-weight:500; }
.status-pill--success  { background:var(--green-bg); color:var(--green-dk); }
.status-pill--pending  { background:var(--amber-bg); color:var(--amber-dk); }
.status-pill--failed   { background:var(--red-bg);   color:var(--red-dk); }
.status-pill--refunded { background:var(--surface2); color:var(--text-3); }

/* ── LANDING PAGE ──────────────────────────────────────────────────── */
.hero-section { text-align:center; padding:5rem 2rem 3.5rem; }
.hero-badge   { display:inline-flex; align-items:center; gap:6px; background:var(--blue-bg); color:var(--blue-dk); border:1px solid rgba(47,127,212,.2); padding:6px 16px; border-radius:20px; font-size:12.5px; font-weight:500; margin-bottom:1.5rem; }
.hero-title   { font-size:52px; font-weight:700; letter-spacing:-0.04em; line-height:1.12; margin-bottom:1.1rem; color:var(--text); }
.hero-title em{ font-style:normal; color:var(--blue); }
.hero-sub     { font-size:18px; color:var(--text-2); max-width:560px; margin:0 auto 2.25rem; line-height:1.65; }
.hero-actions { display:flex; gap:14px; justify-content:center; align-items:center; flex-wrap:wrap; margin-bottom:1.75rem; }
.btn-hero-primary { display:inline-flex; align-items:center; gap:8px; height:50px; padding:0 32px; background:var(--text); color:#fff; border-radius:var(--r-md); font-size:15px; font-weight:600; text-decoration:none; transition:background .12s, transform .1s; }
.btn-hero-primary:hover  { background:#2a2927; }
.btn-hero-primary:active { transform:scale(.98); }
.btn-hero-outline { display:inline-flex; align-items:center; height:50px; padding:0 26px; border:1.5px solid var(--border-md); border-radius:var(--r-md); font-size:15px; font-weight:500; color:var(--text-2); text-decoration:none; transition:background .12s; }
.btn-hero-outline:hover { background:var(--surface2); }
.hero-social-proof { display:flex; align-items:center; justify-content:center; gap:10px; font-size:13px; color:var(--text-2); }
.sp-avatars { display:flex; }
.sp-av { width:30px; height:30px; border-radius:50%; border:2px solid #fff; margin-right:-9px; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; color:#fff; }
.trust-logos { display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:1rem 1.5rem; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); margin-bottom:1.5rem; }
.tl-label { font-size:11px; color:var(--text-3); text-transform:uppercase; letter-spacing:.06em; white-space:nowrap; }
.tl-item  { font-size:12.5px; font-weight:500; color:var(--text-2); padding:3px 10px; background:var(--surface2); border-radius:var(--r-xs); }
.stats-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:2.5rem; }
.stat-card  { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.4rem; text-align:center; }
.stat-num   { font-size:24px; font-weight:700; letter-spacing:-0.03em; margin-bottom:5px; }
.stat-label { font-size:12px; color:var(--text-3); text-transform:uppercase; letter-spacing:.05em; }
.features-section-head { font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.07em; color:var(--text-3); margin-bottom:1rem; margin-top:2.5rem; }
.features-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:2.5rem; }
.feature-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.5rem; transition:box-shadow .15s, transform .15s; }
.feature-card:hover { box-shadow:0 4px 20px rgba(0,0,0,.07); transform:translateY(-2px); }
.feature-icon  { width:46px; height:46px; border-radius:var(--r-md); display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.feature-title { font-size:15px; font-weight:600; margin-bottom:7px; }
.feature-desc  { font-size:13px; color:var(--text-2); line-height:1.65; }
.how-section  { margin-bottom:2.5rem; }
.how-steps    { display:flex; align-items:center; gap:16px; flex-wrap:wrap; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:2rem; }
.how-step  { flex:1; min-width:160px; }
.how-num   { width:38px; height:38px; border-radius:50%; background:var(--blue); color:#fff; font-size:17px; font-weight:700; display:flex; align-items:center; justify-content:center; margin-bottom:12px; }
.how-title { font-size:14.5px; font-weight:600; margin-bottom:5px; }
.how-desc  { font-size:13px; color:var(--text-2); line-height:1.55; }
.how-arrow { font-size:28px; color:var(--text-3); }
.pricing-teaser { background:var(--text); color:#fff; border-radius:var(--r-xl); padding:2.25rem 2.5rem; display:flex; gap:28px; align-items:center; flex-wrap:wrap; margin-bottom:2.5rem; }
.pt-left  { flex:1; }
.pt-title { font-size:21px; font-weight:700; margin-bottom:7px; }
.pt-sub   { font-size:14px; opacity:.7; margin-bottom:14px; line-height:1.65; }
.pt-items { display:flex; flex-direction:column; gap:6px; }
.pt-item  { font-size:13px; opacity:.85; }
.pt-right { flex-shrink:0; display:flex; flex-direction:column; align-items:center; }
.testimonials-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:2.5rem; }
.testimonial-card  { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.5rem; }
.tc-stars  { font-size:14px; color:#F59E0B; margin-bottom:12px; }
.tc-text   { font-size:13.5px; color:var(--text-2); line-height:1.7; margin-bottom:16px; font-style:italic; }
.tc-author { display:flex; align-items:center; gap:10px; }
.tc-av     { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; color:#fff; flex-shrink:0; }
.tc-name   { font-size:13px; font-weight:600; }
.tc-handle { font-size:12px; color:var(--text-3); }
.final-cta { text-align:center; padding:3.5rem 2rem; background:var(--blue-bg); border:1px solid rgba(47,127,212,.2); border-radius:var(--r-xl); margin-bottom:1rem; }
.fc-title  { font-size:26px; font-weight:700; letter-spacing:-0.02em; margin-bottom:9px; }
.fc-sub    { font-size:16px; color:var(--text-2); margin-bottom:1.75rem; }

/* ── CHAT PAGE ─────────────────────────────────────────────────────── */
.chat-layout { display:grid; grid-template-columns:360px 1fr; gap:16px; height:calc(100vh - var(--header-h) - 120px); }
.chat-left   { display:flex; flex-direction:column; gap:12px; overflow-y:auto; }
.chat-right  { display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); overflow:hidden; }
.chat-input-card  { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); padding:1.5rem; }
.chat-input-title { font-size:16px; font-weight:600; margin-bottom:4px; }
.chat-input-sub   { font-size:13px; color:var(--text-2); margin-bottom:1rem; }
.score-summary    { margin-top:1rem; }
.ss-thumb { width:100%; height:120px; object-fit:cover; border-radius:var(--r-sm); margin-bottom:10px; background:var(--surface2); }
.ss-title { font-size:13px; font-weight:500; margin-bottom:10px; line-height:1.4; }
.ss-score-row { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.ss-score-num { font-size:36px; font-weight:700; letter-spacing:-0.04em; line-height:1; }
.ss-verdict   { font-size:13px; font-weight:500; margin-top:4px; }
.credits-status { font-size:12px; color:var(--text-3); text-align:center; margin-top:8px; }
.blur-gate    { position:relative; border-radius:var(--r-md); overflow:hidden; }
.blur-content { filter:blur(4px); pointer-events:none; padding:12px; }
.bg-metrics   { display:flex; gap:8px; margin-bottom:8px; }
.bg-metric    { flex:1; text-align:center; font-size:11px; color:var(--text-3); background:var(--surface2); border-radius:var(--r-xs); padding:8px 4px; }
.bg-metric strong { display:block; font-size:15px; color:var(--text); }
.bg-bars { display:flex; flex-direction:column; gap:6px; }
.bg-bar-row  { height:8px; background:var(--surface2); border-radius:4px; overflow:hidden; }
.bg-bar-fill { height:8px; border-radius:4px; }
.blur-overlay{ position:absolute; inset:0; background:rgba(255,255,255,.88); display:flex; align-items:center; justify-content:center; }
.blur-cta    { text-align:center; padding:1.25rem; }
.blur-cta svg{ color:var(--text-3); margin-bottom:8px; }
.blur-cta-title { font-size:14px; font-weight:600; margin-bottom:4px; }
.blur-cta-sub   { font-size:12px; color:var(--text-2); margin-bottom:14px; line-height:1.5; }
.chat-window  { flex:1; overflow-y:auto; padding:1.25rem; display:flex; flex-direction:column; gap:12px; }
.chat-welcome { text-align:center; padding:2rem 1.5rem; }
.cw-icon  { width:52px; height:52px; border-radius:50%; background:var(--blue-bg); color:var(--blue); display:flex; align-items:center; justify-content:center; margin:0 auto 12px; }
.cw-title { font-size:17px; font-weight:600; margin-bottom:6px; }
.cw-sub   { font-size:13.5px; color:var(--text-2); margin-bottom:1.25rem; line-height:1.6; }
.cw-examples { display:flex; flex-direction:column; gap:6px; }
.cw-ex { font-size:13px; color:var(--blue); background:var(--blue-bg); padding:9px 14px; border-radius:var(--r-md); cursor:pointer; text-align:left; transition:background .12s; }
.cw-ex:hover { background:#d4e8f5; }
.chat-msg { display:flex; margin-bottom:2px; }
.chat-msg--user      { justify-content:flex-end; }
.chat-msg--assistant { justify-content:flex-start; }
.cm-bubble { max-width:76%; padding:10px 14px; border-radius:var(--r-lg); font-size:13.5px; line-height:1.6; }
.chat-msg--user .cm-bubble      { background:var(--text); color:#fff; }
.chat-msg--assistant .cm-bubble { background:var(--surface2); color:var(--text); }
.cm-typing span { display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--text-3); animation:bounce .9s infinite; }
.cm-typing span:nth-child(2){animation-delay:.15s;} .cm-typing span:nth-child(3){animation-delay:.3s;}
@keyframes bounce{0%,80%,100%{transform:translateY(0);}40%{transform:translateY(-6px);}}
.chat-input-row { display:flex; align-items:center; gap:8px; padding:12px; border-top:1px solid var(--border); }
.chat-msg-input { flex:1; height:40px; padding:0 14px; font-size:14px; font-family:var(--font); border:1px solid var(--border-md); border-radius:var(--r-md); background:var(--surface2); color:var(--text); outline:none; }
.chat-msg-input:focus    { border-color:var(--blue); }
.chat-msg-input:disabled { opacity:.5; }
.chat-send-btn { width:40px; height:40px; border-radius:var(--r-sm); background:var(--text); color:#fff; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .12s; flex-shrink:0; }
.chat-send-btn:hover:not(:disabled) { background:#2a2927; }
.chat-send-btn:disabled { background:var(--text-3); cursor:not-allowed; }

/* ── TEAM PAGE ─────────────────────────────────────────────────────── */
.page-hero { text-align:center; padding:2.5rem 1rem 1.5rem; }
.ph-badge  { display:inline-flex; align-items:center; gap:6px; background:var(--amber-bg); color:var(--amber-dk); border:1px solid rgba(186,117,23,.2); padding:5px 14px; border-radius:20px; font-size:12.5px; font-weight:500; margin-bottom:1rem; }
.iit-strip { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:2rem; }
.iit-badge { display:flex; align-items:center; gap:6px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:8px 14px; font-size:13px; font-weight:500; color:var(--text-2); }
.team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:2rem; }
.team-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); padding:1.75rem; text-align:center; }
.team-avatar{ width:72px; height:72px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; color:#fff; margin:0 auto 12px; }
.team-name  { font-size:16px; font-weight:600; margin-bottom:3px; }
.team-role  { font-size:13px; color:var(--blue); margin-bottom:4px; }
.team-iit   { font-size:12px; color:var(--text-3); margin-bottom:10px; }
.team-bio   { font-size:13px; color:var(--text-2); line-height:1.6; }
.mission-card { background:var(--blue-bg); border:1px solid rgba(47,127,212,.2); border-radius:var(--r-xl); padding:2rem; text-align:center; margin-bottom:1rem; }
.mc-icon  { font-size:32px; margin-bottom:10px; }
.mc-title { font-size:18px; font-weight:700; margin-bottom:8px; }
.mc-text  { font-size:14px; color:var(--text-2); line-height:1.7; max-width:500px; margin:0 auto; }

/* ── CONTACT PAGE ──────────────────────────────────────────────────── */
.contact-section-head { font-size:14px; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--text-3); margin-bottom:1rem; }
.ad-options-grid  { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:2rem; }
.ad-option-card   { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-xl); padding:1.5rem; position:relative; }
.ao-featured { border-color:var(--blue); border-width:2px; }
.ao-badge { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--blue); color:#fff; font-size:11px; font-weight:600; padding:3px 12px; border-radius:20px; }
.ao-icon  { font-size:28px; margin-bottom:8px; }
.ao-name  { font-size:16px; font-weight:600; margin-bottom:3px; }
.ao-size  { font-size:12px; color:var(--blue); margin-bottom:8px; }
.ao-desc  { font-size:13px; color:var(--text-2); line-height:1.6; margin-bottom:14px; }
.contact-cards-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:1.25rem; }
.contact-card  { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.25rem; text-align:center; }
.cc-icon  { font-size:24px; margin-bottom:6px; }
.cc-label { font-size:12px; color:var(--text-3); text-transform:uppercase; letter-spacing:.05em; margin-bottom:4px; }
.cc-email { font-size:13.5px; color:var(--blue); text-decoration:none; font-weight:500; }
.contact-note { font-size:13px; color:var(--text-3); padding:12px 16px; background:var(--surface2); border-radius:var(--r-sm); line-height:1.6; }

/* ── TRENDS PAGE ───────────────────────────────────────────────────── */
.trend-opp-banner { background:var(--amber-bg); border:1px solid rgba(186,117,23,.2); border-radius:var(--r-md); padding:12px 16px; font-size:13.5px; color:var(--amber-dk); margin-bottom:1rem; line-height:1.6; }
.trend-pill { display:inline-flex; align-items:center; padding:4px 12px; border-radius:20px; font-size:12.5px; font-weight:500; margin:3px; }
.trend-video-row { display:flex; align-items:center; gap:12px; padding:9px 0; border-bottom:1px solid var(--border); }
.trend-video-row:last-child { border-bottom:none; }
.tvr-rank  { font-size:12px; font-weight:600; color:var(--text-3); min-width:24px; }
.tvr-title { flex:1; font-size:13px; }
.tvr-views { font-size:12.5px; font-family:var(--mono); color:var(--green-dk); font-weight:500; }

/* ── COMPETITORS PAGE ──────────────────────────────────────────────── */
.competitor-card { display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); padding:.9rem 1rem; margin-bottom:8px; }
.comp-thumb { width:48px; height:48px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.comp-thumb--placeholder { background:var(--blue); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:18px; }
.comp-info  { flex:1; min-width:0; }
.comp-name  { font-size:14px; font-weight:500; margin-bottom:2px; }
.comp-id    { font-size:11.5px; font-family:var(--mono); color:var(--text-3); }
.comp-checked { font-size:11px; color:var(--text-3); margin-top:2px; }
.comp-actions { display:flex; align-items:center; gap:8px; }
.comp-remove-btn { background:none; border:none; cursor:pointer; color:var(--text-3); font-size:16px; padding:4px; border-radius:var(--r-xs); transition:color .12s; }
.comp-remove-btn:hover { color:var(--red); }

/* ── Insights creative panel ───────────────────────────────────────── */
.insights-header { display:flex; align-items:center; gap:20px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.25rem 1.5rem; margin-bottom:1rem; }
.insights-header-score { font-size:48px; font-weight:700; letter-spacing:-0.05em; line-height:1; flex-shrink:0; }
.insights-header-score span { font-size:18px; font-weight:500; opacity:.6; }
.insights-header-msg { font-size:15px; color:var(--text-2); line-height:1.55; }
.pillar-radials-row { display:flex; gap:24px; align-items:flex-start; flex-wrap:wrap; margin-bottom:14px; }
.pillar-radial { display:flex; flex-direction:column; align-items:center; gap:4px; }
.pillar-radial-label { font-size:13px; font-weight:500; }
.pillar-radial-weight{ font-size:11px; color:var(--text-3); }
.pillar-legend { display:flex; gap:16px; flex-wrap:wrap; font-size:12px; color:var(--text-3); }
.pleg-item { display:flex; align-items:center; gap:6px; }
.pleg-item span { display:inline-block; width:10px; height:10px; border-radius:2px; }
.cmp-bars-wrap { display:flex; flex-direction:column; gap:20px; }
.cmp-bar-head  { display:flex; align-items:center; gap:10px; margin-bottom:7px; flex-wrap:wrap; }
.cmp-bar-name  { font-size:13px; font-weight:500; min-width:70px; }
.cmp-bar-val   { font-size:15px; font-weight:600; font-family:var(--mono); }
.cmp-bar-delta { font-size:12px; font-weight:500; padding:2px 8px; border-radius:20px; }
.cmp-bar-delta.pos { background:var(--green-bg); color:var(--green-dk); }
.cmp-bar-delta.neg { background:var(--red-bg);   color:var(--red-dk); }
.cmp-track { height:12px; background:var(--surface2); border-radius:6px; overflow:hidden; margin-bottom:22px; position:relative; }
.cmp-fill  { height:12px; border-radius:6px; transition:width .8s cubic-bezier(.4,0,.2,1); }
.cmp-markers { position:relative; height:0; }
.cmp-marker-item { position:absolute; top:-24px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; }
.cmp-marker-line { width:2px; height:20px; border-radius:1px; }
.cmp-marker-tip  { font-size:10px; font-weight:500; white-space:nowrap; margin-top:2px; }
.sh-badge { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:20px; font-size:11.5px; font-weight:600; letter-spacing:.03em; }
.sh-badge--good { background:var(--green-bg); color:var(--green-dk); }
.insight-cards-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.insight-card { display:flex; gap:12px; padding:1rem 1.1rem; border-radius:var(--r-md); border:1px solid var(--border); opacity:0; transform:translateY(8px); transition:opacity .35s ease, transform .35s ease; }
.insight-card--good { background:#f7fdf9; border-color:rgba(29,158,117,.15); }
.ic-check  { width:28px; height:28px; border-radius:50%; background:var(--green-bg); color:var(--green-dk); display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px; }
.ic-title  { font-size:13px; font-weight:600; margin-bottom:3px; }
.ic-desc   { font-size:12px; color:var(--text-2); line-height:1.55; }
.card-section--improve { background:#fffbf5; border-color:rgba(186,117,23,.2); }
.improve-plan-header { margin-bottom:1.25rem; padding-bottom:1rem; border-bottom:1px solid rgba(186,117,23,.15); }
.improve-plan-title  { display:flex; align-items:center; gap:8px; font-size:16px; font-weight:600; color:var(--amber-dk); margin-bottom:4px; }
.improve-plan-sub    { font-size:13px; color:var(--text-2); }
.improve-steps { display:flex; flex-direction:column; }
.improve-step  { display:flex; align-items:flex-start; gap:14px; padding:14px 0; border-bottom:1px solid rgba(186,117,23,.1); opacity:0; transform:translateY(8px); transition:opacity .4s ease, transform .4s ease; }
.improve-step:last-child { border-bottom:none; }
.step-num  { width:28px; height:28px; border-radius:50%; background:var(--amber-bg); color:var(--amber-dk); font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px; }
.step-icon { width:36px; height:36px; border-radius:var(--r-sm); background:var(--surface); border:1px solid var(--border); color:var(--amber-dk); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.step-title{ font-size:13.5px; font-weight:600; margin-bottom:4px; }
.step-desc { font-size:12.5px; color:var(--text-2); line-height:1.6; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .page-body { grid-template-columns: 1fr; }
  .sidebar-right { display: none; }
}
@media (max-width: 760px) {
  .hero-title { font-size:32px; }
  .features-grid,.testimonials-grid,.team-grid,.ad-options-grid,.contact-cards-row { grid-template-columns:1fr; }
  .stats-row { grid-template-columns:1fr 1fr; }
  .plan-grid-3 { grid-template-columns:1fr; }
  .how-steps { flex-direction:column; }
  .how-arrow { transform:rotate(90deg); }
  .pricing-teaser { flex-direction:column; }
  .chat-layout { grid-template-columns:1fr; height:auto; }
  .chat-right  { height:500px; }
  .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .insights-grid,.insight-cards-grid { grid-template-columns:1fr; }
  .bar-label { min-width:120px; }
  .thumb { width:100px; height:56px; }
  .panel-title { font-size:18px; }
  .form-row { flex-direction:column; align-items:stretch; }
  .form-label { min-width:unset; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHAT PAGE v2 — centred URL input, chat counter, topup dialog
   ═══════════════════════════════════════════════════════════════════════════ */

/* Centred URL input section */
.url-input-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 100px);
  padding: 2rem 0;
}
.url-input-card {
  width: 100%;
  max-width: 580px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem 2.75rem;
  text-align: center;
}
.uic-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue-bg); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.uic-title { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 8px; }
.uic-sub   { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 1.75rem; }

.uic-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.uic-url-row { position: relative; }
.uic-url-input {
  width: 100%; height: 48px; padding: 0 16px;
  font-size: 14px; font-family: var(--mono);
  border: 1.5px solid var(--border-md); border-radius: var(--r-md);
  background: var(--surface2); color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.uic-url-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,127,212,.1); }
.uic-niche-input {
  height: 40px; padding: 0 14px; font-size: 13.5px; font-family: var(--font);
  border: 1px solid var(--border-md); border-radius: var(--r-sm);
  background: var(--surface2); color: var(--text); outline: none;
  transition: border-color .15s;
}
.uic-niche-input:focus { border-color: var(--blue); }
.uic-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; border: none; border-radius: var(--r-md);
  background: var(--text); color: #fff;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background .12s, transform .1s;
}
.uic-btn:hover   { background: #2a2927; }
.uic-btn:active  { transform: scale(.98); }
.uic-btn:disabled{ background: var(--text-3); cursor: not-allowed; }
.uic-balance {
  margin-top: 1.25rem; font-size: 13px; color: var(--text-3);
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.uic-balance strong { color: var(--text); }

/* Chat layout (after analysis) */
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  height: calc(100vh - var(--header-h) - 60px);
}
.chat-left { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.chat-right { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }

/* Video summary card */
.video-summary-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.vs-thumb { width: 100%; height: 130px; object-fit: cover; display: block; background: var(--surface2); }
.vs-body  { padding: 12px 14px; }
.vs-title   { font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 3px; }
.vs-channel { font-size: 11.5px; color: var(--blue); margin-bottom: 10px; }
.vs-score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vs-score     { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.vs-verdict   { font-size: 12px; font-weight: 500; margin-top: 3px; }
.vs-stats     { display: flex; gap: 6px; flex-wrap: wrap; }
.vs-stat      { flex: 1; min-width: 60px; background: var(--surface2); border-radius: var(--r-xs); padding: 5px 8px; }
.vs-stat-label{ font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); display: block; }
.vs-stat-val  { font-size: 13px; font-weight: 600; font-family: var(--mono); }

/* Chat counter card */
.chat-counter-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 16px; text-align: center;
}
.cc-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 6px; }
.cc-count { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; color: var(--blue); line-height: 1; margin-bottom: 8px; }
.cc-bar-track { height: 5px; background: var(--surface2); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.cc-bar-fill  { height: 5px; background: var(--blue); border-radius: 3px; transition: width .4s ease; }
.cc-note { font-size: 12px; color: var(--text-3); }

/* Chat header */
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
}
.ch-title   { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-counter {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  background: var(--blue-bg); color: var(--blue-dk);
  font-size: 12px; font-weight: 500; white-space: nowrap; flex-shrink: 0;
  transition: background .2s, color .2s;
}

/* Chat window */
.chat-window { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }

/* Chat messages */
.chat-msg { display: flex; }
.chat-msg--user      { justify-content: flex-end; }
.chat-msg--assistant { justify-content: flex-start; }
.cm-bubble {
  max-width: 78%; padding: 10px 14px; border-radius: var(--r-lg);
  font-size: 14px; line-height: 1.65;
}
.chat-msg--user .cm-bubble      { background: var(--text); color: #fff; }
.chat-msg--assistant .cm-bubble { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.cm-typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: bounce .9s infinite; }
.cm-typing span:nth-child(2){animation-delay:.15s;} .cm-typing span:nth-child(3){animation-delay:.3s;}
@keyframes bounce{0%,80%,100%{transform:translateY(0);}40%{transform:translateY(-7px);}}

/* Chat input */
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
.chat-msg-input {
  flex: 1; height: 42px; padding: 0 14px;
  font-size: 14px; font-family: var(--font);
  border: 1px solid var(--border-md); border-radius: var(--r-md);
  background: var(--surface2); color: var(--text); outline: none;
}
.chat-msg-input:focus    { border-color: var(--blue); }
.chat-msg-input:disabled { opacity: .5; }
.chat-send-btn {
  width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--text); color: #fff; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .12s; flex-shrink: 0;
}
.chat-send-btn:hover:not(:disabled) { background: #2a2927; }
.chat-send-btn:disabled { background: var(--text-3); cursor: not-allowed; }

/* ── Topup dialog ──────────────────────────────────────────────────────── */
.topup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.topup-dialog {
  width: 100%; max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem 2.25rem;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.td-header    { text-align: center; margin-bottom: 1.5rem; }
.td-icon      { font-size: 36px; margin-bottom: 10px; }
.td-title     { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.td-sub       { font-size: 14px; color: var(--text-2); line-height: 1.6; }

.td-guide     { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 8px; }
.td-guide-row { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.td-guide-pill{ background: var(--text); color: #fff; font-weight: 600; padding: 3px 10px; border-radius: 20px; font-size: 13px; flex-shrink: 0; }
.td-guide-arrow{ color: var(--text-3); }
.td-guide-text { color: var(--text-2); }

.td-custom       { margin-bottom: 1.25rem; }
.td-custom-label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 8px; }
.td-custom-row {
  display: flex; align-items: center;
  border: 1.5px solid var(--border-md); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden;
  transition: border-color .15s;
}
.td-custom-row:focus-within { border-color: var(--blue); }
.td-currency {
  padding: 0 12px; font-size: 18px; font-weight: 600;
  color: var(--blue-dk); background: var(--blue-bg);
  border-right: 1.5px solid var(--border-md); line-height: 46px;
}
.td-amount-input {
  flex: 1; height: 46px; padding: 0 14px;
  font-size: 20px; font-weight: 600; font-family: var(--mono);
  border: none; outline: none; background: transparent; color: var(--text);
  width: 100%;
}
.td-amount-input::-webkit-outer-spin-button,.td-amount-input::-webkit-inner-spin-button{-webkit-appearance:none;}
.td-amount-input[type=number]{-moz-appearance:textfield;}
.td-preview { font-size: 12px; color: var(--text-3); padding: 0 12px; white-space: nowrap; }

.td-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 1rem; }
.td-btn-primary {
  height: 46px; background: var(--text); color: #fff; border: none;
  border-radius: var(--r-md); font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .12s;
}
.td-btn-primary:hover:not(:disabled) { background: #2a2927; }
.td-btn-primary:disabled { background: var(--text-3); cursor: not-allowed; }
.td-btn-outline {
  height: 40px; background: transparent; color: var(--text-2);
  border: 1px solid var(--border-md); border-radius: var(--r-md);
  font-family: var(--font); font-size: 13px; cursor: pointer; transition: background .12s;
}
.td-btn-outline:hover { background: var(--surface2); }
.td-secure { text-align: center; font-size: 11.5px; color: var(--text-3); margin-top: 12px; }

/* ── History page chat columns ─────────────────────────────────────────── */
.chats-left-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 500;
}
.chats-left-pill--ok   { background: var(--green-bg); color: var(--green-dk); }
.chats-left-pill--none { background: var(--surface2);  color: var(--text-3); }

.history-summary {
  display: flex; gap: 24px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 20px; margin-top: 12px;
}
.hs-item  { display: flex; flex-direction: column; gap: 2px; }
.hs-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.hs-val   { font-size: 18px; font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-right  { height: 500px; }
  .url-input-card { padding: 1.75rem 1.5rem; }
  .uic-title { font-size: 20px; }
  .td-custom-row { flex-wrap: wrap; }
  .td-preview { width: 100%; padding: 8px 12px; border-top: 1px solid var(--border); }
}

/* ── Topup dialog additions ─────────────────────────────────────────────── */
.td-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff8e6;
  border: 1px solid rgba(186,117,23,.3);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.td-notice svg { color: var(--amber-dk); flex-shrink: 0; margin-top: 2px; }
.td-notice strong { color: var(--amber-dk); }
.td-notice em { font-style: normal; font-weight: 600; color: var(--text); }

.td-guide-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 8px;
}

.td-preview-detail {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.5;
}
.td-detail-highlight {
  font-weight: 600;
  color: var(--blue-dk);
}

/* ── System messages in chat (credit deductions, warnings) ──────────────── */
.chat-system-msg {
  font-size: 12.5px;
  color: var(--text-3);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  line-height: 1.6;
  margin: 4px 0;
}
.chat-system-msg strong { color: var(--text-2); }
.chat-system-msg a { color: var(--blue); font-weight: 500; }

/* cc-rule — small explainer under counter */
.cc-rule {
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHANNEL DASHBOARD v2
   ═══════════════════════════════════════════════════════════════════════════ */

/* Add channel form */
.ac-form { display: flex; flex-direction: column; gap: 10px; }
.ac-input-wrap { display: flex; gap: 10px; }
.ac-input-wrap .input-text { flex: 1; height: 44px; font-size: 14px; }

/* Channel preview card */
.channel-preview {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.cp-left  { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.cp-right { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.cp-thumb {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; background: var(--surface2);
}
.cp-name  { font-size: 16px; font-weight: 600; }
.cp-stats { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

.cp-cost-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-2);
  background: var(--blue-bg); border: 1px solid rgba(47,127,212,.2);
  border-radius: var(--r-sm); padding: 8px 12px; line-height: 1.5;
}
.cp-cost-note--warn {
  background: var(--amber-bg); border-color: rgba(186,117,23,.2); color: var(--amber-dk);
}
.cp-tracked-note {
  font-size: 12.5px; color: var(--green-dk);
  background: var(--green-bg); border: 1px solid rgba(29,158,117,.2);
  border-radius: var(--r-sm); padding: 8px 12px;
}

/* Tracked channels list */
.tracked-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 10px;
  transition: box-shadow .15s;
}
.tracked-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.tc-left  { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.tc-thumb {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.tc-thumb--placeholder {
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.tc-info { flex: 1; min-width: 0; }
.tc-name { font-size: 14px; font-weight: 500; margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-meta { font-size: 11.5px; color: var(--text-3); margin-bottom: 6px; }

/* Refresh bar */
.tc-refresh-bar  { display: flex; align-items: center; gap: 8px; }
.tc-refresh-track{ flex: 1; max-width: 100px; height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; }
.tc-refresh-fill { height: 4px; border-radius: 2px; transition: width .4s ease; }
.tc-refresh-count{ font-size: 12px; font-weight: 500; white-space: nowrap; }

/* Tracked card actions */
.tc-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tc-remove-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 16px; padding: 4px 6px;
  border-radius: var(--r-xs); transition: color .12s;
}
.tc-remove-btn:hover { color: var(--red); }

/* Refresh badge on channel header */
.refresh-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-bg); color: var(--blue-dk);
  border: 1px solid rgba(47,127,212,.2); border-radius: 20px;
  padding: 5px 12px; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
}

@media (max-width: 640px) {
  .ac-input-wrap { flex-direction: column; }
  .channel-preview { flex-direction: column; align-items: flex-start; }
  .cp-right { width: 100%; min-width: unset; }
  .tracked-card { flex-direction: column; align-items: flex-start; }
  .tc-actions { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROFILE PAGE — avatar, YT/IG channels
   ═══════════════════════════════════════════════════════════════════════════ */

.profile-hero {
  display: flex; align-items: center; gap: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.profile-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.profile-avatar-img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border-md);
}
.profile-avatar-placeholder {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.avatar-switch-row { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.avatar-switch-btn {
  font-size: 11px; padding: 3px 8px; border-radius: 20px;
  border: 1px solid var(--border-md); background: var(--surface2);
  cursor: pointer; color: var(--text-2); font-family: var(--font);
  transition: background .1s;
}
.avatar-switch-btn:hover,.avatar-switch-btn.active {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.profile-hero-info { flex: 1; min-width: 0; }
.profile-username { font-size: 20px; font-weight: 700; }
.profile-email    { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.profile-since    { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.channel-connected-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.conn-thumb {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.conn-info { flex: 1; min-width: 0; }
.conn-name { font-size: 15px; font-weight: 500; }
.conn-id   { font-size: 12px; font-family: var(--mono); color: var(--text-3); margin-top: 2px; }
.conn-change-note {
  font-size: 12px; color: var(--amber-dk); margin-top: 4px;
  background: var(--amber-bg); display: inline-block;
  padding: 2px 8px; border-radius: var(--r-xs);
}
.conn-locked-note { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.channel-change-form {
  display: flex; gap: 10px; margin-top: 12px; align-items: center; flex-wrap: wrap;
}
.channel-change-form .input-text { flex: 1; min-width: 200px; }

.ig-connect-btn-small {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 20px;
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCAF45);
  color: #fff; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: opacity .12s;
}
.ig-connect-btn-small:hover { opacity: .9; }

/* ═══════════════════════════════════════════════════════════════════════════
   CONTENT CALENDAR
   ═══════════════════════════════════════════════════════════════════════════ */

.cal-form { display: flex; flex-direction: column; gap: 2px; }
.cal-themes {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 1rem;
}
.cal-theme-pill {
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 16px; flex: 1; min-width: 120px;
  text-align: center;
}
.cal-theme-week { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 4px; }
.cal-theme-name { font-size: 13px; font-weight: 500; }

.cal-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.cal-post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px; display: flex;
  flex-direction: column; gap: 6px;
  transition: box-shadow .15s;
}
.cal-post-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.cal-post-header {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.cal-post-day  { font-size: 11px; font-weight: 700; color: var(--text-3); }
.cal-post-date { font-size: 10.5px; color: var(--text-3); flex: 1; }
.cal-post-platform {
  font-size: 10.5px; font-weight: 600; padding: 2px 8px;
  border-radius: 20px;
}
.cal-post-format { font-size: 11.5px; color: var(--text-3); }
.cal-post-title  { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.cal-post-hook   { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.cal-post-angle  { font-size: 11.5px; color: var(--blue); }
.cal-post-time   { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════════════════
   INSTAGRAM AUDIT
   ═══════════════════════════════════════════════════════════════════════════ */

.ig-connect-card {
  text-align: center; max-width: 480px; margin: 3rem auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 2.5rem 2.75rem;
}
.ig-connect-icon  { font-size: 48px; margin-bottom: 12px; }
.ig-connect-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.ig-connect-sub   { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 1.5rem; }
.ig-connect-steps {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 1.5rem; text-align: left;
}
.ig-step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.ig-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ig-connect-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 28px;
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCAF45);
  color: #fff; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: opacity .12s; margin-bottom: 12px;
}
.ig-connect-btn:hover { opacity: .9; }
.ig-privacy-note { font-size: 12px; color: var(--text-3); }

.ig-account-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 1rem;
}
.ig-account-thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ig-account-name  { font-size: 15px; font-weight: 600; }
.ig-account-sub   { font-size: 12px; color: var(--text-3); }

.ig-overview-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px; margin-bottom: 1rem;
}
.ig-ov-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px; text-align: center;
}
.ig-ov-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 6px; }
.ig-ov-big   { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.ig-ov-sub   { font-size: 12px; color: var(--text-3); }

.ig-post-row {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  position: relative;
}
.ig-post-row--top { background: #fffef2; border-radius: var(--r-sm); padding: 10px; }
.ig-top-badge {
  font-size: 11px; font-weight: 600; color: var(--amber-dk);
  display: block; margin-bottom: 4px;
}
.ig-post-type    { font-size: 11.5px; color: var(--text-3); margin-bottom: 3px; }
.ig-post-caption { font-size: 13px; color: var(--text); margin-bottom: 4px; line-height: 1.4; }
.ig-post-stats   { font-size: 12px; color: var(--text-3); }

/* Responsive */
@media (max-width: 760px) {
  .cal-posts-grid  { grid-template-columns: 1fr; }
  .ig-overview-grid{ grid-template-columns: 1fr 1fr; }
  .profile-hero    { flex-direction: column; text-align: center; }
  .cal-themes      { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHANNEL DASHBOARD v3 — trend chart, best time, AI patterns
   ═══════════════════════════════════════════════════════════════════════════ */

/* Profile channel bar (auto-populated, locked) */
.yt-profile-bar {
  display: flex; align-items: center; gap: 14px;
  background: var(--blue-bg); border: 1px solid rgba(47,127,212,.2);
  border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 14px;
  flex-wrap: wrap;
}
.yt-profile-thumb {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; border: 2px solid rgba(47,127,212,.3);
}
.yt-profile-info  { flex: 1; min-width: 0; }
.yt-profile-name  { font-size: 15px; font-weight: 600; color: var(--blue-dk); }
.yt-profile-sub   { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.yt-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0; color: var(--text-3); font-size: 12.5px;
}
.yt-divider::before, .yt-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Two-column layout for trend + metrics */
.ch-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 700px) { .ch-two-col { grid-template-columns: 1fr; } }

/* ── Best time to post ────────────────────────────────────────────────── */
.best-time-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; flex-wrap: wrap;
}
.bt-subtitle {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3); font-weight: 500; margin-bottom: 10px;
}
.bt-day-bars  { display: flex; flex-direction: column; gap: 6px; }
.bt-day-row   { display: flex; align-items: center; gap: 8px; }
.bt-day-label {
  font-size: 12px; color: var(--text-2); min-width: 32px; font-weight: 500;
}
.bt-day-best  { color: var(--green-dk); font-weight: 700; }
.bt-day-track {
  flex: 1; height: 7px; background: var(--surface2);
  border-radius: 4px; overflow: hidden;
}
.bt-day-fill  { height: 7px; border-radius: 4px; transition: width .6s ease; }
.bt-day-score {
  font-size: 12px; font-family: var(--mono); color: var(--text);
  min-width: 46px; text-align: right;
}
.bt-best-tag {
  display: inline-block; background: var(--green-bg); color: var(--green-dk);
  font-size: 9px; font-weight: 600; padding: 1px 5px; border-radius: 10px;
  margin-left: 3px; font-family: var(--font); text-transform: uppercase; letter-spacing: .04em;
}
.bt-right     { display: flex; flex-direction: column; gap: 0; }
.bt-slot-row  {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.bt-slot-row:last-of-type { border-bottom: none; }
.bt-slot-name  { color: var(--text-2); }
.bt-slot-score { font-weight: 500; font-family: var(--mono); font-size: 12.5px; }
.bt-recommendation {
  margin-top: 12px; background: var(--green-bg);
  border: 1px solid rgba(29,158,117,.2); border-radius: var(--r-md);
  padding: 10px 14px; font-size: 13px; color: var(--green-dk); line-height: 1.6;
}
.bt-recommendation strong { color: var(--green-dk); }
@media (max-width: 640px) { .best-time-grid { grid-template-columns: 1fr; } }

/* ── AI Pattern Analysis ─────────────────────────────────────────────── */
.pattern-trend-bar {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface2); border-radius: var(--r-md);
  padding: 12px 16px; margin-bottom: 14px;
}
.pt-trend-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; flex-shrink: 0;
}
.pt-trend-note { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

.pattern-sw-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px;
}
.pattern-sw {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md);
}
.pattern-sw--strength { background: var(--green-bg); border: 1px solid rgba(29,158,117,.2); }
.pattern-sw--weakness { background: var(--amber-bg); border: 1px solid rgba(186,117,23,.2); }
.psw-icon  { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.psw-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 3px; }
.psw-text  { font-size: 13px; color: var(--text); line-height: 1.5; }

.pattern-block {
  background: var(--surface2); border-radius: var(--r-md);
  padding: 14px 16px; margin-bottom: 12px;
}
.pattern-block--warn { background: var(--red-bg); border: 1px solid rgba(226,75,74,.15); }
.pb-title {
  font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--text);
}
.pb-row {
  padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06);
}
.pb-row:last-child { border-bottom: none; padding-bottom: 0; }
.pb-row-left {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
}
.pb-format-name  { font-size: 13px; font-weight: 600; }
.pb-format-score {
  font-size: 12px; font-weight: 600; font-family: var(--mono);
  padding: 1px 7px; border-radius: 20px; background: rgba(0,0,0,.05);
}
.pb-format-count { font-size: 11.5px; color: var(--text-3); }
.pb-row-why      { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }

/* Next Video Recommendation card */
.next-video-card {
  background: var(--text); color: #fff;
  border-radius: var(--r-xl); padding: 1.75rem;
  margin-top: 14px;
}
.nvc-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 1.25rem;
  padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.15);
}
.nvc-icon  { font-size: 32px; flex-shrink: 0; }
.nvc-title { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.nvc-sub   { font-size: 12.5px; opacity: .6; }
.nvc-body  { display: flex; flex-direction: column; gap: 12px; }
.nvc-main-title {
  font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.3; color: #fff;
}
.nvc-meta  { display: flex; gap: 8px; flex-wrap: wrap; }
.nvc-tag {
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 12.5px; padding: 4px 12px; border-radius: 20px;
}
.nvc-hook {
  font-size: 13.5px; color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.08); border-radius: var(--r-sm);
  padding: 10px 14px; line-height: 1.6; font-style: italic;
}
.nvc-hook-label {
  font-style: normal; font-weight: 600; opacity: .7;
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  display: block; margin-bottom: 4px;
}
.nvc-why {
  font-size: 13px; color: rgba(255,255,255,.7);
  line-height: 1.6; padding-top: 4px;
}
@media (max-width: 600px) {
  .pattern-sw-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE LOCK — blur gate for Trends & Competitors
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-lock-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 400px;
}
.feature-lock-blur {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  opacity: .6;
  padding: 4px;
}
.feature-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250,249,246,.82);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 10;
}

/* Lock card */
.flo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.flo-icon  { font-size: 40px; margin-bottom: 12px; }
.flo-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.flo-sub   {
  font-size: 14px; color: var(--text-2);
  line-height: 1.7; margin-bottom: 1.5rem;
}
.flo-sub strong { color: var(--text); }

.flo-steps {
  display: flex; flex-direction: column; gap: 8px;
  text-align: left; margin-bottom: 1.5rem;
  background: var(--surface2); border-radius: var(--r-md);
  padding: 14px 16px;
}
.flo-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--text-2);
}
.flo-step a { color: var(--blue); }
.flo-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.flo-actions {
  display: flex; flex-direction: column; gap: 8px;
  align-items: center;
}
.flo-actions .btn-primary { width: 100%; text-align: center; height: 44px; font-size: 14px; }
.flo-actions .btn-outline  { height: 38px; }

/* ── Auto-detected competitors grid ─────────────────────────────────────── */
.auto-comp-grid {
  display: flex; flex-direction: column; gap: 6px;
}
.auto-comp-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 14px;
  transition: box-shadow .12s;
}
.auto-comp-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ac-rank  {
  font-size: 12px; font-weight: 700; color: var(--text-3);
  min-width: 24px; text-align: center;
}
.ac-info  { flex: 1; min-width: 0; }
.ac-title { font-size: 13px; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-views { font-size: 12px; color: var(--green-dk); font-family: var(--mono); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOTIVATIONAL QUOTE + IMPROVED ROADMAP
   ═══════════════════════════════════════════════════════════════════════════ */

.motivational-quote {
  background: linear-gradient(135deg, #1a1917 0%, #2a2826 100%);
  border-radius: var(--r-xl);
  padding: 2rem 2.25rem;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}
.motivational-quote::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2F7FD4, #6B5DD3, #1D9E75);
}
.mq-mark {
  font-size: 72px;
  line-height: .6;
  color: rgba(255,255,255,.08);
  font-family: Georgia, serif;
  font-weight: 700;
  margin-bottom: 8px;
  user-select: none;
}
.mq-text {
  font-size: 16px;
  color: rgba(255,255,255,.9);
  line-height: 1.75;
  font-style: italic;
  letter-spacing: .01em;
  margin-bottom: 14px;
}
.mq-author {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  font-weight: 500;
  letter-spacing: .04em;
}

/* ── Quote: free (lighter) vs paid (dark full-width) ─────────────────────── */
.motivational-quote--free {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
  border-radius: var(--r-md);
}
.motivational-quote--free .mq-mark { font-size: 40px; color: var(--blue-bg); }
.motivational-quote--free .mq-text { font-size: 14px; color: var(--text-2); }
.motivational-quote--free .mq-author { font-size: 12px; color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════════════════════
   CHAT HISTORY MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.chat-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
  z-index: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.chat-modal {
  width: 100%; max-width: 580px; max-height: 85vh;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: 0 16px 48px rgba(0,0,0,.2);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: var(--surface2); flex-shrink: 0;
}
.chat-modal-title { font-size: 14px; font-weight: 600; }
.chat-modal-close {
  width: 28px; height: 28px; border: none; background: none;
  font-size: 16px; cursor: pointer; color: var(--text-3);
  border-radius: var(--r-xs); transition: background .1s;
  display: flex; align-items: center; justify-content: center;
}
.chat-modal-close:hover { background: var(--surface3); color: var(--text); }

.chat-modal-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 18px; border-bottom: 1px solid var(--border);
  background: var(--surface); flex-shrink: 0;
  font-size: 12.5px;
}
.mm-score {
  background: var(--blue-bg); color: var(--blue-dk);
  padding: 2px 8px; border-radius: 20px; font-weight: 600;
}
.mm-title { color: var(--text-2); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-count { color: var(--text-3); }

.chat-modal-body {
  flex: 1; overflow-y: auto; padding: 14px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-modal-footer {
  padding: 12px 18px; border-top: 1px solid var(--border); flex-shrink: 0;
}

/* Messages inside modal */
.modal-msg { display: flex; flex-direction: column; gap: 3px; }
.modal-msg--user     { align-items: flex-end; }
.modal-msg--assistant{ align-items: flex-start; }
.modal-msg-role { font-size: 11px; color: var(--text-3); font-weight: 500; }
.modal-msg-bubble {
  max-width: 85%; padding: 9px 13px; border-radius: var(--r-lg);
  font-size: 13.5px; line-height: 1.65;
}
.modal-msg--user .modal-msg-bubble      { background: var(--text); color: #fff; }
.modal-msg--assistant .modal-msg-bubble { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.modal-msg-time { font-size: 11px; color: var(--text-3); }

/* ── Channel CTA bar (on Analyse page after scoring) ─────────────────────── */
.channel-cta-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--r-lg); padding: 14px 18px;
  margin-bottom: 1rem;
}
.channel-cta-bar--success { border-left-color: var(--green); background: var(--green-bg); }
.ccb-left  { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ccb-thumb { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ccb-info  { min-width: 0; }
.ccb-name  { font-size: 14px; font-weight: 600; color: var(--text); }
.ccb-sub   { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.ccb-btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  background: var(--blue); color: #fff; border: none; border-radius: var(--r-sm);
  font-family: var(--font); font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .12s; flex-shrink: 0;
}
.ccb-btn:hover { background: #2369b8; }
.ccb-btn:disabled { background: var(--text-3); cursor: not-allowed; }

/* ── Credit ledger pills ─────────────────────────────────────────────────── */
.tx-type-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.tx-type-pill--in  { background: var(--green-bg); color: var(--green-dk); }
.tx-type-pill--out { background: var(--red-bg);   color: var(--red-dk); }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS (improvement 8)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  /* Nav */
  .nav { gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav-link { font-size: 12px; padding: 6px 8px; white-space: nowrap; }

  /* Tables — make scrollable */
  .table-wrap { overflow-x: auto; }
  .data-table { min-width: 540px; }

  /* Metric grid */
  .metric-grid { grid-template-columns: 1fr 1fr; }

  /* Channel dashboard */
  .channel-card { flex-wrap: wrap; gap: 10px; }
  .ch-two-col   { grid-template-columns: 1fr; }

  /* Gauge section */
  .gauge-section { padding: 1rem; }
  .gauge-canvas  { width: 180px !important; height: 100px !important; }
  .score-num     { font-size: 36px !important; }

  /* Pricing */
  .pricing-grid         { grid-template-columns: 1fr !important; }
  .pricing-action-grid  { grid-template-columns: 1fr !important; }

  /* Chat */
  .chat-modal { max-height: 95vh; }
  .modal-msg-bubble { max-width: 95%; }

  /* Buttons */
  .btn-primary, .btn-outline {
    min-width: unset;
    font-size: 13px;
  }

  /* Page header */
  .page-header { flex-direction: column; gap: 8px; }

  /* Input row */
  .ac-input-wrap { flex-direction: column; }
  .ac-input-wrap .btn-primary { width: 100%; }
  .form-row { flex-direction: column; }
  .form-row .btn-primary { width: 100%; margin-left: 0; margin-top: 8px; }

  /* Channel CTA */
  .channel-cta-bar { flex-direction: column; align-items: flex-start; }
  .ccb-btn { width: 100%; text-align: center; }

  /* Lock overlay */
  .flo-card { padding: 1.5rem; }
  .flo-actions .btn-primary { font-size: 13px; }
}

@media (max-width: 400px) {
  .metric-grid { grid-template-columns: 1fr; }
  .panel-title { font-size: 20px; }
}

/* ── Pricing page ─────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 1.5rem;
}
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; position: relative; transition: box-shadow .15s;
}
.pricing-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.09); }
.pricing-card--popular {
  border-color: var(--blue); box-shadow: 0 0 0 2px rgba(47,127,212,.2);
}
.popular-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 600; padding: 2px 12px; border-radius: 20px;
  white-space: nowrap;
}
.pack-name    { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.pack-price   { font-size: 28px; font-weight: 700; color: var(--text); }
.pack-credits { font-size: 14px; color: var(--blue); font-weight: 500; margin: 4px 0; }
.pack-value   { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.pack-bonus   { font-size: 12px; color: var(--green-dk); margin-top: 4px; }

.pricing-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.pricing-action-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.25rem;
}
.pac-icon  { font-size: 28px; margin-bottom: 8px; }
.pac-name  { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.pac-cost  { font-size: 20px; font-weight: 700; color: var(--blue); }
.pac-inr   { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.pac-desc  { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }

/* ── Per-video inline chat (channel dashboard) ────────────────────────────── */
.video-row-card-wrap { margin-bottom: 4px; }
.video-row-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 12px;
  transition: box-shadow .1s;
}
.video-row-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }

.video-inline-chat {
  border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--surface2);
  overflow: hidden;
}
.vic-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.vic-credits { color: var(--text-3); }
.vic-messages {
  min-height: 60px; max-height: 280px; overflow-y: auto;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 8px;
}
.vic-input-row {
  display: flex; gap: 8px; align-items: center;
  padding: 8px 12px; border-top: 1px solid var(--border);
  background: var(--surface);
}
.vic-input {
  flex: 1; height: 34px; font-size: 13px;
  padding: 0 10px; border: 1px solid var(--border);
  border-radius: var(--r-sm); background: var(--surface2);
  color: var(--text); font-family: var(--font);
}
.vic-input:focus { outline: none; border-color: var(--blue); }
.vic-send {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--blue); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; transition: background .1s;
}
.vic-send:hover   { background: #2369b8; }
.vic-send:disabled{ background: var(--text-3); cursor: not-allowed; }

/* ── Pricing pack benefits list + bonus tag ──────────────────────────────── */
.pack-benefits {
  list-style: none; padding: 0; margin: 10px 0 14px;
  text-align: left; width: 100%;
  display: flex; flex-direction: column; gap: 5px;
  flex: 1;
}
.pack-benefits li {
  font-size: 12.5px; color: var(--text-2); line-height: 1.5;
}
.pack-benefits li em { font-style: normal; color: var(--text-3); }

.bonus-tag {
  display: inline-block;
  background: var(--green-bg); color: var(--green-dk);
  font-size: 10.5px; font-weight: 600;
  padding: 1px 6px; border-radius: 10px;
  margin-left: 4px; vertical-align: middle;
}

/* Make pricing cards flex-column so button sticks to bottom */
.pricing-card {
  display: flex; flex-direction: column; align-items: center;
}
