/* ==============================================================================
   WaveForge • Lossless YouTube to WAV Studio
   Designer-Grade Design System (Linear / Raycast / Apple Aesthetic)
   ============================================================================== */

:root {
  /* Surface Tokens */
  --bg-app: #0c0d12;
  --bg-card: #12151e;
  --bg-card-hover: #161a26;
  --bg-well: #090b10;
  --bg-elevated: #181c28;
  --bg-badge: #141722;

  /* Hairline Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);
  --border-active: rgba(59, 130, 246, 0.5);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Accent Colors */
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-active: #1e40af;
  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-crimson: #ef4444;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Tactile Shadows */
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 48px -12px rgba(0, 0, 0, 0.65);
  --shadow-btn-primary: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 14px rgba(37, 99, 235, 0.35);
  --shadow-btn-emerald: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 14px rgba(16, 185, 129, 0.3);

  /* Transitions */
  --ease-fast: 0.14s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-normal: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Layout Shell */
.site-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==============================================================================
   Site Navigation
   ============================================================================== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 34px;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #161b26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-bmc-container {
  display: inline-flex;
  align-items: center;
}

.nav-bmc-container .bmc-btn-container {
  display: inline-flex !important;
  align-items: center !important;
}

.nav-bmc-container .bmc-btn {
  height: 34px !important;
  min-width: auto !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  border-radius: var(--radius-sm) !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  transition: transform var(--ease-fast), filter var(--ease-fast) !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.nav-bmc-container .bmc-btn:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.06) !important;
}

.nav-bmc-container .bmc-btn svg {
  height: 17px !important;
  width: 17px !important;
  margin-right: 5px !important;
}

.nav-bmc-container .bmc-btn-text {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: normal !important;
}

/* ==============================================================================
   Hero Section
   ============================================================================== */
.hero-block {
  text-align: center;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(1.85rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-subtext {
  font-size: 0.94rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ==============================================================================
   Live Studio Telemetry Counter Bar (Option A - Production SaaS Design)
   ============================================================================== */
.telemetry-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: rgba(18, 22, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  margin-bottom: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  width: 100%;
}

.telemetry-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 8px;
  min-width: 0;
  position: relative;
}

.telemetry-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.telemetry-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 3px;
}

.telemetry-number {
  font-family: var(--font-sans);
  font-size: 1.14rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  display: inline-block;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.2s ease;
}

.telemetry-number.pulse-tick {
  color: #38bdf8 !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

.telemetry-green {
  color: #34d399 !important;
}

.telemetry-caption {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

/* Pulsating Live Status Badge */
.telemetry-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 2px 6px;
  border-radius: 999px;
  user-select: none;
}

.live-dot-wrap {
  position: relative;
  width: 6px;
  height: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-dot-core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.live-dot-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.7);
  animation: livePing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes livePing {
  0% {
    transform: scale(1);
    opacity: 0.95;
  }
  75%, 100% {
    transform: scale(3);
    opacity: 0;
  }
}

.live-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #34d399;
  line-height: 1;
}

/* ==============================================================================
   Primary Workstation Converter Card
   ============================================================================== */
.converter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
  margin-bottom: 30px;
  position: relative;
  width: 100%;
  transition: border-color var(--ease-normal), box-shadow var(--ease-normal);
}

.converter-box.drag-active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35), var(--shadow-card);
}

/* Interactive Drag & Drop Overlay */
.dropzone-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: rgba(12, 13, 18, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px dashed #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
  animation: dropzoneFade 0.16s ease-out;
}

@keyframes dropzoneFade {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dropzone-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
}

.dropzone-icon {
  width: 46px;
  height: 46px;
  color: #3b82f6;
  animation: dropzoneBounce 1.2s infinite ease-in-out;
}

@keyframes dropzoneBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.dropzone-main-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.dropzone-sub-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.converter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Field Header */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.field-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.field-label {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.field-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Input Well */
.input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-well);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 4px 6px 4px 12px;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  width: 100%;
}

.input-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.input-prefix-icon {
  display: flex;
  align-items: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.yt-icon {
  width: 20px;
  height: 20px;
  color: #ff0000;
}

.text-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 15px; /* >= 16px on iOS handled via responsive */
  color: var(--text-primary);
  padding: 8px 4px;
  min-width: 0;
}

.text-input::placeholder {
  color: var(--text-dim);
}

.input-actions-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-input-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--ease-fast), background var(--ease-fast);
}

.btn-input-clear:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.btn-input-clear svg {
  width: 14px;
  height: 14px;
}

.btn-paste-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all var(--ease-fast);
}

.btn-paste-action:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-paste-action svg {
  width: 13px;
  height: 13px;
}

/* ==============================================================================
   Video Preview Card
   ============================================================================== */
.preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-well);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  width: 100%;
}

.preview-thumb-wrap {
  width: 88px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #000000;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-info {
  flex: 1;
  min-width: 0;
}

.preview-channel {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.preview-video-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Skeleton Loader & Shimmer Animation */
.preview-skeleton {
  pointer-events: none;
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite ease-in-out;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.skeleton-line {
  border-radius: var(--radius-xs);
  height: 10px;
}

.skeleton-line-sm {
  width: 34%;
  height: 9px;
}

.skeleton-line-lg {
  width: 86%;
  height: 12px;
}

.skeleton-line-md {
  width: 58%;
  height: 10px;
}

/* ==============================================================================
   Sample Rate Segmented Control (Apple / Linear Tray Style)
   ============================================================================== */
.options-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

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

.options-label {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.btn-toggle-adv {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: var(--radius-xs);
  transition: color var(--ease-fast);
}

.btn-toggle-adv:hover {
  color: var(--text-primary);
}

.trim-icon-svg {
  width: 14px;
  height: 14px;
  color: #38bdf8;
}

.trim-active-indicator {
  font-size: 0.66rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.chevron-svg {
  width: 14px;
  height: 14px;
  transition: transform var(--ease-normal);
}

.btn-toggle-adv.open .chevron-svg {
  transform: rotate(180deg);
}

/* Recessed Segmented Track */
.segmented-control {
  background: var(--bg-well);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
}

.preset-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 6px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: background var(--ease-fast), border-color var(--ease-fast), color var(--ease-fast);
  text-align: center;
}

.preset-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.preset-pill:hover {
  background: rgba(255, 255, 255, 0.03);
}

.preset-pill.active {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.seg-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.preset-pill.active .seg-title {
  color: #ffffff;
}

.seg-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.preset-pill.active .seg-sub {
  color: #38bdf8;
}

/* ==============================================================================
   Advanced Drawer
   ============================================================================== */
.adv-drawer {
  background: var(--bg-well);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 4px;
  animation: drawerSlide 0.18s ease-out;
}

@keyframes drawerSlide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trim-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trim-studio-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trim-studio-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.trim-duration-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.btn-reset-trim {
  background: transparent;
  border: none;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--ease-fast);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.btn-reset-trim:hover {
  color: #f87171;
}

.adv-drawer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.adv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-label {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.label-opt {
  color: var(--text-dim);
  font-size: 0.7rem;
}

.time-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.select-input, .adv-text-input {
  background: var(--bg-badge);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--ease-fast), background var(--ease-fast);
  width: 100%;
}

.adv-text-input {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

#startTimeInput {
  padding-right: 48px;
}

#endTimeInput {
  padding-right: 108px;
}

.select-input:focus, .adv-text-input:focus {
  border-color: #3b82f6;
}

.adv-text-input.has-value {
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

.adv-text-input.input-error {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.08);
}

.btn-quick-time {
  position: absolute;
  right: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 3px 6px;
  cursor: pointer;
  transition: all var(--ease-fast);
}

.btn-quick-time:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.quick-end-presets {
  position: absolute;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.quick-end-presets .btn-quick-time {
  position: static;
  padding: 2px 5px;
  font-size: 0.65rem;
}

.trim-error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.76rem;
  color: #fca5a5;
  margin-top: 8px;
  animation: drawerSlide 0.14s ease-out;
}

.error-sm-icon {
  width: 14px;
  height: 14px;
  color: #ef4444;
  flex-shrink: 0;
}

.trim-presets-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.presets-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.preset-cut-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 9px;
  cursor: pointer;
  transition: all var(--ease-fast);
}

.preset-cut-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

/* ==============================================================================
   Primary Action Button
   ============================================================================== */
.submit-action {
  width: 100%;
}

.btn-primary-convert {
  width: 100%;
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 20px;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-btn-primary);
  transition: transform var(--ease-fast), filter var(--ease-fast);
}

.btn-primary-convert:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-primary-convert:active {
  transform: translateY(1px);
}

.btn-icon {
  width: 17px;
  height: 17px;
}

.btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-spinner.hidden {
  display: none !important;
}

.btn-spinner svg,
svg.btn-spinner {
  width: 17px;
  height: 17px;
  animation: spinRotate 0.8s linear infinite;
}

@keyframes spinRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.btn-primary-convert.loading {
  opacity: 0.82;
  cursor: not-allowed;
  filter: none !important;
  transform: none !important;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 90vw;
}

.toast-item {
  pointer-events: auto;
  background: rgba(18, 21, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: toastSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-item.toast-out {
  opacity: 0;
  transform: translateY(8px);
}

.toast-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #10b981;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* First-Conversion Buy Me a Coffee Modal */
.bmc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bmc-modal-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px -8px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 32px 28px;
  max-width: 460px;
  width: 100%;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalPopIn 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.bmc-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--ease-fast);
}

.bmc-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.bmc-modal-close svg {
  width: 14px;
  height: 14px;
}

.bmc-modal-badge {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FFDD00 0%, #F59E0B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.badge-glow-ring {
  position: absolute;
  inset: -5px;
  border-radius: 23px;
  background: radial-gradient(circle, rgba(255, 221, 0, 0.3) 0%, transparent 70%);
  z-index: -1;
  animation: glowPulse 2s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.bmc-cup-icon {
  width: 32px;
  height: 32px;
  color: #000000;
}

.bmc-modal-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.bmc-modal-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.bmc-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-modal-bmc {
  width: 100%;
  background: linear-gradient(135deg, #FFDD00, #FBBF24);
  color: #0a0a0c;
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-weight: 700;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.32);
  transition: transform var(--ease-fast), filter var(--ease-fast);
}

.btn-modal-bmc:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-modal-bmc svg {
  width: 18px;
  height: 18px;
}

.bmc-modal-secondary-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
  width: 100%;
}

.btn-modal-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--ease-fast);
}

.btn-modal-copy:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-modal-copy svg {
  width: 14px;
  height: 14px;
  color: #38bdf8;
}

.btn-modal-dismiss {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--ease-fast);
}

.btn-modal-dismiss:hover {
  color: var(--text-secondary);
}

/* ==============================================================================
   Status Panels (Processing, Success, Error)
   ============================================================================== */
.status-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.panel-heading {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 3px;
}

.panel-subtext {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Indeterminate Progress Bar */
.processing-panel {
  text-align: center;
  align-items: center;
  padding: 10px 0;
}

.progress-bar-wrap {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 22px;
  position: relative;
}

.progress-bar-indeterminate {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: var(--radius-full);
  position: absolute;
  animation: indeterminateShimmer 1.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes indeterminateShimmer {
  0% {
    left: -35%;
  }
  100% {
    left: 100%;
  }
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 16px;
  text-align: left;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--ease-fast);
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

.step-item.active {
  color: var(--text-primary);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
}

.step-item.active .step-dot {
  background: var(--accent-blue);
  box-shadow: 0 0 6px var(--accent-blue);
}

.step-item.done {
  color: var(--text-secondary);
}

.step-item.done .step-dot {
  background: var(--accent-emerald);
}

.time-elapsed-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.time-counter {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==============================================================================
   Success View
   ============================================================================== */
.success-panel {
  padding: 4px 0;
}

.success-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.success-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.success-icon-badge svg {
  width: 18px;
  height: 18px;
}

.success-meta {
  flex: 1;
  min-width: 0;
}

.success-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 2px;
  word-break: break-word;
}

.success-channel {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.format-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.badge-item {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-badge);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.audio-box {
  background: var(--bg-well);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 18px;
  width: 100%;
}

.html5-audio {
  width: 100%;
  height: 36px;
  outline: none;
  filter: invert(0.88) hue-rotate(180deg);
}

.result-actions {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  width: 100%;
}

.btn-download-primary {
  background: var(--accent-emerald);
  color: #07130f;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-btn-emerald);
  transition: filter var(--ease-fast), transform var(--ease-fast);
}

.btn-download-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-download-primary[draggable="true"] {
  cursor: grab;
  user-select: none;
}

.btn-download-primary[draggable="true"]:active {
  cursor: grabbing;
}

.btn-ghost-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background var(--ease-fast);
}

.btn-ghost-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* ==============================================================================
   Error View
   ============================================================================== */
.error-panel {
  padding: 16px 6px;
  text-align: center;
  align-items: center;
}

.error-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-crimson);
  margin-bottom: 10px;
}

.error-icon svg {
  width: 20px;
  height: 20px;
}

.error-heading {
  color: #fca5a5;
}

.error-pre-wrap {
  width: 100%;
  margin: 10px 0 16px;
  background: #08090d;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: left;
}

.error-pre {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #f87171;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 140px;
  overflow-y: auto;
}

.btn-retry {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background var(--ease-fast);
}

.btn-retry:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ==============================================================================
   Recent Conversions (Compact & Restrained)
   ============================================================================== */
.history-block {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 26px;
  width: 100%;
}

.history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.history-top-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.history-svg {
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
}

.history-heading {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.btn-clear-link {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  transition: color var(--ease-fast), background var(--ease-fast);
}

.btn-clear-link:hover {
  color: var(--accent-crimson);
  background: rgba(239, 68, 68, 0.08);
}

.history-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  background: var(--bg-well);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  transition: border-color var(--ease-fast), background var(--ease-fast);
  width: 100%;
}

.history-item:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(255, 255, 255, 0.02);
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.history-thumb {
  width: 40px !important;
  height: 28px !important;
  max-width: 40px !important;
  max-height: 28px !important;
  border-radius: 4px;
  object-fit: cover !important;
  flex-shrink: 0;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.history-thumb-fallback {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.15) !important;
  border-color: rgba(37, 99, 235, 0.3);
}

.history-info {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.history-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  display: block;
}

.history-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  display: block;
}

.history-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--ease-fast);
}

.history-action-btn:hover {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border-color: rgba(37, 99, 235, 0.4);
}

.hist-btn-svg {
  width: 12px;
  height: 12px;
  color: currentColor;
}

/* ==============================================================================
   Curated Audio Resources (Epidemic Sound, Plugin Boutique, NordVPN)
   ============================================================================== */
.tools-section {
  margin-bottom: 28px;
  width: 100%;
}

.tools-heading-wrap {
  text-align: center;
  margin-bottom: 16px;
}

.tools-heading {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 3px;
}

.tools-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--ease-fast), border-color var(--ease-fast), box-shadow var(--ease-fast);
  min-width: 0;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
}

.tool-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.tool-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.epidemic-badge {
  background: #090e14;
  border-color: rgba(255, 255, 255, 0.16);
  padding: 6px;
}

.pb-badge {
  background: #009ad9;
  border-color: rgba(0, 166, 232, 0.4);
  padding: 0;
}

.nord-badge {
  background: #0d2256;
  border-color: rgba(70, 135, 255, 0.35);
  padding: 4px;
}

.tool-brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tool-cat {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.tool-meta {
  margin-bottom: 6px;
}

.tool-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.tool-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.tool-badge {
  font-size: 0.66rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.tool-link {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==============================================================================
   Technical Specifications
   ============================================================================== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  margin-bottom: 34px;
  width: 100%;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.spec-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 4px;
  flex-shrink: 0;
}

.spec-icon svg {
  width: 13px;
  height: 13px;
}

.spec-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.spec-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==============================================================================
   SEO Architecture & Content Blocks (HowTo, Comparison, FAQ)
   ============================================================================== */
.seo-content-block {
  margin-bottom: 32px;
  width: 100%;
}

.seo-block-header {
  text-align: center;
  margin-bottom: 16px;
}

.seo-block-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 4px;
}

.seo-block-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* How-To Step Cards */
.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.guide-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.guide-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 4px;
  padding: 2px 6px;
  width: fit-content;
}

.guide-step-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

.guide-step-body {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Format Comparison Table */
.table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.78rem;
  min-width: 500px;
}

.comparison-table th,
.comparison-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table .highlight-col {
  color: #ffffff;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.04);
}

.badge-good {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  font-weight: 600;
  font-size: 0.72rem;
}

.badge-lossy {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  font-weight: 500;
  font-size: 0.72rem;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--ease-fast);
}

.faq-item[open] {
  border-color: rgba(59, 130, 246, 0.35);
}

.faq-question {
  padding: 12px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform var(--ease-fast);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: #3b82f6;
}

.faq-answer {
  padding: 0 14px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.faq-answer strong {
  color: #ffffff;
}

/* Trust & Fair Use Box */
.trust-notice-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 30px;
  text-align: center;
}

.trust-notice-heading {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.trust-notice-body {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto;
}

/* Hero Badge Tag for Programmatic Pages */
.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.28);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

/* DAW / Creator Tip Banner */
.daw-tip-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.daw-tip-banner .tip-icon {
  width: 16px;
  height: 16px;
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 1px;
}

.daw-tip-banner .tip-text strong {
  color: #ffffff;
}

/* ==============================================================================
   HubSpot-Style Full-Width SaaS Mega Footer
   ============================================================================== */
.hubspot-footer {
  width: 100%;
  background-color: #101c2a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 50px;
  padding: 56px 24px 40px;
  color: #9fb3c8;
  font-family: var(--font-sans);
}

.hs-footer-container {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

/* Multi-Column Grid */
.hs-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.hs-footer-col {
  display: flex;
  flex-direction: column;
}

.hs-col-wide {
  min-width: 0;
}

.hs-subcol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hs-col-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hs-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hs-col-list li a {
  font-size: 0.81rem;
  color: #9fb3c8;
  text-decoration: none;
  line-height: 1.45;
  transition: color var(--ease-fast);
}

.hs-col-list li a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Expandable All-Converters Drawer */
.hs-directory-drawer {
  margin-bottom: 36px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hs-directory-details {
  width: 100%;
}

.hs-directory-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: 6px 0;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  transition: color var(--ease-fast);
}

.hs-directory-summary::-webkit-details-marker {
  display: none;
}

.hs-directory-summary:hover {
  color: #ffffff;
}

.hs-chevron-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--ease-fast);
  color: #64748b;
}

.hs-directory-details[open] .hs-chevron-icon {
  transform: rotate(180deg);
  color: #38bdf8;
}

.hs-directory-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 12px;
}

.hs-cat-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hs-cat-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hs-cat-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hs-link {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--ease-fast);
}

.hs-link:hover {
  color: #ffffff;
}

.hs-link.active {
  color: #38bdf8;
  font-weight: 600;
}

/* Social Media Icons Row */
.hs-footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hs-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fb3c8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--ease-fast);
  text-decoration: none;
}

.hs-social-icon svg {
  width: 16px;
  height: 16px;
}

.hs-social-icon:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Divider Line */
.hs-footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 26px;
}

/* Centered Brand Logo */
.hs-footer-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.hs-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
}

.hs-brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.hs-brand-mark svg {
  width: 15px;
  height: 15px;
}

.hs-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* Copyright Row */
.hs-footer-copyright {
  text-align: center;
  font-size: 0.78rem;
  color: #9fb3c8;
  margin-bottom: 12px;
}

/* Legal Links Row */
.hs-footer-legal-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.hs-legal-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--ease-fast);
}

.hs-legal-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hs-legal-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  user-select: none;
}

.hs-legal-link.active {
  color: #38bdf8;
  font-weight: 600;
}

/* ==============================================================================
   Legal & Compliance Pages Styling
   ============================================================================== */
.legal-page-container {
  max-width: 860px;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--ease-fast);
}

.btn-back-home:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #38bdf8;
}

.btn-back-home svg {
  width: 14px;
  height: 14px;
}

.legal-main {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.legal-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-well);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.legal-tabs-bar::-webkit-scrollbar {
  display: none;
}

.legal-tab-item {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--ease-fast);
}

.legal-tab-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.legal-tab-item.active {
  background: var(--bg-elevated);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.legal-doc-header {
  margin-bottom: 24px;
}

.legal-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.legal-meta-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
}

.legal-doc-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.legal-doc-sub {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 680px;
}

.legal-card-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.legal-sec {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-sec h2 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-sec p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.legal-sec ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-sec li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-sec strong {
  color: #ffffff;
}

.legal-sec code, .legal-sec kbd {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #38bdf8;
}

.legal-sec a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-callout-note {
  background: rgba(37, 99, 235, 0.08);
  border-left: 3px solid #3b82f6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin-top: 6px;
}

.legal-callout-note p {
  color: #bfdbfe;
  font-size: 0.86rem;
  line-height: 1.55;
}

.legal-contact-box {
  margin-top: 10px;
  background: var(--bg-well);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.contact-email {
  font-size: 1.05rem;
  font-weight: 700;
  color: #38bdf8 !important;
  text-decoration: none !important;
  font-family: var(--font-mono);
  transition: opacity var(--ease-fast);
}

.contact-email:hover {
  opacity: 0.85;
}

@media (max-width: 960px) {
  .hs-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .hs-col-wide {
    grid-column: span 2;
  }
  .hs-directory-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hs-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hs-col-wide {
    grid-column: span 1;
  }
  .hs-subcol-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .hs-directory-content {
    grid-template-columns: 1fr;
  }
  .hs-footer-legal-row {
    gap: 8px;
  }
}



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

/* ==============================================================================
   Mobile & Tablet Responsiveness
   ============================================================================== */
@media (max-width: 680px) {
  .site-container {
    padding: 16px 14px 44px;
  }

  .site-nav {
    padding-bottom: 14px;
    margin-bottom: 22px;
  }

  .hero-block {
    margin-bottom: 22px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .converter-box {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }

  .adv-drawer-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-steps-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .specs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 14px;
  }

  .telemetry-bar {
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
  }

  .telemetry-cell {
    align-items: flex-start;
    text-align: left;
    padding: 4px 6px;
  }

  .telemetry-cell:not(:last-child)::after {
    display: none;
  }

  .telemetry-head {
    justify-content: flex-start;
  }

  .telemetry-number {
    font-size: 1.05rem;
  }

  .telemetry-caption {
    font-size: 0.68rem;
  }
}

@media (max-width: 480px) {
  .site-container {
    padding: 12px 10px 40px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtext {
    font-size: 0.84rem;
  }

  .text-input {
    font-size: 16px; /* Prevents auto-zoom on mobile Safari */
  }

  .input-wrapper {
    padding: 3px 4px 3px 10px;
  }

  .btn-paste-action span {
    display: none;
  }

  .btn-paste-action {
    padding: 6px 8px;
  }

  .preset-pill {
    padding: 8px 3px;
  }

  .seg-title {
    font-size: 0.82rem;
  }

  .seg-sub {
    font-size: 0.62rem;
  }

  .nav-bmc-container .bmc-btn {
    height: 32px !important;
    padding: 0 8px !important;
  }

  .nav-bmc-container .bmc-btn-text {
    font-size: 12px !important;
  }
}

@media (max-width: 380px) {
  .telemetry-bar {
    grid-template-columns: 1fr 1fr;
    gap: 10px 8px;
    padding: 12px 10px;
  }

  .telemetry-number {
    font-size: 0.95rem;
  }

  .telemetry-caption {
    font-size: 0.64rem;
  }

  .telemetry-live-pill {
    padding: 1px 5px;
    gap: 4px;
  }

  .live-tag {
    font-size: 0.54rem;
  }
}
