/* ==========================================================================
   MarkItDown YouTube Transcriber - Modern Glassmorphism Styling
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121f;
  --bg-tertiary: #141c2e;
  
  --glass-surface: rgba(18, 26, 44, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(99, 102, 241, 0.4);
  --glass-glow: rgba(99, 102, 241, 0.15);

  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --accent-glow: 0 0 30px rgba(99, 102, 241, 0.35);

  --yt-red: #ff0033;
  --yt-gradient: linear-gradient(135deg, #ff0033 0%, #ff4d4d 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Glowing Background Orbs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: float 14s ease-in-out infinite alternate;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
  top: -100px;
  left: 15%;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
  top: 30%;
  right: -100px;
  animation-duration: 18s;
}

.glow-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
  bottom: 5%;
  left: -80px;
  animation-duration: 16s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Layout */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Glass panel utility */
.glass-panel {
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Header */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  margin-bottom: 36px;
  background: rgba(13, 18, 31, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
}

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

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--yt-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 0, 51, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.badge-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  color: #c7d2fe;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
  border-color: var(--accent-primary);
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 10px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Input Card */
.input-card {
  padding: 16px 20px;
  margin-bottom: 24px;
}

.url-input-container {
  display: flex;
  align-items: center;
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 6px 8px 6px 16px;
  gap: 12px;
  transition: all var(--transition-fast);
}

.url-input-container:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: rgba(10, 15, 28, 0.9);
}

.input-icon {
  color: var(--text-dim);
  display: flex;
  align-items: center;
}

#youtube-url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1rem;
  font-family: var(--font-body);
}

#youtube-url-input::placeholder {
  color: var(--text-dim);
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.primary-btn {
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
  transition: all var(--transition-fast);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55);
}

.primary-btn:active {
  transform: translateY(0);
}

/* Demo chips */
.demo-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-left: 4px;
}

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

.chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 5px 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Video Preview Card */
.video-preview-card {
  display: flex;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease-out;
}

.preview-thumb-container {
  position: relative;
  width: 220px;
  min-width: 220px;
  height: 124px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.preview-thumb-container:hover .preview-thumb {
  transform: scale(1.05);
}

.preview-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.preview-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 0, 51, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.5);
  transition: all var(--transition-fast);
}

.preview-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ff0033;
}

.preview-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.preview-channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.preview-channel {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.preview-date {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.preview-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Options / Settings Panel */
.options-card {
  padding: 20px 24px;
  margin-bottom: 24px;
}

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

.options-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c7d2fe;
}

.options-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.options-tag {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.option-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.slider-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* Radio Pills */
.radio-pill-group {
  display: flex;
  gap: 8px;
}

.radio-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

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

.radio-pill.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.pill-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

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

/* Slider */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Select wrapper */
.select-wrapper {
  position: relative;
}

.custom-select {
  width: 100%;
  appearance: none;
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 10px 36px 10px 14px;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.custom-select:focus {
  border-color: var(--accent-primary);
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-dim);
}

.field-helper {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Switch */
.toggle-field {
  justify-content: center;
}

.switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.switch-container input {
  display: none;
}

.switch-slider {
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  position: relative;
  transition: background var(--transition-fast);
}

.switch-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-fast);
}

.switch-container input:checked + .switch-slider {
  background: var(--accent-primary);
}

.switch-container input:checked + .switch-slider::before {
  transform: translateX(18px);
}

.switch-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Loading Panel */
.loading-panel {
  text-align: center;
  padding: 48px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

/* Error Banner */
.error-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fca5a5;
  margin-bottom: 24px;
  animation: shake 0.4s ease-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.error-message {
  flex: 1;
  font-size: 0.9rem;
}

.error-close {
  background: transparent;
  border: none;
  color: #fca5a5;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Results Card */
.results-card {
  padding: 24px;
  margin-bottom: 30px;
  animation: fadeIn 0.4s ease-out;
}

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

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Results Toolbar */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.tabs-nav {
  display: flex;
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.export-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.export-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.export-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.export-btn.primary {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.export-btn.primary:hover {
  background: var(--accent-secondary);
}

/* Tab Panes */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

/* Markdown Rendered Area */
.markdown-body {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.markdown-body h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.markdown-body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #c7d2fe;
  margin: 24px 0 12px;
}

.markdown-body h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: #38bdf8;
  margin: 18px 0 6px;
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.markdown-body p {
  margin-bottom: 14px;
}

.markdown-body blockquote {
  border-left: 3px solid var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
  margin: 14px 0;
  color: var(--text-muted);
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.markdown-body th, .markdown-body td {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.markdown-body th {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 600;
}

.markdown-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 14px 0;
}

/* Code & Plain Text */
.code-wrapper {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  max-height: 550px;
  overflow-y: auto;
}

.code-block {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}

.plain-text-box {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 20px;
  max-height: 550px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #e2e8f0;
  white-space: pre-wrap;
}

/* AI Prompts Grid */
.ai-prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.prompt-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition-fast);
}

.prompt-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
}

.prompt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prompt-card-header h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.prompt-copy-btn {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.prompt-copy-btn:hover {
  background: var(--accent-primary);
  color: #fff;
}

.prompt-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* Batch Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 600px;
  padding: 24px;
  border-radius: var(--radius-lg);
  position: relative;
  animation: modalScale 0.25s ease-out;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-primary);
}

.modal-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.batch-textarea {
  width: 100%;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px;
  outline: none;
  resize: vertical;
  margin-bottom: 16px;
}

.batch-textarea:focus {
  border-color: var(--accent-primary);
}

.batch-actions {
  display: flex;
  justify-content: flex-end;
}

.batch-results-list {
  margin-top: 16px;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.batch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(16, 185, 129, 0.95);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: rgba(239, 68, 68, 0.95);
}

/* Footer */
.footer {
  margin-top: auto;
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-content a {
  color: var(--accent-primary);
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-sub {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .url-input-container {
    flex-wrap: wrap;
    padding: 10px;
  }
  
  #youtube-url-input {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .primary-btn {
    width: 100%;
    justify-content: center;
  }

  .video-preview-card {
    flex-direction: column;
  }

  .preview-thumb-container {
    width: 100%;
    height: 180px;
  }

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

  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tabs-nav {
    overflow-x: auto;
  }

  .export-actions {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Music & Sheet Music Mode Styling
   ========================================================================== */

.mode-switcher-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.mode-switcher {
  display: inline-flex;
  background: rgba(13, 18, 31, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 5px;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mode-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.mode-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.mode-tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Sheet Music Viewer */
.sheet-music-wrapper {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow-x: auto;
  min-height: 380px;
}

.osmd-container {
  width: 100%;
  min-width: 600px;
}

/* Solfege Bar */
.solfege-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}

.solfege-chip {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: #c7d2fe;
}

/* Music Notes Table */
.table-scroll-container {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.music-notes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.music-notes-table th {
  position: sticky;
  top: 0;
  background: #0f172a;
  color: #94a3b8;
  font-weight: 600;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.music-notes-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.music-notes-table tr:hover td {
  background: rgba(99, 102, 241, 0.08);
}

/* Music Slice Selection & Range Preview */
.slice-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.slice-preview-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slice-preview-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slice-preview-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slice-preview-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
}

.slice-preview-times {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.slice-badge-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f472b6;
  background: rgba(236, 72, 153, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.slice-arrow {
  color: var(--text-dim);
  font-weight: 600;
}

.slice-badge-duration {
  font-size: 0.85rem;
  color: #a5b4fc;
}

.slice-preview-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.presets-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-right: 2px;
}

.slice-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slice-preset-btn:hover {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.4);
}

.slice-preset-btn.active {
  background: rgba(236, 72, 153, 0.25);
  color: #f472b6;
  border-color: #ec4899;
  font-weight: 700;
}

.start-time-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.start-time-input {
  background: rgba(10, 15, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f472b6;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  width: 76px;
  outline: none;
  transition: all var(--transition-fast);
}

.start-time-input:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.3);
}

#music-options-panel .range-slider::-webkit-slider-thumb {
  background: #ec4899;
  box-shadow: 0 0 10px #ec4899;
}



/* ==========================================================================
   Multi-Mode Navigation & File Upload Dropzones (PDF & Images)
   ========================================================================== */

.mode-selector-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 5;
}

.mode-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(13, 18, 31, 0.85);
  border: 1px solid var(--glass-border);
  padding: 6px;
  border-radius: var(--radius-full);
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

button.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
}

button.mode-btn:hover {
  color: var(--text-main) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

button.mode-btn.active {
  background: var(--accent-gradient) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45) !important;
}

button.mode-btn[data-mode="pdf"].active {
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%) !important;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.45) !important;
}

button.mode-btn[data-mode="image"].active {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%) !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45) !important;
}

/* Upload Dropzones */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: rgba(10, 15, 28, 0.4);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  gap: 12px;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

#pdf-dropzone:hover, #pdf-dropzone.dragover {
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.08);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.15);
}

#image-dropzone:hover, #image-dropzone.dragover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

.dropzone-icon {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  transition: transform var(--transition-fast);
}

#pdf-dropzone .dropzone-icon {
  color: #ec4899;
  background: rgba(236, 72, 153, 0.12);
}

#image-dropzone .dropzone-icon {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.dropzone:hover .dropzone-icon {
  transform: scale(1.1);
}

.dropzone-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropzone-link {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

#pdf-dropzone .dropzone-link {
  color: #f472b6;
}

#image-dropzone .dropzone-link {
  color: #34d399;
}

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

/* File Selected Card */
.file-selected-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(18, 26, 44, 0.8);
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-md);
  margin-top: 14px;
}

.file-selected-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-selected-icon {
  font-size: 1.6rem;
}

.file-selected-details {
  display: flex;
  flex-direction: column;
}

.file-selected-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  word-break: break-all;
}

.file-selected-size {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.file-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.file-remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

/* Image preview box in input card */
.image-preview-box {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: rgba(10, 15, 28, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-top: 14px;
}

.image-preview-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-preview-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.image-preview-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.image-preview-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.image-badge {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #38bdf8;
}

/* Metadata Tab Specifics */
.metadata-table-wrapper {
  overflow-x: auto;
  margin-top: 10px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.meta-card {
  background: rgba(13, 18, 31, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.meta-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-key {
  color: var(--text-muted);
}

.meta-val {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

.gps-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 10px;
  transition: all var(--transition-fast);
}

.gps-link-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  transform: translateY(-1px);
}

/* ==========================================================================
   Structured Document View & JSON Viewer
   ========================================================================== */
.structured-view-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.doc-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 18, 31, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.doc-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.doc-stats-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.doc-badge-pill {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.doc-field-card {
  background: rgba(13, 18, 31, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.doc-field-card:hover {
  background: rgba(13, 18, 31, 0.85);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.doc-field-key {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-field-copy-hint {
  font-size: 0.7rem;
  opacity: 0;
  color: #a5b4fc;
  transition: opacity 0.2s ease;
}

.doc-field-card:hover .doc-field-copy-hint {
  opacity: 1;
}

.doc-field-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: #f8fafc;
  word-break: break-word;
}

.doc-table-card {
  background: rgba(13, 18, 31, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  overflow-x: auto;
}

.doc-table-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.doc-data-table th,
.doc-data-table td {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.doc-data-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-weight: 600;
  white-space: nowrap;
}

.doc-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.doc-spatial-card {
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
}

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

.doc-spatial-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-spatial-pre {
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #a5f3fc;
  overflow-x: auto;
  white-space: pre;
}

.doc-json-card {
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
}

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

.doc-json-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 8px;
}

.json-pre-block {
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #e2e8f0;
  max-height: 420px;
  overflow-y: auto;
  white-space: pre;
}

