/* ==========================================================================
   SalesCalc Pro - Stylesheet
   Modern Glassmorphism & High-Contrast Design System
   ========================================================================== */

:root {
  /* Paleta Base Oscura (Predeterminada) */
  --bg-main: #0B0F17;
  --bg-card: rgba(18, 24, 38, 0.85);
  --bg-card-hover: rgba(24, 32, 50, 0.95);
  --bg-card-subtle: rgba(255, 255, 255, 0.03);
  --bg-input: #0e1422;
  --bg-input-focus: #141d30;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #4F46E5;
  --border-emerald: #10B981;
  
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  /* Acentos de Color */
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  
  --emerald: #10B981;
  --emerald-hover: #059669;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --emerald-glow: rgba(16, 185, 129, 0.3);

  --rose: #F43F5E;
  --rose-bg: rgba(244, 63, 94, 0.12);

  --amber: #F59E0B;
  --amber-bg: rgba(245, 158, 11, 0.12);

  --whatsapp: #25D366;
  --whatsapp-hover: #20BA5A;
  --whatsapp-glow: rgba(37, 211, 102, 0.25);

  /* Sombras y Efectos */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --glass-blur: blur(16px);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

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

/* Modo Claro */
body.theme-light {
  --bg-main: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #FFFFFF;
  --bg-card-subtle: #F1F5F9;
  --bg-input: #FFFFFF;
  --bg-input-focus: #F8FAFC;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: #4F46E5;
  --border-emerald: #059669;
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #94A3B8;

  --primary-glow: rgba(99, 102, 241, 0.15);
  --emerald-bg: rgba(16, 185, 129, 0.1);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Luces de fondo decorativas */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.bg-glow-1 {
  top: -100px;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.bg-glow-2 {
  top: 30%;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--emerald) 0%, transparent 70%);
}

.app-container {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   Encabezado (Header)
   ========================================================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 8px;
}

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

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.currency-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  backdrop-filter: var(--glass-blur);
  transition: border-color var(--transition-fast);
}

.currency-select:focus {
  border-color: var(--border-focus);
}

.icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ==========================================================================
   Layout Principal: Grid de 2 Columnas
   ========================================================================== */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 900px) {
  .calculator-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* Tarjetas Genéricas */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

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

.card-title h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

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

.icon-emerald {
  color: var(--emerald);
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition-fast);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.btn-text:hover {
  color: var(--text-main);
  background: var(--bg-card-subtle);
}

.text-danger:hover {
  color: var(--rose) !important;
}

/* ==========================================================================
   Formulario de Entradas (Columna 1)
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
}

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

.label-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.highlight-num {
  background: var(--primary);
  color: #FFFFFF;
}

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

.badge-tag {
  font-size: 0.75rem;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.label-calc-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Inputs de texto/número */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.input-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-input-focus);
}

.input-prefix, .input-suffix {
  padding: 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
}

.input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 12px 14px 12px 0;
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.main-input input {
  font-size: 1.45rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}

.input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.percent-input {
  width: 145px;
  min-width: 135px;
  flex-shrink: 0;
}

.percent-input input {
  padding: 10px 8px 10px 14px;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.percent-input input::-webkit-outer-spin-button,
.percent-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.percent-input input[type=number] {
  -moz-appearance: textfield;
}

/* Chips de porcentaje rápido */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.chip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.chip.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ==========================================================================
   Monto Exento & Bloques de Descuentos Múltiples
   ========================================================================== */
.badge-tag-exempt {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-tag-return {
  background: rgba(244, 63, 94, 0.15);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.icon-return {
  width: 15px;
  height: 15px;
  color: #FB7185;
  vertical-align: middle;
}

.return-group {
  margin-top: -10px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 2px solid rgba(244, 63, 94, 0.35);
}

.return-breakdown-row {
  color: #FB7185;
}

.return-breakdown-row .item-value {
  color: #FB7185;
}

.discounts-card-inner {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.discount-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
}

.discount-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.discount-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

.discount-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-size: 0.82rem;
}

.icon-disc {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.discount-amount-preview {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rose);
}

.discount-mode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-weight: 600;
}

.mode-label i {
  width: 14px;
  height: 14px;
}

.discount-mode-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.discount-mode-select:focus {
  border-color: var(--border-focus);
}

.exempt-row {
  color: #34D399;
}

.exempt-row .item-value {
  color: #34D399;
}

/* ==========================================================================
   Botones Destacados de Retención 75% y 100%
   ========================================================================== */
.retention-section {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.retention-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.retention-btn {
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  outline: none;
}

.retention-btn:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.retention-btn.active {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.25) 100%);
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.retention-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.retention-btn.active .retention-pct {
  color: #818CF8;
}

.retention-desc {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.check-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
}

.check-badge i {
  width: 12px;
  height: 12px;
}

.retention-btn.active .check-badge {
  display: flex;
}

.retention-extra-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.mini-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mini-btn:hover, .mini-btn.active {
  background: var(--bg-input-focus);
  color: var(--text-main);
  border-color: var(--border-focus);
}

.custom-retention-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.custom-retention-wrap input {
  width: 60px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  text-align: right;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
}

.custom-retention-wrap input:focus {
  border-color: var(--border-focus);
}

/* Opcional: Sección Colapsable ISLR */
.optional-retention {
  border-top: 1px dashed var(--border-color);
  padding-top: 14px;
}

.collapsible-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.trigger-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.collapsible-trigger:hover .trigger-label {
  color: var(--text-main);
}

.optional-badge {
  font-size: 0.7rem;
  color: var(--text-dim);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.islr-calc-info {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 8px;
  font-style: italic;
}

.mt-2 {
  margin-top: 10px;
}

/* ==========================================================================
   Resultados y Resumen Financiero (Columna 2)
   ========================================================================== */
.result-card {
  position: sticky;
  top: 20px;
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(175deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.04) 100%);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Tarjeta Destacada: Neto a Percibir */
.highlight-net-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.22) 100%);
  border: 2px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 8px 24px var(--emerald-glow);
}

.net-header {
  margin-bottom: 4px;
}

.net-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #34D399;
}

.net-subtitle {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.net-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.3rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  margin: 6px 0;
  word-break: break-all;
}

body.theme-light .net-amount {
  color: #065F46;
}

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

.net-footer strong {
  color: var(--text-main);
}

/* Lista de Desglose */
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-color);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breakdown-item .item-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breakdown-item .item-label i {
  width: 15px;
  height: 15px;
  color: var(--text-dim);
}

.breakdown-item .item-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text-main);
}

.breakdown-item .item-value.negative {
  color: var(--rose);
}

.breakdown-item .item-value.positive {
  color: var(--text-main);
}

.breakdown-item .item-value.bold {
  font-weight: 700;
  color: var(--text-main);
}

.breakdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

.total-invoice-row {
  font-size: 1rem;
  color: var(--text-main);
  padding: 4px 0;
}

.total-invoice-value {
  font-size: 1.15rem;
  font-weight: 800 !important;
  color: #818CF8 !important;
}

.retention-row {
  color: var(--amber);
}

.retention-row .retention-val {
  color: var(--amber);
}

.sum-retentions-row {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 4px;
}

/* Botones de Acción de Ventas */
.action-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  outline: none;
  text-decoration: none;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--whatsapp-glow);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--whatsapp-glow);
}

.btn-secondary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-secondary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   Sección de Historial de Cálculos
   ========================================================================== */
.history-card {
  margin-top: 10px;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.empty-history {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: var(--text-dim);
}

.empty-history i {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.history-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.history-item:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.history-item-net {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald);
}

.history-item-details {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 16px 0;
}

/* ==========================================================================
   Toast flotante
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1E293B;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-smooth);
  z-index: 1000;
}

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

.toast i {
  color: var(--emerald);
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Utilidades
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
