/* BlooTube Voice 2026 — Cyber Studio UI/UX */
@import url('/voice/generated-tokens.css');

@font-face {
  font-family: 'Inter';
  src: url('/voice/assets/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/voice/assets/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/voice/assets/Inter-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/voice/assets/Inter-Bold.ttf') format('truetype');
  font-weight: 700 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  min-height: 100svh;
  background-color: var(--bt-bg-app);
  color: var(--bt-text-primary);
  font-family: var(--bt-family-ui);
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.45;
}

/* 2026 Apple Liquid Glass Background & Spatial Canvas */
body {
  background-color: #000000;
  background-image:
    radial-gradient(circle at 50% -12%, rgba(0, 122, 255, 0.12), transparent 50%),
    radial-gradient(circle at 100% 25%, rgba(175, 82, 222, 0.08), transparent 45%),
    radial-gradient(circle at 0% 65%, rgba(88, 86, 214, 0.07), transparent 50%),
    radial-gradient(circle at 50% 105%, rgba(0, 122, 255, 0.09), transparent 55%);
  background-attachment: fixed;
}

/* Scrollbars */
*::-webkit-scrollbar { width: 5px; height: 5px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.35); }

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

/* 2026 Static Apple Depth Glows (Hardware Isolated - 0% CPU/GPU Load) */
.ambient-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.14;
  z-index: 0;
  transform: translateZ(0);
}
.ambient-cyan {
  background: #007AFF;
  top: -100px;
  left: -80px;
}
.ambient-magenta, .ambient-violet {
  background: #AF52DE;
  top: 180px;
  right: -100px;
}

:root {
  --app-content-safe-top: var(--tg-content-safe-area-inset-top, env(safe-area-inset-top, 0px));
}

/* Shell Layout */
.app-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding-top: calc(max(16px, var(--app-content-safe-top, 0px), env(safe-area-inset-top, 0px)) + 10px);
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 1;
}

@media (min-width: 500px) {
  .app-shell {
    max-width: 540px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 768px) {
  .app-shell {
    max-width: 620px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* 2026 Apple Liquid Glass Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bt-liquid-glass);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: var(--bt-liquid-specular-border);
  border-radius: var(--bt-radius-2xl);
  margin-bottom: 14px;
  box-shadow: var(--bt-liquid-refract-bevel), var(--bt-liquid-lens-shadow);
  transition: transform 0.2s var(--bt-spring-tap);
  gap: 8px;
  min-width: 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-logo-frame {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #0E1017;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.brand-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--bt-text-secondary);
  font-weight: 600;
  margin-top: 1.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.brand-badge i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bt-apple-blue);
  box-shadow: 0 0 6px var(--bt-apple-blue);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 0;
}

/* Apple Liquid Glass Unified Status Capsule Badge */
.header-status-badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--bt-radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s var(--bt-spring-tap);
  flex-shrink: 0;
  min-width: 0;
}
.header-status-badge:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.26);
}
.header-status-badge:active {
  transform: scale(0.96);
}
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.26);
}
.header-status-badge:active {
  transform: scale(0.96);
}
.header-status-badge.expiring {
  background: rgba(255, 159, 10, 0.14);
  border-color: rgba(255, 159, 10, 0.45);
  animation: pulseExpire 2s infinite ease-in-out;
}
@keyframes pulseExpire {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 159, 10, 0); }
  50% { box-shadow: 0 0 10px rgba(255, 159, 10, 0.35); }
}

.status-badge-license {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.license-pill-name {
  color: #5AC8FA;
  font-weight: 850;
  letter-spacing: 0.3px;
  font-size: 11px;
  text-transform: uppercase;
}
.header-status-badge.expiring .license-pill-name {
  color: #FFD60A;
}
.license-pill-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}
.license-pill-term {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 11px;
}
.header-status-badge.expiring .license-pill-term {
  color: #FF9F0A;
  font-weight: 750;
}

.status-badge-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 6px;
  flex-shrink: 0;
}

.status-badge-quota {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
}
.quota-val {
  color: var(--bt-apple-blue);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.quota-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}
.quota-max {
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

/* User Avatar & Apple Bezel */
.avatar-aura {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s var(--bt-spring-tap);
}

.avatar-aura:active {
  transform: scale(0.92);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: none;
  background: #1C1C1E;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-photo-large {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

/* Sound Equalizer Animated Bars */
.equalizer-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 13px;
}

.equalizer-bars span {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  background: var(--bt-apple-blue);
  animation: eq-bounce 1.1s ease-in-out infinite alternate;
}

.equalizer-bars span:nth-child(1) { height: 5px; animation-delay: 0.1s; }
.equalizer-bars span:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.equalizer-bars span:nth-child(3) { height: 7px; animation-delay: 0.5s; }
.equalizer-bars span:nth-child(4) { height: 13px; animation-delay: 0.2s; }
.equalizer-bars span:nth-child(5) { height: 8px; animation-delay: 0.4s; }

/* Apple Spatial Canvas (Fixed Background) */
.spatial-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* 2026 Apple Cupertino Segmented Control (Sliding Glass Indicator) */
.tab-navbar {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(120, 120, 128, 0.18);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y !important;
  overscroll-behavior-x: contain;
}

/* The physical glowing white glass pill indicator sliding underneath active tab */
.tab-pill-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFFFF 0%, #E8EEF5 100%);
  box-shadow: 0 0 22px rgba(0, 122, 255, 0.45), 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 1px #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), width 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}
.tab-navbar::-webkit-scrollbar { display: none; }

/* Ensure mobile touch can freely scroll horizontally while allowing vertical page panning */
.tab-navbar,
.admin-subnav,
.voice-chips-scroll,
.studio-categories-scroll,
.mouse-draggable-scroll {
  touch-action: pan-x pan-y !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain;
}

/* Mouse Drag & Wheel Scroll Enhancements for PC / Desktop (Fine Pointers Only) */
@media (pointer: fine) {
  .mouse-draggable-scroll {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
  }

  .mouse-draggable-scroll.is-dragging {
    cursor: grabbing !important;
  }

  .mouse-draggable-scroll img,
  .mouse-draggable-scroll button,
  .mouse-draggable-scroll span,
  .mouse-draggable-scroll a {
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.tab-btn {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: none;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  padding: 0 14px;
  white-space: nowrap;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.tab-btn:hover {
  color: #FFFFFF;
}

.tab-btn.active {
  color: #0B0E17 !important;
  font-weight: 700;
  background: transparent !important;
  box-shadow: none !important;
}

.tab-btn.active .tab-svg-icon {
  stroke: #0B0E17 !important;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.tab-btn .tab-svg-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  transition: stroke 0.2s;
  flex-shrink: 0;
  pointer-events: none;
}

.tab-btn span {
  pointer-events: none;
}

/* Tab Panels */
.tab-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
}
.tab-panel.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

/* 2026 Apple Liquid Glass Cards */
.glass-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(20, 22, 28, 0.72);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 18px;
  box-shadow: inset 0 1.5px 1.5px rgba(255, 255, 255, 0.28), inset 0 -1px 1px rgba(0, 0, 0, 0.4), 0 20px 40px rgba(0, 0, 0, 0.55);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--bt-spring-tap);
}

.glass-card:focus-within {
  border-color: rgba(0, 122, 255, 0.5);
}

/* ─── Studio Section Headers & Actions ─── */
.studio-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}

.studio-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.015em;
}

.studio-section-action {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--bt-apple-blue);
  cursor: pointer;
  transition: opacity 0.15s;
}
.studio-section-action:hover {
  opacity: 0.8;
}

/* ─── Hero Active Voice Card (Screenshot 1 Amara Card) ─── */
.hero-voice-card {
  padding: 16px 16px 14px 16px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(20, 22, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: inset 0 1.5px 1.5px rgba(255, 255, 255, 0.35), inset 0 -1px 1px rgba(0, 0, 0, 0.4), 0 20px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  display: flex;
  flex-direction: column;
  gap: 13px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--bt-spring-tap), border-color 0.2s;
}

.hero-voice-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 170, 80, 0.18), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.hero-voice-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-voice-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-voice-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0, 122, 255, 0.35) 0%, rgba(12, 16, 26, 0.95) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 22px rgba(0, 122, 255, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.hero-waveform-svg {
  width: 38px;
  height: 38px;
}

.hero-voice-avatar.playing .hero-waveform-svg rect:nth-child(odd) {
  animation: heroBarWave 0.7s ease-in-out infinite alternate;
}

.hero-voice-avatar.playing .hero-waveform-svg rect:nth-child(even) {
  animation: heroBarWave 0.9s ease-in-out 0.15s infinite alternate;
}

@keyframes heroBarWave {
  0% { transform: scaleY(0.4); transform-origin: center; }
  100% { transform: scaleY(1.15); transform-origin: center; }
}

.hero-voice-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-voice-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-voice-name {
  font-size: 21px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-hero-star {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s var(--bt-spring-tap), color 0.2s, filter 0.2s;
}
.btn-hero-star:active {
  transform: scale(0.85);
}
.btn-hero-star .star-svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: all 0.2s ease;
}
.btn-hero-star.active {
  color: #FFD60A;
  filter: drop-shadow(0 0 10px rgba(255, 214, 10, 0.65));
}
.btn-hero-star.active .star-svg {
  fill: #FFD60A;
  stroke: #FFD60A;
}

.hero-voice-lang-sub {
  font-size: 13px;
  color: #8E8E93;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-voice-pill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hero-country-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.15);
  border: 1px solid rgba(0, 122, 255, 0.3);
  font-size: 10.5px;
  font-weight: 700;
  color: #5AC8FA;
  text-transform: uppercase;
}

.hero-voice-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 11px;
  gap: 8px;
  min-width: 0;
}

.hero-voice-bottom-row .voice-card-id-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  margin-top: 0;
}

.hero-voice-bottom-row .voice-card-id-pill {
  font-family: monospace;
  font-size: 10px;
  color: var(--bt-text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  min-width: 0;
  flex: 0 1 auto;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.hero-voice-bottom-row .btn-copy-card-id {
  flex-shrink: 0;
  padding: 2px 5px;
}

.hero-voice-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-hero-play {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.15s var(--bt-spring-tap);
}
.btn-hero-play:hover {
  background: rgba(255, 255, 255, 0.20);
}
.btn-hero-play:active {
  transform: scale(0.95);
}

.btn-hero-change {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #007AFF 0%, #0062D2 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.15s var(--bt-spring-tap);
}
.btn-hero-change:active {
  transform: scale(0.95);
}

@media (max-width: 330px) {
  .hero-voice-bottom-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-voice-bottom-row .voice-card-id-row {
    width: 100%;
    justify-content: space-between;
  }
  .hero-voice-bottom-row .hero-voice-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ─── Compact Quick Voice Switcher Bar ─── */
.compact-voice-bar {
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-controls-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-lang-wrap {
  flex: 1;
  min-width: 0;
}

.favorites-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.favorites-title {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 5px;
}

.voice-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 4px 8px 4px;
  margin: -4px -4px -2px -4px;
}
.voice-chips-scroll::-webkit-scrollbar { display: none; }

/* ─── Script Textarea Card ─── */
.studio-input-card {
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.studio-card-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--bt-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.studio-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.tool-link-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.studio-textarea {
  width: 100%;
  min-height: 120px;
  max-height: 280px;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: var(--bt-family-ui);
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  padding: 6px 0;
}
.studio-textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.studio-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 12px;
  color: #8E8E93;
}

/* ─── Control Center Sliders (0ms Latency) ─── */
.generation-config-card {
  padding: 18px 20px;
  margin-bottom: 16px;
}

.sliders-control-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-center-slider-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-label-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.slider-label-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--bt-apple-blue);
  font-family: var(--bt-family-mono);
}

.badge-dsp-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(0, 122, 255, 0.18);
  border: 1px solid rgba(0, 122, 255, 0.35);
  color: var(--bt-apple-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.capsule-slider-wrap {
  position: relative;
  width: 100%;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
}

.capsule-slider {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  cursor: pointer;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.capsule-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFFFFF 0%, #E8EEF5 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45), 0 0 12px rgba(0, 122, 255, 0.35), inset 0 1px 1px #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: grab;
  transition: none !important; /* Instant 0ms latency! */
}

.capsule-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFFFFF 0%, #E8EEF5 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45), inset 0 1px 1px #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: grab;
  transition: none !important;
}

.slider-boundary {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 1;
}
.slider-boundary.left { left: 14px; }
.slider-boundary.right { right: 14px; }

.emotion-control-row {
  margin-top: 14px;
}

/* ─── Primary CTA Button (Apple Blue Capsule) ─── */
.btn-primary-studio {
  width: 100%;
  height: 52px;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #0A84FF 0%, #0066EE 100%);
  color: #FFFFFF;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 122, 255, 0.55), inset 0 1px 1.5px rgba(255, 255, 255, 0.6);
  transition: transform 0.15s var(--bt-spring-tap), box-shadow 0.2s;
  margin-bottom: 16px;
}

.btn-primary-studio:hover {
  box-shadow: 0 0 32px rgba(0, 122, 255, 0.7), inset 0 1px 1.5px rgba(255, 255, 255, 0.7);
}

.btn-primary-studio:active {
  transform: scale(0.97);
}

.btn-primary-studio:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ─── Audio Result Player Card (Dynamic Island) ─── */
.result-player-card {
  padding: 18px 20px;
  margin-top: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(20, 22, 28, 0.85);
  border: 1px solid rgba(0, 122, 255, 0.35);
  border-radius: 28px;
  box-shadow: 0 0 30px rgba(0, 122, 255, 0.25), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.35);
  animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--bt-success);
}

.btn-delete-result {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.35);
  color: var(--bt-apple-red);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--bt-radius-sm);
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-delete-result:active {
  transform: scale(0.96);
}

.player-main-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.main-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #007AFF 0%, #0062D2 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.main-play-btn:active {
  transform: scale(0.92);
}

.player-waveform-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.apple-live-waveform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  height: 28px;
  padding: 2px 0;
}

.wave-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  height: 8px;
  transition: height 0.15s ease, background-color 0.2s;
}

.apple-live-waveform.playing .wave-bar {
  background: linear-gradient(180deg, #5AC8FA 0%, #007AFF 100%);
  animation: apple-wave-bounce 0.8s ease-in-out infinite alternate;
}

@keyframes apple-wave-bounce {
  0% { height: 6px; }
  50% { height: 26px; }
  100% { height: 10px; }
}

.apple-live-waveform.playing .wave-bar:nth-child(2n) { animation-delay: 0.12s; }
.apple-live-waveform.playing .wave-bar:nth-child(3n) { animation-delay: 0.24s; }
.apple-live-waveform.playing .wave-bar:nth-child(4n) { animation-delay: 0.36s; }
.apple-live-waveform.playing .wave-bar:nth-child(5n) { animation-delay: 0.48s; }

.scrubber-range {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.scrubber-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 10px rgba(0, 122, 255, 0.6);
  cursor: pointer;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--bt-text-secondary);
}

.result-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-secondary-action {
  min-height: 42px;
  border-radius: var(--bt-radius-md);
  border: 1px solid var(--bt-border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: #FFF;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary-action.highlight {
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--bt-neon-cyan);
}

/* Voice Catalog Screen */
.search-input-wrap {
  position: relative;
  margin-bottom: 4px;
}

.search-input-wrap input {
  width: 100%;
  min-height: 44px;
  background: var(--bt-bg-input);
  border: 1px solid var(--bt-border-subtle);
  border-radius: var(--bt-radius-lg);
  padding: 0 16px 0 42px;
  color: #FFF;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input-wrap input:focus {
  border-color: var(--bt-neon-cyan);
}

.search-icon-fixed {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bt-text-dim);
  font-size: 15px;
  pointer-events: none;
}

.voices-list-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.voice-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(28, 28, 30, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  transition: all 0.2s var(--bt-spring-tap);
  gap: 12px;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 64px;
  box-sizing: border-box;
}

.voice-card-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(38, 38, 42, 0.85);
}

.voice-card-item.selected {
  border-color: rgba(0, 122, 255, 0.6);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.14) 0%, rgba(20, 22, 28, 0.7) 100%);
  box-shadow: 0 0 20px rgba(0, 122, 255, 0.25);
}

.voice-avatar-apple {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.voice-waveform-mini {
  width: 22px;
  height: 22px;
}

.btn-select-voice-action {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.10);
  color: #FFF;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s var(--bt-spring-tap);
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-select-voice-action:hover {
  background: var(--bt-apple-blue);
  color: #FFF;
  border-color: var(--bt-apple-blue);
  box-shadow: 0 0 14px rgba(0, 122, 255, 0.4);
}

.voice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── Voice Meta, Name Row & Unified Badges (Apple Cupertino Alignment) ─── */
.voice-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.voice-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.voice-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1;
}

.voice-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}

.voice-desc {
  font-size: 11px;
  color: var(--bt-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* Unified Universal Tag / Badge System */
.voice-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  line-height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--bt-text-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-sizing: border-box;
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}

.voice-tag.voice-lang-tag {
  background: rgba(0, 122, 255, 0.14);
  border-color: rgba(0, 122, 255, 0.32);
  color: #0A84FF;
}

.voice-tag.voice-country-tag {
  background: rgba(0, 102, 255, 0.12);
  border-color: rgba(0, 102, 255, 0.3);
  color: #60A5FA;
}

.voice-tag.status-failed {
  background: rgba(255, 51, 102, 0.16);
  border-color: rgba(255, 51, 102, 0.35);
  color: var(--bt-error);
  font-weight: 800;
}

.voice-tag.status-refunded {
  background: rgba(255, 170, 0, 0.16);
  border-color: rgba(255, 170, 0, 0.35);
  color: #FFAA00;
  font-weight: 800;
}

.voice-tag.status-completed {
  background: rgba(0, 212, 170, 0.16);
  border-color: rgba(0, 212, 170, 0.35);
  color: var(--bt-success);
  font-weight: 800;
}

.preview-play-btn,
.sheet-item-play-btn,
.item-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s var(--bt-spring-tap);
  padding: 0;
}

.preview-play-btn:hover,
.sheet-item-play-btn:hover,
.item-play-btn:hover {
  background: rgba(0, 122, 255, 0.25);
  border-color: rgba(0, 122, 255, 0.6);
  color: #0A84FF;
  transform: scale(1.06);
}

.preview-play-btn:active,
.sheet-item-play-btn:active,
.item-play-btn:active {
  transform: scale(0.92);
}

.preview-play-btn.playing,
.sheet-item-play-btn.playing,
.item-play-btn.playing {
  background: var(--bt-apple-blue);
  border-color: var(--bt-apple-blue);
  color: #FFF;
  box-shadow: 0 0 12px rgba(0, 122, 255, 0.45);
}

.voice-avatar-ring.playing .avatar-wave-svg rect:nth-child(odd) {
  animation: heroBarWave 0.7s ease-in-out infinite alternate;
}
.voice-avatar-ring.playing .avatar-wave-svg rect:nth-child(even) {
  animation: heroBarWave 0.9s ease-in-out 0.15s infinite alternate;
}

.voice-card-id-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.voice-card-id-pill {
  font-family: monospace;
  font-size: 10px;
  color: var(--bt-text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.4;
}

.btn-copy-card-id {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--bt-text-dim);
  cursor: pointer;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: all 0.15s;
  line-height: 1.4;
}

.btn-copy-card-id:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--bt-neon-cyan);
  border-color: rgba(0, 229, 255, 0.3);
}

/* History List */
.history-item-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: rgba(16, 19, 32, 0.65);
  border: 1px solid var(--bt-border-subtle);
  border-radius: var(--bt-radius-lg);
}

.history-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-text-preview {
  font-size: 13px;
  color: #FFF;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

/* Profile Screen */
.user-profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(131, 56, 236, 0.1));
  border: 1px solid var(--bt-border-subtle);
  border-radius: var(--bt-radius-xl);
}

.user-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bt-gradient-cyan-magenta);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: var(--bt-glow-cyan);
}

.quota-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 4px;
}

.quota-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--bt-gradient-btn);
  transition: width 0.3s ease;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(14, 18, 30, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid var(--bt-neon-cyan);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), var(--bt-glow-cyan);
  padding: 10px 18px;
  border-radius: var(--bt-radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Modal Bottom Sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 600px;
  margin: 0 auto;
  height: 85vh;
  max-height: 85vh;
  background: #0E111C;
  border-top: 1px solid var(--bt-border-brand);
  border-radius: 24px 24px 0 0;
  padding: 18px 16px env(safe-area-inset-bottom, 16px);
  z-index: 101;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.bottom-sheet.open {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 12px;
  flex-shrink: 0;
}

.sheet-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.sheet-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sheet-content-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.sheet-content-scroll .voice-card-item {
  flex-shrink: 0;
  min-height: 58px;
}

.sheet-item-fav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--bt-text-dim);
  font-size: 13px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.sheet-item-fav-btn:hover {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.35);
  color: #FFD700;
  transform: scale(1.06);
}

.sheet-item-fav-btn.active {
  background: rgba(255, 215, 0, 0.18);
  border-color: #FFD700;
  color: #FFD700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

/* Animations */
@keyframes eq-bounce {
  0% { height: 3px; }
  100% { height: 14px; }
}

@keyframes float-slow {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Paywall Notice Banner ─── */
.paywall-banner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12) 0%, rgba(121, 40, 202, 0.10) 50%, rgba(184, 23, 238, 0.14) 100%);
  border: 1px solid rgba(184, 23, 238, 0.45);
  box-shadow: 0 10px 30px rgba(184, 23, 238, 0.18), 0 0 20px rgba(0, 102, 255, 0.12);
  animation: slideUp 0.3s ease-out;
}

.paywall-lead {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.paywall-icon {
  font-size: 26px;
  line-height: 1;
}

.paywall-title {
  font-size: 14px;
  font-weight: 850;
  color: #FFF;
}

.paywall-sub {
  font-size: 11px;
  color: var(--bt-text-secondary);
  line-height: 1.45;
  margin-top: 3px;
}

.btn-paywall-cta {
  width: 100%;
  min-height: 44px;
  border-radius: var(--bt-radius-lg);
  border: none;
  background: linear-gradient(110deg, #00D2FF 0%, #0066FF 35%, #7928CA 70%, #B817EE 100%);
  color: #FFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4), 0 0 15px rgba(184, 23, 238, 0.3);
  transition: all 0.15s;
}

.btn-paywall-cta:active {
  transform: scale(0.98);
}

/* ─── Tariffs Deck ─── */
.tariffs-deck {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tariff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px;
  background: rgba(14, 17, 28, 0.85);
  border: 1px solid var(--bt-border-subtle);
  border-radius: var(--bt-radius-xl);
  transition: all 0.25s ease;
}

.tariff-card.featured {
  border-color: rgba(0, 210, 255, 0.6);
  background: radial-gradient(circle at 90% 10%, rgba(0, 210, 255, 0.14), transparent 45%), linear-gradient(145deg, rgba(16, 20, 36, 0.95), rgba(12, 14, 24, 0.95));
  box-shadow: 0 16px 45px rgba(0, 210, 255, 0.22), 0 0 30px rgba(184, 23, 238, 0.15), inset 0 0 20px rgba(0, 210, 255, 0.05);
}

.tariff-badge-floating {
  position: absolute;
  top: -10px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(95deg, #0066FF 0%, #7928CA 50%, #B817EE 100%);
  color: #FFF;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 14px rgba(184, 23, 238, 0.45);
}

.tariff-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.tariff-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #FFF;
}

.tariff-sub {
  font-size: 11px;
  color: var(--bt-text-secondary);
  margin-top: 2px;
}

.tariff-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tariff-stars {
  font-size: 20px;
  font-weight: 900;
  color: #FFF;
  white-space: nowrap;
}

.tariff-period {
  font-size: 10px;
  color: var(--bt-text-dim);
}

.tariff-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--bt-text-primary);
}

.tariff-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tariff-perks strong {
  color: var(--bt-neon-cyan);
}

.btn-tariff-buy {
  width: 100%;
  min-height: 48px;
  border-radius: var(--bt-radius-lg);
  border: 1px solid rgba(0, 210, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.12) 0%, rgba(0, 102, 255, 0.12) 50%, rgba(184, 23, 238, 0.12) 100%);
  color: #FFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-tariff-buy:hover {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.24) 0%, rgba(0, 102, 255, 0.24) 50%, rgba(184, 23, 238, 0.24) 100%);
  border-color: var(--bt-neon-cyan);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.25);
  transform: translateY(-1px);
}

.btn-tariff-buy.featured {
  background: var(--bt-gradient-btn);
  border: none;
  box-shadow: var(--bt-glow-btn);
}

.btn-tariff-buy.featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.6), 0 0 20px rgba(184, 23, 238, 0.4);
}

.btn-tariff-buy:active {
  transform: scale(0.98);
}

/* ─── Changelog Stream ─── */
.changelog-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bt-border-subtle);
  border-radius: var(--bt-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-version {
  font-size: 10px;
  font-weight: 800;
  color: var(--bt-neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.news-date {
  font-size: 10px;
  color: var(--bt-text-dim);
}

.news-title {
  font-size: 15px;
  font-weight: 850;
  color: #FFF;
}

.news-desc {
  font-size: 12px;
  color: var(--bt-text-secondary);
  line-height: 1.5;
}

/* ─── FAQ Accordion ─── */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-card {
  border: 1px solid var(--bt-border-subtle);
  border-radius: var(--bt-radius-lg);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-card.open {
  border-color: var(--bt-border-brand);
  background: rgba(0, 229, 255, 0.04);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 800;
  color: #FFF;
  cursor: pointer;
  user-select: none;
}

.faq-question i {
  font-style: normal;
  font-size: 16px;
  color: var(--bt-neon-cyan);
  transition: transform 0.2s ease;
}

.faq-card.open .faq-question i {
  transform: rotate(45deg);
  color: var(--bt-neon-violet);
}

.faq-answer {
  display: none;
  padding: 0 16px 14px;
  font-size: 12px;
  color: var(--bt-text-secondary);
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.faq-card.open .faq-answer {
  display: block;
  animation: fadeIn 0.2s ease-out;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ─── Main Screen Studio Voice Quick Switcher & Filters ─── */
.gender-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.gender-filter-btn {
  flex: 1;
  height: 36px;
  min-height: 36px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--bt-radius-pill);
  color: var(--bt-text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gender-filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFF;
}

.gender-filter-btn.active {
  background: linear-gradient(180deg, #007AFF 0%, #0062D2 100%);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 122, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.main-voice-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.main-voice-search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: rgba(10, 12, 20, 0.85);
  border: 1px solid var(--bt-border-subtle);
  border-radius: var(--bt-radius-md);
  color: #FFF;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.main-voice-search-wrap input:focus {
  border-color: var(--bt-neon-cyan);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}

.main-voice-search-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--bt-text-dim);
  pointer-events: none;
}

.voice-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.voice-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bt-border-subtle);
  border-radius: var(--bt-radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--bt-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.voice-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
}

.voice-chip:active {
  transform: scale(0.96);
}

.voice-chip.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.25) 0%, rgba(0, 102, 255, 0.2) 40%, rgba(184, 23, 238, 0.25) 100%);
  border-color: var(--bt-neon-cyan);
  color: #FFF;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.35);
}

.voice-chip-avatar {
  font-size: 13px;
}

.voice-chip-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--bt-text-secondary);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.voice-chip-remove-btn:hover {
  background: rgba(255, 71, 87, 0.35);
  color: #FF4757;
  transform: scale(1.15);
}

/* ─── Admin Sub-Navigation (Apple Cupertino Segmented Control) ─── */
.admin-subnav {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  background: rgba(120, 120, 128, 0.18);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  align-items: center;
}

.admin-subnav::-webkit-scrollbar {
  display: none;
}

.admin-subnav-btn {
  flex: 0 0 auto;
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  background: transparent;
  color: var(--bt-text-secondary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.admin-subnav-btn span {
  pointer-events: none;
}

.admin-subnav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF;
}

.admin-subnav-btn.active {
  background: linear-gradient(180deg, #007AFF 0%, #0062D2 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 122, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.admin-subpanel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-subpanel.hidden {
  display: none !important;
}

/* ─── Admin Cards (High-Performance Glass, 0% GPU Stalls) ─── */
.admin-user-card,
.admin-tier-card,
.admin-request-card,
.bulk-keys-card {
  background: rgba(20, 22, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  max-width: 100%;
  word-break: break-word;
  content-visibility: auto;
  contain-intrinsic-size: 140px;
}

.admin-user-card:hover,
.admin-tier-card:hover,
.admin-request-card:hover,
.bulk-keys-card:hover {
  border-color: rgba(0, 122, 255, 0.4);
}

.admin-user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-user-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: var(--bt-text-secondary);
}

.admin-user-details code {
  font-family: var(--bt-family-mono, monospace);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--bt-neon-cyan);
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* ─── Unified Admin User Badges (Screen 3 Fix) ─── */
.admin-badges-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-admin-role,
.badge-admin-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  line-height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-admin-role {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2E8F0;
}

.badge-admin-role.role-admin {
  background: rgba(0, 210, 255, 0.16);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: var(--bt-neon-cyan);
}

.badge-admin-tier.tier-ultra {
  background: rgba(184, 23, 238, 0.16);
  border: 1px solid rgba(184, 23, 238, 0.35);
  color: #D946EF;
}

.badge-admin-tier.tier-pro {
  background: rgba(0, 122, 255, 0.16);
  border: 1px solid rgba(0, 122, 255, 0.35);
  color: #38BDF8;
}

.badge-admin-tier.tier-start {
  background: rgba(52, 199, 89, 0.16);
  border: 1px solid rgba(52, 199, 89, 0.35);
  color: #4ADE80;
}

.badge-admin-tier.tier-free {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94A3B8;
}

/* ─── Profile Status & API Badges (Screen 2 Fix) ─── */
.badge-status-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  line-height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(0, 210, 255, 0.14);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: var(--bt-neon-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
}

.badge-status-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  line-height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(255, 59, 48, 0.14);
  border: 1px solid rgba(255, 59, 48, 0.35);
  color: #FF453A;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
}

.badge-api-version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  line-height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(0, 122, 255, 0.14);
  border: 1px solid rgba(0, 122, 255, 0.35);
  color: #5AC8FA;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  box-sizing: border-box;
}

/* ─── Developer API Action Buttons (Screen 1 Fix) ─── */
.api-actions-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
}

.btn-api-primary,
.btn-api-secondary {
  height: 42px;
  min-height: 42px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-sizing: border-box;
  padding: 0 14px;
  white-space: nowrap;
  transition: all 0.15s var(--bt-spring-tap);
  margin: 0 !important;
}

.btn-api-primary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #0A84FF 0%, #0066EE 100%);
  color: #FFFFFF;
  box-shadow: 0 0 18px rgba(0, 122, 255, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-api-primary:hover {
  box-shadow: 0 0 24px rgba(0, 122, 255, 0.65), inset 0 1px 1.5px rgba(255, 255, 255, 0.65);
}

.btn-api-primary:active {
  transform: scale(0.97);
}

.btn-api-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.btn-api-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(0, 122, 255, 0.5);
  color: #5AC8FA;
  box-shadow: 0 0 14px rgba(0, 122, 255, 0.25);
}

.btn-api-secondary:active {
  transform: scale(0.97);
}

/* ─── Unified Admin Action Buttons (Apple Capsule) ─── */
.btn-admin-action {
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s var(--bt-spring-tap);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-admin-action:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-admin-action:active {
  transform: scale(0.96);
}

.btn-admin-action.primary {
  background: linear-gradient(180deg, #0A84FF 0%, #0066EE 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.35);
}

.btn-admin-action.primary:hover {
  background: linear-gradient(180deg, #1A87FF 0%, #0A6CE0 100%);
}

.btn-admin-action.cyan {
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.32);
  color: var(--bt-neon-cyan);
}

.btn-admin-action.cyan:hover {
  background: rgba(0, 210, 255, 0.22);
}

.btn-admin-action.violet {
  background: rgba(184, 23, 238, 0.12);
  border: 1px solid rgba(184, 23, 238, 0.32);
  color: var(--bt-neon-violet);
}

.btn-admin-action.violet:hover {
  background: rgba(184, 23, 238, 0.22);
}

.btn-admin-action.danger {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.32);
  color: #FF453A;
}

.btn-admin-action.danger:hover {
  background: rgba(255, 59, 48, 0.22);
  border-color: rgba(255, 59, 48, 0.5);
}

.btn-admin-action.neutral {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

.btn-admin-action.neutral:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-admin-action svg {
  stroke-width: 2;
  flex-shrink: 0;
}

/* ─── Admin Tiers (Unified 44px Height Inputs) ─── */
.admin-tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.admin-tier-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.admin-tier-field label {
  font-size: 11px;
  color: var(--bt-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.admin-tier-field input {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-tier-field input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(0, 122, 255, 0.7);
  box-shadow: 0 0 0 3.5px rgba(0, 122, 255, 0.22), 0 4px 16px rgba(0, 122, 255, 0.15);
}

.admin-tier-card .btn-primary-studio,
.admin-tier-field .btn-primary-studio {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  padding: 0 16px;
  white-space: nowrap;
}

/* ─── Bulk Keys Management ─── */
.bulk-keys-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 110px;
  max-height: 240px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
  color: #FFFFFF;
  font-family: var(--bt-family-mono, monospace);
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bulk-keys-textarea:focus {
  border-color: rgba(0, 122, 255, 0.7);
  box-shadow: 0 0 0 3.5px rgba(0, 122, 255, 0.22), 0 4px 16px rgba(0, 122, 255, 0.15);
}

.bulk-keys-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-keys-count-badge {
  font-size: 12px;
  color: var(--bt-neon-cyan);
  font-weight: 700;
}

/* ─── Cyber Language Selector (Harmonious Height & Style Matching Inputs) ─── */
.select-lang-cyber {
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23007AFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #FFFFFF;
  padding: 0 32px 0 14px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  line-height: 34px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.select-lang-cyber:focus {
  border-color: #007AFF;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
  background-color: rgba(20, 24, 34, 0.95);
}

.select-lang-cyber option {
  background: #0B0E14;
  color: #FFF;
  padding: 10px;
  font-size: 13px;
}

/* ─── Main Voice Search Input (Harmonious Height) ─── */
.main-voice-search-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.main-voice-search-wrap input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  background: var(--bt-bg-input, #0A0B10);
  border: 1px solid var(--bt-border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--bt-radius-lg, 14px);
  padding: 0 16px 0 42px;
  color: #FFF;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.main-voice-search-wrap input:focus {
  border-color: var(--bt-neon-cyan);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.25);
}

.main-voice-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bt-text-dim);
  font-size: 15px;
  pointer-events: none;
}

/* ─── Voice Cloning Styles ─── */
.clone-studio-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: var(--bt-radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.clone-dropzone {
  border: 2px dashed rgba(0, 210, 255, 0.4);
  border-radius: var(--bt-radius-md);
  padding: 20px 14px;
  text-align: center;
  background: rgba(0, 210, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.clone-dropzone:hover {
  border-color: var(--bt-neon-cyan);
  background: rgba(0, 210, 255, 0.08);
}

.clone-record-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-record-mic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(184, 23, 238, 0.4);
  background: rgba(184, 23, 238, 0.15);
  color: var(--bt-neon-violet);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-record-mic.recording {
  background: var(--bt-neon-violet);
  color: #FFF;
  animation: pulse 1s infinite;
}


/* ─── Modal Dialog ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: auto;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--bt-bg-glass);
  border: 1px solid var(--bt-border-brand);
  border-radius: var(--bt-radius-xl);
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--bt-glow-cyan);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 16px;
  font-weight: 850;
  color: #FFF;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--bt-text-dim);
  font-size: 20px;
  cursor: pointer;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bt-neon-cyan);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.request-status-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.request-status-pill.pending {
  background: rgba(255, 180, 0, 0.15);
  color: #FFB400;
  border: 1px solid rgba(255, 180, 0, 0.35);
}

.request-status-pill.approved {
  background: rgba(0, 212, 170, 0.15);
  color: #00D4AA;
  border: 1px solid rgba(0, 212, 170, 0.35);
}

.request-status-pill.rejected {
  background: rgba(255, 71, 87, 0.15);
  color: #FF4757;
  border: 1px solid rgba(255, 71, 87, 0.35);
}

/* ─── Studio Voice Categories & Filter Chips ─── */
.studio-categories-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 6px 10px 6px;
  margin: -6px -6px -4px -6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.studio-categories-scroll::-webkit-scrollbar { display: none; }

.studio-cat-chip {
  flex-shrink: 0;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--bt-radius-pill);
  color: var(--bt-text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
}

.studio-cat-chip:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.25);
}

.studio-cat-chip.active {
  background: linear-gradient(180deg, #007AFF 0%, #0062D2 100%);
  border-color: rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ─── Favorites Stars & Quick Strip ─── */
.btn-fav-star {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-fav-star .star-svg,
.btn-fav-star svg,
.btn-fav-star polygon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  transition: all 0.2s ease;
}

.btn-fav-star:hover {
  background: rgba(255, 214, 10, 0.12);
  border-color: rgba(255, 214, 10, 0.4);
  color: #FFD60A;
  transform: scale(1.08);
}

.btn-fav-star.active {
  background: rgba(255, 214, 10, 0.18);
  border-color: rgba(255, 214, 10, 0.7);
  color: #FFD60A;
  box-shadow: 0 0 12px rgba(255, 214, 10, 0.4);
  transform: scale(1.04);
}

.btn-fav-star.active .star-svg,
.btn-fav-star.active svg,
.btn-fav-star.active polygon {
  fill: #FFD60A;
  stroke: #FFD60A;
}

.voice-fav-icon {
  display: inline-block;
  font-size: 12px;
  color: #FFD700;
  margin-right: 4px;
}

.favorites-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding: 0 2px;
}

.favorites-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bt-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.favorites-empty-hint {
  font-size: 11px;
  color: var(--bt-text-dim);
  padding: 6px 10px;
  border-radius: var(--bt-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ─── Studio Voice Badges & Locales ─── */
.accent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  line-height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 102, 255, 0.3);
  color: #60A5FA;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-sizing: border-box;
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}

.usecase-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  line-height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(184, 23, 238, 0.14);
  border: 1px solid rgba(184, 23, 238, 0.3);
  color: var(--bt-neon-violet);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-sizing: border-box;
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Cyber Border Glow Accents ─── */
.cyber-card-glow {
  border: 1px solid rgba(0, 210, 255, 0.32) !important;
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.12), 0 0 25px rgba(184, 23, 238, 0.08) !important;
}

.cyber-border-gradient {
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
}

/* ─── BlooTube Voice Generation Config Controls (Apple Liquid Glass) ─── */
.generation-config-card {
  position: relative;
  z-index: 20;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.generation-config-card.dropdown-active {
  z-index: 90;
}

/* Custom Emotion Dropdown (Liquid Glass) */
.custom-emotion-dropdown {
  position: relative;
  width: 100%;
  z-index: 50;
}

.emotion-selected-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #FFF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.2s ease;
}

.emotion-selected-box:hover, .emotion-selected-box.active {
  border-color: var(--bt-apple-blue);
  box-shadow: 0 0 16px rgba(0, 122, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.emotion-options-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(28, 28, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 500;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
}

.emotion-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #FFF;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.emotion-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.emotion-option.selected {
  background: rgba(0, 122, 255, 0.22);
  color: var(--bt-apple-blue);
  font-weight: 700;
}

.emotion-emoji {
  font-size: 16px;
  line-height: 1;
}

.btn-quick-day {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--bt-text-primary, #FFFFFF);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  user-select: none;
}
.btn-quick-day:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFF;
}
.btn-quick-day:active {
  transform: scale(0.96);
}
.btn-quick-day.active {
  background: linear-gradient(180deg, #007AFF 0%, #0062D2 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFF;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.35);
}

.btn-hist-del {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.28);
  color: #FF3B30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
}
.btn-hist-del:hover, .btn-hist-del:active {
  background: rgba(255, 59, 48, 0.24);
  border-color: #FF3B30;
  color: #FFF;
  box-shadow: 0 0 12px rgba(255, 59, 48, 0.35);
  transform: scale(1.06);
}

/* ─── Channel Subscription Gate Overlay ─── */
.channel-gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 11, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.channel-gate-backdrop.hidden {
  display: none !important;
}

.channel-gate-modal {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, rgba(14, 18, 28, 0.95) 0%, rgba(20, 15, 32, 0.95) 100%);
  border: 1px solid var(--bt-border-brand);
  border-radius: var(--bt-radius-xl);
  padding: 28px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), var(--bt-glow-cyan);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.channel-gate-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15) 0%, rgba(184, 23, 238, 0.15) 100%);
  border: 1px solid rgba(0, 210, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 4px;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
}

.tariff-card.free-card {
  border-color: rgba(0, 210, 255, 0.25);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.tariff-card.free-card .tariff-name {
  color: #FFF;
}

#btn-gate-check-sub {
  background: linear-gradient(135deg, rgba(0, 245, 180, 0.14) 0%, rgba(0, 210, 255, 0.14) 100%) !important;
  border: 1px solid rgba(0, 245, 180, 0.45) !important;
  color: #00F5B4 !important;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(0, 245, 180, 0.15);
  transition: all 0.2s ease;
}

#btn-gate-check-sub:hover {
  background: linear-gradient(135deg, rgba(0, 245, 180, 0.25) 0%, rgba(0, 210, 255, 0.25) 100%) !important;
  border-color: #00F5B4 !important;
  box-shadow: 0 6px 24px rgba(0, 245, 180, 0.35);
  transform: translateY(-1px);
}

#gate-sub-status {
  width: 100%;
  font-size: 12px;
  line-height: 1.45;
  min-height: 20px;
  margin: 4px 0;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APPLE LIQUID GLASS 2026 — UNIVERSAL INPUTS, SELECTS & CONTROLS
   ═══════════════════════════════════════════════════════════════════════════ */

/* Universal Studio Input & Select Fields */
.studio-text-input,
.select-cyber,
input[type="text"]:not(.capsule-slider):not(.scrubber-range),
input[type="number"]:not(.capsule-slider):not(.scrubber-range),
input[type="password"],
input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0 14px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-appearance: none;
  appearance: none;
}

select.select-cyber,
select:not(#main-lang-select):not(#clone-voice-lang):not(#catalog-lang-select) {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23007AFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0 38px 0 14px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

select option {
  background: #12141A;
  color: #FFFFFF;
  padding: 10px 14px;
}

/* Universal Input Focus Glow */
.studio-text-input:focus,
.select-cyber:focus,
input[type="text"]:focus:not(.capsule-slider):not(.scrubber-range),
input[type="number"]:focus:not(.capsule-slider):not(.scrubber-range),
input[type="password"]:focus,
input[type="search"]:focus,
select.select-cyber:focus {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(0, 122, 255, 0.7);
  box-shadow: 0 0 0 3.5px rgba(0, 122, 255, 0.22), 0 4px 16px rgba(0, 122, 255, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

/* ─── Vector Clone Badge & Digital Twin Icon ─── */
.clone-voice-badge,
.clone-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255, 55, 95, 0.16) 0%, rgba(191, 90, 242, 0.16) 100%);
  border: 1px solid rgba(255, 55, 95, 0.35);
  color: #FF375F;
  letter-spacing: 0.2px;
}

.clone-badge-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.2;
}

.clone-chip-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 55, 95, 0.2);
  color: #FF375F;
  margin-left: 2px;
  flex-shrink: 0;
}

/* ─── Circular Glass Action Buttons (History & Clones) ─── */
.preview-play-btn.hist-play-btn,
.preview-play-btn.hist-tg-btn,
.preview-play-btn.hist-download-btn,
.preview-play-btn.clone-play-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #FFFFFF !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 0 !important;
  flex-shrink: 0;
}

.preview-play-btn.hist-play-btn:hover,
.preview-play-btn.clone-play-btn:hover {
  background: rgba(0, 122, 255, 0.25) !important;
  border-color: rgba(0, 122, 255, 0.6) !important;
  color: #007AFF !important;
  transform: scale(1.06);
}

.preview-play-btn.hist-tg-btn {
  background: rgba(0, 122, 255, 0.12) !important;
  border-color: rgba(0, 122, 255, 0.35) !important;
  color: #0A84FF !important;
}
.preview-play-btn.hist-tg-btn:hover {
  background: rgba(0, 122, 255, 0.28) !important;
  border-color: #0A84FF !important;
  color: #FFF !important;
  transform: scale(1.06);
}

.preview-play-btn.hist-download-btn:hover {
  background: rgba(48, 209, 88, 0.22) !important;
  border-color: rgba(48, 209, 88, 0.55) !important;
  color: #30D158 !important;
  transform: scale(1.06);
}

/* ─── Tariffs Vector Icons & Badges ─── */
.tariff-check-icon {
  width: 14px;
  height: 14px;
  stroke: #007AFF;
  stroke-width: 2.5;
  flex-shrink: 0;
  vertical-align: -2px;
  margin-right: 6px;
}

.tariff-badge-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
  margin-right: 4px;
  vertical-align: -1px;
}

.tariff-badge-floating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
}

/* ─── Admin Subnav SVG Icons ─── */
.admin-subnav-svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
}

/* ─── FAQ Accordion Vector Icons ─── */
.faq-chevron-icon {
  width: 15px;
  height: 15px;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 2.2;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s;
  flex-shrink: 0;
}

.faq-card.open .faq-chevron-icon {
  transform: rotate(180deg);
  stroke: var(--bt-apple-blue);
}

/* ─── News Vector Icons ─── */
.news-header-icon {
  width: 20px;
  height: 20px;
  stroke: var(--bt-apple-blue);
  stroke-width: 2;
  flex-shrink: 0;
}

.news-item-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.news-item-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  flex-shrink: 0;
}

/* ─── Maintenance Mode & Access Control ─── */
.maintenance-active-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(255, 149, 0, 0.16) 0%, rgba(255, 59, 48, 0.14) 100%);
  border: 1px solid rgba(255, 149, 0, 0.38);
  border-radius: var(--bt-radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(255, 149, 0, 0.12);
  animation: bannerPulse 3s infinite ease-in-out;
}
@keyframes bannerPulse {
  0%, 100% { border-color: rgba(255, 149, 0, 0.38); }
  50% { border-color: rgba(255, 149, 0, 0.7); }
}
.maint-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #FFF;
  line-height: 1.35;
}
.maint-banner-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.maint-banner-text strong {
  color: #FF9500;
}
.btn-maint-banner-action {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--bt-radius-pill);
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--bt-spring-tap);
  flex-shrink: 0;
}
.btn-maint-banner-action:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-maint-banner-action:active {
  transform: scale(0.96);
}

.status-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--bt-radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.status-indicator-badge.off {
  background: rgba(52, 199, 89, 0.15);
  border: 1px solid rgba(52, 199, 89, 0.35);
  color: #30D158;
}
.status-indicator-badge.on {
  background: rgba(255, 59, 48, 0.18);
  border: 1px solid rgba(255, 59, 48, 0.45);
  color: #FF453A;
  animation: pulseExpire 2s infinite ease-in-out;
}

.whitelist-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.28);
  border-radius: var(--bt-radius-pill);
  font-size: 11.5px;
  color: #FFF;
  font-weight: 600;
}
.whitelist-chip-remove {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}
.whitelist-chip-remove:hover {
  color: #FF453A;
}

/* ─── Unified Admin Maintenance & Whitelist Form Styling ─── */
.maint-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.maint-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.maint-header-title {
  font-size: 14px;
  font-weight: 850;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Master Toggle Button (Apple Amber/Red Capsule) */
.btn-maint-master-toggle {
  width: 100%;
  height: 46px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, #FF9500 0%, #FF3B30 100%);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 59, 48, 0.35);
  transition: all 0.2s var(--bt-spring-tap);
  margin-bottom: 14px;
}
.btn-maint-master-toggle:active {
  transform: scale(0.98);
}

/* Admin Input + Action Button Row (Exact Brand Style: 44px Height, 14px Radius) */
.admin-input-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}
.admin-input-action-row .studio-text-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 44px;
  min-height: 44px;
  border-radius: 14px;
  font-size: 13px;
}
.admin-input-action-row .btn-admin-submit-btn {
  flex-shrink: 0;
  width: auto;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(180deg, #0A84FF 0%, #0066EE 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 122, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  margin: 0;
  transition: all 0.2s var(--bt-spring-tap);
}
.admin-input-action-row .btn-admin-submit-btn:hover {
  background: linear-gradient(180deg, #1A8FFF 0%, #0A72F0 100%);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.45);
}
.admin-input-action-row .btn-admin-submit-btn:active {
  transform: scale(0.97);
}

/* Responsive Topbar Rules for Ultra-Narrow Screens */
@media (max-width: 400px) {
  .brand-badge {
    display: none;
  }
}
@media (max-width: 360px) {
  .topbar {
    padding: 6px 10px;
    gap: 6px;
  }
  .brand-title {
    font-size: 13.5px;
  }
  .header-status-badge {
    padding: 0 6px;
  }
  .status-badge-divider {
    margin: 0 4px;
  }
  .license-pill-sep,
  .license-pill-term {
    display: none;
  }
}

/* ─── Developer API Key Management ─── */
.api-key-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(16, 19, 32, 0.65);
  border: 1px solid var(--bt-border-subtle);
  border-radius: var(--bt-radius-md);
  transition: border-color 0.2s, background 0.2s;
}
.api-key-item:hover {
  border-color: rgba(0, 210, 255, 0.35);
  background: rgba(20, 24, 40, 0.8);
}
.api-key-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.api-key-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.api-key-mask {
  font-family: monospace;
  font-size: 11px;
  color: var(--bt-neon-cyan);
  letter-spacing: 0.5px;
}
.api-key-meta {
  font-size: 10px;
  color: var(--bt-text-dim);
}
.btn-revoke-key {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: #FF453A;
  border-radius: var(--bt-radius-md);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.btn-revoke-key:hover {
  background: rgba(255, 59, 48, 0.25);
}
.btn-revoke-key:active {
  transform: scale(0.95);
}

