/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Utility */
.hidden { display: none !important; }

/* TTS PAGE BASE */
body.tts-page {
  margin: 0;
  padding: 0;
  background-color: var(--bv-bg, #0e121c); /* BV background (set by CSS var) */
  color: green;              /* as in your original HTML */
  font-family: 'Cormorant Garamond', serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  position: relative;
}

.plan-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
  letter-spacing:.5px;
  font-size:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
}

/* Glow anim for BV logo */
.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px #ffd700);
  }
  50% {
    filter: drop-shadow(0 0 20px #ffd700);
  }
}

/* Main container */
.tts-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto 40px auto;
  padding: 16px;
  box-sizing: border-box;
}

/* Center main BedVibe logo */
.center-bv-logo {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Sticky top dashboard (glass) */
#topDashboard{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 18px;
  z-index: 9999;

  background: rgba(10, 10, 15, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(212,175,55,0.22);
}

/* Push page content down so it doesn't hide under dashboard */
body{ padding-top: 64px; }
 
 .dash-right {
  position: relative;
 }

 .dash-avatar-menu {
  position: absolute;
  top: 48px;
  right: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  z-index: 10000;

  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
 }

 .dash-menu-sep {
  display: block;
  height: 1px;
  background: rgba(212,175,55,0.18);
  margin: 4px 2px;
 }

 .dash-menu-chip {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.25);
  color: rgba(212,175,55,0.90);
  background: rgba(0,0,0,0.18);
  font-size: 13px;
  text-align: center;
 }

 .dash-menu-btn {
  width: 100%;
  margin: 6px 0;
  text-align: left;
 }

.dash-left, .dash-center, .dash-right{
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-brand{
  color: rgba(212,175,55,0.92);
  letter-spacing: 0.6px;
  font-size: 14px;
  opacity: 0.9;
}

.dash-logo{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;

  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.35);
  color: rgba(212,175,55,0.92);

  text-shadow: 0 0 10px rgba(212,175,55,0.35);
  box-shadow: 0 0 14px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}
.dash-logo:hover{
  background: rgba(212,175,55,0.12);
  box-shadow: 0 0 16px rgba(212,175,55,0.20);
}

.dash-chip{
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.25);
  color: rgba(212,175,55,0.90);
  background: rgba(0,0,0,0.18);
  font-size: 13px;
}

.dash-btn{
  padding: 7px 11px;
  border-radius: 12px;
  cursor: pointer;

  background: transparent;
  border: 1px solid rgba(212,175,55,0.28);
  color: rgba(212,175,55,0.90);

  transition: all 0.2s ease;
}
.dash-btn:hover{
  background: rgba(212,175,55,0.10);
  box-shadow: 0 0 12px rgba(212,175,55,0.18);
}

.dash-primary{
  border-color: rgba(212,175,55,0.42);
  background: rgba(212,175,55,0.08);
}

.tts-select-block { display:flex; flex-direction:column; align-items:center; gap:6px; min-width:180px; }

.dash-avatar{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;

  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(212,175,55,0.30);
  color: rgba(212,175,55,0.90);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.dash-avatar:hover{
  background: rgba(212,175,55,0.10);
  border-color: rgba(212,175,55,0.65);
  box-shadow: 0 0 10px rgba(212,175,55,0.22), 0 0 24px rgba(212,175,55,0.14);
  filter: brightness(1.10);
}

/* LOGIN BUTTON: strong glow only while logged out */
#dashAvatar[title="Account"]{
  border-color: rgba(255,215,120,0.95);
  color: rgba(255,230,160,1);
  text-shadow:
    0 0 8px rgba(255,215,120,0.95),
    0 0 18px rgba(255,215,120,0.70),
    0 0 30px rgba(255,215,120,0.45);
  box-shadow:
    0 0 10px rgba(255,215,120,0.35),
    0 0 22px rgba(255,215,120,0.28),
    0 0 42px rgba(255,215,120,0.18);
  animation: dashLoginPulse 1.33s ease-in-out infinite;
}

#dashAvatar[title="Account"]:hover{
  background: rgba(212,175,55,0.16);
  border-color: rgba(255,225,145,1);
  box-shadow:
    0 0 14px rgba(255,215,120,0.48),
    0 0 30px rgba(255,215,120,0.36),
    0 0 56px rgba(255,215,120,0.24);
  filter: brightness(1.18);
}

#dashAvatar[title="Account"] #dashAvatarGlyph{
  font-weight: 700;
  letter-spacing: 0.2px;
}

@keyframes dashLoginPulse {
  0%, 100%{
    transform: scale(1);
    box-shadow:
      0 0 10px rgba(255,215,120,0.30),
      0 0 20px rgba(255,215,120,0.22),
      0 0 38px rgba(255,215,120,0.14);
    filter: brightness(1);
  }
  50%{
    transform: scale(1.08);
    box-shadow:
      0 0 16px rgba(255,215,120,0.50),
      0 0 34px rgba(255,215,120,0.38),
      0 0 64px rgba(255,215,120,0.26);
    filter: brightness(1.22);
  }
}

.center-bv-logo img {
  height: 240px;
  width: auto;
}

/* Logo rows */
.tds-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 33px;
  margin-top: -2px;
}

/* Dafnes image must not get weird filters */
img[alt="dafnes"] {
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  background-color: transparent !important;
}

/* Text input big container */
.tts-text-input-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tts-headline {
  color: #d6c97b;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  text-align: center;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.2);
  margin-top: 8px;
  margin-bottom: 10px;
}

.tts-subheadline{
  margin-top: -2px;
  margin-bottom: 6px;
  opacity: 0.85;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

/* Labels */
.tts-label {
  color: #d6c97b;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

#twin-logo-wrapper {
  position: relative;
  top: -69px;    /* move BedVibe + FωneEstetique together up/down */
  pointer-events: none;
  user-select: none;
}

.logo-bedvibe {
  margin-right: 69px;  /* controls distance between them */
}

.logo-fwne {
  margin-left: 69px;   /* same */
}

#constellation-dafnes-wrapper {
  position: relative;
  top: -169px;  /* move Dafnes + 6969 up/down */
  pointer-events: none;
  user-select: none;
}

#page-content-wrapper {
  position: relative;
  z-index: 30;
  margin-top: -169px;  /* or -100px if you want more upward shift */
}

/* Selects */
body.tts-page select {
  background-color: #0f0f1a;
  color: #d6c97b;
  border: 1px solid #d6c97b;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  appearance: none;
  text-align: center;
}

/* Group labels like "Advanced Voices – Female" */
#voiceSelect optgroup {
  color: #b9a85a;              /* slightly dimmer gold for label */
  font-weight: 600;
  font-size: 0.9rem;
  padding-left: 10px;          /* pushes "Female" away from the edge */
}

body.tts-page select:focus {
  outline: none;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

/* Placeholder for textarea */
body.tts-page ::placeholder,
body.tts-page textarea::placeholder {
  color: #d6c97b;
  opacity: 0.85;
  font-style: italic;
}

/* Vector inputs grid */
.vector-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  margin-top: 10px;
}

.vector-inputs div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d6c97b;
}

.vector-inputs input[type="number"] {
  width: 50px;
  padding: 5px;
  background-color: #1e1e1e;
  border: 1px solid #d6c97b;
  color: #d6c97b;
  border-radius: 6px;
  text-align: center;
}

/* Textarea (wide) */
#ttsText {
  width: 100%;
  max-width: 1300px;
  height: 222px;
  padding: 12px;
  border-radius: 8px;
  background-color: #111;
  color: #d6c97b;
  font-size: 1.3rem;
  resize: none;
  border: none;
  display: block;
  margin: 0 auto;
}

/* Button images hover */
button:hover img {
  filter: brightness(1.2) drop-shadow(0 0 6px gold);
  transition: filter 0.3s ease;
}

/* Row for Generate / Tokens / Preview / Download */
.gen-dl-row {
  max-width: 860px;
  margin: 13px auto 8px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

/* HD toggle wrapper */
.hd-row{
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 8px 0 10px;   /* tighter so it sits “between” sections */
}

/* HD toggle button */
.hd-toggle {
  background: none;
  border-radius: 999px;
  border: 2px solid #d6c97b;
  color: #d6c97b;
  font-weight: bold;
  font-size: 16px;
  padding: 8px 20px;
  cursor: pointer;
  text-shadow: none;
  transition: all 0.2s ease-in-out;
}

/* When HD is ON → glow */
.hd-toggle.hd-on {
  color: #f7c664;
  border-color: #f7c664;
  text-shadow: 0 0 8px #f7c664, 0 0 16px #f7c664;
  box-shadow: 0 0 10px rgba(247, 198, 100, 0.4);
}

/* Golden buttons for editor links */
.highlighted-gold {
  padding: 10px 20px;
  border-radius: 999px;
  background-color: #111218;
  color: #d6c97b;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #d6c97b;
  display: inline-block;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.highlighted-gold:hover {
  background-color: #fff;
  color: #000;
  box-shadow: 0 0 10px rgba(214, 201, 123, 0.7);
}

/* Footer */
body.tts-page footer {
  margin-top: 40px;
  padding: 20px;
  font-size: 0.9em;
  color: #aaa;
  text-align: center;
}

select option {
  background-color: #0f0f1a;
  color: #d6c97b;
}

/* Hide the original <select> once BV dropdown is built */
.bv-select-hidden {
  display: none;
}

/* BV custom dropdown wrapper */
.bv-dropdown {
  position: relative;
  display: inline-block;
  min-width: 140px;
  font-family: 'Cormorant Garamond', serif;
}

/* Trigger button */
.bv-dropdown-trigger {
  width: 100%;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #d6c97b;
  background-color: #0f0f1a;
  color: #d6c97b;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bv-dropdown-value {
  white-space: nowrap;
}

.bv-dropdown-arrow {
  font-size: 0.8rem;
}

/* The dropdown list */
.bv-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background-color: #0f0f1a;
  border: 1px solid #d6c97b;
  border-radius: 6px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

/* Show when open */
.bv-dropdown.is-open .bv-dropdown-menu {
  display: block;
}

/* Group labels (Advanced / Core) */
.bv-dropdown-group-label {
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b9a85a;
  border-bottom: 1px solid rgba(214, 201, 123, 0.3);
}

/* Individual options */
.bv-dropdown-option {
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #d6c97b;
}

.bv-dropdown-option:hover {
  background-color: #1b1b28;
}

/* Selected option */
.bv-dropdown-option.is-selected {
  background-color: #26263a;
}

/* Disabled option */
.bv-dropdown-option.is-disabled {
  opacity: 0.4;
  cursor: default;
}

.bv-dropdown.is-disabled .bv-dropdown-trigger {
  opacity: 0.4;
  pointer-events: none;
}

/* ──────────────────────────── */
/* LORE SECTION (mythic / regal)
/* ──────────────────────────── */

.effects-list.lore-section {
  margin-top: 24px;
  padding: 28px 20px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}  
  
.lore-side-button {
  min-height:132px;
  padding:18px 16px 16px;

  background:
    radial-gradient(circle at top,
      rgba(255, 215, 128, 0.10),
      transparent 60%),
    linear-gradient(
      to bottom,
      rgba(5, 5, 15, 0.96),
      rgba(3, 3, 8, 0.98)
    );

  border-radius: 18px;
  border: 1px solid rgba(214, 201, 123, 0.45);
  box-shadow:
    0 0 22px rgba(0, 0, 0, 0.85),
    0 0 12px rgba(214, 201, 123, 0.25);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align:center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lore-side-title {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  line-height: 1.05;
  color: #f6e6b3;
  margin-bottom: 10px;
}

.lore-side-subtitle {
  font-size: 0.82rem;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d6c97b;
  max-width: 180px;
  margin: 0 auto;
}


.lore-side-button:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 201, 123, 0.72);
  box-shadow:
    0 0 30px rgba(214, 201, 123, 0.35),
    0 10px 26px rgba(0,0,0,0.35);
}

.lore-entry {
  padding: 8px 10px;
}

.lore-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: #f7d98a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lore-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #f7f3da;
  max-width: 850px;
  margin: 0 auto;
}

.lore-ellipsis {
  font-size: 1.4rem;
  color: #b9a85a;
  letter-spacing: 0.4em;
}

/* Token cost pill */
.token-cost-box {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #d6c97b;
  background-color: #0f0f1a;
  color: #d6c97b;
  font-size: 0.9rem;
  min-width: 150px;
  text-align: center;
  box-shadow: 0 0 6px rgba(214, 201, 123, 0.35);
}

.token-cost-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

/* INFO MODAL OVERLAY */
.info-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Modal box */
.info-modal {
  max-width: 520px;
  width: 90%;
  background:
    radial-gradient(circle at top,
      rgba(255, 215, 128, 0.14),
      #05050c);
  border-radius: 16px;
  border: 1px solid rgba(214, 201, 123, 0.6);
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(214, 201, 123, 0.45);
  padding: 20px 24px 24px;
  color: #f7f3da;
  font-family: 'Cormorant Garamond', serif;
  position: relative;
}

/* Title */
.info-modal-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: #f6e6b3;
  text-align: center;
  margin-bottom: 8px;
}

/* Close button (×) */
.info-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #f7f3da;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Text + lists */
.info-modal-intro {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.info-modal-list {
  list-style: none;
  margin: 6px 0;
  padding-left: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-modal-sublist {
  margin-left: 10px;
}

.info-modal-list li {
  margin-bottom: 4px;
}

.info-modal-highlight {
  color: #f7d98a;
  font-weight: 600;
}

/* Token shop modal */
.token-shop-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}

.token-pack{
  cursor:pointer;
  border-radius:18px;
  padding:14px;
  border:1px solid rgba(212,175,55,0.35);
  background:rgba(0,0,0,0.22);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  text-align:center;
}

.token-pack img{
  width:100%;
  max-width:240px;
  height:auto;
  display:block;
  margin:0 auto 10px auto;
  border-radius:14px;
}

.token-pack:hover{
  transform:translateY(-2px);
  box-shadow:0 0 22px rgba(212,175,55,0.18);
  border-color:rgba(212,175,55,0.6);
}

.token-pack-featured{
  box-shadow:0 0 30px rgba(212,175,55,0.20);
}

.token-pack-label{
  font-weight:700;
  letter-spacing:0.2px;
}

.token-pack-price{
  margin-top:6px;
  font-size:14px;
  opacity:0.85;
}

@media (max-width: 860px){
  .token-shop-grid{ grid-template-columns:1fr; }
  .token-pack img{ max-width:320px; }
}

/* ─────────────────────────────
   FX CONTEXT MENU (FIXED)
   ───────────────────────────── */

.fx-context-menu{
  position: fixed;
  display: none;
  z-index: 2147483647;           /* nuke any stacking wars */
  min-width: 240px;
  background: rgba(20,20,30,0.98);
  border: 1px solid rgba(212,175,55,0.60);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.55);
  color: #fff2c2;

  /* important: make sure it can be clicked */
  pointer-events: auto;
}

.fx-context-menu.is-visible{ display:block; }

.fx-context-menu ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Base item styling */
.fx-context-menu li{
  position: relative;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.fx-context-menu li:hover{
  background: rgba(255,215,122,0.20);
}

.fx-context-menu li.is-disabled{
  opacity: 0.6;
  cursor: default;
}

/* Give "has submenu" a clear arrow and larger hover target */
.fx-context-menu li.has-submenu{
  padding-right: 28px;
}
.fx-context-menu li.has-submenu::after{
  content: "›";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
  pointer-events: none;
}

/* Submenu: make it stable and easy to hit */
.fx-context-menu .fx-submenu{
  display: none;

  position: absolute;
  top: -6px;                     /* align with padding */
  left: calc(100% - 6px);        /* overlap slightly so hover never drops */
  margin-left: 0;

  background: rgba(26,26,40,0.98);
  border: 1px solid rgba(212,175,55,0.60);
  border-radius: 12px;
  padding: 6px;
  min-width: 260px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;

  z-index: 2147483647;
  pointer-events: auto;
  overscroll-behavior: contain;
}

/* OPEN RULES:
   - Hover parent keeps it open
   - Hover submenu keeps it open
   (this kills the “submenu disappears when moving cursor” bug) */
.fx-context-menu li.has-submenu:hover > .fx-submenu,
.fx-context-menu li.has-submenu > .fx-submenu:hover{
  display: block;
}

/* Optional: if menu is too close to right edge, allow you to add class "open-left" via JS later */
.fx-context-menu.open-left li.has-submenu > .fx-submenu{
  left: auto;
  right: calc(100% - 6px);
}

/* ─────────────────────────────
   FX MENU SCROLLBAR (pretty)
   ───────────────────────────── */

.fx-context-menu,
.fx-context-menu .fx-submenu{
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(212,175,55,0.65) rgba(0,0,0,0.20);
}

.fx-context-menu::-webkit-scrollbar,
.fx-context-menu .fx-submenu::-webkit-scrollbar{
  width: 10px;
}

.fx-context-menu::-webkit-scrollbar-track,
.fx-context-menu .fx-submenu::-webkit-scrollbar-track{
  background: rgba(0,0,0,0.18);
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.18);
}

.fx-context-menu::-webkit-scrollbar-thumb,
.fx-context-menu .fx-submenu::-webkit-scrollbar-thumb{
  background: linear-gradient(
    to bottom,
    rgba(255,226,155,0.80),
    rgba(212,175,55,0.55)
  );
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.35);
}

.fx-context-menu::-webkit-scrollbar-thumb:hover,
.fx-context-menu .fx-submenu::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(
    to bottom,
    rgba(255,236,180,0.90),
    rgba(212,175,55,0.70)
  );
}

.fx-context-menu::-webkit-scrollbar-corner,
.fx-context-menu .fx-submenu::-webkit-scrollbar-corner{
  background: transparent;
}

/* Speaker header entries from JS (disabled but styled nicely) */
.fx-speaker-header{
  opacity:.85;
  cursor:default;
  padding-top:10px;
  margin-top:6px;
  border-top:1px solid rgba(212,175,55,0.18);
}

.fx-menu-head { padding: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.fx-search { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.35); color: #fff; outline: none; }

.fx-submenu { max-height: 320px; overflow: auto; }
.fx-group { list-style: none; margin: 0; padding: 0; }
.fx-group-head { padding: 8px 10px; cursor: pointer; opacity: 0.9; user-select: none; }
.fx-group-list { margin: 0; padding: 0; list-style: none; }
.fx-item { padding: 6px 12px; cursor: pointer; }
/* FX INLINE MODE: show submenu inside the menu (no hover-only, no offscreen) */
.fx-context-menu.fx-inline li.has-submenu::after{ display:none; }
.fx-context-menu.fx-inline .fx-submenu{
  display:block;
  position: static;
  top:auto; left:auto; right:auto;
  margin-top:8px;
  min-width: 0;
  width: 100%;
  border-radius: 10px;
}

/* =========================
   BV CONTROL BOX (3-col: Basic | HD | Advanced)
   ========================= */
.bv-control-box{
  width: 100%;
  max-width: 860px;
  margin: 10px auto 0;
}

.bv-control-box__grid{
  display: grid;
  grid-template-columns: 1fr 140px 1fr; /* center space for HD */
  gap: 14px;
  align-items: center;
}

.bv-col__title{
  margin-bottom: 8px;
  font-weight: 600;
  opacity: 0.95;
  color: #d6c97b;
  text-align: center;           /* center the title in its column */
}

.bv-hd-col{
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-10px);
}

/* sliders */
.bv-slider{ margin-bottom: 12px; }

.bv-slider__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}

.bv-slider__value{
  color:#9fe0b8;         /* soft green readout */
  font-variant-numeric: tabular-nums;
}

.bv-slider__ends{
  display:flex;
  justify-content:space-between;
  font-size: 0.80em;
  opacity: 0.75;
  margin-top: 6px;
  color: rgba(214,201,123,0.85);
}

/* ---- Range styling (kills the white bar) ---- */
.bv-slider__input{
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  display: block;

  height: 22px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.bv-slider__input::-webkit-slider-runnable-track{
  height: 6px;
  border-radius: 999px;
  background: rgba(22, 26, 36, 0.95);
  border: 1px solid rgba(214,201,123,0.22);
}

.bv-slider__input::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: -5px;
  background: rgba(214,201,123,0.95);
  border: 1px solid rgba(0,0,0,0.35);
  box-shadow: 0 0 10px rgba(214,201,123,0.18);
}

.bv-slider__input:focus{ outline:none; }
.bv-slider__input:focus::-webkit-slider-thumb{
  box-shadow: 0 0 14px rgba(214,201,123,0.28);
}

/* Firefox */
.bv-slider__input::-moz-range-track{
  height: 6px;
  border-radius: 999px;
  background: rgba(22, 26, 36, 0.95);
  border: 1px solid rgba(214,201,123,0.22);
}
.bv-slider__input::-moz-range-thumb{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(214,201,123,0.95);
  border: 1px solid rgba(0,0,0,0.35);
  box-shadow: 0 0 10px rgba(214,201,123,0.18);
}

@media (max-width: 840px){
  .bv-control-box__grid{
    grid-template-columns: 1fr;
  }
  .bv-hd-col{
    margin: 6px 0;
  }
}

/* LORE ROW (Lore + Buttons) */

.lore-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 1300px; /* was 1000px */
}

/* ===== LORE PAGE ===== */

body.lore-page {
  background:
    radial-gradient(circle at top,
      rgba(255, 215, 128, 0.06),
      transparent 60%),
    linear-gradient(
      to bottom,
      #050510,
      #020208
    );

  color: #e8d9a8;
  font-family: 'Cormorant Garamond', serif;
}

/* Lore Container */

.lore-section {
  max-width: 1400px;
  margin: 60px auto;
  padding: 40px;
}

.lore-row .effects-list.lore-section{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Titles */

.lore-heading {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: #f6e6b3;
  margin-bottom: 6px;
}

.lore-subtitle {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d6c97b;
  margin-bottom: 40px;
}

/* Grid */

.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

/* Individual Entries */

.lore-entry {
  background:
    radial-gradient(circle at top,
      rgba(255, 215, 128, 0.08),
      transparent 70%),
    linear-gradient(
      to bottom,
      rgba(5, 5, 15, 0.96),
      rgba(3, 3, 8, 0.98)
    );

  border-radius: 18px;
  border: 1px solid rgba(214, 201, 123, 0.35);

  padding: 22px 20px 24px;

  box-shadow:
    0 0 18px rgba(0, 0, 0, 0.85),
    0 0 10px rgba(214, 201, 123, 0.15);

  transition: all 0.25s ease;
}

.lore-entry:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 26px rgba(214, 201, 123, 0.25);
}

/* Entry Text */

.lore-name {
  font-size: 1.15rem;
  color: #f6e6b3;
  margin-bottom: 10px;
}

.lore-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d8caa0;
}

/* ===== EQ toggle (checkbox next to Warmth) ===== */
.bv-eq-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  user-select:none;
  opacity:0.95;
}

.bv-eq-toggle input{
  width:16px;
  height:16px;
  cursor:pointer;
  accent-color: rgba(212,175,55,0.85);
}

.bv-eq-toggle__text{
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: #d6c97b;
}

.bv-eq-toggle:hover .bv-eq-toggle__text{
  text-shadow: 0 0 8px rgba(212,175,55,0.25);
}

/* =========================
   ORB VOICE LAYOUT
   ========================= */

.bv-voice-samples{
  display: grid;
  grid-template-columns: repeat(6, 113px);
  justify-content: center;
  gap: 7px;
  margin: 7px auto;
}

/* Gold divider line above/below the voice bubbles */
.bv-voice-divider {
  width: 100%;
  max-width: 860px;
  height: 1px;
  margin: 16px auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(212, 175, 55, 0.75),
    transparent
  );
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.18);
}

.bv-voice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bv-voice-name {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(212, 175, 55, 0.95);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
  text-align: center;
}

.bv-voice-orb{
  position: relative;
  width: 113px;
  height: 113px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.bv-voice-orb:hover{
  transform: scale(1.13);
}

.bv-voice-orb.is-playing{
  filter: drop-shadow(0 0 12px rgba(212,175,55,0.8));
}

.bv-voice-card:hover {
  filter: drop-shadow(0 0 6px rgba(212,175,55,0.5));
}

.bv-voice-portrait{
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bv-voice-orb:hover .bv-voice-portrait{
  transform: translate(-50%, -50%) scale(1.03);
  box-shadow: 0 0 18px rgba(212,175,55,0.6);
}

.bv-voice-portrait{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78%;
  height: 78%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border-radius: 50%;
}

.bv-voice-orb-frame{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lore-row{
  margin-top: 7px;
}

.lore-row--five{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:18px;
  align-items:stretch;
  max-width:1100px;
  margin:18px auto 0;
}

/* Keep desktop layout height unchanged */
.tts-subheadline{
  display:none; /* hide on desktop so page fits */
  width:100%;
}

/* Show on mobile only (where you’ll scroll anyway) */
@media (max-width: 900px){
  .tts-subheadline{
    display:block;
    opacity:0.85;
    font-size:12px;
    line-height:1.25;
    text-align:center;
    margin-top:-6px;
    margin-bottom:6px;
  }
}

.dash-model-wrapper { position: relative; margin-right: 12px; }

.dash-model-menu {
  position: absolute;
  top: 42px;
  right: 0;
  background: rgba(0,0,0,0.95);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 160px;
  z-index: 9999;
}

.dash-model-menu button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 12px;
  color: #fff;
  cursor: pointer;
}

.dash-model-menu button:hover {
  background: rgba(212,175,55,0.15);
}

.bv-select-hidden{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.clone-voice-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
}
.clone-voice-row .bv-dropdown{
  min-width: 140px;
}
#clonePick{
  white-space: nowrap;
}
#clonePick{ display:none !important; }

.heroPlayDemo {
  position: relative;
  z-index: 40;
}

.heroPlayDemo img {
  display: block;
  pointer-events: none;
  user-select: none;
}

.heroPlayDemo:hover img {
  filter: brightness(1.12) drop-shadow(0 0 10px rgba(214,201,123,0.48));
}

/* ===== TOOLS BUTTONS ===== */

.lore-row--four {
  gap: 16px;
}

.lore-row--four .lore-side-button {
  min-width: 0;
  padding: 18px 12px;
}

.lore-row--four .lore-side-title {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  text-align: center;
  line-height: 1.05;
}

.lore-row--four .lore-side-subtitle {
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: center;
  max-width: 180px;
}

.dash-tools-btn {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dash-tools-btn--glow {
  border-color: rgba(255,215,120,0.72);
  color: rgba(255,234,180,0.98);
  background: rgba(212,175,55,0.12);
  box-shadow:
    0 0 10px rgba(255,215,120,0.20),
    0 0 22px rgba(255,215,120,0.14);
  animation: dashToolsPulse 1.8s ease-in-out infinite;
}

.dash-tools-btn--glow:hover {
  background: rgba(212,175,55,0.18);
  box-shadow:
    0 0 14px rgba(255,215,120,0.26),
    0 0 28px rgba(255,215,120,0.18);
}

@keyframes dashToolsPulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(255,215,120,0.18),
      0 0 22px rgba(255,215,120,0.12);
    filter: brightness(1);
  }
  50% {
    box-shadow:
      0 0 16px rgba(255,215,120,0.28),
      0 0 34px rgba(255,215,120,0.20);
    filter: brightness(1.08);
  }
}

@media (max-width: 1100px) {
  .lore-row--four {
    flex-wrap: wrap;
  }

  .lore-row--four .lore-side-button {
    min-height: 118px;
  }
}