:root {
  --bg: #07070c;
  --panel: rgba(17, 17, 34, 0.86);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f8f7ff;
  --muted: #a6a6c8;
  --accent: #a855f7;
  --danger: #f87171;
  --success: #4ade80;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  --glow: 0 0 0 1px rgba(168, 85, 247, 0.22), 0 0 24px rgba(168, 85, 247, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.14), transparent 28%),
    linear-gradient(180deg, #09090f 0%, #07070c 100%);
}

body {
  padding: 24px;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  max-width: 1380px;
  margin: 0 auto;
  position: relative;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
  opacity: 0.4;
}

.orb-a {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -60px;
  background: rgba(168, 85, 247, 0.18);
}

.orb-b {
  width: 280px;
  height: 280px;
  right: -60px;
  bottom: 8%;
  background: rgba(124, 58, 237, 0.16);
}

.topbar,
.hero-card,
.generator-panel,
.column,
.chat-sidebar,
.chat-panel,
.tool-card,
.mini-card,
.price-card {
  background: linear-gradient(180deg, rgba(18, 18, 34, 0.92) 0%, rgba(12, 12, 24, 0.96) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px;
  border-radius: 24px;
  margin-bottom: 22px;
}

.topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  font-weight: 900;
  color: #fff;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.28);
}

.brand h1 {
  margin: 0;
  font-size: 1.2rem;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.top-nav,
.auth-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.user-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.24);
  color: #e9d5ff;
  font-size: 0.88rem;
  font-weight: 700;
}

.lang-select {
  width: auto;
  padding: 10px 12px;
  border-radius: 999px;
  background: #111122;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8e8ff;
  font-weight: 700;
  cursor: pointer;
}

.nav-btn,
.style-btn,
.mode-btn,
.ghost-btn,
.auth-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111122;
  color: #e8e8ff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.nav-btn:hover,
.nav-btn.active,
.style-btn:hover,
.style-btn.active,
.mode-btn:hover,
.mode-btn.active,
.ghost-btn:hover,
.auth-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.28);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.12);
  background: rgba(168, 85, 247, 0.14);
}

.nav-btn.ai-nav-btn {
  border-color: rgba(192, 132, 252, 0.4);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(168, 85, 247, 0.18));
  animation: navGlow 2.6s ease-in-out infinite;
}

@keyframes navGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.15); }
  50% { box-shadow: 0 0 22px rgba(192, 132, 252, 0.45); }
}

.auth-btn.primary,
#generateBtn,
#chatbotSendBtn,
#rateChannelBtn,
#growthTipsBtn,
#subscribeNowBtn,
#generateBlueprintBtn,
#generateVideoBtn,
#generateHfVideoBtn,
.subscribe-primary {
  border: 1px solid rgba(200, 160, 255, 0.18);
  border-radius: 16px;
  padding: 14px 20px;
  min-width: 132px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #c084fc 100%);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.28);
}

.auth-btn.primary:hover,
#generateBtn:hover,
#chatbotSendBtn:hover,
#rateChannelBtn:hover,
#growthTipsBtn:hover,
#subscribeNowBtn:hover,
#generateBlueprintBtn:hover,
#generateVideoBtn:hover:not(:disabled),
#generateHfVideoBtn:hover:not(:disabled),
.subscribe-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 36px rgba(124, 58, 237, 0.35), 0 0 22px rgba(168, 85, 247, 0.22);
}

#generateVideoBtn:disabled,
#generateHfVideoBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hidden {
  display: none !important;
}

.tabs-wrap {
  position: relative;
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin-bottom: 24px;
}

.hero-card,
.generator-panel,
.column,
.chat-sidebar,
.chat-panel,
.tool-card,
.mini-card,
.price-card {
  border-radius: 24px;
  padding: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #c084fc;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-card h2,
.page-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.hero-copy,
.page-head p {
  color: var(--muted);
  line-height: 1.65;
}

.stats-row,
.quick-info {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.stats-row {
  grid-template-columns: repeat(2, 1fr);
}

.quick-info {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card,
.quick-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.12);
}

.stat-label,
.quick-card span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.stat-card strong,
.quick-card strong {
  color: #fff;
  font-size: 1.05rem;
}

.input-label,
.style-title {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ecebff;
}

.input-row {
  display: flex;
  gap: 12px;
}

.custom-niche-row {
  margin-top: 12px;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0d18;
  color: var(--text);
  padding: 15px 16px;
  border-radius: 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input::placeholder {
  color: #7f7fa7;
}

input:focus,
select:focus {
  border-color: rgba(168, 85, 247, 0.55);
  background: #10101d;
  box-shadow: var(--glow);
}

.style-picker {
  margin-top: 18px;
}

.style-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.style-warning {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.column-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.column-head h3,
.chat-sidebar h3 {
  margin: 0;
}

.top-pick-chip,
.chat-mode-chip {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.24);
  color: #e9d5ff;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.cards {
  display: grid;
  gap: 16px;
}

.idea-card {
  background: linear-gradient(180deg, rgba(19, 19, 36, 0.96) 0%, rgba(14, 14, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.idea-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.22);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35), 0 0 26px rgba(168, 85, 247, 0.12);
}

.idea-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.idea-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.score-badge {
  min-width: 64px;
  text-align: center;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800;
  color: #fff;
}

.score-high {
  background: linear-gradient(135deg, #9333ea, #a855f7);
}

.score-mid {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
}

.score-low {
  background: linear-gradient(135deg, #3f3f5d, #5b5b7a);
}

.idea-block {
  margin-bottom: 12px;
}

.idea-label {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c084fc;
}

.idea-text {
  margin: 0;
  color: #d8d8ea;
  line-height: 1.55;
}

.script-flow,
.tool-output,
.sidebar-box {
  padding: 14px;
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.12);
  white-space: pre-line;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d6ccff;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.empty-state {
  padding: 34px 18px;
  border-radius: 20px;
  border: 1px dashed rgba(168, 85, 247, 0.18);
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.chat-layout,
.tool-layout {
  display: grid;
  gap: 24px;
}

.chat-layout {
  grid-template-columns: 320px 1fr;
}

.tool-layout {
  grid-template-columns: 1.1fr 0.6fr;
}

.mode-list,
.side-stack {
  display: grid;
  gap: 12px;
}

.sidebar-box h4,
.mini-card h3 {
  margin: 0 0 10px;
}

.sidebar-box ul,
.price-card ul {
  margin: 0;
  padding-left: 18px;
  color: #d8d8ea;
  line-height: 1.75;
}

.chat-panel {
  min-height: 560px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
}

.chat-messages {
  overflow: auto;
  display: grid;
  gap: 14px;
  align-content: start;
}

.message {
  display: flex;
}

.message.user {
  justify-content: flex-end;
}

.bubble {
  max-width: 78%;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.6;
  white-space: pre-line;
}

.message.ai .bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ebe9ff;
}

.message.user .bubble {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #f5efff;
}

.bubble-source-tag {
  margin-top: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.tool-card.large {
  min-height: 340px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.price-card.featured {
  border-color: rgba(168, 85, 247, 0.24);
  box-shadow: var(--shadow), 0 0 28px rgba(168, 85, 247, 0.12);
}

.plan-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.24);
  color: #e9d5ff;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.paypal-wrap {
  margin-top: 14px;
  min-height: 44px;
}

.paypal-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---- AI Creation banner inside Shorts column ---- */
.ai-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(192, 132, 252, 0.1));
  border: 1px solid rgba(192, 132, 252, 0.35);
  animation: bannerPulse 3s ease-in-out infinite;
}

@keyframes bannerPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(168, 85, 247, 0.12); }
  50% { box-shadow: 0 0 30px rgba(192, 132, 252, 0.32); }
}

.ai-banner-text {
  display: grid;
  gap: 4px;
}

.ai-banner-text strong {
  color: #f3e8ff;
  font-size: 1rem;
}

.ai-banner-text span {
  color: #d8c7f7;
  font-size: 0.85rem;
}

.ai-banner-btn {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  cursor: pointer;
}

.create-ai-btn {
  margin-top: 8px;
  width: 100%;
  border: 1px solid rgba(192, 132, 252, 0.4);
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.create-ai-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.34);
}

/* ---- AI Studio tab ---- */
.ai-studio-glow {
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.6), rgba(192, 132, 252, 0.25), rgba(124, 58, 237, 0.6));
  background-size: 200% 200%;
  animation: studioGradient 6s ease infinite;
  margin-top: 4px;
}

@keyframes studioGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ai-studio-panel {
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(18, 18, 34, 0.97) 0%, rgba(10, 10, 20, 0.99) 100%);
}

.blueprint-output {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.blueprint-section {
  padding: 16px;
  border-radius: 18px;
  background: rgba(168, 85, 247, 0.07);
  border: 1px solid rgba(168, 85, 247, 0.16);
}

.blueprint-section h4 {
  margin: 0 0 8px;
  color: #e9d5ff;
  font-size: 0.95rem;
}

.blueprint-section p,
.blueprint-section li {
  margin: 0;
  color: #d8d8ea;
  line-height: 1.6;
}

.blueprint-section ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.blueprint-disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  border-style: dashed;
}

.video-preview-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
}

.video-preview-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.video-status {
  min-height: 18px;
  color: #c084fc;
  font-size: 0.88rem;
  font-weight: 700;
}

.ai-video-canvas {
  width: 220px;
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.ai-video-player {
  width: 220px;
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.video-download-link {
  display: inline-block;
  width: fit-content;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #16a34a, #4ade80);
  color: #06210f;
  font-weight: 800;
  text-decoration: none;
}

/* ---- Hugging Face viral video pipeline section ---- */
.hf-video-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed rgba(192, 132, 252, 0.3);
  display: grid;
  gap: 12px;
}

.subscribe-modal,
.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.subscribe-modal.open,
.auth-modal.open {
  display: block;
}

.subscribe-backdrop,
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 8, 0.72);
  backdrop-filter: blur(6px);
}

.subscribe-panel,
.auth-panel {
  position: relative;
  width: min(92vw, 480px);
  margin: 10vh auto 0;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 18, 34, 0.98) 0%, rgba(10, 10, 20, 1) 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 28px rgba(168, 85, 247, 0.14);
  max-height: 88vh;
  overflow-y: auto;
}

.settings-panel {
  width: min(92vw, 560px);
}

.key-input-row {
  display: flex;
  gap: 10px;
}

.key-toggle-btn {
  flex-shrink: 0;
  min-width: 52px;
  padding: 0 14px;
}

.settings-hint {
  margin: -4px 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.subscribe-close,
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111122;
  color: #fff;
  cursor: pointer;
}

.subscribe-badge {
  margin: 0 0 10px;
  color: #c084fc;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.subscribe-panel h3,
.auth-panel h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.subscribe-text {
  margin: 0 0 18px;
  color: #b5b2d6;
  line-height: 1.6;
}

.subscribe-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe-secondary {
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111122;
  color: #f3f0ff;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-message.success {
  color: var(--success);
}

@media (max-width: 1100px) {
  .hero-grid,
  .results-grid,
  .chat-layout,
  .tool-layout,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .page-head,
  .column-head,
  .topbar,
  .topbar-right {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  body {
    padding: 14px;
  }

  .input-row,
  .chat-compose,
  .tool-grid,
  .stats-row,
  .quick-info {
    grid-template-columns: 1fr;
    display: grid;
  }

  .top-nav,
  .style-buttons,
  .auth-bar {
    width: 100%;
  }

  #generateBtn,
  #chatbotSendBtn,
  #rateChannelBtn,
  #growthTipsBtn,
  #subscribeNowBtn,
  #generateBlueprintBtn,
  .auth-btn.primary {
    width: 100%;
  }

  .idea-top {
    flex-direction: column;
  }

  .bubble {
    max-width: 100%;
  }

  .ai-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   CREDITS COUNTDOWN + FREE PLAN NOTE
   ========================================================= */

.credits-countdown-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.16);
  font-size: 0.88rem;
  color: #e9d5ff;
}

.credits-countdown-row strong {
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-size: 0.95rem;
}

.countdown-icon {
  font-size: 1rem;
}

.countdown-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.free-plan-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(192, 132, 252, 0.08);
  border: 1px dashed rgba(192, 132, 252, 0.28);
  color: #d8c7f7;
  font-size: 0.86rem;
  line-height: 1.5;
}

/* =========================================================
   LOCKED TOOL BANNERS (shown inside Pro/Premium-gated tabs)
   ========================================================= */

.locked-tool-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(192, 132, 252, 0.1));
  border: 1px solid rgba(192, 132, 252, 0.35);
}

.locked-tool-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.locked-tool-text {
  flex: 1;
  display: grid;
  gap: 4px;
}

.locked-tool-text strong {
  color: #f3e8ff;
  font-size: 1.02rem;
}

.locked-tool-text p {
  margin: 0;
  color: #d8c7f7;
  font-size: 0.88rem;
  line-height: 1.5;
}

.locked-tool-btn {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.locked-tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.34);
}

@media (max-width: 760px) {
  .locked-tool-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   NAV TAB LOCK STATE (dimmed nav buttons for gated tools)
   ========================================================= */

.nav-btn.locked-tab {
  opacity: 0.55;
  filter: grayscale(0.3);
  position: relative;
}

.nav-btn.locked-tab::before {
  content: "🔒 ";
}

.nav-btn.locked-tab:hover {
  opacity: 0.85;
  filter: grayscale(0);
}

/* =========================================================
   PRICING PAGE ENHANCEMENTS
   ========================================================= */

.locked-feature {
  opacity: 0.7;
  font-size: 0.92em;
}

.plan-footnote {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(192, 132, 252, 0.08);
  border: 1px dashed rgba(192, 132, 252, 0.24);
  color: #d8c7f7;
  font-size: 0.82rem;
  line-height: 1.5;
}

.price-card.premium-card {
  position: relative;
  border-color: rgba(250, 204, 21, 0.4);
  background: linear-gradient(180deg, rgba(40, 28, 10, 0.92) 0%, rgba(18, 14, 8, 0.98) 100%);
  box-shadow: var(--shadow), 0 0 34px rgba(250, 204, 21, 0.14);
  overflow: hidden;
}

.price-card.premium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.08), transparent 40%);
  pointer-events: none;
}

.premium-plan-badge {
  background: linear-gradient(135deg, #f59e0b, #facc15);
  border-color: rgba(250, 204, 21, 0.5);
  color: #241a04;
}

.premium-ghost-btn {
  border: 1px solid rgba(250, 204, 21, 0.5);
  border-radius: 16px;
  padding: 14px 20px;
  width: 100%;
  font-weight: 800;
  color: #241a04;
  background: linear-gradient(135deg, #f59e0b 0%, #facc15 60%, #fde68a 100%);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.premium-ghost-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.35);
}

/* =========================================================
   CLANT AI — floating toggle + side panel
   ========================================================= */

.clant-toggle-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.4);
  background: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.4);
  animation: clantPulse 3s ease-in-out infinite;
}

@keyframes clantPulse {
  0%, 100% { box-shadow: 0 16px 34px rgba(124, 58, 237, 0.32); }
  50% { box-shadow: 0 16px 40px rgba(192, 132, 252, 0.5); }
}

.clant-toggle-icon {
  font-size: 1.2rem;
}

.clant-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 8, 0.5);
  backdrop-filter: blur(3px);
  z-index: 996;
  display: none;
}

.clant-panel-backdrop.open {
  display: block;
}

.clant-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(92vw, 400px);
  height: 100vh;
  z-index: 997;
  background: linear-gradient(180deg, rgba(18, 14, 30, 0.98) 0%, rgba(10, 8, 18, 1) 100%);
  border-left: 1px solid rgba(192, 132, 252, 0.24);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: right 0.32s ease;
}

.clant-panel.open {
  right: 0;
}

.clant-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.clant-panel-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.clant-panel-icon {
  font-size: 1.5rem;
}

.clant-panel-title strong {
  display: block;
  color: #f3e8ff;
  font-size: 1.02rem;
}

.clant-panel-subtitle {
  display: block;
  margin-top: 4px;
  color: #d8c7f7;
  font-size: 0.78rem;
  line-height: 1.4;
}

.clant-close-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #171128;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

.clant-locked-state {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 30px;
}

.clant-locked-state .locked-tool-icon {
  font-size: 2.2rem;
}

.clant-locked-state strong {
  color: #f3e8ff;
  font-size: 1.05rem;
}

.clant-locked-state p {
  margin: 0;
  color: #d8c7f7;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 280px;
}

.clant-unlocked-state {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  padding: 16px 20px 20px;
  gap: 12px;
}

.clant-messages {
  overflow-y: auto;
  display: grid;
  gap: 12px;
  align-content: start;
}

.clant-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.clant-compose input {
  padding: 13px 14px;
}

.clant-compose button {
  border: 1px solid rgba(200, 160, 255, 0.18);
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #c084fc 100%);
  cursor: pointer;
}

@media (max-width: 480px) {
  .clant-toggle-label {
    display: none;
  }

  .clant-toggle-btn {
    padding: 14px;
  }
}

/* =========================================================
   TOP-RIGHT CREDITS BADGE
   ========================================================= */

.top-credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(250, 204, 21, 0.32);
  color: #fde68a;
  font-weight: 800;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.top-credits-icon {
  font-size: 1rem;
}

/* =========================================================
   OWNER TESTING PANEL (Pricing tab, owner-only)
   ========================================================= */

.owner-testing-panel {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(16, 185, 129, 0.06));
  border: 1px dashed rgba(74, 222, 128, 0.4);
  display: grid;
  gap: 12px;
}

.owner-testing-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.owner-testing-icon {
  font-size: 1.4rem;
}

.owner-testing-head strong {
  display: block;
  color: #bbf7d0;
  margin-bottom: 4px;
}

.owner-testing-head p {
  margin: 0;
  color: #86efac;
  font-size: 0.85rem;
  line-height: 1.5;
}

.owner-testing-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.owner-test-btn {
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(15, 23, 20, 0.6);
  color: #d1fae5;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.owner-test-btn:hover {
  transform: translateY(-2px);
  background: rgba(74, 222, 128, 0.12);
}

.owner-test-btn.active {
  background: linear-gradient(135deg, #16a34a, #4ade80);
  color: #06210f;
  border-color: transparent;
}

.owner-reset-btn {
  border-color: rgba(250, 204, 21, 0.4);
}

.owner-reset-btn.active {
  background: linear-gradient(135deg, #f59e0b, #facc15);
  color: #241a04;
}

.owner-testing-current {
  margin: 0;
  color: #bbf7d0;
  font-size: 0.85rem;
  font-weight: 700;
}

/* =========================================================
   CONNECTOR results styling
   ========================================================= */

.connector-channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.16);
  margin-bottom: 14px;
}

.connector-channel-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.connector-channel-card h3 {
  margin: 0 0 4px;
}

.connector-video-row {
  display: grid;
  gap: 10px;
}

.connector-video-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.connector-video-thumb {
  width: 84px;
  height: 47px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.connector-suggestion {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.connector-good-title {
  color: #86efac;
  font-weight: 700;
}
/* Creates the container layout for stacked buttons */
.paypal-overlay-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

/* Forces the PayPal buttons to expand and cover your original buttons completely */
.invisible-paypal-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Makes PayPal 100% see-through */
  z-index: 10; /* Keeps it on top so it catches the user click */
  cursor: pointer;
}

/* Fixes an issue where hidden iframe content extends past card boundaries */
.invisible-paypal-btn iframe {
  width: 100% !important;
  height: 100% !important;
}
/* =========================================================================
   VIRALCLANT — ADD-ON PATCH (paste this at the very bottom of styles.css)
   =========================================================================
   Everything here uses NEW class names (vc2- prefix) or targets the #settingsBtn
   that js-addon.js injects at runtime, so nothing below can collide with or
   override any existing rule above it. Pure append — nothing to move.

   Note: .settings-panel, .key-input-row, .key-toggle-btn, and .settings-hint
   are already defined earlier in styles.css, so the Settings modal from
   html-addon.html is already fully styled without needing anything new here.
   This add-on only covers the pieces that are genuinely new: the Connector's
   real-score breakdown bars, and a small accent so the injected Settings
   button doesn't look like an afterthought.
   ========================================================================= */

/* Connector: 5-factor real-score breakdown bars (Momentum, Engagement,
   Consistency of hits, Upload rhythm, Title packaging) */
.vc2-score-breakdown {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.vc2-score-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  font-size: 0.85rem;
  color: #d8d8ea;
  align-items: center;
}

.vc2-score-row span {
  color: #c9c3ea;
  font-weight: 600;
}

.vc2-score-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.12);
}

.vc2-score-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #c084fc);
  transition: width 0.4s ease;
}

.vc2-score-row strong {
  color: #fff;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  justify-self: flex-start;
}

@media (min-width: 480px) {
  .vc2-score-row {
    grid-template-columns: 220px 1fr 36px;
  }
  .vc2-score-row strong {
    justify-self: flex-end;
  }
}

/* Settings button — injected into .auth-bar by js-addon.js. Reuses the base
   .auth-btn look, just with a slightly stronger accent border so it reads as
   an important, new control rather than a throwaway link. */
#settingsBtn {
  border-color: rgba(168, 85, 247, 0.35);
}

#settingsBtn:hover {
  border-color: rgba(192, 132, 252, 0.55);
}

/* Small "using a real saved key" indicator dot — available for use anywhere
   you want to show that a feature is running on the visitor's own saved key
   rather than the built-in fallback engine (e.g. next to an AI chat reply's
   source tag). Not auto-injected anywhere by default; purely a utility class
   you can add a <span class="vc2-live-key-dot"></span> next to if wanted. */
.vc2-live-key-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  margin-right: 6px;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

/* Settings modal message success state, matching the existing .auth-message
   pattern already used by the login/signup modal (kept in sync so the two
   modals feel like the same design system, not two different ones). */
#settingsMessage.success {
  color: var(--success);
}

@media (max-width: 760px) {
  .vc2-score-row strong {
    justify-self: flex-start;
  }
}

/* ViralCLANT API + future image-generation polish */
.settings-panel { border-color: rgba(92, 104, 255, 0.35); box-shadow: 0 24px 80px rgba(53, 48, 130, 0.28); }
#googleOAuthClientIdInput, #imageGenerationKeyInput { border-color: rgba(111, 119, 255, 0.35); }
#googleOAuthClientIdInput:focus, #imageGenerationKeyInput:focus { border-color: rgba(126, 136, 255, 0.8); box-shadow: 0 0 0 3px rgba(102, 92, 255, 0.12); }
