/* ==========================================================================
   ESTILOS: PILA / TARRITO 3D DE RECAUDACIÓN EN PESOS CHILENOS (CLP)
   Archivo: styles.css
   ========================================================================== */

:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-alt: #0b1120;
  --border-color: rgba(148, 163, 184, 0.22);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;

  /* Colores dinámicos del relleno 3D (se actualizan vía variables CSS) */
  --fill-height: 0%;
  --fill-color-top: #34d399;
  --fill-color-mid: #10b981;
  --fill-color-bot: #047857;
  --fill-glow: rgba(16, 185, 129, 0.55);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at 50% 10%, #1e293b 0%, #0f172a 60%, #090d16 100%);
  color: var(--text-main);
  min-height: 100vh;
  padding: 24px 16px 48px;
  line-height: 1.5;
}

.app-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   ENCABEZADO Y CONFIGURACIÓN DE META
   ========================================================================== */
.app-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  backdrop-filter: blur(12px);
}

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

.brand-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.mode-switch {
  display: inline-flex;
  background: var(--bg-card-alt);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.mode-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.goal-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-alt);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.goal-box label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.goal-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.9rem;
}

.goal-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 6px;
  width: 120px;
  text-align: right;
}

.goal-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   ESCENARIO CENTRAL: PILA / TARRITO 3D
   ========================================================================== */
.stage-card {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

/* Resplandor ambiental detrás de la pila */
.stage-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fill-glow) 0%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  transition: background 0.5s ease;
  z-index: 0;
}

.battery-scene {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 10px 0 6px;
}

/* Escala de porcentaje lateral */
.scale-ticks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 280px;
  padding: 18px 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: right;
  user-select: none;
}

.scale-ticks span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.scale-ticks span::after {
  content: "";
  width: 8px;
  height: 2px;
  background: rgba(148, 163, 184, 0.45);
  border-radius: 2px;
}

/* Contenedor de la Pila / Tarrito 3D */
.vessel-3d-wrapper {
  position: relative;
  width: 176px;
  height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Polo positivo superior (Pila) o Tapa ranurada (Tarrito) */
.vessel-cap {
  width: 78px;
  height: 24px;
  background: linear-gradient(90deg, #64748b 0%, #f1f5f9 32%, #94a3b8 65%, #334155 100%);
  border-radius: 12px 12px 4px 4px;
  position: relative;
  z-index: 4;
  margin-bottom: -6px;
  box-shadow:
    0 -2px 6px rgba(255, 255, 255, 0.35) inset,
    0 4px 10px rgba(0, 0, 0, 0.6);
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Elipse superior del polo positivo */
.vessel-cap::before {
  content: "+";
  font-size: 0.9rem;
  font-weight: 900;
  color: #1e293b;
  opacity: 0.75;
}

/* Modo Tarrito: tapa más ancha tipo frasco con ranura de alcancía */
.vessel-3d-wrapper.mode-jar .vessel-cap {
  width: 142px;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(90deg, #78350f 0%, #f59e0b 30%, #d97706 68%, #451a03 100%);
}

.vessel-3d-wrapper.mode-jar .vessel-cap::before {
  content: "";
  width: 58px;
  height: 5px;
  background: #1c1917;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
}

/* Cuerpo cilíndrico 3D */
.vessel-body {
  position: relative;
  width: 168px;
  height: 280px;
  border-radius: 28px / 18px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 22%,
    rgba(15, 23, 42, 0.45) 55%,
    rgba(0, 0, 0, 0.55) 85%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border: 2px solid rgba(226, 232, 240, 0.28);
  box-shadow:
    inset 16px 0 24px rgba(255, 255, 255, 0.14),
    inset -18px 0 28px rgba(0, 0, 0, 0.65),
    0 22px 35px -8px rgba(0, 0, 0, 0.75),
    0 0 28px var(--fill-glow);
  overflow: hidden;
  z-index: 2;
  transition: box-shadow 0.4s ease;
}

/* Aro metálico superior e inferior de la pila */
.vessel-rim-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.22) 0%, rgba(148, 163, 184, 0.08) 70%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 5;
  pointer-events: none;
}

.vessel-rim-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.7), rgba(255, 255, 255, 0.15) 35%, rgba(0, 0, 0, 0.8));
  z-index: 4;
  pointer-events: none;
}

/* Líneas divisorias internas sutiles de niveles */
.vessel-grid-lines {
  position: absolute;
  inset: 18px 0;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 100% 25%;
  z-index: 3;
  pointer-events: none;
}

/* Relleno líquido / energético 3D */
.vessel-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--fill-height);
  min-height: 10px;
  background: linear-gradient(
    90deg,
    var(--fill-color-bot) 0%,
    var(--fill-color-top) 28%,
    var(--fill-color-mid) 65%,
    var(--fill-color-bot) 100%
  );
  box-shadow:
    inset 10px 0 18px rgba(255, 255, 255, 0.35),
    inset -14px 0 22px rgba(0, 0, 0, 0.45),
    0 -4px 20px var(--fill-glow);
  transition:
    height 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s ease,
    box-shadow 0.4s ease;
  z-index: 2;
}

/* Menisco elíptico 3D en la superficie superior del líquido/carga */
.vessel-fill::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 40% 45%,
    #ffffff 0%,
    var(--fill-color-top) 35%,
    var(--fill-color-mid) 80%,
    var(--fill-color-bot) 100%
  );
  box-shadow:
    0 0 14px var(--fill-glow),
    inset 0 2px 6px rgba(255, 255, 255, 0.65);
  transition: background 0.4s ease;
}

/* Reflejo especular de cristal 3D en el frente */
.vessel-specular {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 18px;
  width: 22px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.08) 70%,
    transparent 100%
  );
  z-index: 6;
  pointer-events: none;
}

.vessel-specular-thin {
  position: absolute;
  top: 22px;
  bottom: 22px;
  right: 16px;
  width: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 6;
  pointer-events: none;
}

/* Etiqueta flotante de porcentaje en el centro de la pila */
.vessel-readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 7;
  text-align: center;
  pointer-events: none;
  padding: 0 10px;
}

.percent-badge {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 8px 16px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.percent-value {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.percent-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-top: 2px;
}

/* Sombra proyectada en el piso debajo de la pila 3D */
.vessel-floor-shadow {
  width: 150px;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, transparent 72%);
  margin-top: 6px;
  border-radius: 50%;
}

/* Barra de estado bajo la pila */
.stage-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  z-index: 1;
}

.stage-caption strong {
  color: #ffffff;
}

/* ==========================================================================
   SECCIÓN MEDIA: CELDAS DE INGRESO + BLOQUE NUMERAL SUMADOR EN CLP
   ========================================================================== */
.controls-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.input-cells-card,
.total-clp-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.45);
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Las dos celdas lado a lado (Nombre/Texto + Monto CLP) */
.cells-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr auto;
  gap: 10px;
  align-items: end;
}

.cell-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cell-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.cell-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #ffffff;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cell-input:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.btn-add {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-add:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.btn-add:active {
  transform: translateY(0);
}

/* Botones rápidos de montos en CLP */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.quick-chips span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.chip-btn {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #ffffff;
}

.form-feedback {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #f87171;
  min-height: 1.2em;
}

/* Bloque derecho numeral sumador en Pesos Chilenos */
.total-clp-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid rgba(16, 185, 129, 0.38);
}

.total-amount-display {
  font-size: 2.15rem;
  font-weight: 900;
  color: #34d399;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 4px 0 8px;
  word-break: break-word;
}

.total-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 10px;
}

.total-meta-row strong {
  color: #f8fafc;
}

/* ==========================================================================
   SECCIÓN INFERIOR: LISTA DE REGISTROS
   ========================================================================== */
.records-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}

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

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

.records-title h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.count-pill {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.btn-clear {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.32);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear:hover {
  background: rgba(239, 68, 68, 0.24);
  color: #ffffff;
}

.records-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.record-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 12px 14px;
  border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.record-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.record-index {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.record-name {
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.95rem;
}

.record-time {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.record-amount-wrap {
  text-align: right;
}

.record-amount {
  font-weight: 800;
  color: #34d399;
  font-size: 0.98rem;
}

.record-pct {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
}

.btn-delete-item {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-delete-item:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 12px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MÓVILES Y TABLETS)
   ========================================================================== */
@media (max-width: 768px) {
  .controls-grid {
    grid-template-columns: 1fr;
  }

  .cells-row {
    grid-template-columns: 1fr;
  }

  .btn-add {
    width: 100%;
    padding: 12px;
  }
}


/* ==========================================================================
   PANTALLA DE BLOQUEO (LOGIN) Y MODO SOLO LECTURA / ADMINISTRADOR
   ========================================================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(circle at 50% 25%, rgba(30, 41, 59, 0.94) 0%, rgba(9, 13, 22, 0.98) 100%);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-overlay.hidden {
  display: none;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75);
  text-align: center;
}

.auth-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(59, 130, 246, 0.22));
  border: 1px solid rgba(52, 211, 153, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.auth-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.auth-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.btn-login-submit {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.btn-guest-view {
  width: 100%;
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 10px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.btn-guest-view:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #ffffff;
}

.auth-error {
  font-size: 0.82rem;
  color: #f87171;
  min-height: 1.2em;
  text-align: center;
  margin-top: 4px;
}

.auth-hint {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Botones de sesión en el encabezado */
.session-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-session {
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-session:hover {
  background: rgba(59, 130, 246, 0.28);
  color: #ffffff;
}

.btn-session.btn-lock {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}

.btn-session.btn-lock:hover {
  background: rgba(245, 158, 11, 0.28);
  color: #ffffff;
}

/* Banner de Modo Solo Lectura */
.readonly-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
}

body.is-readonly .readonly-banner {
  display: flex;
}

body.is-readonly .input-cells-card,
body.is-readonly #btnClearAll,
body.is-readonly .btn-delete-item,
body.is-readonly #btnOpenPassModal {
  display: none !important;
}

body.is-readonly .controls-grid {
  grid-template-columns: 1fr;
}

body.is-readonly .goal-input {
  pointer-events: none;
  opacity: 0.75;
}
