/* ============================================================
   VastClip — design system inspired by Castmagic's
   workspace: DM Sans, off-white canvas, white cards, matte black
   primary actions, emerald "Draft ready", amber stars.
   ============================================================ */

:root {
  --bg: #ffffff;
  --canvas: #f7f7f5;
  --side: #f6f6f3;
  --line: #e9e9e4;
  --line-strong: #dcdcd5;
  --ink: #0d0d0d;
  --ink-2: #2b2b28;
  --muted: #6c6c66;
  --faint: #a2a29a;
  --green: #17a34a;
  --green-bg: #e8f7ee;
  --amber: #f5a524;
  --blue: #3b6cf6;
  --red: #e5484d;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 15, 10, .05);
  --shadow-md: 0 8px 24px rgba(15, 15, 10, .10);
  --shadow-lg: 0 18px 50px rgba(15, 15, 10, .18);
  --side-w: 236px;
  --source-w: 360px;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

/* Sleek Floating macOS Pill Scrollbars (Option 2) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.16) transparent;
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  transition: background .2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}
::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }

svg.ic { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.fill { fill: currentColor; stroke: none; }
i[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; }
i.tiny svg.ic { width: 11px; height: 11px; }
i.muted { color: var(--faint); }
i.amber { color: var(--amber); }
.push { margin-left: auto; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }

/* ---------------- App shell ---------------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); border-left: 1px solid var(--line); }

/* ---------------- Sidebar ---------------- */
.sidebar { background: var(--side); display: flex; flex-direction: column; padding: 12px 10px; overflow-y: auto; overflow-x: hidden; gap: 2px; min-height: 0; }

.workspace { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 10px; text-align: left; }
.workspace:hover { background: rgba(0,0,0,.04); }
.workspace-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.workspace-name { font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; }
.nav.spaces { margin-top: 2px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--ink-2); font-weight: 500; }
.nav-item:hover { background: rgba(0,0,0,.045); }
.nav-item.active { background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 6px 9px; color: var(--ink); font-weight: 600; }
.nav-item i[data-icon] { color: var(--muted); }
.nav-item.active i[data-icon] { color: var(--ink); }

.getstarted { color: #d9480f; font-weight: 600; cursor: pointer; transition: all .2s ease; }
.getstarted .pct { margin-left: auto; color: var(--blue); font-weight: 700; transition: all .2s ease; }
.ring { transform: rotate(-90deg); flex-shrink: 0; }
.ring-bg { fill: none; stroke: #dedfe3; stroke-width: 3; }
.ring-fg { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray .35s ease, stroke .35s ease; }

/* When onboarding 100% completed (Option A) */
.getstarted.completed { color: #15803d; }
.getstarted.completed .ring-bg { stroke: #dcfce7; }
.getstarted.completed .ring-fg { stroke: #16a34a; }
.getstarted.completed .pct {
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  padding: 1px 7px;
  font-size: 11px;
}

.badge-new { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 600; color: #1d4ed8; background: #e0e9ff; border-radius: 6px; padding: 1px 7px; }

.section-label { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* ============ MULTI-SPACES ACCORDION SHOW TREE ============ */
.spaces-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}
.space-group {
  display: flex;
  flex-direction: column;
}
.nav-space-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
  color: var(--ink);
  font-weight: 600;
}
.nav-space-row:hover {
  background: rgba(0, 0, 0, 0.045);
}
.nav-space-row.active {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.035);
}
.space-chevron {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.nav-space-row.active .space-chevron {
  transform: rotate(90deg);
  color: var(--ink);
}
.space-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #ffe2d3;
  color: #c2410c;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.space-name-text {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* Sub-items nested inside the active space */
.space-subnav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 10px;
  margin: 2px 0 6px 0;
  border-left: 1.5px solid #e2e8f0;
  margin-left: 16px;
}
.space-subnav .nav-item.sub {
  margin-left: 0;
  padding: 6px 9px;
  font-size: 13px;
  border-radius: 7px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 500;
}
.space-subnav .nav-item.sub:hover {
  background: rgba(0,0,0,.045);
  color: var(--ink);
}
.space-subnav .nav-item.active-sub {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 600;
}
.space-subnav .nav-item.active-sub i[data-icon] {
  color: var(--ink);
}
.space-subnav .space-rec-item {
  min-width: 0;
}
.space-subnav .space-rec-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.space-subnav .space-rec-title.empty-rec {
  font-style: italic;
  color: var(--muted);
  font-weight: 500;
}

/* Fresh Blank Workspace Empty State Banner */
.fresh-ws-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1.5px dashed #93c5fd;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.06);
}
.fresh-ws-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}
.fresh-ws-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}
.fresh-ws-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}
.fresh-ws-sub {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}
.fresh-ws-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.space { font-weight: 600; color: var(--ink); cursor: pointer; transition: all .15s ease; border-radius: var(--radius-sm); }
.space:hover { background: rgba(0,0,0,.04); }
.space:hover .push { color: var(--ink); }
.space-dot { width: 18px; height: 18px; border-radius: 6px; background: #ffe2d3; color: #c2410c; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.nav-item.sub { margin-left: 4px; padding-left: 10px; }
.nav-item.active-sub { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 6px 9px 6px 9px; color: var(--ink); font-weight: 600; }
.nav-item.active-sub i[data-icon] { color: var(--ink); }
.sidebar-import-link { width: 100%; border: none; background: transparent; cursor: pointer; text-align: left; font-family: inherit; font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-sm); transition: background .12s, color .12s; }
.sidebar-import-link:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.badge-sub-import { margin-left: auto; font-size: 9.5px; font-weight: 700; color: #b91c1c; background: #fee2e2; padding: 1.5px 6px; border-radius: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.nav-item.subsub { margin-left: 34px; padding: 5px 10px; color: var(--muted); font-weight: 500; }
.sidebar-spacer { flex: 1; min-height: 16px; }

/* Account card (bottom-left) */
.account-wrap { position: relative; }
.account-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 10px; font-weight: 600; }
.account-btn:hover { background: rgba(0,0,0,.05); }
.acc-avatar { width: 34px; height: 34px; border-radius: 10px; background: #e4e4df; color: var(--muted); display: grid; place-items: center; }
.acc-avatar.sm { width: 28px; height: 28px; border-radius: 9px; }

/* ================= TYPINGMIND COSMIC LUXURY ACCOUNT POPOVER ================= */
.account-pop {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 10px);
  background: #17171a; color: #f4f4f1; border-radius: 14px; padding: 12px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 8px; z-index: 50;
}
.account-pop.tm-cosmic-pop {
  position: fixed;
  left: 10px;
  bottom: 60px;
  width: 280px;
  background: linear-gradient(165deg, #3b0764 0%, #1e1b4b 32%, #0f172a 70%, #020617 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(147, 51, 234, 0.22);
  gap: 10px;
  backdrop-filter: blur(14px);
  z-index: 80;
  animation: popoverFadeIn .18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.tm-cosmic-pop .acc-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 2px 2px 6px;
}
.tm-cosmic-pop .acc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.tm-cosmic-pop .acc-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 6px;
}
.tm-cosmic-pop .acc-warn-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
}
.tm-cosmic-pop .acc-warn-badge.pro-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}
.tm-cosmic-pop .acc-warn-badge.starter-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.4);
}
.tm-cosmic-pop .acc-sub {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 2px;
}
.tm-cosmic-pop .acc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tm-cosmic-pop .acc-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #f1f5f9;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all .15s ease;
  cursor: pointer;
  text-align: left;
}
.tm-cosmic-pop .acc-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.tm-cosmic-pop .acc-btn.wide { width: 100%; }
.tm-cosmic-pop .acc-btn i.cyan { color: #38bdf8; }
.tm-cosmic-pop .acc-btn i.orange { color: #fb923c; }
.tm-cosmic-pop .acc-btn i.gold { color: #facc15; }
.tm-cosmic-pop .acc-btn i.silver { color: #cbd5e1; }
.tm-cosmic-pop .acc-btn-logout {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.3);
  color: #fca5a5;
}
.tm-cosmic-pop .acc-btn-logout:hover {
  background: rgba(220, 38, 38, 0.28);
  border-color: rgba(220, 38, 38, 0.5);
  color: #ffffff;
}

/* Dynamic Smart Button (Ide 1) */
.acc-smart-btn {
  position: relative;
  overflow: hidden;
  border: none !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 11px 14px !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  transition: all .2s ease;
}
.acc-smart-btn.guest {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}
.acc-smart-btn.guest:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}
.acc-smart-btn.starter {
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%) !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.45);
}
.acc-smart-btn.starter:hover {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%) !important;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  transform: translateY(-1px);
}
.acc-smart-btn.pro {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}
.acc-smart-btn.pro:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%) !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.55);
  transform: translateY(-1px);
}
.smart-btn-icon { font-size: 15px; }

/* Mini Footer Strip (TypingMind 1:1) */
.acc-footer-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #64748b;
}
.acc-footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.foot-copy { color: #94a3b8; font-weight: 500; }
.foot-terms { white-space: nowrap; font-size: 10px; }
.foot-terms a { color: #64748b; text-decoration: none; transition: color .15s; }
.foot-terms a:hover { color: #cbd5e1; text-decoration: underline; }
.acc-footer-pills { display: flex; gap: 6px; align-items: center; }
.acc-pill-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
}

/* ---------------- Top bar ---------------- */
.topbar { display: flex; align-items: center; gap: 14px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--bg); min-height: 56px; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); min-width: 140px; white-space: nowrap; overflow: hidden; flex: 0 1 auto; }
.crumbs strong { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--faint); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.xs { padding: 6px 10px; font-size: 12.5px; }
.btn.outline { background: #fff; border: 1px solid var(--line-strong); color: var(--ink-2); }
.btn.outline:hover { background: #fafaf8; border-color: #c9c9c1; }
.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { background: rgba(0,0,0,.05); }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #26262a; }
.btn kbd { font-family: var(--font); font-size: 10.5px; color: var(--faint); background: #f3f3ef; border-radius: 5px; padding: 0 5px; margin-left: 2px; }

.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--muted); }
.icon-btn.sm { width: 26px; height: 26px; }
.icon-btn:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.only-mobile { display: none; }

/* ---------------- Content layout ---------------- */
.content { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) var(--source-w); grid-template-rows: minmax(0, 1fr); min-height: 0; transition: grid-template-columns .2s ease; }
.content.source-hidden { grid-template-columns: minmax(0, 1fr) 0; }
.center { overflow-y: auto; padding: 28px 32px 64px; }
.center-inner { max-width: 760px; margin: 0 auto; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }

/* Segmented control */
.seg { display: inline-flex; background: #f1f1ed; border-radius: var(--radius-pill); padding: 4px; gap: 2px; }
.seg.wide { display: flex; width: 100%; }
.seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1; padding: 7px 16px; border-radius: var(--radius-pill); font-weight: 600; font-size: 13px; color: var(--muted); }
.seg:not(.wide) .seg-btn { flex: initial; min-width: 130px; }
.seg-btn:hover { color: var(--ink); }
.seg-btn.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.10); }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fdecc8; color: #92580a; font-size: 11px; font-weight: 700; }
.count.dark { background: var(--ink); color: #fff; }

.preview-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 6px; padding: 9px 12px; border-radius: 10px; background: #f4f6ff; color: #3b4a85; font-size: 12.5px; border: 1px solid #e1e6fb; }
.preview-note i { margin-top: 2px; }

/* Trial Banner Note & Topbar Trial Pill Badge (TypingMind Style) */
.trial-banner-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 14px 0 12px;
  padding: 10px 15px;
  border-radius: 12px;
  background: #f0f7ff;
  color: #1e3a8a;
  font-size: 13px;
  border: 1px solid #dbeafe;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all .2s ease;
}
.trial-banner-note.pro-active {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: #ddd6fe;
}
.trial-banner-note.expired {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.trial-badge-icon {
  font-size: 15px;
  flex-shrink: 0;
}
.trial-upgrade-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
  cursor: pointer;
  transition: color .15s;
}
.trial-upgrade-link:hover {
  color: #1d4ed8;
}

.trial-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.trial-pill-badge:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}
.trial-pill-badge.warning {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.trial-pill-badge.warning:hover {
  background: #fef3c7;
}
.trial-pill-badge.expired {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
  animation: pulseExpire 2s infinite;
}
@keyframes pulseExpire {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }
}
.trial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------------- Tool chips ---------------- */
.group-head { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; }
.group-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.group-count { font-size: 11px; font-weight: 700; color: var(--faint); background: #f1f1ed; border-radius: 8px; padding: 0 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line-strong); font-weight: 600; font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-sm); transition: all .15s; }
.chip i[data-icon] { color: var(--muted); }
.chip:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.chip:hover i[data-icon] { color: var(--ink); }
.chip.core { border-color: #cfcfc7; }
.chip.core i[data-icon] { color: var(--ink); }
.chip.busy { opacity: .55; pointer-events: none; }

/* Hairline Category Divider */
.category-divider {
  height: 1px;
  background: var(--line);
  margin: 26px 0 20px;
}

/* 4 Functional Category Sections (No More Double Headers) */
#chipsMore.chips {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.chip-subgroup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subgroup-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.subgroup-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--faint);
  background: #f1f1ed;
  border-radius: 8px;
  padding: 0 7px;
}
.chips-subrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------------- Drafts / stacked cards ---------------- */
.drafts-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.drafts-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.drafts-tools { display: flex; align-items: center; gap: 4px; }
.cards { display: flex; flex-direction: column; gap: 10px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-strong); }
.card.open { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.card-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; user-select: none; }
.grip { color: var(--faint); cursor: grab; display: inline-flex; }
.chev { color: var(--muted); display: inline-flex; transition: transform .15s; }
.card.open .chev { transform: rotate(90deg); }
.star { display: inline-flex; color: var(--faint); }
.star.on { color: var(--amber); }
.card-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.card-spacer { flex: 1 1 0; min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; flex: none; }
.grip, .chev, .star { flex: none; }
.status.ready { color: var(--green); }
.status.generating { color: var(--muted); }
.status.queued { color: #b45309; }
.status.error { color: var(--red); }
.status.error svg.ic { width: 14px; height: 14px; }
.queue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
  animation: queuePulse 1.4s ease-in-out infinite;
}
@keyframes queuePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.82); }
}
.spinner { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #d6d6cf; border-top-color: var(--ink); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.card.error-card { border-color: #fecaca; }

.card-queue-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fafaf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}
.card-queue-box.retrying {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.card-queue-msg { flex: 1; min-width: 0; line-height: 1.45; }

.card-error-box {
  padding: 14px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
}
.card-error-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 4px;
}
.card-error-msg {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #7f1d1d;
}
.card-error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-demo-upgrade-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 9px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}
.card-demo-upgrade-text {
  font-size: 12.5px;
  font-weight: 500;
  color: #92400e;
}

.card { container-type: inline-size; }
.card-actions { display: none; align-items: center; gap: 2px; flex: none; white-space: nowrap; }
@container (max-width: 560px) {
  .status-label { display: none; }
  .card-head { gap: 6px; padding-inline: 10px; }
}
.card.open .card-actions, .card:hover .card-actions { display: inline-flex; }
.vers { display: inline-flex; align-items: center; gap: 2px; padding: 0 2px; border: 1px solid var(--line-strong); border-radius: 8px; height: 26px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: #fff; margin-left: 4px; flex: none; white-space: nowrap; }
.vers button { width: 20px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); }
.vers button:hover:not(:disabled) { background: #f1f1ed; color: var(--ink); }
.vers button:disabled { opacity: .35; cursor: default; }
.vers .vnum { padding: 0 3px; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 34px; text-align: center; }

.card-body { display: none; padding: 2px 16px 14px 44px; }
.card.open .card-body { display: block; }
.card-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0eb;
}
.card-view-seg {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  background: #f3f3ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  gap: 2px;
}
.card-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: background .12s, color .12s, box-shadow .12s;
}
.card-view-btn svg.ic { width: 13px; height: 13px; }
.card-view-btn:hover { color: var(--ink); }
.card-view-btn.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .07);
}
.card-meta-stat {
  font-size: 11.5px;
  color: var(--faint);
  font-weight: 500;
  white-space: nowrap;
}
.card-edit-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}
.card-edit-indicator svg.ic { width: 13px; height: 13px; }
.card-edit-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-text { white-space: pre-wrap; color: var(--ink-2); line-height: 1.65; font-size: 14px; outline: none; border-radius: 8px; }
.card-text.card-text-raw {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12.8px;
  line-height: 1.62;
  background: #fafaf7;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 10px;
  overflow-x: auto;
}
.card-text[contenteditable="true"] {
  background: #fafaf7;
  box-shadow: 0 0 0 2px #d7d7ce inset;
  border-color: transparent;
  padding: 12px 14px;
}
.card-text.md-preview {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  color: var(--ink-2);
  font-size: 14.2px;
  line-height: 1.68;
}
.card-text.md-preview > :first-child { margin-top: 0; }
.card-text.md-preview > :last-child { margin-bottom: 0; }
.card-text.md-preview .md-h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 4px 0 12px;
}
.card-text.md-preview .md-h2 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 22px 0 9px;
}
.card-text.md-preview .md-h3 {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin: 16px 0 6px;
}
.card-text.md-preview .md-h4 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-2);
  margin: 14px 0 5px;
}
.card-text.md-preview .md-p {
  margin: 0 0 11px;
  color: var(--ink-2);
}
.card-text.md-preview strong { color: var(--ink); font-weight: 600; }
.card-text.md-preview em { font-style: italic; }
.card-text.md-preview .md-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.card-text.md-preview .md-ul,
.card-text.md-preview .md-ol {
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--ink-2);
}
.card-text.md-preview .md-ul li,
.card-text.md-preview .md-ol li {
  margin: 4px 0;
}
.card-text.md-preview .md-ul li::marker,
.card-text.md-preview .md-ol li::marker {
  color: var(--muted);
}
.card-text.md-preview .md-ul.md-task-list {
  list-style: none;
  padding-left: 2px;
}
.card-text.md-preview .md-task {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.card-text.md-preview .md-chk {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  background: #fff;
  color: #fff;
}
.card-text.md-preview .md-task.done .md-chk {
  background: var(--green);
  border-color: var(--green);
}
.card-text.md-preview .md-quote {
  margin: 12px 0;
  padding: 9px 14px;
  border-left: 3px solid var(--ink);
  background: #f9f9f6;
  border-radius: 0 8px 8px 0;
  color: var(--ink-2);
  font-style: italic;
}
.card-text.md-preview .md-pre {
  margin: 13px 0;
  padding: 14px 16px;
  background: #fafaf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre;
}
.card-text.md-preview .md-pre code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  padding: 0;
  border: 0;
  color: inherit;
}
.card-text.md-preview .md-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  background: #f3f3ee;
  color: var(--ink);
  padding: 1.5px 5px;
  border-radius: 5px;
  border: 1px solid #e6e6de;
}
.card-text.md-preview .md-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.card-text.md-preview .md-link:hover { opacity: .82; }
.card-text.md-preview .md-table-wrap {
  margin: 13px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.card-text.md-preview .md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.card-text.md-preview .md-table th {
  background: #f7f7f4;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-strong);
}
.card-text.md-preview .md-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.card-text.md-preview .md-table tr:last-child td { border-bottom: 0; }
.card-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.card-foot .btn { font-size: 12.5px; padding: 6px 10px; }
.card.generating-card .card-body .card-text { color: var(--faint); }

.empty { display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--muted); padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty.small { padding: 28px 16px; margin-top: 16px; }
.empty i svg.ic { width: 22px; height: 22px; color: var(--faint); }

/* ---------------- Source (right) ---------------- */
.source { border-left: 1px solid var(--line); background: var(--bg); overflow: hidden; min-width: 0; }
.content.source-hidden .source { border-left: 0; }
.source-inner { height: 100%; overflow-y: auto; padding: 22px 22px 40px; min-width: var(--source-w); }
.rec-title { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.rec-desc { color: var(--muted); margin: 6px 0 16px; font-size: 13.5px; }

.player { position: relative; display: flex; align-items: center; gap: 12px; background: #1b1b1d; border-radius: var(--radius-lg); height: 150px; padding: 0 18px; margin-bottom: 16px; overflow: hidden; }
.play { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .1s; }
.play:hover { transform: scale(1.06); }
.play svg.ic { width: 16px; height: 16px; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 70px; }
.wave span { flex: 1; min-width: 2px; max-width: 5px; background: #55555a; border-radius: 2px; transition: background .15s; }
.wave span.on { background: #f4f4f1; }
.time { position: absolute; left: 70px; bottom: 10px; font-size: 11px; color: #a9a9a4; font-variant-numeric: tabular-nums; }
.duration { position: absolute; right: 10px; bottom: 8px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); border-radius: 6px; padding: 1px 6px; font-variant-numeric: tabular-nums; }

.t-controls { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; flex-wrap: nowrap; }
#editTransBtn { flex: none; }
.t-controls .btn { flex: none; }
.t-controls .btn kbd { display: none; }
.t-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; color: var(--faint); background: #fff; margin-bottom: 8px; }
.t-search input { border: 0; outline: 0; padding: 8px 0; width: 100%; background: transparent; color: var(--ink); font-size: 13px; }
.t-search:focus-within { border-color: var(--ink); }

.transcript { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 8px; border-radius: 10px; cursor: pointer; }
.line:hover { background: #f8f8f5; }
.line.active { background: #f1f1ed; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #dbeafe; color: #1d4ed8; flex-shrink: 0; }
.avatar.b, .avatar.av-1 { background: #f3e8ff; color: #7e22ce; }
.avatar.av-0 { background: #dbeafe; color: #1d4ed8; }
.avatar.av-2 { background: #dcfce7; color: #15803d; }
.avatar.av-3 { background: #fef3c7; color: #b45309; }
.avatar.av-4 { background: #ffe4e6; color: #be123c; }
.avatar.av-5 { background: #cffafe; color: #0e7490; }
.line-head { display: flex; align-items: baseline; gap: 8px; }
.line-name { font-weight: 700; font-size: 13.5px; }
.line-time { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.line-text { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; margin-top: 2px; outline: none; border-radius: 6px; }
.line-text[contenteditable="true"] { background: #fff; box-shadow: 0 0 0 2px #e3e3dc inset; padding: 4px 6px; cursor: text; }
mark { background: #fff0a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.t-empty { color: var(--faint); padding: 16px 8px; font-size: 13px; }

/* Panel toggle (floating on the divider) */
.panel-toggle { position: fixed; top: 74px; right: calc(var(--source-w) - 14px); width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--muted); z-index: 35; transition: right .2s ease; }
.panel-toggle:hover { color: var(--ink); border-color: var(--ink); }
body.source-hidden .panel-toggle { right: 12px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .22s ease; z-index: 200; max-width: min(92vw, 520px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50; }

/* ---------------- Video Player Embed ---------------- */
.video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #0f172a; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-local-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-size: cover;
  background-position: center;
  background-color: #0f172a;
  color: #ffffff;
  text-align: center;
  padding: 16px;
}
.video-local-card[hidden] { display: none !important; }
.video-local-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.78) 100%);
}
.video-local-card > * { position: relative; z-index: 1; }
.video-local-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #ff0033;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform .15s ease, background .15s ease;
}
.video-local-play-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}
.video-local-note {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------------- Universal Modals (macOS / TypingMind Solid Architecture) ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: grid;
  place-items: center;
  z-index: 150;
  padding: 20px 16px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-backdrop::-webkit-scrollbar,
.modal-card::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.modal-card {
  background: #ffffff !important;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  color: #0f172a;
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#licenseModal.modal-backdrop { z-index: 180; }
#confirmModal.modal-backdrop, #confirmModal { z-index: 300 !important; }
#pricingModal.modal-backdrop { z-index: 170; }
body:has(#importModal:not([hidden])) iframe { pointer-events: none; }

/* Modal Sizes */
.tm-modal-sm {
  width: 100%;
  max-width: 480px;
  padding: 24px 28px;
  background: #ffffff !important;
}
.tm-modal-md {
  width: 100%;
  max-width: 660px;
  padding: 26px 30px;
  background: #ffffff !important;
}

/* Modal Headers */
.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.modal-top .modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
}
.modal-top .modal-sub {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}
.modal-top .icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.modal-top .icon-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Modal Action Bars & Footer Buttons */
.modal-actions-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}
.modal-actions-bar .btn.ghost {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 16px;
  border: none !important;
}
.modal-actions-bar .btn.ghost:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
.modal-actions-bar .btn.solid {
  background: #0f172a !important;
  color: #ffffff !important;
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 18px;
  border: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}
.modal-actions-bar .btn.solid:hover {
  background: #1e293b !important;
}

/* Modal Form Inputs */
.speaker-name-input,
.speaker-role-input,
#editRecTitleInput,
#editRecDescInput,
#wsRenameInput,
#promptEditorTextarea,
#promptToolSelect,
.bv-input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  color: #0f172a !important;
  transition: border-color .15s, box-shadow .15s;
}
.speaker-name-input:focus,
.speaker-role-input:focus,
#editRecTitleInput:focus,
#editRecDescInput:focus,
#wsRenameInput:focus,
#promptEditorTextarea:focus,
#promptToolSelect:focus,
.bv-input:focus {
  border-color: #2563eb !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Dynamic Manage Speakers Modal */
.speakers-modal-card {
  max-width: 540px;
}
.speakers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}
.speaker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.speaker-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.speaker-avatar.av-0 { background: #dbeafe; color: #1d4ed8; }
.speaker-avatar.av-1 { background: #f3e8ff; color: #7e22ce; }
.speaker-avatar.av-2 { background: #dcfce7; color: #15803d; }
.speaker-avatar.av-3 { background: #fef3c7; color: #b45309; }
.speaker-avatar.av-4 { background: #ffe4e6; color: #be123c; }
.speaker-avatar.av-5 { background: #cffafe; color: #0e7490; }
.speaker-fields {
  flex: 1;
  min-width: 0;
}
.speaker-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.speaker-idx-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.speaker-seg-badge {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 999px;
}
.speaker-inputs-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
}
.speaker-name-input,
.speaker-role-input {
  width: 100%;
  padding: 8px 11px;
  font-size: 13.5px;
  min-width: 0;
}
.speaker-name-input {
  font-weight: 600;
}
.speaker-role-input {
  font-weight: 500;
}
.speaker-merge-hint {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}
.speakers-empty-state {
  text-align: center;
  padding: 26px 18px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}
.speakers-empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.speakers-empty-state strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 4px;
}
.speakers-empty-state p {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}
@media (max-width: 520px) {
  .speaker-inputs-grid {
    grid-template-columns: 1fr;
  }
}

/* Brand Voice & Persona Modal */
.bv-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
  margin-left: auto;
  flex-shrink: 0;
}
.bv-enable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.bv-enable-title {
  display: block;
  font-size: 13px;
  color: #0f172a;
}
.bv-enable-sub {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}
.bv-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.bv-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.bv-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background .2s;
}
.bv-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform .2s;
}
.bv-switch input:checked + .bv-slider {
  background: #10b981;
}
.bv-switch input:checked + .bv-slider::before {
  transform: translateX(18px);
}
.bv-presets-wrap {
  margin-top: 14px;
}
.bv-field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 6px;
}
.bv-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.bv-preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.bv-preset-chip:hover {
  border-color: #6366f1;
  background: #eef2ff;
  color: #3730a3;
}
.bv-preset-chip.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}
.bv-preset-chip.active::after {
  content: "✓";
  font-size: 11px;
  font-weight: 800;
  margin-left: 2px;
}
.bv-default-tag {
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 6px;
  border-radius: 999px;
}
.bv-preset-chip.active .bv-default-tag {
  background: #dbeafe;
  color: #1d4ed8;
}
.bv-form-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.bv-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
  resize: vertical;
}
@media (max-width: 560px) {
  .bv-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Workspace Rows */
.ws-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff !important;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 8px;
}
.ws-row:hover {
  border-color: #cbd5e1;
  background: #f8fafc !important;
}
.ws-row:hover .ws-switch-cta {
  opacity: 1 !important;
  color: #2563eb !important;
}
.ws-row.active {
  border-color: #3b82f6 !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 1px #3b82f6;
}
.ws-del-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .15s ease;
}
.ws-del-btn:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #dc2626;
}
#toggleNewWsBtn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Social Share Row */
.share-social-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.social-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  transition: all .15s;
}
.social-share-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.social-share-btn.share-x:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}
.social-share-btn.share-linkedin:hover {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
}
.social-share-btn.share-whatsapp:hover {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

/* Command Palette Card & Results */
.tm-search-palette-card {
  width: 100%;
  max-width: 640px !important;
  background: #ffffff !important;
  border-radius: 18px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.45) !important;
}
.search-palette-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}
.search-palette-results {
  background: #ffffff !important;
  max-height: 420px !important;
  overflow-y: auto;
  padding: 10px 12px !important;
}
.palette-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s ease;
  background: #ffffff;
  border: 1px solid transparent;
}
.palette-item:hover,
.palette-item.active {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.palette-item.active {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}
.palette-item.active .palette-item-action {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* Palette Icon Boxes */
.palette-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 15px;
  transition: transform .15s ease;
}
.palette-item:hover .palette-icon-box,
.palette-item.active .palette-icon-box {
  transform: scale(1.08);
}
.pib-youtube { background: #fef2f2; color: #dc2626; }
.pib-linkedin { background: #f0f9ff; color: #0284c7; }
.pib-newsletter { background: #fffbeb; color: #d97706; }
.pib-blog { background: #ecfdf5; color: #059669; }
.pib-instagram { background: #fff1f2; color: #e11d48; }
.pib-tiktok { background: #0f172a; color: #f8fafc; }
.pib-shownotes { background: #eef2ff; color: #4f46e5; }
.pib-viral { background: #f5f3ff; color: #7c3aed; }
.pib-production { background: #fff7ed; color: #ea580c; }
.pib-business { background: #f0fdf4; color: #16a34a; }
.pib-social { background: #f0f9ff; color: #0284c7; }
.pib-x { background: #f1f5f9; color: #0f172a; }
.pib-default { background: #f1f5f9; color: #475569; }

.modal-card.import-modal-card { background: #fff; width: 100%; max-width: 540px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04); overflow: visible; animation: popIn .18s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes popIn { from { opacity: 0; transform: scale(0.96) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-mac-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 8px; background: transparent; }
.mac-dots { display: flex; align-items: center; gap: 8px; }
.mac-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.mac-dot.red { background: #ff5f56; cursor: pointer; }
.mac-dot.red:hover { filter: brightness(0.88); }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }
.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: all .15s ease;
  flex-shrink: 0;
}
.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-content { padding: 4px 24px 24px; }
.modal-title { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; color: #0d0d0d; }

.import-head-wrap { margin-bottom: 14px; }
.modal-sub { font-size: 13.5px; color: #71717a; margin-top: 2px; line-height: 1.45; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

/* Castmagic-style Single-Line Platform Icons with Hover/Tap Floating Tooltips */
.import-platform-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 6px;
  position: relative;
  z-index: 5;
}
.import-plat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}
.import-plat-icons {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.url-plat-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #334155;
  background: transparent;
  cursor: default;
  user-select: none;
  outline: none;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}
.url-plat-icon:hover,
.url-plat-icon:focus-visible,
.url-plat-icon.tip-open {
  color: #0f172a;
  background: #f1f5f9;
  transform: translateY(-1px);
}
.url-plat-icon[data-brand="youtube"]:hover,
.url-plat-icon[data-brand="youtube"].tip-open { color: #dc2626; }
.url-plat-icon[data-brand="substack"]:hover,
.url-plat-icon[data-brand="substack"].tip-open { color: #ea580c; }
.url-plat-icon[data-brand="reddit"]:hover,
.url-plat-icon[data-brand="reddit"].tip-open { color: #ea580c; }
.url-plat-icon[data-brand="pdf"]:hover,
.url-plat-icon[data-brand="pdf"].tip-open { color: #2563eb; }

/* Floating mini tooltip pill */
.url-plat-icon::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding: 5px 9px;
  border-radius: 7px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.24);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  z-index: 30;
}
.url-plat-icon::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: #0f172a;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  z-index: 30;
}
.url-plat-icon:hover::after,
.url-plat-icon:hover::before,
.url-plat-icon:focus-visible::after,
.url-plat-icon:focus-visible::before,
.url-plat-icon.tip-open::after,
.url-plat-icon.tip-open::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Separated Universal URL Input Box & Executive Submit Button */
.input-row { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; }
.input-yt-box { flex: 1; display: flex; align-items: center; background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 12px; padding: 0 14px; height: 46px; transition: all .15s ease; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); }
.input-yt-box:focus-within { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.input-yt-box.is-youtube:focus-within { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.input-yt-icon { display: inline-flex; align-items: center; margin-right: 10px; flex-shrink: 0; color: #64748b; transition: color .15s ease; }
.input-yt-box.is-youtube .input-yt-icon { color: #ef4444; }
.input-yt-box.is-web .input-yt-icon { color: #2563eb; }
.input-yt-box input { flex: 1; border: none; outline: none; font-size: 14px; color: #0f172a; background: transparent; padding: 0; font-family: inherit; width: 100%; }
.input-yt-box input::placeholder { color: #94a3b8; }

.submit-btn { height: 46px; padding: 0 24px; font-size: 14px; font-weight: 700; border-radius: 12px; background: #0f172a; color: #ffffff; border: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s ease; white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18); font-family: inherit; }
.submit-btn:hover { background: #1e293b; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.24); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Divider */
.import-divider { display: flex; align-items: center; margin: 16px 0 12px; color: #94a3b8; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; }
.import-divider::before, .import-divider::after { content: ""; flex: 1; border-bottom: 1px dashed #e2e8f0; }
.import-divider span { padding: 0 10px; }

/* Audio/File Dropzone */
.audio-dropzone { border: 1.5px dashed #cbd5e1; border-radius: 12px; padding: 12px 14px; background: #f8fafc; cursor: pointer; transition: all .15s ease; }
.audio-dropzone:hover, .audio-dropzone.dragover { border-color: #0f172a; background: #f1f5f9; }
.dropzone-inner { display: flex; align-items: center; gap: 12px; }
.dropzone-icon { font-size: 22px; flex-shrink: 0; }
.dropzone-content { display: flex; flex-direction: column; }
.dropzone-title { font-size: 12.5px; color: #1e293b; font-weight: 600; }
.dropzone-link { color: #2563eb; text-decoration: underline; }
.dropzone-sub { font-size: 11px; color: #64748b; margin-top: 2px; }

/* Expandable Paste Raw Transcript / Text Drawer */
.paste-toggle-wrap {
  margin-top: 12px;
  text-align: center;
}
.paste-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.paste-toggle-btn strong {
  color: #2563eb;
  font-weight: 600;
}
.paste-toggle-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.paste-toggle-caret {
  display: inline-block;
  font-size: 12px;
  transition: transform .18s ease;
}
.paste-toggle-btn[aria-expanded="true"] .paste-toggle-caret {
  transform: rotate(180deg);
}
.paste-text-drawer {
  margin-top: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: popIn .16s ease;
}
.paste-text-drawer[hidden] { display: none; }
.paste-title-input {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  color: #0f172a;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.paste-title-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.paste-content-input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.5;
  color: #0f172a;
  resize: vertical;
  min-height: 104px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.paste-content-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.paste-drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.paste-drawer-hint {
  font-size: 11px;
  font-weight: 600;
  color: #047857;
}

/* ---------------- Modal: API Keys Configuration (Executive Vault Style) ---------------- */
.modal-card.api-keys-card {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  animation: popIn .18s cubic-bezier(0.16, 1, 0.3, 1);
}

.api-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 26px 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}
.api-card-title-wrap {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.api-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  color: #2563eb;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}
.api-card-icon svg.ic { width: 20px; height: 20px; }
.api-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.025em;
}
.api-card-sub {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

.api-card-body {
  padding: 18px 24px 20px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Chunked Provider Sub-Cards */
.api-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left-width: 3.5px;
  border-radius: 14px;
  padding: 15px 16px 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.api-group:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
.api-group.api-group-gemini {
  border-left-color: #2563eb;
}
.api-group.api-group-youtube {
  border-left-color: #ef4444;
}
.api-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #0f172a;
}
.tag-free {
  font-size: 10.5px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
}
.api-link {
  font-size: 11.5px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 3px 9px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.api-link:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  text-decoration: none;
}
.api-group-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 2px;
}

.api-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.api-input-wrap:focus-within {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.api-input-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px 13px;
  font-size: 13px;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #0f172a;
}
.btn-toggle-pw {
  background: transparent;
  border: 0;
  padding: 0 12px;
  color: #94a3b8;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .15s ease;
}
.btn-toggle-pw:hover { color: #2563eb; }
.btn-toggle-pw svg.ic { width: 16px; height: 16px; }

/* Sandbox Demo Bar */
.api-demo-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  font-size: 12px;
  gap: 10px;
  flex-wrap: wrap;
}
.api-demo-label {
  font-weight: 700;
  color: #475569;
}
.api-demo-btns {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.sample-link-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all .15s ease;
}
.sample-link-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* Trust Green Privacy Anchor */
.api-security-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  font-size: 12px;
  color: #166534;
  line-height: 1.45;
}
.api-security-note svg.ic {
  width: 16px;
  height: 16px;
  color: #059669;
  flex: none;
  margin-top: 2px;
}

.api-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px 18px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}
.foot-actions { display: flex; gap: 8px; }

/* ---------------- Floating Launch Promo Pill ---------------- */
.promo-pill-btn { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border: 1.5px solid #fcd34d; border-radius: 20px; padding: 0 12px; height: 32px; font-size: 12px; cursor: pointer; color: #92400e; font-weight: 600; box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2); transition: transform .12s, box-shadow .12s, border-color .12s; font-family: inherit; white-space: nowrap; flex-shrink: 0; }
.promo-pill-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(245, 158, 11, 0.28); border-color: #f59e0b; }
.promo-gift { font-size: 13.5px; line-height: 1; }
.promo-text { white-space: nowrap; }
.promo-text strong { color: #b45309; }
.promo-tag { background: #f59e0b; color: #fff; font-size: 9.5px; font-weight: 700; padding: 1.5px 6px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------------- Onboarding Hero Modal ---------------- */
.modal-card.onboarding-card { background: #fff; width: 100%; max-width: 620px; border-radius: 22px; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); overflow: hidden; animation: popIn .2s cubic-bezier(0.16, 1, 0.3, 1); }
.onboarding-content { padding: 8px 30px 30px; }
.onboard-badge { display: inline-flex; align-items: center; gap: 7px; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; border: 1px solid #dbeafe; }
.onboard-badge .badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #2563eb; }
.onboard-title { font-size: 23px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.3; color: #0d0d0d; margin-bottom: 10px; }
.onboard-sub { font-size: 14px; color: #52525b; line-height: 1.5; margin-bottom: 20px; }

.onboard-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; background: #fafaf9; border: 1px solid #e7e5e4; border-radius: 14px; padding: 16px; }
.onboard-feat { display: flex; gap: 12px; align-items: flex-start; }
.feat-icon { width: 32px; height: 32px; border-radius: 8px; background: #fff; border: 1px solid #e7e5e4; color: #0d0d0d; display: grid; place-items: center; flex: none; }
.feat-icon svg.ic { width: 16px; height: 16px; }
.onboard-feat strong { font-size: 13.5px; color: #0d0d0d; display: block; }
.onboard-feat p { font-size: 12.5px; color: #71717a; margin-top: 2px; line-height: 1.45; }

.onboard-actions { display: flex; gap: 12px; align-items: center; }
.onboard-cta-btn { flex: 1; padding: 13px 20px; font-size: 14.5px; border-radius: 12px; justify-content: center; }
.onboard-try-btn { padding: 13px 20px; font-size: 14px; font-weight: 600; color: #52525b; }
.onboard-foot-note { font-size: 12px; color: #a1a1aa; text-align: center; margin-top: 16px; }

/* ---------------- 1:1 Exact TypingMind Floating Promo Button ---------------- */
.tm-floating-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 55%, #991b1b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 5px 14px 6px 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  text-align: left;
  line-height: 1.15;
  flex: none;
  margin-left: 4px;
}
.tm-floating-promo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(220, 38, 38, 0.5), inset 0 1px 0 rgba(255,255,255,0.35);
  filter: brightness(1.06);
}
.tm-floating-promo-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}
.tm-floating-promo-btn.pro-active {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #1d4ed8 100%);
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.tm-floating-promo-btn.starter-upgrade {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 55%, #4c1d95 100%);
  border-color: rgba(216, 180, 254, 0.6);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.tm-promo-gift-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.tm-promo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tm-promo-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.tm-promo-sub {
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------------- 1:1 Exact TypingMind Lifetime License Modal ---------------- */
.modal-card.tm-pricing-card {
  background: #ffffff;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: popIn .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tm-pricing-close-btn {
  position: absolute;
  top: 6px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
  z-index: 40;
}
.tm-pricing-close-btn:hover {
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  transform: scale(1.05);
}
.tm-pricing-content {
  padding: 30px 36px 36px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tm-pricing-content::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Header branding & Trustpilot */
.tm-pricing-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-right: 36px;
}
.tm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tm-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7.5px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.tm-brand-logo.sm {
  width: 20px;
  height: 20px;
  border-radius: 5.5px;
}
.tm-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
}
.tm-brand-name .tm-b2 {
  color: #2563eb;
}
.tm-brand-name.text-white .tm-b2 {
  color: #60a5fa;
}
.studio-brand-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
}
.studio-brand-heading .tm-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7.5px;
}
.studio-brand-heading .tm-brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.tm-trustpilot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #4b5563;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 5px 12px;
  border-radius: 20px;
}
.tm-tp-stars {
  background: #00b67a;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 1px;
}
.tm-tp-score {
  font-weight: 600;
  color: #374151;
}
.tm-tp-logo {
  color: #00b67a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Title, Subtitle, Deal Banner */
.tm-pricing-title {
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 16px 0 4px;
}
.tm-pricing-sub {
  font-size: 14.5px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 22px;
}
.tm-deal-banner {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 10px 20px;
  max-width: 490px;
  margin: 0 auto 28px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.28);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tm-deal-text {
  font-size: 15px;
  font-weight: 700;
}
.tm-deal-code {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
}
.tm-deal-code kbd {
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.55);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* 2-Tier Pricing Cards Grid */
.tm-pricing-grid.tm-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto 24px;
}
.tm-two-th {
  display: contents;
}
.tm-compare-head-row:has(.tm-two-th) {
  grid-template-columns: 2fr 1.2fr 1.2fr;
}

.tm-tier-card {
  border: 1.5px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.tm-tier-card:hover {
  border-color: #cbd5e1;
}
.tm-tier-card.premium {
  border: 2px solid #2563eb;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.12);
}
.tm-badge-corner {
  position: absolute;
  top: 0;
  right: 0;
  background: #ef4444;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-bottom-left-radius: 12px;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: -1px 2px 6px rgba(239, 68, 68, 0.3);
}
.tm-tier-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.tm-tier-icon {
  font-size: 16px;
}
.tm-tier-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.tm-tier-price {
  font-size: 38px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 8px 0 2px;
}
.tm-tier-price.premium-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tm-tier-price .red-price {
  color: #ef4444;
}
.tm-tier-price .orig-price {
  font-size: 18px;
  color: #9ca3af;
  font-weight: 500;
  text-decoration: line-through;
}
.tm-tier-sub {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  min-height: 18px;
}
.tm-tier-sub.red-countdown {
  color: #ef4444;
  font-weight: 600;
  font-size: 12px;
}
.tm-btn-buy {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform .1s, background .15s, box-shadow .15s;
}
.tm-btn-buy.dark {
  background: #0f172a;
  color: #ffffff;
}
.tm-btn-buy.dark:hover {
  background: #1e293b;
}
.tm-btn-buy.blue {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.tm-btn-buy.blue:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}
.tm-btn-buy:active {
  transform: scale(0.98);
}
.tm-roi-micro-pill {
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  line-height: 1.4;
}
.tm-features-head {
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
  margin-top: 20px;
  margin-bottom: 12px;
}
.tm-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  color: #374151;
  flex: 1;
}
.tm-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.tm-dot-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
}
.tm-check-svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.tm-dash-svg {
  flex: none;
  width: 16px;
  height: 16px;
}
.tm-model-logos {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}
.mini-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #ffffff;
}
.mini-logo.openai { background: #10a37f; }
.mini-logo.claude { background: #d97706; }
.mini-logo.gemini { background: #2563eb; }
.mini-logo.grok { background: #000000; }
.mini-logo.mistral { background: #ea580c; }

/* Footnote & Guarantees */
.tm-pricing-disclaimer {
  font-size: 11.5px;
  color: #9ca3af;
  text-align: center;
  margin: 18px 0 16px;
}
.tm-guarantee-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 12.5px;
  color: #374151;
  font-weight: 500;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tm-guarantee-row .check-green {
  color: #10b981;
  font-weight: 800;
  margin-right: 2px;
}
.tm-links-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}
.tm-link-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.tm-link-btn:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

/* Detailed Comparison Section */
.tm-compare-section {
  margin-top: 24px;
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
  animation: fadeIn .2s ease;
}
.tm-compare-section[hidden] {
  display: none !important;
}
.tm-compare-head-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  padding: 0 12px 14px;
  border-bottom: 1.5px solid #e5e7eb;
}
.comp-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.comp-col-tiers {
  display: contents;
}
.comp-th {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  text-align: center;
}
.comp-th .btn {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 6px;
  white-space: nowrap;
}
.comp-th .btn-blue {
  background: #2563eb;
  color: #ffffff;
}
.tm-cat-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #6b7280;
  padding: 16px 12px 8px;
  background: #f9fafb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
}
.tm-comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tm-comp-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}
.tm-comp-table td:first-child {
  width: 50%;
  font-weight: 500;
  color: #1f2937;
}
.tm-comp-table td.text-center {
  text-align: center;
  width: 25%;
}

/* Pricing Social Proof Section (TypingMind 1:1 Seamless Gradient - Zero Lines) */
.tm-pricing-proof-section {
  margin: 36px -36px 0;
  padding: 32px 36px 72px;
  background: linear-gradient(180deg, 
    #ffffff 0%, 
    #ffffff 8%, 
    #f1f6fc 16%, 
    #d7e7fe 26%, 
    #8dbdfb 40%, 
    #2c93f8 54%, 
    #0882f1 66%, 
    #1a8bf5 76%, 
    #38bdf8 84%, 
    #93c5fd 91%, 
    #e0f2fe 96%, 
    #ffffff 100%
  );
  border: none;
  text-align: center;
}
.tm-pricing-proof-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 auto 24px;
}
.tm-pricing-proof-section .tm-laurels-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
}
.tm-pricing-proof-section .tm-laurel-item {
  flex: 0 1 auto;
}
.tm-pricing-proof-section .laurel-badge {
  font-size: 10.5px;
  white-space: nowrap;
}
/* Staggered 2-Column Flow (TypingMind 1:1 - Unaligned & Organic) */
.tm-pricing-reviews-grid {
  display: flex;
  gap: 20px;
  text-align: left;
  margin-top: 28px;
  align-items: flex-start;
}
.tm-pricing-reviews-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.tm-pricing-reviews-col .tm-review-card {
  width: 100%;
  box-sizing: border-box;
  padding: 22px;
}
.tm-pricing-reviews-grid .rev-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.38;
  margin: 12px 0 8px;
}
.tm-pricing-reviews-grid .rev-body {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.55;
}
.rev-bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
}
.rev-bullets li {
  margin-bottom: 4px;
}

/* Pricing Buyer FAQ Section */
.tm-pricing-faq-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: none;
  text-align: center;
}
.tm-pricing-faq-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 8px auto 6px;
}
.tm-pricing-faq-sub {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 auto 24px;
}

/* ================= SECTION 1: ONE LICENSE VS MONTHLY SUBSCRIPTIONS ================= */
.tm-vs-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
.tm-vs-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.tm-vs-sub {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
}
.tm-vs-card-table {
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.tm-vs-row {
  display: grid;
  grid-template-columns: 180px 1.25fr 1fr;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  text-align: left;
}
.tm-vs-row:last-child {
  border-bottom: none;
}
.tm-vs-row.tm-vs-header {
  background: #f8fafc;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  border-bottom: 1.5px solid #e2e8f0;
}
.tm-vs-col {
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tm-vs-col.col-feature {
  font-weight: 600;
  color: #334155;
}
.tm-vs-col.col-highlight {
  background: #f0f7ff;
  color: #0f172a;
  font-weight: 600;
  border-left: 2px solid #2563eb;
  border-right: 2px solid #2563eb;
}
.tm-vs-row.tm-vs-header .col-highlight {
  border-top: 2px solid #2563eb;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  color: #1d4ed8;
}
.tm-vs-row:last-child .col-highlight {
  border-bottom: 2px solid #2563eb;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.tm-vs-col.col-competitor {
  color: #64748b;
}
.tm-orange-minus {
  color: #ea580c;
  font-size: 15px;
  font-weight: 700;
  flex: none;
}

/* ================= SECTION 2: SOCIAL PROOF & TESTIMONIALS ================= */
.tm-social-proof {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
.tm-sp-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.tm-laurels-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tm-laurel-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.laurel-leaf {
  font-size: 22px;
  opacity: 0.85;
}
.laurel-leaf.flip {
  transform: scaleX(-1);
}
.laurel-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
}
.laurel-badge {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.laurel-score {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.laurel-stars {
  font-size: 11px;
  letter-spacing: 1px;
  color: #f59e0b;
}
.laurel-stars.green { color: #00b67a; }
.laurel-stars.orange { color: #f97316; }
.laurel-stars.red { color: #ef4444; }

.tm-reviews-grid {
  display: flex;
  gap: 20px;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
  align-items: flex-start;
}
.tm-reviews-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.tm-reviews-col .tm-review-card {
  width: 100%;
  box-sizing: border-box;
  padding: 22px;
}

/* Collapsible Testimonials Container with Smooth Fade Mask (TypingMind 1:1) */
.tm-reviews-collapsible {
  max-height: 650px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.4) 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.4) 84%, transparent 100%);
}
.tm-reviews-collapsible.is-expanded {
  max-height: 2500px;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Centered Show More Button (TypingMind 1:1) */
.tm-show-more-wrap {
  text-align: center;
  margin-top: 18px;
  position: relative;
  z-index: 10;
}
.tm-show-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}
.tm-show-more-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.tm-show-more-btn .tm-chevron {
  transition: transform 0.3s ease;
}
.tm-show-more-btn.is-expanded .tm-chevron {
  transform: rotate(180deg);
}
.tm-review-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}
.tm-review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.15);
}
.rev-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 10px;
}
.rev-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.rev-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
div.rev-avatar {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.rev-user > div {
  min-width: 0;
}
.rev-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.rev-role {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}
.rev-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-top: 1px;
}
.rev-stars {
  color: #f59e0b;
  font-size: 13.5px;
  letter-spacing: 1.5px;
  line-height: 1;
  display: inline-block;
}
.rev-stars.orange { color: #f97316; }
.rev-stars.red { color: #ef4444; }
.rev-stars.green { color: #059669; }
.rev-source {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.rev-source.trustpilot { background: #00b67a; color: #fff; }
.rev-source.producthunt { background: #da552f; color: #fff; }
.rev-source.g2 { background: #ff492c; color: #fff; }
.rev-source.capterra { background: #002b49; color: #fff; }
.rev-source.verified {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.rev-avatar.av-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.rev-avatar.av-rose { background: linear-gradient(135deg, #f43f5e, #be123c); }
.rev-avatar.av-amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.rev-avatar.av-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.rev-avatar.av-teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.rev-avatar.av-cyan { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.rev-avatar.av-pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.rev-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 8px;
}
.rev-body {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* ================= SECTION 3: EXPLORE ALL FEATURES (TypingMind 1:1) ================= */
.tm-explore-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
.tm-explore-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.tm-explore-sub {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 32px;
}
.tm-explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  text-align: left;
  max-width: 860px;
  margin: 0 auto;
}
.tm-explore-col {
  display: flex;
  flex-direction: column;
}
.explore-group-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 22px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}
.tm-explore-col .explore-group-title:first-child {
  margin-top: 0;
}
.explore-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.explore-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
}
.explore-list li:last-child {
  border-bottom: none;
}
.ex-name {
  color: #1e293b;
}
.ex-icon {
  font-size: 14px;
  opacity: 0.85;
  flex-shrink: 0;
  margin-left: 12px;
}

/* ================= SECTION 4: FREQUENTLY ASKED QUESTIONS ================= */
.tm-faq-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
.tm-faq-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.tm-faq-list {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tm-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: border-color .15s;
}
.tm-faq-item:hover {
  border-color: #cbd5e1;
}
.tm-faq-item[open] {
  border-color: #94a3b8;
}
.tm-faq-q {
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.tm-faq-q::-webkit-details-marker {
  display: none;
}
.faq-chevron {
  font-size: 16px;
  color: #64748b;
  transition: transform .2s ease;
}
.tm-faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}
.tm-faq-a {
  padding: 0 18px 16px;
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
}
.tm-faq-a p {
  margin: 0;
}

/* ================= TYPINGMIND-STYLE JOURNEY CARD (Bottom-Left) ================= */
.tm-journey-card {
  margin: 0 12px 10px 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all .2s ease;
}
.tm-journey-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.tm-journey-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.tm-journey-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tm-journey-emoji {
  font-size: 16px;
  line-height: 1;
}
.tm-journey-text-group {
  display: flex;
  flex-direction: column;
}
.tm-journey-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}
.tm-journey-sub {
  font-size: 10px;
  color: #64748b;
  line-height: 1.25;
}
.tm-journey-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  border-radius: 4px;
  transition: color .15s ease;
}
.tm-journey-close-btn:hover {
  color: #ef4444;
}
.tm-journey-bar-wrap {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin: 8px 0 6px 0;
  overflow: hidden;
}
.tm-journey-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 2px;
  transition: width .35s ease;
}
.tm-journey-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tm-journey-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 4px;
  border-radius: 4px;
  font-size: 11px;
  color: #475569;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.tm-journey-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.tm-journey-item .j-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  color: transparent;
  flex-shrink: 0;
  transition: all .2s ease;
}
.tm-journey-item.completed {
  color: #059669;
}
.tm-journey-item.completed .j-dot {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  font-weight: 800;
}
.tm-journey-item.completed .j-label {
  text-decoration: line-through;
  opacity: 0.85;
}

/* ================= API TEST BAR IN MODAL ================= */
.api-test-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.api-guide-link {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all .15s ease;
}
.api-guide-link:hover {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.api-test-status {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
}
.api-test-status.success {
  color: #059669;
}
.api-test-status.error {
  color: #dc2626;
}
.api-test-status.loading {
  color: #2563eb;
}
.btn.xs {
  height: 26px;
  padding: 0 8px;
  font-size: 11px;
}

/* ================= CARD BADGES (Live AI vs Demo Sample) ================= */
.badge-live-ai {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-demo-sample {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ================= TYPINGMIND-STYLE LICENSE KEY MODAL ================= */
.tm-license-card {
  max-width: 440px;
  width: 92%;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 30px 26px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  text-align: center;
}
.tm-license-content {
  display: flex;
  flex-direction: column;
}
.tm-license-title {
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}
.tm-license-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 20px 0;
  line-height: 1.5;
}
.tm-license-sub strong {
  color: #0f172a;
  font-weight: 600;
}
.tm-license-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.tm-license-input {
  width: 100%;
  height: 44px;
  border: 1.5px solid #3b82f6;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.tm-license-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}
.tm-license-sublinks {
  margin-top: 10px;
  text-align: left;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
}
.tm-license-sublinks a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.tm-license-sublinks a:hover {
  text-decoration: underline;
  color: #1d4ed8;
}
.tm-license-submit-btn {
  width: 100%;
  height: 42px;
  margin-top: 18px;
  background: #334155;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s ease, transform .05s ease;
}
.tm-license-submit-btn:hover {
  background: #1e293b;
}
.tm-license-submit-btn:active {
  transform: translateY(1px);
}
.btn-check-icon {
  font-weight: 800;
  font-size: 14px;
}
.tm-license-status {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
  min-height: 18px;
  line-height: 1.4;
}
.tm-license-status.success {
  color: #059669;
}
.tm-license-status.error {
  color: #dc2626;
}
.tm-license-foot-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tm-license-blue-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  transition: color .15s ease;
}
.tm-license-blue-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.blue-icon {
  font-size: 14px;
}

/* ================= MODAL 1: FULL TYPINGMIND LANDING PAGE BOTTOM-UP SHEET OVERLAY ================= */
.modal-backdrop.tm-landing-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-backdrop.tm-landing-backdrop::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.modal-card.tm-landing-sheet {
  width: 100%;
  max-width: 1140px;
  max-height: 94vh;
  background: #ffffff;
  border-radius: 36px 36px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: slideUpLandingSheet .35s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-card.tm-landing-sheet::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
@keyframes slideUpLandingSheet {
  from { transform: translateY(100%); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}
.tm-external-close-btn {
  position: fixed;
  top: 18px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 105;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: all .15s ease;
  padding: 0;
}
.tm-external-close-btn:hover {
  background: #1e293b;
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}
.tm-external-close-btn:active {
  transform: scale(0.95);
}
.tm-external-close-btn svg {
  display: block;
}
@media (max-width: 768px) {
  .tm-external-close-btn {
    top: 28px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px 0 0 10px;
    border-right: none;
  }
}

/* ================= MODAL 2: DEDICATED IN-APP PRICING CASHIER (TypingMind 1:1) ================= */
.modal-backdrop.tm-cashier-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-backdrop.tm-cashier-backdrop::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.modal-card.tm-cashier-card {
  background: #ffffff;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: cashierPopIn .22s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-card.tm-cashier-card::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.tm-cashier-close-btn {
  display: none !important;
}

/* Ambient Pastel Glow Header (TypingMind 1:1 Image 2) */
.tm-pricing-aura {
  position: relative;
  background: radial-gradient(ellipse at 88% 0%, rgba(254, 240, 138, 0.45) 0%, rgba(254, 240, 138, 0) 65%),
              radial-gradient(ellipse at 12% 0%, rgba(186, 230, 253, 0.55) 0%, rgba(186, 230, 253, 0) 70%),
              #ffffff;
  padding: 32px 36px 18px;
  text-align: center;
  border-bottom: none;
}
.tm-cashier-body {
  padding: 24px 36px 36px;
  overflow: visible;
}

/* 3D Ribbon 60% OFF (TypingMind 1:1 Image 2) */
.tm-ribbon-3d {
  position: absolute;
  top: -8px;
  right: 20px;
  width: 48px;
  padding: 8px 4px 14px;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 55%, #991b1b 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 6px 14px rgba(185, 28, 28, 0.4);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 7px), 0 100%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tm-ribbon-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: -6px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 6px 8px 0;
  border-color: transparent #7f1d1d transparent transparent;
}
.tm-ribbon-3d::after {
  content: "";
  position: absolute;
  top: 0;
  right: -6px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 8px 6px;
  border-color: transparent transparent transparent #7f1d1d;
}
.ribbon-pct {
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.ribbon-txt {
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  margin-top: 1px;
}

/* Sticky Announcement Banner */
.tm-sticky-banner {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: linear-gradient(90deg, #ec4899 0%, #ef4444 100%);
  color: #ffffff;
  padding: 9px 16px;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.25);
  transition: border-radius .2s ease;
}
.tm-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}
.tm-banner-line1,
.tm-banner-line2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tm-banner-sub {
  font-weight: 600;
  opacity: 0.95;
}
.tm-banner-pill {
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.03em;
}
.tm-banner-text {
  font-weight: 500;
}
.tm-banner-cta {
  background: #ffffff;
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.tm-banner-cta:hover {
  background: #fef2f2;
  transform: translateY(-1px);
}

/* Hero Section */
.tm-hero-section {
  text-align: center;
  padding: 10px 10px 40px;
  position: relative;
}
.tm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin: 16px auto 14px;
}
.tm-hero-h1 {
  font-size: 38px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.18;
  max-width: 780px;
  margin: 0 auto 14px;
}
.text-gradient-blue {
  background: linear-gradient(135deg, #3b82f6 30%, #1d4ed8 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tm-hero-sub {
  font-size: 16px;
  color: #475569;
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto 24px;
}
.tm-hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.tm-hero-try-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tm-try-friction-note {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  margin-top: 7px;
  text-align: center;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn.solid.tm-hero-cta-blue,
.tm-hero-cta-blue,
#landingHeroBuyBtn,
#landingFinalBuyBtn,
.final-btn-blue {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  height: 48px;
  padding: 0 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38);
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
}
.btn.solid.tm-hero-cta-blue:hover,
.tm-hero-cta-blue:hover,
#landingHeroBuyBtn:hover,
#landingFinalBuyBtn:hover,
.final-btn-blue:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.48);
}
.btn.solid.tm-hero-cta-blue:active,
.tm-hero-cta-blue:active,
#landingHeroBuyBtn:active,
#landingFinalBuyBtn:active,
.final-btn-blue:active {
  transform: translateY(0);
}
.tm-hero-cta-ghost {
  background: transparent;
  border: none;
  color: #475569;
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .12s ease;
  text-decoration: none;
}
.tm-hero-cta-ghost:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
  text-decoration: underline;
}

/* Avatar Social Proof */
.tm-avatar-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 30px;
}
.tm-avatar-stack {
  display: flex;
  align-items: center;
}
.tm-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -8px;
  display: inline-grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
}
.tm-av:first-child { margin-left: 0; }
.tm-av.av1 { background: #3b82f6; }
.tm-av.av2 { background: #8b5cf6; }
.tm-av.av3 { background: #ec4899; }
.tm-av.av4 { background: #f59e0b; }
.tm-av.av5 { background: #10b981; }
.tm-av.av6 { background: #0f172a; font-size: 12px; }
.tm-avatar-text {
  font-size: 13px;
  color: #475569;
}

.tm-laurels-row.hero-laurels {
  margin-bottom: 24px;
}

/* Featured Testimonial Card */
.tm-featured-testimonial {
  background: linear-gradient(135deg, #f0f7ff 0%, #fdf2f8 100%);
  border: 1px solid #e0e7ff;
  border-radius: 18px;
  padding: 22px 28px;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}
.featured-quote {
  font-size: 15.5px;
  color: #1e293b;
  line-height: 1.55;
  margin: 0 0 14px;
}
.featured-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  object-fit: cover;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}
.featured-author div {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
}
.featured-author strong {
  color: #0f172a;
}
.featured-author span {
  color: #64748b;
}

/* Common Section Headers */
.tm-section {
  padding: 44px 10px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
/* Testimonials Section Seamless Gradient (TypingMind 1:1 - Zero Lines) */
.tm-section.tm-testimonials-section {
  background: linear-gradient(180deg, 
    #ffffff 0%, 
    #ffffff 8%, 
    #f1f6fc 16%, 
    #d7e7fe 26%, 
    #8dbdfb 40%, 
    #2c93f8 54%, 
    #0882f1 66%, 
    #1a8bf5 76%, 
    #38bdf8 84%, 
    #93c5fd 91%, 
    #e0f2fe 96%, 
    #ffffff 100%
  );
  border: none;
  padding: 56px 20px 80px;
}
.tm-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.tm-section-badge.dark-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
}
.tm-section-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 auto 8px;
  max-width: 720px;
}
.tm-section-sub {
  font-size: 14.5px;
  color: #64748b;
  max-width: 620px;
  margin: 0 auto 30px;
  line-height: 1.5;
}
.tm-section-cta {
  margin-top: 32px;
}
.tm-section-btn {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all .15s;
}
.tm-section-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.tm-section-btn.green-btn {
  background: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.tm-section-btn.green-btn:hover {
  background: #059669;
}

/* Steps Section (How It Works in 3 Simple Steps) */
.tm-steps-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 52px 20px;
}
.tm-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}
.tm-step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px 22px 22px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tm-step-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
}
.tm-step-card.tm-step-highlight {
  border: 1.5px solid #3b82f6;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.12);
}
.tm-step-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 26px;
  font-weight: 900;
  color: #e2e8f0;
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
}
.tm-step-card.tm-step-highlight .tm-step-number {
  color: #bfdbfe;
}
.tm-step-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}
.tm-step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.35;
}
.tm-step-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}
.tm-step-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px 8px;
  width: fit-content;
}
.tm-step-pill.highlight-pill {
  color: #1d4ed8;
  background: #dbeafe;
}

/* Why Grid */
.tm-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}
.tm-why-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tm-why-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}
.why-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.why-icon-box.blue { background: #eff6ff; color: #2563eb; }
.why-icon-box.green { background: #ecfdf5; color: #059669; }
.why-icon-box.purple { background: #faf5ff; color: #7c3aed; }
.why-icon-box.amber { background: #fffbeb; color: #d97706; }
.why-icon-box.rose { background: #fff1f2; color: #e11d48; }
.why-icon-box.indigo { background: #eef2ff; color: #4f46e5; }
.tm-why-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}
.tm-why-card p {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Dark Section (The Cost Killer & Details) */
.tm-dark-section {
  background: #0f172a;
  color: #f8fafc;
  padding: 48px 24px;
  border-radius: 24px;
  margin: 36px 0;
  text-align: center;
}
.text-white { color: #ffffff !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-green-highlight { color: #34d399 !important; }

/* ROI Calculator Box */
.tm-calc-box {
  max-width: 780px;
  margin: 0 auto 36px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 24px;
  text-align: left;
}
.calc-input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.calc-label {
  font-size: 14.5px;
  font-weight: 600;
  color: #e2e8f0;
}
.calc-hours-pill {
  background: #3b82f6;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
}
.tm-range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #334155;
  outline: none;
  cursor: pointer;
  accent-color: #3b82f6;
  margin-bottom: 8px;
}
.calc-range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 24px;
}
.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.calc-res-card {
  border-radius: 14px;
  padding: 18px;
  position: relative;
}
.calc-res-card.competitor {
  background: #0f172a;
  border: 1px solid #334155;
}
.calc-res-card.clipcraft {
  background: #0f172a;
  border: 2px solid #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}
.calc-best-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: #3b82f6;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-bottom-left-radius: 10px;
  letter-spacing: 0.05em;
}
.res-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
  margin-bottom: 8px;
}
.res-tag.red { color: #f87171; }
.res-tag.blue { color: #60a5fa; }
.res-price {
  font-size: 28px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 12px;
}
.res-price.text-blue { color: #60a5fa; }
.res-price small {
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
}
.res-points {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.res-points li::before {
  content: "•";
  margin-right: 6px;
  color: #64748b;
}
.calc-savings-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
}
.savings-icon {
  font-size: 28px;
  flex: none;
}
.savings-text strong {
  display: block;
  font-size: 14.5px;
  color: #34d399;
  margin-bottom: 2px;
}
.savings-text p {
  margin: 0;
  font-size: 12px;
  color: #a7f3d0;
}

/* Dark VS Table */
.tm-vs-dark {
  background: #1e293b;
  border-color: #334155;
  margin-top: 24px;
}
.tm-vs-dark .tm-vs-row {
  border-color: #334155;
  color: #cbd5e1;
}
.tm-vs-dark .tm-vs-header {
  background: #0f172a;
  color: #ffffff;
}
.tm-vs-dark .col-feature {
  color: #e2e8f0;
}
.tm-vs-dark .col-highlight {
  background: rgba(37, 99, 235, 0.2);
  color: #ffffff;
  border-color: #3b82f6;
}
.tm-vs-dark .col-competitor {
  color: #94a3b8;
}

/* Bento Grid Section */
.tm-bento-section {
  background: #f8fafc;
  border-radius: 24px;
  margin: 36px 0;
}
.tm-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}
.bento-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .15s, box-shadow .15s;
}
.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
.bento-card.bento-wide {
  grid-column: span 2;
}
.bento-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 8px;
}
.bento-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}
.bento-card p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 14px;
}
.bento-mockup {
  margin-top: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
}
.mock-line-head {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock-dot.blue {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
  display: inline-block;
}
.mock-line-sub {
  font-size: 10.5px;
  color: #64748b;
  margin-left: 12px;
  margin-bottom: 8px;
}
.quote-symbol {
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  font-family: Georgia, serif;
}
.quote-text {
  font-size: 11.5px;
  font-style: italic;
  color: #334155;
  margin: 4px 0 6px !important;
}
.quote-author {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
}
.meter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: #475569;
  margin-bottom: 4px;
}
.meter-bar {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 3px;
}
.meter-score {
  font-weight: 700;
  color: #0f172a;
  width: 26px;
  text-align: right;
}
.player-mockup {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.p-mini-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}
.p-mini-wave span {
  width: 3px;
  background: #2563eb;
  border-radius: 1px;
  animation: waveAnim 1s ease-in-out infinite alternate;
}
.p-mini-wave span:nth-child(2) { height: 12px; }
.p-mini-wave span:nth-child(3) { height: 16px; }
.p-mini-wave span:nth-child(4) { height: 8px; }
.p-mini-wave span:nth-child(5) { height: 14px; }
.p-mini-wave span:nth-child(6) { height: 10px; }
.p-mini-wave span:nth-child(7) { height: 15px; }
.p-mini-wave span:nth-child(8) { height: 7px; }
.p-mini-wave span:nth-child(9) { height: 13px; }
.p-mini-wave span:nth-child(10) { height: 9px; }
@keyframes waveAnim {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}
.p-mini-time {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
}
.mock-tweet {
  font-size: 11.5px;
}
.tweet-user {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.tw-av {
  background: #0f172a;
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 9px;
}
.tw-handle {
  color: #94a3b8;
  font-size: 10.5px;
}
.tw-text {
  color: #334155;
  line-height: 1.4;
  margin: 0 !important;
}

/* Highlights Interactive Section */
.tm-highlights-interactive {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}
.tm-high-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tm-high-tab {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
}
.tm-high-tab:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.tm-high-tab.active {
  border-color: #2563eb;
  border-left-width: 4px;
  background: #f0f7ff;
}
.high-tab-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.high-tab-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}
.mac-preview-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  overflow: hidden;
  height: 100%;
}
.mac-preview-bar {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mac-preview-title {
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: #64748b;
  flex: 1;
}
.mac-preview-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 10px;
}
.mac-preview-body {
  padding: 18px;
}

/* Privacy Section */
.tm-privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
  align-items: center;
}
.tm-privacy-left { text-align: left; }
.tm-privacy-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.privacy-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}
.p-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #059669;
  display: grid;
  place-items: center;
  flex: none;
}
.privacy-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}
.privacy-card p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

/* Yellow Highlighter */
mark.yellow-highlight {
  background-color: #fef08a;
  color: #1e293b;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* Granular Feature Checklist Grid */
.tm-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}
.details-col-head {
  font-size: 13.5px;
  font-weight: 700;
  color: #38bdf8;
  border-bottom: 1px solid #334155;
  padding-bottom: 6px;
  margin: 18px 0 10px;
}
.details-col-head:first-child { margin-top: 0; }
.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #cbd5e1;
}
.details-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Final CTA Section */
.tm-final-cta-section {
  margin: 44px 0 24px;
}
.tm-final-cta-box {
  background: #0f172a;
  border-radius: 24px;
  padding: 36px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.final-cta-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}
.final-cta-h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.final-cta-sub {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0 0 20px;
  line-height: 1.5;
}
.final-cta-btns {
  display: flex;
  gap: 10px;
}
.final-btn-blue {
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  border-radius: 10px;
  padding: 0 20px;
  height: 42px;
  cursor: pointer;
}
.final-btn-blue:hover { background: #1d4ed8; }
.tm-final-cta-box .final-btn-ghost,
.final-btn-ghost {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 0 18px;
  height: 42px;
  cursor: pointer;
  transition: all .15s ease;
}
.tm-final-cta-box .final-btn-ghost:hover,
.final-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
}
.final-cta-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 20px;
}
.newsletter-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 10px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.newsletter-input {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 12.5px;
}
.newsletter-btn {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
}
.newsletter-btn:hover { background: #f1f5f9; }
.newsletter-sub {
  font-size: 11px;
  color: #64748b;
}

/* Mega Footer */
.tm-mega-footer {
  background: #090d16;
  border-radius: 0;
  padding: 32px 28px 20px;
  color: #cbd5e1;
  margin-top: 24px;
  text-align: left;
}
.mega-footer-top {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #1e293b;
}
.footer-tagline {
  font-size: 12px;
  color: #64748b;
  margin: 10px 0 16px;
  line-height: 1.45;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.soc-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1e293b;
  color: #cbd5e1;
  display: grid;
  place-items: center;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.soc-icon:hover {
  background: #334155;
  color: #ffffff;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.f-col h5 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin: 0 0 12px;
}
.f-col a,
.f-col a.landing-trigger-buy-btn {
  display: block !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  height: auto !important;
  line-height: 1.5 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  margin-bottom: 8px !important;
  transition: color .15s !important;
  cursor: pointer !important;
  transform: none !important;
}
.f-col a:hover,
.f-col a.landing-trigger-buy-btn:hover {
  color: #38bdf8 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.mega-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  font-size: 11.5px;
  color: #475569;
}
.footer-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  padding: 4px 10px;
  border-radius: 20px;
  color: #94a3b8;
}
.pulse-green-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ============================================================
   CLIPCARFT SUITE — MULTI-VIEW ARCHITECTURE & ADVANCED MODULES
   Pipeline Kanban, Magic Chat, Home Dashboard, Pages, Clips
   ============================================================ */

/* Top bar active button indicator */
.top-actions .btn.active-top {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.top-actions .btn.active-top i[data-icon] {
  color: #fff;
}

/* Generic View Headers */
.view-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}
.view-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #eff6ff;
  color: #2563eb;
  margin-bottom: 8px;
}
.view-h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.view-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  max-width: 580px;
}
.view-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------------- 1. Content Pipeline Kanban (Modern Linear/Notion Style) ---------------- */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: flex-start;
}
.kanban-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  transition: background .2s ease, border-color .2s ease;
}
.kanban-col.drag-over {
  background: #f0f7ff;
  border-color: #93c5fd;
  box-shadow: inset 0 0 0 2px #3b82f6;
}
.kanban-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 14px;
}
.kanban-col-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-backlog { background: #94a3b8; }
.dot-review { background: #f59e0b; }
.dot-scheduled { background: #3b82f6; }
.dot-published { background: #10b981; }

.kanban-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #334155;
  flex: 1;
}
.kanban-col-count {
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  border-radius: 9999px;
  padding: 2px 8px;
}
.kanban-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 80px;
}
.kanban-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .18s ease, border-color .18s ease;
  cursor: grab;
  position: relative;
  user-select: none;
}
.kanban-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}
.kanban-card:active {
  cursor: grabbing;
}
.kanban-card.dragging {
  opacity: 0.45;
  border: 2px dashed #3b82f6;
  box-shadow: none;
  transform: scale(0.98);
}
.kanban-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.kanban-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.kanban-card-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Color-Coded Platform Badges (All 37 Tools — Option A Clean Pill Style) */
.badge-instagram { background: #fdf2f8; color: #db2777; border: 1px solid #fbcfe8; }
.badge-tiktok { background: #ecfeff; color: #0891b2; border: 1px solid #a5f3fc; }
.badge-x { background: #e2e8f0; color: #0f172a; border: 1px solid #94a3b8; }
.badge-linkedin { background: #eff6ff; color: #0284c7; border: 1px solid #bfdbfe; }
.badge-youtube { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-newsletter { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.badge-blog { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-shownotes { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.badge-leadmagnet { background: #faf5ff; color: #7c3aed; border: 1px solid #e9d5ff; }
.badge-reddit { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.badge-facebook { background: #eff6ff; color: #1d4ed8; border: 1px solid #93c5fd; }
.badge-pinterest { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.badge-threads { background: #f5f3ff; color: #4c1d95; border: 1px solid #ddd6fe; }
.badge-quotes { background: #fdf4ff; color: #c026d3; border: 1px solid #f5d0fe; }
.badge-reply { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }
.badge-cta { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
.badge-visual { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.badge-hooks { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; }
.badge-contrarian { background: #fff1f2; color: #be123c; border: 1px solid #fda4af; }
.badge-faq { background: #f0fdfa; color: #0d9488; border: 1px solid #99f6e4; }
.badge-ideas { background: #fefce8; color: #a16207; border: 1px solid #fde047; }
.badge-quiz { background: #f7fee7; color: #4d7c0f; border: 1px solid #bef264; }
.badge-intro { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.badge-bio { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.badge-email { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }
.badge-broll { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.badge-sop { background: #eef2ff; color: #3730a3; border: 1px solid #a5b4fc; }
.badge-glossary { background: #faf5ff; color: #6b21a8; border: 1px solid #d8b4fe; }
.badge-meeting { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.badge-voc { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-coaching { background: #ecfdf5; color: #047857; border: 1px solid #6ee7b7; }
.badge-sponsor { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }
.badge-summary { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-quality { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.badge-takeaways { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.badge-custom { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.kanban-col-empty {
  border: 1.5px dashed #e2e8f0;
  border-radius: 10px;
  padding: 20px 12px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.55);
  user-select: none;
}
.pipeline-draft-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
.pipeline-draft-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pipeline-draft-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kanban-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.35;
  cursor: pointer;
}
.kanban-card-title:hover {
  color: #2563eb;
}
.kanban-card-snippet {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.kanban-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.kanban-card-date {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.kanban-card-date-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kanban-card-date svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.kanban-card-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.kb-card-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.kb-card-btn:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}
.kb-card-btn.delete:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}
.kb-card-btn svg {
  width: 12px;
  height: 12px;
}

/* Quick Add Task button at bottom of columns */
.kanban-col-bottom-add {
  margin-top: 12px;
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s ease;
}
.kanban-col-bottom-add:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #94a3b8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ---------------- 2. Magic Chat ---------------- */
.magic-chat-container {
  display: flex;
  flex-direction: column;
  height: 600px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.magic-chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.chat-msg {
  display: flex;
  gap: 14px;
  max-width: 85%;
}
.chat-msg.assistant {
  align-self: flex-start;
}
.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.chat-msg.user .chat-msg-avatar {
  background: #0f172a;
  color: #fff;
}
.chat-msg-body {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}
.chat-msg.user .chat-msg-body {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}
.chat-md {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-2);
}
.chat-md > :first-child { margin-top: 0; }
.chat-md > :last-child { margin-bottom: 0; }
.chat-md .md-h1 { font-size: 16.5px; font-weight: 700; line-height: 1.35; color: var(--ink); margin: 4px 0 10px; }
.chat-md .md-h2 { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); margin: 16px 0 7px; }
.chat-md .md-h3 { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--ink); margin: 13px 0 5px; }
.chat-md .md-h4 { font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--ink-2); margin: 11px 0 4px; }
.chat-md .md-p { margin: 0 0 9px; color: var(--ink-2); }
.chat-md strong { color: var(--ink); font-weight: 600; }
.chat-md em { font-style: italic; }
.chat-md .md-hr { border: 0; border-top: 1px solid #e2e8f0; margin: 14px 0; }
.chat-md .md-ul, .chat-md .md-ol { margin: 0 0 10px; padding-left: 20px; color: var(--ink-2); }
.chat-md .md-ul li, .chat-md .md-ol li { margin: 4px 0; }
.chat-md .md-ul.md-task-list { list-style: none; padding-left: 2px; }
.chat-md .md-task { display: flex; align-items: flex-start; gap: 7px; }
.chat-md .md-chk {
  flex: none; width: 14px; height: 14px; margin-top: 4px;
  border: 1.5px solid #cbd5e1; border-radius: 4px;
  display: inline-grid; place-items: center; font-size: 9.5px; font-weight: 700; background: #fff; color: #fff;
}
.chat-md .md-task.done .md-chk { background: var(--green); border-color: var(--green); }
.chat-md .md-quote {
  margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--ink);
  background: #fff; border-radius: 0 8px 8px 0; color: var(--ink-2); font-style: italic;
}
.chat-md .md-pre {
  margin: 10px 0; padding: 11px 13px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px; line-height: 1.5; color: var(--ink); white-space: pre;
}
.chat-md .md-pre code { font-family: inherit; font-size: inherit; background: none; padding: 0; border: 0; color: inherit; }
.chat-md .md-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px; background: #eef2f6; color: #0f172a; padding: 1px 5px; border-radius: 5px; border: 1px solid #e2e8f0;
}
.chat-md .md-link { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.chat-md .md-table-wrap { margin: 10px 0; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.chat-md .md-table { width: 100%; border-collapse: collapse; font-size: 12.5px; text-align: left; }
.chat-md .md-table th { background: #f1f5f9; font-weight: 600; color: var(--ink); padding: 7px 10px; border-bottom: 1px solid #cbd5e1; }
.chat-md .md-table td { padding: 7px 10px; border-bottom: 1px solid #e2e8f0; color: var(--ink-2); vertical-align: top; }
.chat-md .md-table tr:last-child td { border-bottom: 0; }
.magic-chat-send-btn:disabled,
.magic-chat-input:disabled { opacity: 0.65; cursor: not-allowed; }
.chat-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}
.chat-loading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  display: inline-block;
  animation: chatDotBounce 1.4s infinite ease-in-out both;
}
.chat-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.chat-loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes chatDotBounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}
.chat-prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chat-chip {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all .15s;
}
.chat-chip:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}
.magic-chat-input-wrap {
  border-top: 1px solid #e2e8f0;
  padding: 16px 20px 12px;
  background: #f8fafc;
}
.magic-chat-form {
  display: flex;
  gap: 10px;
}
.magic-chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13.5px;
  background: #fff;
  outline: none;
}
.magic-chat-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.magic-chat-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 8px;
  padding: 0 4px;
}
.chat-msg-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}
.chat-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s ease;
}
.chat-action-btn:hover {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}
.chat-action-btn.saved {
  border-color: #10b981;
  color: #047857;
  background: #ecfdf5;
}
.chat-action-btn svg {
  width: 13px;
  height: 13px;
}
.chat-mode-tag {
  margin-left: auto;
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 500;
}
.chat-msg.error .chat-msg-body {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.chat-msg.error .chat-msg-avatar {
  background: #fee2e2;
  color: #dc2626;
}

/* ---------------- 3. Home Dashboard ---------------- */
.home-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.home-stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.stat-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-icon-wrap.blue { background: #dbeafe; color: #1e40af; }
.stat-icon-wrap.emerald { background: #dcfce7; color: #15803d; }
.stat-icon-wrap.amber { background: #fef3c7; color: #b45309; }
.stat-icon-wrap.purple { background: #f3e8ff; color: #7e22ce; }
.stat-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.stat-label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.home-rec-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.home-rec-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.home-rec-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.home-rec-details {
  flex: 1;
}
.home-rec-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}
.home-rec-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}
.home-rec-badge {
  font-size: 11px;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.home-rec-badge.is-demo {
  background: #eef2ff;
  color: #4338ca;
}
.home-rec-badge.is-working {
  background: #fef3c7;
  color: #b45309;
}
.home-rec-badge.is-empty {
  background: #f1f5f9;
  color: #64748b;
}
.home-rec-actions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

/* ---------------- Custom Workflow Builder ---------------- */
.wf-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #94a3b8; margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; }
.wf-section-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; }
.wf-count-pill { text-transform: none; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: #4338ca; }
.wf-count-pill.is-full { background: #fef3c7; color: #b45309; }
.wf-preset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wf-preset-chip { border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: #0f172a; }
.wf-preset-chip:hover { border-color: #94a3b8; }
.wf-preset-chip.active { background: #0f172a; color: #fff; border-color: #0f172a; }
.wf-tool-groups { max-height: 300px; overflow-y: auto; border: 1px solid #e2e8f0; border-radius: 12px; }
.wf-group { border-bottom: 1px solid #f1f5f9; }
.wf-group:last-child { border-bottom: 0; }
.wf-group > summary { list-style: none; cursor: pointer; padding: 10px 14px; font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.wf-group > summary::-webkit-details-marker { display: none; }
.wf-group > summary::before { content: "▸"; margin-right: 8px; color: #94a3b8; transition: transform .15s; display: inline-block; }
.wf-group[open] > summary::before { transform: rotate(90deg); }
.wf-group-title { flex: 1; }
.wf-group-count { font-size: 11px; font-weight: 700; color: #64748b; }
.wf-group-count.has-sel { color: #4338ca; }
.wf-tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 12px; padding: 0 14px 12px; }
.wf-tool-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.wf-tool-item:hover { background: #f8fafc; }
.wf-tool-item input { accent-color: #0f172a; cursor: pointer; }
.wf-tool-item.is-disabled { opacity: .4; cursor: not-allowed; }
.wf-tool-item.is-disabled input { cursor: not-allowed; }
.wf-saved-list { display: flex; flex-direction: column; gap: 6px; }
.wf-saved-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13px; }
.wf-saved-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-saved-meta { font-size: 11px; color: #64748b; white-space: nowrap; }
.wf-save-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.wf-save-row .bv-input { flex: 1; }
#wfRunBtn:disabled, #wfSaveAsBtn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) { .wf-tool-grid { grid-template-columns: 1fr; } }

/* ---------------- 4. Clips & Source More Menu ---------------- */
.clips-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 10px;
}
.clips-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.clips-refresh-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.clips-refresh-btn:hover {
  color: var(--ink);
  background: var(--soft-2);
}
.clips-sub-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .05em;
}
.clips-sub-badge {
  font-size: 10.5px;
  font-weight: 700;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.clips-state-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.clips-state-card.is-working {
  background: #f8fbff;
  border-color: #dbeafe;
}
.clips-state-card.is-error {
  background: #fff7f7;
  border-color: #fecaca;
}
.clips-state-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.clips-state-desc {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.clips-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.clips-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.clip-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  transition: all .15s;
}
.clip-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}
.clip-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.clip-time-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.clip-score-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #ea580c;
  background: #ffedd5;
  padding: 1px 6px;
  border-radius: 4px;
}
.clip-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}
.clip-quote {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 10px;
}
.clip-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Source Dropdown Menu (SRT / VTT / TXT) */
.source-more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.12);
  min-width: 210px;
  z-index: 50;
  overflow: hidden;
  padding: 4px;
}
.source-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  border-radius: 6px;
  text-align: left;
  transition: background .12s;
}
.source-menu-item:hover {
  background: #f1f5f9;
  color: var(--ink);
}

/* Published Pages List */
.published-pages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-item-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all .2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.page-item-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}
.page-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 20px;
}
.page-item-info {
  flex: 1;
  min-width: 0;
}
.page-item-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 3px;
  color: #0f172a;
}
.page-item-info p {
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 5px;
}
.page-item-url {
  font-size: 12.5px;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.page-item-url:hover {
  text-decoration: underline;
}
.page-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@keyframes pulseCardGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    border-color: #10b981;
    background-color: #f0fdf4;
    transform: scale(1);
  }
  30% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    background-color: #f0fdf4;
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    border-color: #e2e8f0;
    background-color: #fff;
    transform: scale(1);
  }
}
.page-item-card.page-card-highlight {
  animation: pulseCardGlow 2s ease-out;
}

/* Search Palette Item */
.palette-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
}
.palette-result-item:hover, .palette-result-item.selected {
  background: #f1f5f9;
}
.palette-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #475569;
}
.palette-item-text {
  flex: 1;
}
.palette-item-text strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.palette-item-text span {
  font-size: 11px;
  color: var(--muted);
}
.palette-item-badge {
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
  .top-actions .btn-preview { display: inline-flex; }
  .kanban-board { grid-template-columns: repeat(2, 1fr); }
  .home-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  :root { --source-w: 320px; }
  .btn kbd { display: none; }
  .top-actions .btn.ghost { display: inline-flex; }
}
@media (max-width: 980px) {
  .content { grid-template-columns: 1fr; }
  .content .source { position: fixed; top: 56px; right: 0; bottom: 0; width: min(92vw, 380px); box-shadow: var(--shadow-lg); z-index: 30; transform: translateX(0); transition: transform .2s ease; }
  body.source-hidden .content .source { transform: translateX(100%); }
  .content.source-hidden { grid-template-columns: 1fr; }
  .source-inner { min-width: 0; }
  .panel-toggle { right: 12px; top: 68px; }
  body:not(.source-hidden) .panel-toggle { right: calc(min(92vw, 380px) - 14px); }
  #navTopPipeline, #navTopMagicChat, #navTopStudio, #navTopEditRecording { display: none !important; }
  .tm-steps-grid { grid-template-columns: 1fr; }
  .tm-highlights-interactive { grid-template-columns: 1fr !important; }
  .tm-privacy-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .tm-final-cta-box { grid-template-columns: 1fr !important; padding: 28px 22px; }
  .mega-footer-top { grid-template-columns: 1fr !important; gap: 28px; }
  .tm-pricing-reviews-grid, .tm-reviews-grid { flex-direction: column; }
  .tm-explore-grid { grid-template-columns: 1fr; gap: 24px; }
  .kanban-board { grid-template-columns: 1fr; }
  .home-metrics-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(86vw, 304px); z-index: 60; transform: translateX(-105%); transition: transform .2s ease; box-shadow: none; visibility: hidden; }
  body.menu-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-lg); visibility: visible; }
  .account-pop.tm-cosmic-pop { left: 10px !important; right: 10px !important; width: auto !important; max-width: calc(100% - 20px) !important; bottom: 62px !important; }
  .only-mobile { display: inline-grid; }
  .topbar { padding: 0 12px; gap: 8px; overflow: hidden; }
  .crumbs { min-width: 0; flex: 1; overflow: hidden; }
  .crumbs span:not(strong):not(.sep) { display: none; }
  .crumbs .sep { display: none; }
  #crumbTitle { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .top-actions { flex-shrink: 0; gap: 6px; align-items: center; }
  .top-actions .btn.ghost,
  #shareBtn,
  #trialPillBadge { display: none !important; }
  #importBtn { height: 34px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
  #promoPillBtn { display: inline-flex !important; align-items: center !important; height: 34px !important; padding: 0 10px !important; gap: 6px !important; border-radius: 10px !important; flex-shrink: 0 !important; }
  #promoPillBtn .tm-promo-gift-svg { width: 16px !important; height: 16px !important; }
  #promoPillBtn .tm-promo-title { font-size: 11.5px !important; line-height: 1.1 !important; white-space: nowrap !important; }
  #promoPillBtn .tm-promo-sub { display: none !important; }
  .center { padding: 18px 14px 56px; }
  .card:not(.open):hover .card-actions { display: none !important; }
  .view-header-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .home-rec-header { flex-wrap: wrap; }
  .home-rec-actions { flex-wrap: wrap; }
  .page-item-card { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; padding: 16px !important; }
  .page-item-card > div:first-child,
  .page-item-left,
  .page-item-info { width: 100% !important; min-width: 0 !important; }
  .page-item-actions { width: 100% !important; flex-wrap: wrap !important; justify-content: flex-start !important; gap: 8px !important; padding-top: 10px; border-top: 1px solid #f1f5f9; }
  .modal-backdrop { padding: 14px; }
  .modal-card:not(.tm-landing-sheet):not(.tm-cashier-card) { max-width: 100% !important; padding: 18px; max-height: 92vh; overflow-y: auto; }
  .import-modal-card { padding: 0 !important; border-radius: 20px !important; }
  .import-modal-card .modal-mac-head { padding: 14px 16px 4px !important; }
  .import-modal-card .modal-content { padding: 4px 16px 18px !important; }
  .import-modal-card .modal-title { font-size: 19px !important; margin-bottom: 6px !important; }
  .import-modal-card .input-row { flex-direction: row !important; align-items: stretch !important; gap: 8px !important; }
  .import-modal-card .input-yt-box { flex: 1 !important; min-width: 0 !important; height: 44px !important; padding: 0 11px !important; display: flex !important; align-items: center !important; }
  .import-modal-card .input-yt-box input { width: 100% !important; min-width: 0 !important; height: 100% !important; font-size: 14px !important; }
  .import-modal-card .submit-btn { width: auto !important; flex-shrink: 0 !important; height: 44px !important; padding: 0 18px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
  .import-modal-card .import-divider { margin: 14px 0 10px !important; }
  .import-modal-card .audio-dropzone { padding: 12px !important; }
  .api-keys-card { padding: 0 !important; }
  .api-card-head, .api-card-body, .api-card-foot { padding-left: 16px !important; padding-right: 16px !important; }
  .api-group-head { flex-direction: column !important; align-items: stretch !important; gap: 9px !important; }
  .api-group-head label { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; width: 100% !important; }
  .api-group-head .tag-free { margin-left: 0 !important; flex-shrink: 0 !important; }
  .api-group-head .api-link { display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; padding: 8px 12px !important; border-radius: 10px !important; font-size: 12.5px !important; text-align: center !important; }
  .api-test-bar { flex-wrap: wrap !important; gap: 8px !important; }
  .api-guide-link { margin-left: 0 !important; max-width: 100%; }
  .api-card-foot { flex-wrap: wrap !important; gap: 8px !important; }
  .magic-chat-container { height: calc(100vh - 235px) !important; min-height: 440px; border-radius: 14px; }
  .magic-chat-stream { padding: 14px 10px !important; gap: 14px !important; }
  .chat-msg { max-width: 96% !important; gap: 8px !important; }
  .chat-msg-avatar { width: 26px !important; height: 26px !important; font-size: 12px !important; flex-shrink: 0; }
  .chat-msg-body { padding: 11px 13px !important; font-size: 13px !important; min-width: 0; overflow-wrap: anywhere; }
  .chat-msg-actions { gap: 6px !important; }
  .magic-chat-input-wrap { padding: 10px !important; }
  .magic-chat-form { gap: 8px !important; }
  .magic-chat-input { min-width: 0 !important; padding: 9px 11px !important; font-size: 14px !important; }
  .magic-chat-meta { flex-direction: column !important; gap: 2px !important; font-size: 10.5px !important; }
  .pricing-grid,
  .tm-pricing-grid,
  .tm-pricing-grid.tm-two-col { grid-template-columns: 1fr !important; gap: 16px; }
  .pricing-content,
  .tm-pricing-content.tm-cashier-body { padding: 8px 16px 24px; }
  .tm-pricing-aura { padding: 18px 16px 16px; }
  .tm-pricing-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tm-compare-head-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .tm-guarantee-row, .tm-links-row { flex-direction: column; align-items: center; gap: 8px; }
  .modal-backdrop.tm-landing-backdrop:not([hidden]) { display: block !important; padding: 0 !important; background: rgba(15, 23, 42, 0.58) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
  .modal-card.tm-landing-sheet { margin: 76px 0 0 !important; width: 100% !important; max-width: 100% !important; max-height: none !important; min-height: calc(100vh - 76px) !important; border-radius: 22px 22px 0 0 !important; overflow: visible !important; border: none !important; }
  .tm-sticky-banner { position: sticky !important; top: 0 !important; border-radius: 22px 22px 0 0; padding: 6px 12px !important; }
  .modal-backdrop.tm-landing-backdrop.is-scrolled .tm-sticky-banner { border-radius: 0 !important; }
  .tm-sticky-banner .tm-banner-inner { flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; gap: 3px !important; padding: 0 !important; font-size: 12px !important; line-height: 1.2 !important; }
  .tm-banner-line1, .tm-banner-line2 { gap: 6px !important; flex-wrap: nowrap !important; }
  .tm-banner-pill { padding: 1.5px 7px !important; font-size: 10.5px !important; white-space: nowrap !important; }
  .tm-banner-text, .tm-banner-sub { font-size: 12px !important; white-space: nowrap !important; }
  .tm-banner-cta { padding: 2px 9px !important; font-size: 11px !important; white-space: nowrap !important; }
  .tm-hero-section, .tm-section, .tm-dark-section, .tm-final-cta-section { padding-left: 16px; padding-right: 16px; }
  .tm-hero-h1 { font-size: 27px; line-height: 1.18; }
  .tm-section-title { font-size: 23px; line-height: 1.24; }
  .tm-laurels-row, .tm-laurels-row.hero-laurels { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .tm-why-grid, .tm-bento-grid, .calc-results-grid { grid-template-columns: 1fr !important; }
  .bento-card.bento-wide { grid-column: span 1 !important; }
  .tm-vs-card-table { overflow-x: visible !important; }
  .tm-vs-row.tm-vs-header { display: none !important; }
  .tm-vs-row { min-width: 0 !important; display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0 !important; }
  .tm-vs-row .col-feature { grid-column: 1 / -1 !important; padding: 10px 14px 6px !important; font-size: 11.5px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.04em; color: #94a3b8 !important; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .tm-vs-row .col-highlight,
  .tm-vs-row .col-competitor { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: flex-start !important; gap: 6px !important; padding: 11px 12px !important; font-size: 12px !important; line-height: 1.4 !important; border-radius: 0 !important; }
  .tm-vs-row .col-highlight { border-right: 1px solid rgba(255, 255, 255, 0.08); }
  .tm-vs-row .col-highlight::before { content: "✦ VastClip"; flex-basis: 100%; font-size: 10.5px; font-weight: 800; color: #93c5fd; margin-bottom: 2px; }
  .tm-vs-row .col-competitor::before { content: "Castmagic / Descript"; flex-basis: 100%; font-size: 10.5px; font-weight: 700; color: #94a3b8; margin-bottom: 2px; }
  .tm-vs-row .col-highlight > span,
  .tm-vs-row .col-competitor > span:last-child { flex: 1; min-width: 0; }
  .tm-trustpilot { flex-wrap: nowrap !important; white-space: nowrap !important; gap: 6px !important; padding: 5px 10px !important; font-size: 11px !important; max-width: 100%; }
  .tm-tp-stars { font-size: 10px !important; padding: 2px 5px !important; white-space: nowrap !important; flex-shrink: 0; }
  .tm-tp-score, .tm-tp-logo { font-size: 11px !important; white-space: nowrap !important; display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 18px; }
  .mega-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .onboarding-content { padding: 8px 18px 24px; }
  .promo-text { display: none; }
  .tm-hero-cta-row { flex-direction: column; align-items: center; }
  #landingHeroBuyBtn { width: auto !important; min-width: 224px; padding: 13px 28px !important; }
  .tm-hero-try-wrap { width: 100%; }
  .tm-hero-try-wrap button,
  .tm-hero-cta-ghost { width: 100%; justify-content: center !important; text-align: center !important; }
  .tm-final-cta-box { grid-template-columns: minmax(0, 1fr) !important; padding: 24px 18px !important; gap: 20px !important; }
  .final-cta-left, .final-cta-right { min-width: 0; width: 100%; }
  .final-cta-h2 { font-size: 22px; line-height: 1.24; }
  .final-cta-btns { flex-direction: column; align-items: stretch; }
  .final-cta-btns button { width: 100%; justify-content: center; text-align: center; }
  .final-cta-right { padding: 16px !important; }
  .newsletter-form { flex-direction: column; align-items: stretch; gap: 8px; }
  .newsletter-input { min-width: 0; width: 100%; }
  .newsletter-btn { width: 100%; padding: 10px 14px; justify-content: center; }
  .tm-mega-footer { border-radius: 0 !important; }
  .tm-hero-section .tm-brand .tm-brand-logo,
  .tm-mega-footer .tm-brand .tm-brand-logo { width: 34px !important; height: 34px !important; border-radius: 9px !important; }
  .tm-hero-section .tm-brand .tm-brand-name,
  .tm-mega-footer .tm-brand .tm-brand-name { font-size: 24px !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


/* ================= LOCAL AUDIO GEMINI TRANSCRIPTION CARD ================= */
.transcribe-status-card {
  padding: 22px 18px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  text-align: center;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}
.transcribe-status-card.error {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
}
.transcribe-status-card.needs-key {
  border-color: #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.transcribe-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin 0.8s linear infinite;
}
.transcribe-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 5px;
}
.transcribe-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 14px;
}
.transcribe-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.transcribe-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 9px;
  border-radius: 999px;
  margin-top: 6px;
}
