/* ==========================================================================
   HookDrop — Mobile-First Spotify/Obsidian Dark CSS
   ========================================================================== */

:root {
  --bg-deep: #0c0d12;
  --bg-card: #141620;
  --bg-card-subtle: #1b1e2c;
  --bg-elevated: #222638;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(16, 185, 129, 0.4);

  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --violet: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.25);
  
  --coral: #f43f5e;
  --amber: #f59e0b;

  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

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

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --nav-height: 64px;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Backdrop Glow */
.ambient-glow {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.8s ease;
}

/* App Container (Mobile Sized Frame) */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  background: rgba(12, 13, 18, 0.85);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

/* Top App Header */
.app-header {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--violet), var(--emerald));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 14px var(--emerald-glow);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(90deg, #fff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 11px;
  color: var(--emerald);
  font-weight: 600;
  display: block;
}

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

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--bg-card-subtle);
  border-color: var(--border-active);
  transform: scale(1.05);
}

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

.pwa-install-btn {
  width: auto;
  padding: 0 12px;
  gap: 6px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(139, 92, 246, 0.2));
  border-color: var(--emerald);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 700;
}

/* Main Scrollable Content */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--nav-height) + 16px);
  -webkit-overflow-scrolling: touch;
}

.tab-view {
  display: none;
  padding: 16px 20px;
  animation: fadeIn 0.25s ease-out;
}

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

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

/* ==========================================================================
   VIEW 1: PLAYER / NOW PLAYING DECK
   ========================================================================== */

.artwork-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
}

.artwork-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 40px var(--violet-glow);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.artwork-wrapper:hover img {
  transform: scale(1.04);
}

.artwork-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
}

.btn-toggle-video {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-toggle-video:hover {
  transform: scale(1.1);
}

.btn-toggle-video svg {
  width: 16px;
  height: 16px;
}

.video-preview-box {
  width: 100%;
  max-width: 320px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  background: black;
  border: 1px solid var(--border-subtle);
  transition: opacity 0.2s ease;
}

.video-preview-box.video-hidden {
  position: absolute !important;
  width: 2px !important;
  height: 2px !important;
  opacity: 0.01 !important;
  pointer-events: none !important;
  top: -9999px !important;
  left: -9999px !important;
}

#ytPlayerContainer, #ytPlayerContainer iframe {
  width: 100%;
  height: 100%;
}

.track-details {
  width: 100%;
  padding: 0 8px;
}

.track-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scrubber & Hook Deck */
.scrubber-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.scrubber-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.scrubber-header .label {
  color: var(--text-muted);
}

.hook-duration-chip {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid var(--border-active);
  color: var(--emerald);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Timeline Visual Representation */
.timeline-visual {
  position: relative;
  width: 100%;
  height: 28px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}

.timeline-track {
  width: 100%;
  height: 100%;
}

/* Highlighted Hook Zone (Neon Gradient) */
.hook-highlight-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15%;
  width: 25%;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.45), rgba(139, 92, 246, 0.55));
  border-left: 2px solid var(--emerald);
  border-right: 2px solid var(--violet);
  box-shadow: 0 0 12px var(--emerald-glow);
  border-radius: 4px;
  transition: left 0.1s linear, width 0.1s linear;
}

.timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20%;
  width: 3px;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  border-radius: 2px;
  pointer-events: none;
  transition: left 0.1s linear;
  z-index: 2;
}

/* Dual Range Sliders */
.dual-range-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.range-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.range-tag {
  font-weight: 700;
}

.range-tag.start { color: var(--emerald); }
.range-tag.end { color: var(--coral); }

.time-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
}

.nudge-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.nudge-btn:hover {
  background: var(--bg-elevated);
  color: white;
}

.stamp-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.stamp-btn:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: black;
}

/* Custom Range Inputs */
.hook-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.hook-slider.start::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  cursor: pointer;
  border: 2px solid #ffffff;
}

.hook-slider.end::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
  cursor: pointer;
  border: 2px solid #ffffff;
}

/* Hook Actions Bar */
.hook-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.btn-save-hook {
  width: 100%;
  background: linear-gradient(135deg, var(--emerald), #059669);
  color: #0c0d12;
  font-weight: 700;
  font-size: 13px;
  border: none;
  padding: 10px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px var(--emerald-glow);
}

.btn-save-hook:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--emerald-glow);
}

.btn-save-hook svg {
  width: 18px;
  height: 18px;
}

.mode-toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 0 12px var(--violet-glow);
}

/* Player Controls Card */
.player-controls-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.time-readout {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.time-readout #currTimeDisplay {
  color: var(--text-primary);
  font-weight: 700;
}

.main-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ctrl-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ctrl-btn:hover {
  background: var(--bg-elevated);
  transform: scale(1.06);
}

.ctrl-btn svg {
  width: 20px;
  height: 20px;
}

.ctrl-btn.play-pause-btn {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--emerald), var(--violet));
  border: none;
  box-shadow: 0 6px 20px var(--emerald-glow);
}

.ctrl-btn.play-pause-btn:hover {
  transform: scale(1.08);
}

.ctrl-btn.play-pause-btn svg {
  width: 28px;
  height: 28px;
}

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

.vol-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 140px;
}

.vol-box svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.crossfade-pill {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-secondary);
}

.crossfade-pill strong {
  color: var(--emerald);
}

/* ==========================================================================
   VIEW 2: MY HOOK PLAYLIST
   ========================================================================== */

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

.playlist-header h2 {
  font-size: 20px;
  font-weight: 800;
}

.playlist-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.playlist-header-actions {
  display: flex;
  gap: 6px;
}

.pill-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.pill-action-btn:hover {
  background: var(--bg-elevated);
  color: white;
}

.pill-action-btn.danger:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--coral);
  color: var(--coral);
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.chip.active {
  background: var(--emerald);
  color: #0c0d12;
  border-color: var(--emerald);
  font-weight: 700;
}

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

.hook-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.hook-card:hover {
  background: var(--bg-card-subtle);
  border-color: var(--border-active);
  transform: translateX(2px);
}

.hook-card.active {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--emerald);
  box-shadow: 0 0 14px var(--emerald-glow);
}

.hook-card-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

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

.hook-card-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.hook-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hook-card-chip {
  background: rgba(139, 92, 246, 0.15);
  color: var(--violet);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10px;
}

.hook-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hook-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hook-action-btn:hover {
  color: var(--coral);
}

.hook-action-btn svg {
  width: 18px;
  height: 18px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ==========================================================================
   VIEW 3: DISCOVER & TRENDING DROPS
   ========================================================================== */

.discover-header {
  margin-bottom: 14px;
}

.discover-header h2 {
  font-size: 20px;
  font-weight: 800;
}

.discover-header p {
  font-size: 12px;
  color: var(--text-muted);
}

.search-box-row {
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 12px var(--emerald-glow);
}

.trending-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.trending-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.trending-card:hover {
  background: var(--bg-card-subtle);
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.trending-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

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

.trending-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.trending-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.trending-drop-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.btn-play-trending {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--emerald);
  color: #0c0d12;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-play-trending svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR
   ========================================================================== */

.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(20, 22, 32, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  z-index: 10;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

.nav-item.active {
  color: var(--emerald);
}

.nav-item.active svg {
  filter: drop-shadow(0 0 8px var(--emerald-glow));
}

/* ==========================================================================
   MODAL SHEET: ADD SONG (YOUTUBE / LOCAL)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeInOverlay 0.2s ease-out;
}

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

.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid var(--border-subtle);
  padding: 20px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

.modal-header h3 {
  font-size: 17px;
  font-weight: 800;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}

.add-options-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  background: var(--bg-card-subtle);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.option-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}

.option-tab.active {
  background: var(--bg-elevated);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.text-input {
  flex: 1;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}

.text-input:focus {
  border-color: var(--emerald);
}

.btn-primary {
  background: var(--emerald);
  color: #0c0d12;
  font-weight: 700;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.input-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.quick-examples {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.ex-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
}

.ex-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ex-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.ex-chip:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

/* Local File Dropzone */
.dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-card-subtle);
  transition: all 0.2s;
}

.dropzone:hover {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.05);
}

.drop-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.dropzone p {
  font-size: 13px;
  margin-bottom: 4px;
}

.drop-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: calc(var(--nav-height) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(20, 22, 32, 0.95);
  border: 1px solid var(--emerald);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--emerald-glow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

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