/* =========================================================
   AdFlow Studio — Modern Cyber-Dark Visual Design System
   ========================================================= */

:root {
  /* Color Palette */
  --bg-base: #090b10;
  --bg-surface: #0f131c;
  --bg-surface-elevated: #161b28;
  --bg-card: rgba(18, 23, 36, 0.7);
  --bg-card-hover: rgba(24, 30, 48, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(139, 92, 246, 0.4);

  /* Primary Brand Violet & Cyan Gradients */
  --primary-500: #8b5cf6;
  --primary-400: #a78bfa;
  --primary-600: #7c3aed;
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #67e8f9;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.1), transparent);
  --gradient-glow: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #090b10;

  /* Shadows & Glass */
  --glass-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --glass-blur: blur(16px);
  --glow-shadow-primary: 0 0 25px rgba(139, 92, 246, 0.35);
  --glow-shadow-cyan: 0 0 25px rgba(6, 182, 212, 0.35);

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

  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Ambient dynamic background lighting */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.glow-1 {
  top: -10vw;
  left: 10vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
}
.glow-2 {
  bottom: -15vw;
  right: -5vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
}
.glow-3 {
  top: 40%;
  left: 35%;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, #059669 0%, transparent 70%);
  opacity: 0.15;
}

/* ================= HEADER ================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(9, 11, 16, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: var(--glow-shadow-primary);
}

.logo-icon {
  width: 22px;
  height: 22px;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Status Indicator Dot */
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-amber);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-amber);
  transition: var(--transition-fast);
}
.status-indicator.active {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* ================= STEPPER ================= */
.stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 2rem auto 2.5rem;
  padding: 0 1rem;
  position: relative;
  z-index: 10;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.45;
  transition: var(--transition-base);
}

.step-node.active {
  opacity: 1;
}

.step-node.completed {
  opacity: 0.85;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  background: var(--bg-surface);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-base);
}

.step-node.active .step-num {
  border-color: var(--primary-500);
  background: var(--primary-600);
  color: white;
  box-shadow: var(--glow-shadow-primary);
}

.step-node.completed .step-num {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

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

.step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 1.25rem;
  transition: var(--transition-base);
}

.step-connector.active {
  background: linear-gradient(90deg, var(--primary-500), var(--accent-cyan));
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* ================= MAIN CONTENT & GRID ================= */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  position: relative;
  z-index: 10;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

@media (max-width: 1024px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= CARDS ================= */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: var(--transition-base);
}

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

.card-header {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.badge-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary-400);
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 0.6rem;
}

.badge-tag.accent-tag {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan-light);
  border-color: rgba(6, 182, 212, 0.3);
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.card-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  flex: 1;
}

/* ================= DROP ZONE ================= */
.drop-zone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  background: rgba(15, 19, 28, 0.5);
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: var(--transition-base);
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary-500);
  background: rgba(139, 92, 246, 0.08);
}

.drop-zone.dragover-cyan {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
}

.upload-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.12);
  color: var(--primary-400);
  display: grid;
  place-items: center;
  margin-bottom: 0.2rem;
}

.upload-icon-circle.accent-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
}

.upload-icon-circle svg {
  width: 24px;
  height: 24px;
}

.upload-main-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.browse-link {
  color: var(--primary-400);
  text-decoration: underline;
}

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

/* Preview Box */
.preview-box {
  position: relative;
  width: 100%;
  max-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.preview-box img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.btn-remove-file {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition-fast);
}

.btn-remove-file:hover {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
}

.btn-remove-file svg {
  width: 16px;
  height: 16px;
}

/* ================= FORMS & INPUTS ================= */
.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .config-grid {
    grid-template-columns: 1fr;
  }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

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

.label-optional {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.72rem;
}

.text-input, .select-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}

.text-input:focus, .select-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-toggle-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}

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

.btn-toggle-eye svg {
  width: 18px;
  height: 18px;
}

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

.field-hint a {
  color: var(--primary-400);
  text-decoration: none;
}
.field-hint a:hover {
  text-decoration: underline;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-base);
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.45);
  transform: translateY(-1px);
}

.btn-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}
.btn-cyan:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border-color: var(--border-medium);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.icon {
  width: 18px;
  height: 18px;
}

.mini-icon {
  width: 14px;
  height: 14px;
}

/* ================= SPEC PILLS ROW ================= */
.spec-pills-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.spec-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.spec-pill.active-pill {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.05);
  color: var(--text-main);
}

.spec-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* ================= OUTPUTS & TIMELINES ================= */
.prompt-output-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 280px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-dim);
  gap: 0.85rem;
  background: rgba(15, 19, 28, 0.3);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  min-height: 240px;
}

.empty-state svg {
  width: 44px;
  height: 44px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 0.88rem;
  max-width: 320px;
}

/* Skeletons */
.loader-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 2rem 1.5rem;
  background: rgba(15, 19, 28, 0.4);
  border-radius: var(--radius-md);
}

.pulse-bar {
  height: 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%;
  animation: pulseShimmer 1.8s infinite;
}

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

.loading-label {
  font-size: 0.82rem;
  color: var(--primary-400);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Timing Breakdown Card */
.timing-breakdown-card {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-400);
  margin-bottom: 0.6rem;
}

.frame-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.frame-badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  background: rgba(15, 19, 28, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.frame-badge strong {
  color: var(--primary-400);
}

/* Prompt Box Wrapper */
.prompt-box-wrapper {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
}

.prompt-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.prompt-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-400);
  letter-spacing: 0.04em;
}

.prompt-type-badge.accent {
  color: var(--accent-cyan);
}

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

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

.copy-icon {
  width: 14px;
  height: 14px;
}

.prompt-textarea {
  width: 100%;
  min-height: 150px;
  background: transparent;
  border: none;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-main);
  resize: vertical;
  outline: none;
}

.prompt-textarea.code-style {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #e2e8f0;
}

/* Flow Parameters Grid */
.flow-parameters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .flow-parameters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.param-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.param-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.param-value {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-main);
}

.text-amber { color: var(--accent-amber); }
.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }

.identity-lock-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.8rem;
  color: #34d399;
  font-weight: 500;
  line-height: 1.4;
}

.identity-lock-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-emerald);
}

.spec-pill.lock-pill {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}
.spec-pill.lock-pill svg {
  color: var(--accent-emerald);
}

/* Sound Design Card */
.sound-design-card {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.sound-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.sound-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.action-footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.hint-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.flow-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

/* ================= MODAL ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 10, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity var(--transition-fast);
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.modal-icon {
  color: var(--primary-400);
}

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

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}
.btn-close-modal:hover {
  color: var(--text-main);
}
.btn-close-modal svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-intro {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-feedback {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}
.modal-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.modal-feedback.error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ================= TOASTS ================= */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toastSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.4);
}
.toast.success svg {
  color: var(--accent-emerald);
}

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

/* Utilities */
.hidden {
  display: none !important;
}
