:root {
  --bg-dark: #07030d;
  --bg-card: rgba(18, 11, 30, 0.88);
  --bg-card-hover: rgba(28, 17, 46, 0.95);
  --border-color: rgba(230, 0, 126, 0.22);
  --border-color-strong: rgba(230, 0, 126, 0.45);
  --nequi-pink: #E6007E;
  --nequi-purple: #200020;
  --nequi-cyan: #00F0FF;
  --breb-green: #00FF88;
  --text-main: #FFFFFF;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

/* ==================== SCROLLBAR ELEGANTE Y MODERNO ==================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(12, 6, 22, 0.7);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  border: 2px solid rgba(12, 6, 22, 0.7);
  transition: all 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--nequi-pink), var(--nequi-cyan));
  box-shadow: 0 0 10px rgba(230, 0, 126, 0.6);
}

::-webkit-scrollbar-corner {
  background: rgba(12, 6, 22, 0.7);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(12, 6, 22, 0.7);
}

body {
  background: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(230, 0, 126, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(0, 240, 255, 0.09) 0%, transparent 45%);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.app-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

/* Header Principal */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.breb-logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.brand-text h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFFFFF 60%, var(--nequi-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* Botones Icono (Sonido y Usuario) */
.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-icon.active {
  background: rgba(0, 255, 136, 0.18);
  border-color: var(--breb-green);
  color: var(--breb-green);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.35);
}

.btn-icon.muted {
  background: rgba(255, 82, 82, 0.15);
  border-color: #ff5252;
  color: #ff5252;
}

.btn-user:hover {
  background: rgba(230, 0, 126, 0.2);
  border-color: var(--nequi-pink);
  color: var(--nequi-pink);
  box-shadow: 0 0 16px rgba(230, 0, 126, 0.35);
}

/* Status Pill */
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-pill.online .status-dot {
  background: var(--breb-green);
  box-shadow: 0 0 10px var(--breb-green);
}

.status-pill.offline .status-dot {
  background: #ff5252;
}

/* ==================== POS GRID (PANTALLA DE COBRO) ==================== */
.pos-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

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

/* Card Base */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Tarjeta de Pago Activo */
.active-payment-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--border-color-strong);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.active-payment-card.highlight {
  animation: paymentPulse 1.2s ease;
  border-color: var(--breb-green);
}

@keyframes paymentPulse {
  0% { transform: scale(1); box-shadow: 0 0 30px rgba(0, 255, 136, 0.2); }
  50% { transform: scale(1.015); box-shadow: 0 0 70px rgba(0, 255, 136, 0.55); }
  100% { transform: scale(1); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); }
}

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

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 0, 126, 0.15);
  border: 1px solid rgba(230, 0, 126, 0.4);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nequi-pink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-badge.success {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--breb-green);
  color: var(--breb-green);
}

.pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.pulse-ring.green {
  background: var(--breb-green);
  box-shadow: 0 0 8px var(--breb-green);
}

.timestamp {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.amount-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 32px 0;
}

.currency-symbol {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--nequi-pink);
}

.amount-value {
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  font-weight: 800;
  font-family: var(--font-mono);
  color: #FFFFFF;
  text-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
  letter-spacing: -2px;
}

.currency-code {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-icon {
  stroke: var(--nequi-pink);
  flex-shrink: 0;
}

.detail-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.bank-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Indicador de Voz */
.voice-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  margin-top: 18px;
}

.sound-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
}

.sound-wave span {
  width: 3px;
  height: 6px;
  background: var(--breb-green);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.voice-indicator.speaking .sound-wave span {
  animation: soundBars 0.6s infinite alternate ease-in-out;
}

.sound-wave span:nth-child(2) { animation-delay: 0.1s; }
.sound-wave span:nth-child(3) { animation-delay: 0.2s; }
.sound-wave span:nth-child(4) { animation-delay: 0.3s; }
.sound-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes soundBars {
  0% { height: 4px; }
  100% { height: 20px; }
}

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

/* ==================== TARJETA QR (COLUMNA DERECHA) ==================== */
.qr-payment-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 20px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: linear-gradient(180deg, rgba(18, 11, 30, 0.95) 0%, rgba(10, 6, 18, 0.98) 100%);
}

.qr-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qr-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--breb-green);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qr-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.qr-image-wrapper {
  background: #FFFFFF;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
}

.qr-image-wrapper:hover {
  transform: scale(1.02);
}

.qr-image {
  width: 210px;
  height: 210px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

/* Caja de la Llave Bre-B */
.key-box-container {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(230, 0, 126, 0.3);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.key-label-row {
  display: flex;
  justify-content: flex-start;
}

.key-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.key-display-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.key-value {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--nequi-cyan);
  letter-spacing: 1.5px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 0, 126, 0.18);
  border: 1px solid var(--nequi-pink);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: var(--nequi-pink);
  box-shadow: 0 0 15px rgba(230, 0, 126, 0.4);
}

.btn-copy.copied {
  background: var(--breb-green);
  border-color: var(--breb-green);
  color: #000;
}

/* Caja del Titular */
.owner-box {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.owner-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-icon {
  stroke: var(--breb-green);
}

.owner-name {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.owner-verified {
  font-size: 0.75rem;
  color: var(--breb-green);
  font-weight: 600;
  text-transform: uppercase;
}

/* ==================== VISTA ADMINISTRADOR ==================== */
.admin-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.3s ease;
}

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

.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 8px;
}

.admin-title-group h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.admin-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Métricas Grid Admin */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

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

.metric-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-card.highlight-green {
  border-color: rgba(0, 255, 136, 0.3);
  background: linear-gradient(145deg, rgba(0, 255, 136, 0.08) 0%, rgba(18, 11, 30, 0.9) 100%);
}

.metric-card.highlight-purple {
  border-color: rgba(230, 0, 126, 0.3);
  background: linear-gradient(145deg, rgba(230, 0, 126, 0.08) 0%, rgba(18, 11, 30, 0.9) 100%);
}

.metric-title {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-val {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #FFFFFF;
}

.metric-card.highlight-green .metric-val {
  color: var(--breb-green);
}

.metric-card.highlight-purple .metric-val {
  color: var(--nequi-pink);
}

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

/* Gráfico de Evolución */
.chart-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible !important;
}

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

.chart-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.chart-hover-pill {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.chart-hover-pill.active {
  background: rgba(230, 0, 126, 0.15);
  border-color: var(--nequi-pink);
  color: #FFFFFF;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--nequi-pink), var(--nequi-cyan));
}

.chart-container {
  height: 250px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 45px 14px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
  position: relative;
}

@media (max-width: 680px) {
  .chart-container {
    overflow-x: auto;
    padding-top: 50px;
  }
}

.chart-bar-group {
  flex: 1;
  min-width: 38px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  position: relative;
}

.chart-bar {
  width: 100%;
  max-width: 52px;
  background: linear-gradient(180deg, var(--nequi-pink) 0%, rgba(230, 0, 126, 0.3) 100%);
  border-radius: 8px 8px 0 0;
  min-height: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.chart-bar:hover {
  background: linear-gradient(180deg, var(--nequi-cyan) 0%, var(--nequi-pink) 100%);
  box-shadow: 0 0 16px var(--nequi-cyan);
  transform: scaleY(1.03);
  transform-origin: bottom;
}

.chart-bar.is-today {
  background: linear-gradient(180deg, var(--breb-green) 0%, rgba(0, 255, 136, 0.4) 100%);
}

.chart-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.chart-tooltip {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(14, 8, 26, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--nequi-pink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 14px rgba(230, 0, 126, 0.4);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.76rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--nequi-pink) transparent transparent transparent;
}

.tooltip-day {
  color: #FFFFFF;
  font-weight: 700;
}

.tooltip-amount {
  color: var(--nequi-cyan);
  font-weight: 800;
  font-family: var(--font-mono);
}

.tooltip-count {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.chart-bar-group:hover .chart-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Tabla de Movimientos */
.table-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.filter-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 3px;
}

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

.btn-filter.active {
  background: var(--nequi-pink);
  color: #FFFFFF;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 6px 12px;
  color: var(--text-muted);
}

.search-input-wrapper input {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 0.85rem;
  outline: none;
  width: 180px;
}

.table-wrapper {
  max-height: 460px;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: 14px;
}

.table-wrapper::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.data-table th {
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.table-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--breb-green);
  font-size: 1rem;
}

.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 255, 136, 0.12);
  color: var(--breb-green);
}

.table-empty {
  text-align: center;
  padding: 30px !important;
  color: var(--text-muted);
}

/* Herramientas Admin Grid */
.admin-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .admin-tools-grid {
    grid-template-columns: 1fr;
  }
}

.tool-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.86rem;
}

.select-input, .text-input {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.select-input {
  max-width: 220px;
}

.text-input {
  flex: 1;
}

/* Botones Base */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--nequi-pink), #B30062);
  color: white;
  box-shadow: 0 4px 15px rgba(230, 0, 126, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 126, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-outline-danger {
  background: transparent;
  color: #ff5252;
  border-color: rgba(255, 82, 82, 0.4);
}

.btn-outline-danger:hover {
  background: rgba(255, 82, 82, 0.15);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Modales */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: #140b22;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.modal-card.modal-sm {
  max-width: 400px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
}

.btn-close:hover {
  color: white;
}

.modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.form-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.login-error {
  background: rgba(255, 82, 82, 0.15);
  border: 1px solid #ff5252;
  color: #ff5252;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  text-align: center;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 10, 30, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 18px;
  color: #FFFFFF;
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 240, 255, 0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
}

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

.toast.success {
  border-color: var(--breb-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 255, 136, 0.3);
}

.toast.error {
  border-color: #ff5252;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 82, 82, 0.3);
}

.toast.info {
  border-color: var(--nequi-cyan);
}

/* Spinner de Carga para Botones */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn.is-loading svg {
  animation: spin 0.9s linear infinite;
}

.btn.is-loading {
  opacity: 0.8;
  cursor: wait;
}

/* ==================== MEJORAS GLOBALES DE RESPONSIVIDAD ==================== */
@media (max-width: 1024px) {
  .pos-grid {
    grid-template-columns: 1fr;
  }
  .active-payment-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 16px 12px;
    gap: 16px;
  }

  .header {
    gap: 12px;
    padding-bottom: 12px;
  }

  .brand-text h1 {
    font-size: 1.3rem;
  }

  .admin-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .admin-actions-bar {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .admin-actions-bar .btn {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .table-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-group {
    display: flex;
    width: 100%;
  }

  .btn-filter {
    flex: 1;
    text-align: center;
  }

  .search-input-wrapper {
    width: 100%;
  }

  .search-input-wrapper input {
    width: 100%;
  }

  #btn-export-csv {
    width: 100%;
    justify-content: center;
  }

  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand-text .subtitle {
    display: none;
  }

  .status-pill {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .btn-icon {
    width: 38px;
    height: 38px;
  }

  .amount-container {
    margin: 20px 0;
  }

  .qr-image-wrapper {
    max-width: 220px;
  }

  .key-box {
    flex-wrap: wrap;
    justify-content: center;
  }
}
