:root {
  --bg: #071412;
  --bg-2: #0d2420;
  --panel: rgba(16, 42, 37, 0.72);
  --panel-solid: #12332d;
  --line: rgba(168, 230, 207, 0.16);
  --text: #e8f7f1;
  --muted: #9bb8af;
  --accent: #2fe0a8;
  --accent-2: #f0b429;
  --danger: #ff7b72;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: "Sora", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(47, 224, 168, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(240, 180, 41, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #0a1c19 45%, #081614 100%);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7ff0c8; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }

.ytb-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.ytb-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 20, 18, 0.72);
  border-bottom: 1px solid var(--line);
}
.ytb-nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}
.ytb-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}
.ytb-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2fe0a8, #149e74);
  color: #042019;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.ytb-brand-text { display: grid; line-height: 1.1; }
.ytb-brand-text strong { font-size: 1.05rem; }
.ytb-brand-text small { color: var(--muted); font-size: 0.72rem; }
.ytb-nav-links {
  display: flex;
  gap: 1.1rem;
  margin-left: 1.5rem;
  flex: 1;
}
.ytb-nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}
.ytb-nav-links a.is-active,
.ytb-nav-links a:hover { color: var(--text); }
.ytb-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ytb-link { color: var(--muted); font-size: 0.92rem; }
.ytb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  background: linear-gradient(135deg, var(--accent), #19b881);
  color: #042019;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(47, 224, 168, 0.22);
}
.ytb-btn:hover { filter: brightness(1.05); color: #042019; }
.ytb-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ytb-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.ytb-btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.ytb-btn-wide { width: 100%; }

/* Hero */
.ytb-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}
.ytb-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.ytb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-2);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.ytb-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.02;
  margin: 0.7rem 0 1rem;
  letter-spacing: -0.03em;
}
.ytb-hero h1 span {
  background: linear-gradient(90deg, var(--accent), #9ef5d5 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ytb-lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 36rem;
  margin: 0 0 1.5rem;
}
.ytb-url-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  padding: 0.55rem;
  border-radius: 999px;
  background: rgba(8, 28, 24, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ytb-url-form input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0.7rem 1rem;
  min-width: 0;
}
.ytb-url-form input::placeholder { color: #6f8f86; }
.ytb-hero-note {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.ytb-visual {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(47,224,168,0.16), transparent 45%),
    linear-gradient(20deg, rgba(240,180,41,0.12), transparent 40%),
    var(--panel-solid);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: ytb-rise 0.9s ease both;
}
.ytb-visual-card {
  position: absolute;
  inset: auto 1.2rem 1.2rem 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(5, 18, 16, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.ytb-visual-card strong { display: block; margin-bottom: 0.35rem; }
.ytb-visual-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.ytb-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
  animation: ytb-float 7s ease-in-out infinite;
}
.ytb-orb-a { top: 18%; left: 16%; background: #2fe0a8; }
.ytb-orb-b { top: 42%; right: 12%; background: #f0b429; animation-delay: -2.5s; }

@keyframes ytb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes ytb-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.ytb-section { padding: 4.5rem 0; }
.ytb-section h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 0.7rem;
  letter-spacing: -0.02em;
}
.ytb-section-lead {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}
.ytb-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ytb-feature {
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  animation: ytb-rise 0.8s ease both;
}
.ytb-feature:nth-child(2) { animation-delay: 0.08s; }
.ytb-feature:nth-child(3) { animation-delay: 0.16s; }
.ytb-feature h3 { margin: 0 0 0.55rem; font-size: 1.1rem; }
.ytb-feature p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.95rem; }

.ytb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ytb-price-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(10, 30, 26, 0.88);
}
.ytb-price-card.is-popular {
  border-color: rgba(47, 224, 168, 0.45);
  box-shadow: 0 0 0 1px rgba(47, 224, 168, 0.18), var(--shadow);
}
.ytb-price-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.6rem;
}
.ytb-price {
  margin: 0.8rem 0 0.35rem;
  font-size: 2.2rem;
  font-weight: 700;
}
.ytb-price span { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.ytb-price-card p { color: var(--muted); margin: 0 0 1rem; min-height: 2.6rem; }
.ytb-price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.ytb-price-card li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.94rem;
}
.ytb-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-2);
  color: #2a1c00;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.ytb-paypal-slot { min-height: 48px; margin-top: 0.5rem; }

.ytb-faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.7rem;
  background: rgba(10, 30, 26, 0.55);
}
.ytb-faq summary {
  cursor: pointer;
  font-weight: 600;
}
.ytb-faq p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0.7rem 0 0;
}

.ytb-cta {
  margin: 1rem 0 4rem;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(47,224,168,0.14), rgba(240,180,41,0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ytb-cta h2 { margin: 0 0 0.35rem; font-family: var(--display); }
.ytb-cta p { margin: 0; color: var(--muted); }

.ytb-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
  background: rgba(0,0,0,0.18);
}
.ytb-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}
.ytb-footer p { color: var(--muted); max-width: 28rem; line-height: 1.55; }
.ytb-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ytb-footer h3 {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ytb-footer-cols a {
  display: block;
  color: var(--text);
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}
.ytb-footer-copy {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Auth / account */
.ytb-auth {
  width: min(460px, calc(100% - 2rem));
  margin: 3rem auto 4rem;
  padding: 1.6rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(10, 30, 26, 0.9);
  box-shadow: var(--shadow);
}
.ytb-auth h1 {
  font-family: var(--display);
  margin: 0 0 0.4rem;
  font-size: 2rem;
}
.ytb-auth .ytb-lead { margin-bottom: 1.2rem; }
.ytb-field { margin-bottom: 0.9rem; }
.ytb-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.ytb-field input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #081916;
  color: var(--text);
  padding: 0.8rem 0.9rem;
}
.ytb-alert {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
}
.ytb-alert-error {
  background: rgba(255, 123, 114, 0.12);
  border: 1px solid rgba(255, 123, 114, 0.35);
  color: #ffd2ce;
}
.ytb-alert-ok {
  background: rgba(47, 224, 168, 0.12);
  border: 1px solid rgba(47, 224, 168, 0.35);
  color: #c9ffe9;
}

.ytb-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0 3rem;
}
.ytb-panel {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(10, 30, 26, 0.8);
}
.ytb-panel h2 { margin: 0 0 0.8rem; font-size: 1.15rem; }
.ytb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ytb-table th, .ytb-table td {
  text-align: left;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.ytb-table th { color: var(--muted); font-weight: 500; }

/* Chat workspace */
.ytb-chat-page { padding-bottom: 2rem; }
.ytb-chat-hero {
  padding: 2rem 0 1rem;
}
.ytb-chat-hero.is-compact h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.ytb-chat-hero.is-compact .ytb-lead { display: none; }
.ytb-chat-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 0.5rem;
}
.ytb-status {
  margin-top: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.ytb-status.is-error {
  border-color: rgba(255,123,114,0.4);
  background: rgba(255,123,114,0.1);
}
.ytb-status.is-loading { color: var(--accent); }
.ytb-grid {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  align-items: start;
}
.ytb-grid.is-open { display: grid; }
.ytb-video-title {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}
.ytb-player-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16 / 9;
}
.ytb-player-wrap iframe,
.ytb-player-wrap video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.ytb-watch-platform {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.ytb-transcript-panel {
  margin-top: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 30, 26, 0.75);
  overflow: hidden;
}
.ytb-transcript-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.ytb-transcript-list {
  max-height: 280px;
  overflow: auto;
}
.ytb-cue {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(168, 230, 207, 0.08);
  background: transparent;
  color: var(--text);
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}
.ytb-cue:hover { background: rgba(47, 224, 168, 0.08); }
.ytb-cue-time { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.ytb-workspace {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 30, 26, 0.85);
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.ytb-chat-scroll {
  flex: 1;
  overflow: auto;
  padding: 1rem;
}
.ytb-assistant-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 14px;
  background: rgba(47, 224, 168, 0.08);
  border: 1px solid rgba(47, 224, 168, 0.18);
  margin-bottom: 0.8rem;
}
.ytb-assistant-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #042019;
  font-weight: 700;
  font-size: 0.8rem;
}
.ytb-assistant-label {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}
.ytb-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}
.ytb-suggestion {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
}
.ytb-suggestion:hover { border-color: var(--accent); }
.ytb-msg {
  margin-bottom: 0.7rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.ytb-msg-user {
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.22);
  margin-left: 1.5rem;
}
.ytb-msg-assistant {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  margin-right: 1.5rem;
}
.ytb-msg-thinking { opacity: 0.7; font-style: italic; }
.ytb-ts {
  border: 0;
  background: rgba(47, 224, 168, 0.16);
  color: var(--accent);
  border-radius: 8px;
  padding: 0.1rem 0.35rem;
  cursor: pointer;
  font: inherit;
}
.ytb-composer {
  border-top: 1px solid var(--line);
  padding: 0.85rem;
}
.ytb-question {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #081916;
  color: var(--text);
  padding: 0.75rem 0.85rem;
}
.ytb-composer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
}
.ytb-mode-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.ytb-mode {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}
.ytb-mode.is-active {
  background: rgba(47, 224, 168, 0.16);
  color: var(--text);
}
.ytb-quota-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.55rem;
}

.ytb-legal {
  width: min(760px, calc(100% - 2rem));
  margin: 2.5rem auto 4rem;
  line-height: 1.7;
  color: var(--muted);
}
.ytb-legal h1 {
  color: var(--text);
  font-family: var(--display);
}
.ytb-legal h2 {
  color: var(--text);
  margin-top: 1.6rem;
  font-size: 1.15rem;
}

@media (max-width: 900px) {
  .ytb-hero-grid,
  .ytb-features,
  .ytb-pricing-grid,
  .ytb-grid,
  .ytb-account-grid,
  .ytb-footer-inner,
  .ytb-footer-cols {
    grid-template-columns: 1fr;
  }
  .ytb-nav-links { display: none; }
  .ytb-url-form {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .ytb-visual { min-height: 260px; }
  .ytb-workspace { min-height: 480px; }
}
