/* ===================================================================
   The Downloader - Modern Dark Glassmorphic Studio Design System
   Universal Media Engine & Downloader
   =================================================================== */

:root {
  --bg-dark: #090d16;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(26, 36, 56, 0.85);
  --bg-input: rgba(13, 19, 33, 0.85);
  --bg-glass-overlay: rgba(9, 13, 22, 0.8);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.35);
  --border-focus: #06b6d4;

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.4);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;

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

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

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

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px var(--accent-cyan-glow);
  --shadow-purple-glow: 0 0 25px var(--accent-purple-glow);

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 15, 26, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* ===================================================================
   Header & Navigation
   =================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(9, 13, 22, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-glow {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.brand-logo-glow svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-weight: 600;
}

.nav-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(139, 92, 246, 0.18));
  color: #fff;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.nav-badge {
  background: var(--accent-cyan);
  color: #0b0f19;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}

.nav-badge.active-count {
  background: var(--accent-emerald);
  animation: pulse-emerald 2s infinite;
}

@keyframes pulse-emerald {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.header-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* ===================================================================
   Main Container & Layout
   =================================================================== */
.main-wrapper {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
  flex: 1;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ===================================================================
   Hero & URL Input Studio
   =================================================================== */
.hero-header {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-header h2 {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 70%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.supported-platforms-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.platform-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.platform-pill:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}

/* Glass Card */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

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

/* Search / URL Input Box */
.url-input-container {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.5rem 0.4rem 1.25rem;
  gap: 0.75rem;
  transition: var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.url-input-container:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.url-input-container svg {
  flex-shrink: 0;
  color: var(--text-dim);
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  outline: none;
  width: 100%;
}

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

.input-actions {
  display: flex;
  gap: 0.4rem;
}

.btn-icon-subtle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.btn-icon-subtle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0 16px var(--accent-cyan-glow);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.6);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===================================================================
   Media Metadata Banner & Format Inspector
   =================================================================== */
#media-preview-section {
  margin-top: 2rem;
  display: none;
}

.media-hero-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.75rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .media-hero-card {
    grid-template-columns: 1fr;
  }
}

.media-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.media-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-thumbnail-wrapper:hover img {
  transform: scale(1.03);
}

.media-duration-chip {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.media-meta-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.media-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: #fff;
}

.media-channel-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.channel-author {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.channel-author:hover {
  text-decoration: underline;
}

.meta-stats {
  display: flex;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.media-description-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  max-height: 70px;
  overflow-y: auto;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.quick-action-strip {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ===================================================================
   Format Selection & Configuration Studio
   =================================================================== */
.config-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.config-section-title h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.mode-selector-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

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

.mode-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(139, 92, 246, 0.25));
  color: #fff;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.15);
}

/* Mode Badge Count (e.g. "3 Photos") */
.mode-badge-count {
  background: var(--accent-cyan);
  color: #0b0f19;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  margin-left: 0.35rem;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.mode-btn.active .mode-badge-count {
  background: #fff;
  color: var(--accent-cyan-dark);
}

/* Images / Photos Mode Section */
.images-mode-header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
}

.images-mode-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.images-mode-title-row h4 {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
}

.badge-tag {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.images-mode-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.images-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.image-gallery-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
  position: relative;
}

.image-gallery-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.image-gallery-card.selected {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
}

.image-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.image-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-gallery-card:hover .image-thumb-box img {
  transform: scale(1.05);
}

.image-check-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}

.image-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent-cyan);
}

.image-index-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.image-details-box {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.image-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.image-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-res-pill {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.image-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.btn-image-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-normal);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-image-action:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
}

/* Format Presets Cards */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.format-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.format-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.format-card.selected {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

.format-card.selected::before {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 20px;
  height: 20px;
  background: var(--accent-cyan);
  color: #0b0f19;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.format-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.format-res-badge {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.format-ext-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--accent-cyan);
}

.format-details-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* Audio Format Options */
.audio-customizer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 700px) {
  .audio-customizer {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.select-modern, .input-modern {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.select-modern:focus, .input-modern:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* Table of All Formats (Power Users) */
.formats-table-wrapper {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.formats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.formats-table th {
  background: rgba(10, 15, 26, 0.95);
  position: sticky;
  top: 0;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.formats-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.formats-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.formats-table tr.selected-row {
  background: rgba(6, 182, 212, 0.15);
  color: #fff;
}

/* Collapsible Settings Drawer */
.accordion-wrapper {
  margin-bottom: 1.5rem;
}

.accordion-header {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-fast);
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.accordion-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}

.accordion-arrow {
  transition: transform 0.3s ease;
}

.accordion-header.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  background: rgba(10, 15, 26, 0.5);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 1.25rem;
  animation: fadeIn 0.25s ease;
}

.accordion-content.open {
  display: block;
}

/* Switch & Toggles */
.toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.toggle-label:hover {
  background: rgba(255, 255, 255, 0.06);
}

.toggle-info {
  display: flex;
  flex-direction: column;
}

.toggle-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}

.toggle-desc {
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* Custom Checkbox Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.25s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-cyan);
}

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

/* Live Terminal / CLI Preview */
.cli-preview-box {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  position: relative;
}

.cli-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cli-code-text {
  color: #38bdf8;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
}

.btn-copy-cli {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy-cli:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Big Action Strip */
.download-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .download-action-card {
    flex-direction: column;
    text-align: center;
  }
}

.action-summary-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.action-summary-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-mega-download {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 0 25px var(--accent-cyan-glow);
  transition: var(--transition-fast);
}

.btn-mega-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.7);
}

/* ===================================================================
   Active Tasks & Live Telemetry
   =================================================================== */
.tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.job-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.job-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.job-title-group h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.job-url-link {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  display: block;
  max-width: 600px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-url-link:hover {
  color: var(--accent-cyan);
}

.job-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.status-downloading {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.status-processing {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.status-finished {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-error {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.status-cancelled {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-dim);
  border: 1px solid rgba(100, 116, 139, 0.4);
}

/* Progress Bar */
.progress-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.85rem;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  position: relative;
}

.progress-bar-fill.finished {
  background: var(--accent-emerald);
}

/* Telemetry Grid */
.telemetry-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.telemetry-val {
  color: #fff;
  font-weight: 600;
  font-family: var(--font-mono);
}

.job-actions-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-job-download-primary {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #0b0f19;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
  transition: var(--transition-fast);
}

.btn-job-download-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.7);
  color: #000;
}

.job-error-banner {
  margin-top: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: 0.82rem;
  line-height: 1.4;
}

.job-filename-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  margin-bottom: 0.6rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Job Live Log Collapsible */
.job-logs-box {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #94a3b8;
  max-height: 140px;
  overflow-y: auto;
  line-height: 1.45;
  margin-top: 0.85rem;
}

/* ===================================================================
   Media Library View
   =================================================================== */
.library-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.library-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.library-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.library-file-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.library-file-icon.audio {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
}

.library-file-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  word-break: break-word;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.library-file-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.library-btn-row {
  display: flex;
  gap: 0.5rem;
}

/* ===================================================================
   Supported Sites & Extractors Explorer
   =================================================================== */
.search-extractors-box {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.extractors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.extractor-badge-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  transition: var(--transition-fast);
}

.extractor-badge-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
}

.extractor-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.extractor-desc {
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* ===================================================================
   System & Engine Status Tab
   =================================================================== */
.system-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.system-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.system-stat-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.system-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}

/* ===================================================================
   Modal Player
   =================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #0d1322;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.modal-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
}

.modal-player-element {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #000;
  outline: none;
}

/* ===================================================================
   Toast Notifications
   =================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  min-width: 280px;
  max-width: 420px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 0.88rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.toast-success { border-color: var(--accent-emerald); }
.toast.toast-error { border-color: var(--accent-rose); }
.toast.toast-info { border-color: var(--accent-cyan); }

/* Direct Download Fallback and Table Buttons */
.btn-table-dl {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.btn-table-dl:hover {
  background: var(--accent-cyan);
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.btn-direct-fallback {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  border: none;
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.4); }
  50% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.75); }
}

.btn-preset-dl {
  margin-top: 0.6rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.btn-preset-dl:hover {
  background: var(--accent-cyan);
  color: #090d16;
  border-color: var(--accent-cyan);
}

/* ===================================================================
   Mobile Responsiveness & Touch Ergonomics Suite
   Tested for iPhone 13/14/15/16, Android (360px - 430px) & Tablets
   =================================================================== */

@media (max-width: 840px) {
  .navbar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tab-btn {
    flex-shrink: 0;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    min-height: 42px;
  }

  .main-wrapper {
    padding: 1.25rem 0.85rem 3.5rem 0.85rem;
  }

  .glass-panel {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .download-action-card {
    padding: 1.25rem;
    gap: 1rem;
  }

  .btn-mega-download {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-header {
    margin-bottom: 1.5rem;
  }

  .hero-header h2 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .supported-platforms-pills {
    gap: 0.35rem;
  }

  .platform-pill {
    font-size: 0.68rem;
    padding: 2px 7px;
  }

  /* Full Responsive URL Input Bar */
  .url-input-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.65rem;
    border-radius: var(--radius-md);
  }

  .url-input-container svg:first-child {
    display: none;
  }

  .url-input {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.3rem 0;
    min-height: 44px;
  }

  .input-actions {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-start;
  }

  .input-actions .btn-icon-subtle {
    flex: 1 1 calc(50% - 0.45rem);
    justify-content: center;
    min-height: 44px;
    font-size: 0.82rem;
    padding: 0.5rem 0.6rem;
  }

  .input-actions .btn-primary {
    width: 100%;
    flex: 1 1 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.95rem;
    margin-top: 0.2rem;
  }

  /* Mode selection: 2x2 grid on mobile */
  .mode-selector-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 4px;
  }

  .mode-btn {
    min-height: 44px;
    padding: 0.5rem 0.6rem;
    font-size: 0.82rem;
    gap: 0.35rem;
  }

  /* Media Preview Hero Card */
  .media-hero-card {
    padding: 1rem;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .media-meta-details h3 {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .media-stats-row {
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.8rem;
  }

  .media-author-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .quick-actions-bar {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .quick-actions-bar button {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  /* Preset Video Cards */
  .video-presets-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Audio options */
  .audio-customizer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Active Tasks Cards */
  .job-card {
    padding: 1.1rem;
  }

  .job-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .job-url-link {
    max-width: 100%;
    word-break: break-all;
  }

  .telemetry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.78rem;
  }

  .job-actions-row {
    width: 100%;
  }

  .job-actions-row button {
    min-height: 42px;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-content {
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
  }

  .modal-body {
    overflow-y: auto;
    padding: 1rem;
  }

  /* Toast notification on mobile */
  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    min-width: unset;
    width: 100%;
    max-width: 100%;
  }

  /* Mode selection: full width for advanced custom selector */
  #mode-btn-custom {
    grid-column: 1 / -1;
  }

  /* Library on mobile */
  .library-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .library-search-box {
    width: 100%;
  }

  .library-search-input {
    width: 100%;
  }

  .library-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .library-btn-row .btn-icon-subtle {
    min-height: 42px;
    padding: 0.5rem;
  }

  /* Sites Extractor on mobile */
  .search-extractors-box {
    flex-direction: column;
  }

  .extractors-grid {
    grid-template-columns: 1fr;
  }
}

/* Quick Samples Pill Row */
.quick-samples-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.btn-sample-url {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-sample-url:hover {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}


