/* ==========================================================================
   DiviGastos COP - Tema Cibernético / Dark-Tech Futurista (Mobile-First)
   ========================================================================== */

:root {
  /* Fondos principales y superficies (Dark-Tech) */
  --bg-desktop: #05080f;
  --bg-app: #0a0e17;
  --surface: #111827;
  --surface-subtle: #1f2937;
  --surface-elevated: #172033;

  /* Tipografía de alto contraste */
  --text-main: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #9ca3af;

  /* Acentos tecnológicos: Azul cian eléctrico + Verde neón */
  --cyan-neon: #00f0ff;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --accent-neon: #10b981;
  --primary-light: rgba(14, 165, 233, 0.14);
  --primary-glow: rgba(0, 240, 255, 0.25);

  /* Colores semánticos (Positivo / Deuda / Destructivo / Advertencia) */
  --positive: #4ade80;
  --positive-strong: #22c55e;
  --positive-bg: rgba(34, 197, 94, 0.14);
  --positive-border: rgba(74, 222, 128, 0.35);

  --danger: #f87171;
  --danger-strong: #ef4444;
  --danger-light: rgba(239, 68, 68, 0.14);
  --danger-border: rgba(248, 113, 113, 0.38);

  --warning-light: rgba(245, 158, 11, 0.14);
  --warning-text: #fbbf24;
  --warning-border: rgba(251, 191, 36, 0.38);

  /* Bordes sutiles iluminados y sombras */
  --border: #1f2937;
  --border-glow: rgba(0, 240, 255, 0.22);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 18px rgba(14, 165, 233, 0.12);
  --nav-height: 68px;

  color-scheme: dark;
}

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

html,
body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.45;
  overflow: hidden;
}

/* En celular ocupa el 100% de la pantalla; en computador se centra como un teléfono */
.phone-shell {
  width: 100%;
  height: 100dvh;
  max-width: 440px;
  margin: 0 auto;
  background-color: var(--bg-app);
  background-image:
    radial-gradient(circle at 85% 0%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 45%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

@media (min-width: 500px) {
  body {
    background: radial-gradient(circle at top, #111827 0%, #05080f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .phone-shell {
    height: min(880px, 95dvh);
    border-radius: 36px;
    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.8),
      0 0 0 10px #111827,
      0 0 30px rgba(0, 240, 255, 0.16);
    border: 1px solid rgba(0, 240, 255, 0.25);
  }
}

/* ==========================================================================
   Encabezado superior y barra de resumen (Dark-Tech Cian + Neón)
   ========================================================================== */
.app-header {
  background: linear-gradient(135deg, #0d1526 0%, #111827 55%, #0c2233 100%);
  color: var(--text-main);
  padding: 16px 16px 14px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.24);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55), 0 1px 12px rgba(0, 240, 255, 0.1);
  position: relative;
  z-index: 10;
}

.app-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-neon), var(--accent-neon), transparent);
  opacity: 0.75;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

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

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan-neon) 0%, var(--primary) 55%, var(--accent-neon) 100%);
  color: #06101a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
}

.header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-chip {
  background: rgba(14, 165, 233, 0.14);
  color: var(--cyan-neon);
  border: 1px solid rgba(0, 240, 255, 0.42);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-chip:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.btn-chip:active {
  transform: scale(0.95);
  background: rgba(0, 240, 255, 0.25);
}

.summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 23, 0.72);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.summary-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.summary-value {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2px;
}

#summary-total-amount {
  color: var(--cyan-neon);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.28);
}

.summary-divider {
  width: 1px;
  height: 24px;
  background: rgba(156, 163, 175, 0.22);
}

/* ==========================================================================
   Área de contenido desplazable
   ========================================================================== */
.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px calc(var(--nav-height) + 84px);
  -webkit-overflow-scrolling: touch;
}

.tab-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hidden {
  display: none !important;
}

/* Tarjetas Dark-Tech con bordes sutiles iluminados */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 240, 255, 0.14);
}

.card-subtle {
  background: rgba(17, 24, 39, 0.75);
  border-color: var(--border);
}

.highlight-card {
  border-color: rgba(0, 240, 255, 0.35);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12) 0%, var(--surface) 70%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.08);
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

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

.card-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-helper {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.badge-pill {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
  color: var(--cyan-neon);
  border: 1px solid rgba(0, 240, 255, 0.45);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* ==========================================================================
   Formularios y botones cómodos para el pulgar (mínimo 44px de alto)
   ========================================================================== */
.inline-form {
  display: flex;
  gap: 8px;
}

.input-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1.5px solid var(--surface-subtle);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-app);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-control::placeholder {
  color: #6b7280;
}

.input-control:focus {
  outline: none;
  border-color: var(--cyan-neon);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.select-control option {
  background: var(--surface);
  color: var(--text-main);
}

.btn {
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
  flex-shrink: 0;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-neon) 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(0, 240, 255, 0.38);
}

.btn-danger-outline {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.24);
  color: #ffffff;
  border-color: var(--danger-strong);
}

.btn-sm {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: var(--cyan-neon);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}

.btn-link:hover {
  text-decoration: underline;
}

.field-error {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-light);
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--danger-border);
}

/* ==========================================================================
   Listas de participantes, gastos y saldos
   ========================================================================== */
.item-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.participant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface-subtle);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.participant-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-main);
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18) 0%, rgba(16, 185, 129, 0.18) 100%);
  color: var(--cyan-neon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 240, 255, 0.4);
  flex-shrink: 0;
}

.btn-remove-item {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-remove-item:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger-border);
}

/* Encabezado de sección Gastos */
.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.section-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.empty-state {
  background: var(--surface);
  border: 1.5px dashed rgba(0, 240, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-state h3 {
  color: var(--text-main);
}

.empty-icon {
  font-size: 2.3rem;
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 280px;
}

.expenses-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expense-card {
  background: var(--surface);
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.expense-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 12px rgba(0, 240, 255, 0.12);
}

.expense-card:active {
  transform: scale(0.985);
  border-color: var(--cyan-neon);
}

.expense-main {
  min-width: 0;
  flex: 1;
}

.expense-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expense-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.expense-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--cyan-neon);
  border: 1px solid rgba(0, 240, 255, 0.22);
  font-weight: 600;
}

.tag-custom {
  background: rgba(16, 185, 129, 0.15);
  color: var(--positive);
  border-color: rgba(74, 222, 128, 0.35);
}

.expense-right {
  text-align: right;
  flex-shrink: 0;
}

.expense-amount {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text-main);
}

.expense-edit-hint {
  font-size: 0.72rem;
  color: var(--cyan-neon);
  opacity: 0.85;
  display: block;
  margin-top: 4px;
}

/* ==========================================================================
   Vista de Saldos y Transferencias Mínimas (Colores Semánticos Conservados)
   ========================================================================== */
.transfers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.transfer-item {
  background: var(--bg-app);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.transfer-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

/* Deudor (quien debe pagar) en rojo coral/neón vibrante */
.transfer-from {
  font-weight: 700;
  color: var(--danger);
}

.transfer-arrow {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* Acreedor (a quien le deben) en verde brillante/esmeralda */
.transfer-to {
  font-weight: 700;
  color: var(--positive);
}

.transfer-amount {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-main);
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.balances-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.balance-item {
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.balance-person {
  min-width: 0;
}

.balance-name {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-main);
}

.balance-breakdown {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.balance-badge {
  text-align: right;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Saldo positivo ("Le deben"): verde esmeralda brillante de alto contraste */
.balance-positive {
  background: var(--positive-bg);
  color: var(--positive);
  border: 1px solid var(--positive-border);
}

/* Saldo negativo ("Debe"): rojo coral/neón vibrante de alto contraste */
.balance-negative {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.balance-zero {
  background: rgba(156, 163, 175, 0.12);
  color: var(--text-secondary);
  border: 1px solid rgba(156, 163, 175, 0.25);
}

/* ==========================================================================
   Botón flotante (FAB) y Barra de navegación inferior
   ========================================================================== */
.fab-button {
  position: absolute;
  right: 16px;
  bottom: calc(var(--nav-height) + 14px);
  height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-neon) 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 240, 255, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 18px rgba(0, 240, 255, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fab-button:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 240, 255, 0.5);
}

.fab-button:active {
  transform: scale(0.95);
}

.fab-plus {
  font-size: 1.3rem;
  line-height: 1;
}

.bottom-nav {
  height: var(--nav-height);
  background: var(--surface);
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex-shrink: 0;
  z-index: 25;
}

.nav-tab {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-tab:hover {
  color: var(--text-main);
}

.nav-tab.active {
  color: var(--cyan-neon);
  font-weight: 700;
  background: radial-gradient(circle at top, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
}

.nav-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 46px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-neon), var(--accent-neon));
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 10px var(--cyan-neon);
}

.nav-icon {
  font-size: 1.25rem;
}

/* ==========================================================================
   Modal tipo Bottom Sheet para Crear / Editar Gasto
   ========================================================================== */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-sheet {
  width: 100%;
  max-height: 92%;
  background: var(--surface);
  border-top: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 24px 24px 0 0;
  padding: 12px 16px 22px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.2s ease-out;
}

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

.modal-handle {
  width: 42px;
  height: 5px;
  background: var(--surface-subtle);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 999px;
  margin: 0 auto 10px;
}

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

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-icon-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.btn-icon-close:hover {
  color: var(--text-main);
  border-color: var(--cyan-neon);
}

.expense-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.currency-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 12px;
  font-weight: 700;
  color: var(--cyan-neon);
}

.currency-input {
  padding-left: 26px;
  font-weight: 700;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-app);
  border: 1px solid var(--surface-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  gap: 4px;
}

.segment-btn {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.segment-btn.active {
  background: var(--surface-subtle);
  color: var(--cyan-neon);
  border-color: rgba(0, 240, 255, 0.38);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.14);
}

.participants-split-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.split-participants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 210px;
  overflow-y: auto;
  padding: 2px;
}

.split-participant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.split-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  flex: 1;
}

.split-check-label input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.split-share-preview {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--positive);
}

.custom-amount-wrap {
  width: 135px;
  position: relative;
  display: flex;
  align-items: center;
}

.custom-amount-input {
  width: 100%;
  min-height: 38px;
  padding: 6px 8px 6px 22px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: var(--radius-sm);
  background: var(--bg-app);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: right;
}

.custom-amount-input:focus {
  outline: none;
  border-color: var(--cyan-neon);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.18);
}

.split-summary-box {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--positive-bg);
  color: var(--positive);
  border: 1px solid var(--positive-border);
  font-size: 0.82rem;
  font-weight: 600;
}

.split-summary-box.mismatch {
  background: var(--warning-light);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* Toast de retroalimentación */
.toast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: var(--text-main);
  border: 1px solid var(--cyan-neon);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 240, 255, 0.25);
}
