/* ==========================================================================
   Fijate Tools - La máquina del dilema moral
   Hoja de estilos canónica, diseño UI interactivo, visualizador vial y radar
   ========================================================================== */

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta base clara */
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;
  --border-color: #e2e8f0;
  --border-focus: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --color-primary: #0284c7;
  --color-primary-hover: #0369a1;
  --color-primary-light: #e0f2fe;

  --color-accent: #f59e0b;
  --color-accent-light: #fef3c7;

  --color-danger: #ef4444;
  --color-danger-hover: #dc2626;
  --color-danger-light: #fee2e2;

  --color-success: #10b981;
  --color-success-light: #d1fae5;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  --bg-app: #0b0f17;
  --bg-card: #131b2a;
  --bg-subtle: #1e293b;
  --bg-hover: #334155;
  --border-color: #223049;
  --border-focus: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --color-primary: #38bdf8;
  --color-primary-hover: #7dd3fc;
  --color-primary-light: rgba(56, 189, 248, 0.15);

  --color-accent: #fbbf24;
  --color-accent-light: rgba(251, 191, 36, 0.15);

  --color-danger: #f87171;
  --color-danger-hover: #ef4444;
  --color-danger-light: rgba(239, 68, 68, 0.15);

  --color-success: #34d399;
  --color-success-light: rgba(52, 211, 153, 0.15);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
}

/* Reset y estructura básica */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin-top: 0;
  color: var(--text-primary);
  font-weight: 700;
}

.mono {
  font-family: var(--font-mono);
}

/* Layout institucional y contenedor de herramienta */
.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* Tarjeta principal contenedora */
.card-main {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .card-main {
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   PANTALLA 1: INTRODUCCIÓN Y CONTEXTO
   ========================================================================== */
.intro-hero {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 2.5rem;
  padding: 1rem 0;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.intro-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .intro-title {
    font-size: 1.75rem;
  }
}

.intro-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.intro-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

@media (max-width: 768px) {
  .intro-features-grid {
    grid-template-columns: 1fr;
  }
}

.intro-feature-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.intro-feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.intro-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.intro-feature-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.intro-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  min-height: 48px;
}

.btn-cta-large:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   PANTALLA 2: SIMULADOR DE DILEMAS (QUIZ)
   ========================================================================== */
.quiz-header {
  margin-bottom: 1.5rem;
}

.quiz-progress-wrapper {
  margin-bottom: 1.25rem;
}

.quiz-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.quiz-progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.dilemma-meta-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.dilemma-category-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.dilemma-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .dilemma-title {
    font-size: 1.25rem;
  }
}

.dilemma-context {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Contenedor del lienzo Canvas de la escena */
.scene-canvas-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.scene-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
}

/* Rejilla de opciones de decisión (A y B) */
.options-decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
  .options-decision-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.option-decision-card {
  background-color: var(--bg-subtle);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  cursor: pointer;
}

.option-decision-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.option-decision-card.selected {
  border-color: var(--color-danger);
  background-color: var(--color-danger-light);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

.option-decision-card.dimmed {
  opacity: 0.6;
}

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

.option-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
}

.option-card-a .option-tag {
  color: #0284c7;
}

.option-card-b .option-tag {
  color: #7c3aed;
}

.option-key-hint {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.option-casualties-box {
  margin-bottom: 0.85rem;
  flex: 1 0 auto;
}

.casualties-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.casualties-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.casualty-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

.casualty-icon {
  font-size: 1rem;
}

.option-summary-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.btn-option-select {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  min-height: 44px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.option-card-a .btn-option-select {
  background-color: #0284c7;
  color: #ffffff;
}

.option-card-a .btn-option-select:hover {
  background-color: #0369a1;
}

.option-card-b .btn-option-select {
  background-color: #7c3aed;
  color: #ffffff;
}

.option-card-b .btn-option-select:hover {
  background-color: #6d28d9;
}

.option-decision-card.selected .btn-option-select {
  background-color: var(--color-danger);
  color: #ffffff;
}

/* Caja de feedback rápido post-elección */
.quick-feedback-box {
  display: none;
  background-color: var(--color-primary-light);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  align-items: center;
  gap: 0.85rem;
  animation: fadeIn 0.3s ease;
}

.quick-feedback-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.quick-feedback-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-primary);
  margin: 0;
}

/* Barra inferior de navegación del quiz */
.quiz-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-quiz-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  min-height: 42px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.btn-quiz-nav:hover:not(:disabled) {
  background-color: var(--bg-hover);
}

.btn-quiz-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-quiz-next {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-quiz-next:hover:not(:disabled) {
  background-color: var(--color-primary-hover);
}

/* ==========================================================================
   PANTALLA 3: RESULTADOS, RADAR Y DIAGNÓSTICO
   ========================================================================== */
.results-hero-card {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.25rem;
  text-align: center;
}

@media (max-width: 640px) {
  .results-hero-card {
    padding: 1.5rem 1rem;
  }
}

.archetype-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.archetype-title {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .archetype-title {
    font-size: 1.75rem;
  }
}

.archetype-tagline {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.archetype-desc {
  max-width: 760px;
  margin: 0 auto 1rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.archetype-rec {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

/* Sección de visualización de Radar */
.radar-section-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (max-width: 860px) {
  .radar-section-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.radar-canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.radar-canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.radar-legend-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.radar-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.radar-color-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.ind-user {
  background-color: #0284c7;
}

.ind-spain {
  background-color: #f59e0b;
}

.ind-global {
  background-color: #94a3b8;
}

.radar-explanation-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.radar-info-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.radar-info-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.radar-info-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Rejilla de métricas éticas desglosadas */
.metrics-section-title {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.metric-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.metric-card-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.metric-card-diff {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.text-positive {
  color: var(--color-success);
}

.text-negative {
  color: var(--color-danger);
}

.metric-card-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.metric-card-bar-track {
  width: 100%;
  height: 6px;
  background-color: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.metric-card-bar {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

.metric-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Acordeón de revisión de los 12 dilemas */
.review-section {
  margin-bottom: 2.5rem;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-dilemma-item {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.review-dilemma-summary {
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.review-summary-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-badge-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--color-primary);
}

.review-title-text {
  font-weight: 700;
  font-size: 0.95rem;
}

.review-summary-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-choice-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
}

.user-choice-badge.choice-A {
  color: #0284c7;
}

.user-choice-badge.choice-B {
  color: #7c3aed;
}

.review-dilemma-content {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
}

.review-context-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.review-options-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .review-options-comparison {
    grid-template-columns: 1fr;
  }
}

.review-opt-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.review-opt-box.chosen {
  border-color: var(--color-danger);
  background-color: var(--color-danger-light);
}

.review-opt-box strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.review-opt-box p {
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  color: var(--text-secondary);
}

.mit-stat-pill {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

/* Botonera de acciones y compartir */
.results-share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
}

.btn-share-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  min-height: 44px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.btn-share-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-share-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-share-secondary:hover {
  background-color: var(--bg-hover);
}

.btn-share-danger {
  color: var(--color-danger);
}

.btn-share-danger:hover {
  background-color: var(--color-danger-light);
}

/* ==========================================================================
   GUÍA DIVULGATIVA Y PREGUNTAS FRECUENTES (SEO)
   ========================================================================== */
.guide-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.guide-hero-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.guide-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.faq-question {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0 0 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   MODALES Y TOAST FLOTANTE
   ========================================================================== */
.custom-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.custom-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.custom-modal-dialog {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.custom-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.custom-modal-title {
  margin: 0;
  font-size: 1.25rem;
}

.custom-modal-body {
  padding: 1.25rem 1.5rem;
}

.custom-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.app-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.app-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}