
/* =============================================================================
   RESPONSIVE TEXT TOGGLES (DESKTOP DEFAULT)
   ============================================================================= */
.nav-label-short { display: none; }
.nav-label-full { display: inline; }
.dl-btn-short { display: none; }
.dl-btn-full { display: inline; }
.role-text-short { display: none; }
.role-text-full { display: inline; }
.exit-short { display: none; }
.exit-full { display: inline; }
.logout-short { display: none; }
.logout-full { display: inline; }
.cash-full { display: inline; }
/* =============================================================================
   CARWASH CONTROL - SISTEMA DARK PREMIUM (INSPIRADO EN MESAFÁCIL v3.4.38)
   ============================================================================= */

:root {
  --bg-primary: #07090e;
  --bg-surface: #0c121e;
  --bg-card: #111a2c;
  --bg-elevated: #18243c;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.16);
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #f97316;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;
  --accent-red: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.7);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

h1, h2, h3, h4, .brand-title, .header-business-title, .kpi-val, .total-amount, .btn-primary, .tile-user-name, .nav-tab, .tile-btn, .btn-action {
  font-family: var(--font-heading);
}

body, html {
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: -webkit-fill-available;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 14px;
  overflow-x: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  width: 100%;
  overflow-x: hidden;
}

/* TOP HEADER */
.app-header {
  height: 60px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 20;
}

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

.brand-icon {
  font-size: 24px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.brand-badge {
  font-size: 10px;
  background: #1e3a8a;
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* TENANT SELECTOR PILL */
.tenant-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.tenant-pill:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-cyan);
}

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

/* BOTÓN CONEXIÓN */
.btn-connect-head {
  padding: 6px 12px;
  font-size: 12px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

/* SELECTOR DE PERFIL */
.profile-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.profile-pill:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-elevated);
}

.role-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-main);
}

.btn-icon-head {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
}

.btn-icon-head:hover {
  border-color: var(--accent-cyan);
  transform: scale(1.05);
}

.sync-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.sync-badge.offline .sync-dot {
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

.sync-badge.offline {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--accent-red);
}

/* NAVIGATION BAR */
.nav-bar {
  height: 48px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-bar::-webkit-scrollbar { display: none; }

.nav-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-tab.active {
  color: #fff;
  background: var(--accent-blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.nav-count {
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
}

/* MAIN VIEWPORT */
.view-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg-primary);
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

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

/* LAYOUT GRIDS & CARDS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.yard-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  height: calc(100vh - 150px);
}

.yard-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.yard-col-header {
  padding: 12px 14px;
  background: var(--bg-card);
  border-top: 3px solid;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 14px;
}

.yard-cards {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* KPIS */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.kpi-val {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-top: 4px;
}

/* CATEGORY CHIPS */
.category-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.category-chip {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-color);
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.category-chip:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card);
}

.category-chip.selected {
  background: rgba(37, 99, 235, 0.25);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.chip-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.chip-name {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  color: var(--text-main);
}

/* INPUTS */
.input-group {
  margin-bottom: 14px;
}

.input-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.text-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.text-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.plate-input {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  color: #fbbf24;
}

/* SERVICE ITEMS CHECKLIST */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.service-row:hover {
  border-color: var(--border-light);
}

.service-row.selected {
  border-color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.2);
}

.service-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 2px solid var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.service-row.selected .service-checkbox {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.service-name {
  font-weight: 700;
  font-size: 14px;
}

.service-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.service-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--accent-cyan);
}

/* SUMMARY ACTION BAR */
.action-summary-bar {
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.4);
  margin-top: 10px;
}

.total-badge {
  display: flex;
  flex-direction: column;
}

.total-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

.total-amount {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 900;
  font-size: 16px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* KANBAN PATIO / TICKETS */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.ticket-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
  transition: transform 0.15s, border-color 0.15s;
}

.ticket-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

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

.ticket-order {
  background: var(--bg-elevated);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 13px;
  color: var(--accent-cyan);
}

.ticket-plate {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fbbf24;
}

.badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge-received { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-washing { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.badge-ready { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-delivered { background: rgba(100, 116, 139, 0.2); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.4); }

.ticket-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.ticket-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

.btn-action {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-blue { background: var(--accent-blue); color: #fff; }
.btn-green { background: var(--accent-green); color: #000; }
.btn-amber { background: #f59e0b; color: #000; }
.btn-cyan { background: #0284c7; color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; display: flex; align-items: center; gap: 4px; }

/* PRICE MATRIX TABLE (ADMIN) */
.table-responsive {
  overflow-x: auto;
  margin-top: 10px;
}

.price-table, .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.price-table th, .price-table td, .data-table th, .data-table td {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.price-table th, .data-table th {
  background: var(--bg-elevated);
  color: var(--accent-cyan);
  font-weight: 800;
}

.price-table td.cell-label {
  text-align: left;
  font-weight: 700;
  color: #fff;
  background: rgba(30, 41, 59, 0.5);
}

.price-input-cell {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: #38bdf8;
  font-weight: 800;
  width: 75px;
  padding: 6px;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
}

.price-input-cell:focus {
  border-color: var(--accent-cyan);
  background: #0f172a;
  outline: none;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* CONNECTION MODAL TABS */
.connect-tabs {
  display: flex;
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
  margin-bottom: 14px;
}

.connect-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.connect-tab.active {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.connect-info-box {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-cyan);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.connect-info-box b {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

/* QR CODE BOX */
.qr-code-wrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
}

.qr-code-wrapper svg {
  width: 100%;
  height: 100%;
}

/* MOBILE STEPS */
.mobile-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.mobile-step {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: 10px;
}

.mobile-step .step-num {
  background: var(--accent-amber);
  color: #000;
  font-weight: 900;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-step .step-content b {
  color: #fff;
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}

.mobile-step .step-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.mobile-step code {
  background: #0f172a;
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* TENANT LIST */
.tenant-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.tenant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tenant-item:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-blue);
}

.tenant-item.active {
  border-color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
}

.tenant-item-name {
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.tenant-item-slug {
  font-size: 11px;
  color: var(--text-sub);
  font-family: monospace;
}

/* THERMAL RECEIPT PREVIEW */
.receipt-paper {
  background: #ffffff;
  color: #111827;
  padding: 16px;
  border-radius: 6px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
}

.receipt-header {
  text-align: center;
  border-bottom: 1px dashed #4b5563;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
}

.receipt-total {
  border-top: 1px dashed #4b5563;
  padding-top: 6px;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 900;
}

/* TOASTS */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
  .app-header { padding: 0 10px; }
  .view-container { padding: 10px; }
  .grid-2 { grid-template-columns: 1fr; }
  .category-chips { grid-template-columns: repeat(3, 1fr); }
  .action-summary-bar { flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
  .btn-primary { justify-content: center; }
  .btn-connect-head { display: none; }
}

@media print {
  body * { visibility: hidden; }
  .receipt-paper, .receipt-paper * { visibility: visible; }
  .receipt-paper { position: absolute; left: 0; top: 0; width: 80mm; }
}

/* =============================================================================
   TOP DOWNLOAD BAR (APK ANDROID & WINDOWS PC)
   ============================================================================= */
.top-download-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 16px;
  font-size: 12px;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.dl-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-live {
  background: #10b981;
  color: #022c22;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.dl-bar-text {
  color: #cbd5e1;
}

.dl-bar-text strong {
  color: #38bdf8;
}

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

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-dl-apk {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.btn-dl-apk:hover {
  background: #10b981;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-dl-pc {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.btn-dl-pc:hover {
  background: #0284c7;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* =============================================================================
   BUSINESS TITLE & USER SESSION IN HEADER
   ============================================================================= */
.business-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-business-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #f8fafc;
}

.tenant-id-badge {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: monospace;
}

.tenant-id-badge:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}

.user-session-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 700;
  font-size: 12px;
  color: #f8fafc;
  line-height: 1.2;
}

.user-role-badge {
  font-size: 9px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-head-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 4px;
}

.btn-head-logout:hover {
  background: #ef4444;
  color: #fff;
}

/* =============================================================================
   MODAL DE AUTENTICACIÓN Y ONBOARDING
   ============================================================================= */
.auth-overlay {
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(8px);
  z-index: 10000;
}

.auth-box {
  max-width: 520px;
  width: 95%;
  max-height: 92vh;
  overflow-y: auto;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(79, 70, 229, 0.15);
  border-radius: 20px;
  padding: 24px;
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-logo {
  font-size: 38px;
  margin-bottom: 4px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #1e293b;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.auth-detected-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #38bdf8;
}

.btn-text-change {
  background: none;
  border: none;
  color: #fbbf24;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}

.btn-auth-submit {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 800;
  margin-top: 10px;
}



/* =============================================================================
   MOBILE ULTRA-RESPONSIVE ADAPTATIONS (<768px & <600px)
   ============================================================================= */

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr !important; gap: 12px; }
  .view-container { padding: 10px 10px 80px 10px; }
  .ticket-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; }
}

@media (max-width: 600px) {
  /* 1. TOP DOWNLOAD BAR COMPACTO */
  .top-download-bar {
    padding: 4px 10px;
    font-size: 11px;
    gap: 6px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 34px;
    max-height: 36px;
  }
  .dl-bar-text {
    display: none !important;
  }
  .dl-bar-left {
    gap: 6px;
  }
  .badge-live {
    font-size: 9px;
    padding: 2px 5px;
  }
  .dl-bar-actions {
    display: flex;
    gap: 5px;
    width: auto !important;
    justify-content: flex-end;
  }
  .btn-dl {
    padding: 3px 8px;
    font-size: 11px;
    gap: 4px;
    border-radius: 6px;
    flex: none !important;
  }

  /* 2. DEMO SWITCHER BAR EN CABECERA */
  .demo-top-bar {
    padding: 4px 10px;
    min-height: 36px;
  }
  .demo-top-content {
    gap: 6px;
    justify-content: space-between;
  }
  .demo-tag-desc {
    display: none !important;
  }
  .demo-tag-label {
    font-size: 10px;
    padding: 2px 6px;
  }
  .demo-role-buttons {
    gap: 4px;
  }
  .btn-demo-role {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }
  .btn-demo-role .role-badge {
    display: none !important;
  }
  .btn-demo-exit {
    padding: 3px 6px;
    font-size: 10px;
  }

  /* 3. HEADER PRINCIPAL */
  .app-header {
    height: 50px !important;
    padding: 0 10px !important;
  }
  .brand {
    gap: 6px;
  }
  .brand-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
    border-radius: 8px;
  }
  .header-business-title {
    font-size: 13px !important;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tenant-id-badge {
    font-size: 9px !important;
    padding: 1px 4px !important;
  }
  .brand-badge {
    display: none !important;
  }
  .header-right {
    gap: 6px;
  }
  .btn-connect-head {
    display: none !important;
  }
  .btn-icon-head {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }
  .sync-badge {
    padding: 3px 6px !important;
  }
  #sync-text {
    display: none !important;
  }
  #btn-quick-cash {
    padding: 4px 8px !important;
    font-size: 11px !important;
    border-radius: 6px;
    white-space: nowrap;
  }
  .user-session-pill {
    padding: 3px 6px !important;
    gap: 4px;
  }
  .user-info-text {
    display: none !important;
  }
  .btn-head-logout {
    padding: 2px 5px !important;
    font-size: 10px !important;
  }

  /* 4. BARRA DE NAVEGACIÓN SWIPEABLE */
  .nav-bar {
    height: 42px !important;
    padding: 0 8px !important;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-tab {
    padding: 5px 9px !important;
    font-size: 12px !important;
    gap: 4px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  /* 5. VISTA DE RECEPCIÓN (POS) */
  .view-container {
    padding: 8px 8px 85px 8px !important;
  }
  .card {
    padding: 12px !important;
    margin-bottom: 10px !important;
    border-radius: 12px !important;
  }
  .card-title {
    font-size: 13px !important;
    margin-bottom: 10px !important;
  }
  .plate-input {
    font-size: 22px !important;
    letter-spacing: 2px !important;
    padding: 10px !important;
    height: 46px !important;
  }
  .category-chips {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .category-chip {
    padding: 8px 4px !important;
  }
  .chip-icon {
    font-size: 18px !important;
    margin-bottom: 2px !important;
  }
  .chip-name {
    font-size: 10px !important;
  }
  .service-row {
    padding: 10px 10px !important;
  }
  .service-name {
    font-size: 13px !important;
  }
  .service-price {
    font-size: 13px !important;
  }

  /* BARRA DE TOTAL Y GENERAR TICKET (STICKY BOTTOM EN MÓVIL) */
  .action-summary-bar {
    position: sticky !important;
    bottom: 8px !important;
    z-index: 100 !important;
    margin-top: 12px !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    backdrop-filter: blur(16px) !important;
    background: rgba(12, 18, 30, 0.94) !important;
    border: 1.5px solid var(--accent-cyan) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
  }
  .total-label {
    font-size: 10px !important;
  }
  .total-amount {
    font-size: 24px !important;
  }
  .btn-primary {
    padding: 10px 16px !important;
    font-size: 13.5px !important;
    border-radius: 10px !important;
  }

  /* 6. VISTA DE CAJA EN MÓVIL */
  .cash-kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .kpi-card {
    padding: 10px 12px !important;
    border-radius: 10px !important;
  }
  .kpi-val {
    font-size: 18px !important;
  }
  .kpi-label {
    font-size: 10px !important;
  }

  /* 7. KANBAN DE PATIO EN MÓVIL */
  .ticket-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .ticket-card {
    padding: 12px !important;
  }
  .ticket-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .ticket-actions button {
    flex: 1 1 calc(50% - 6px) !important;
    min-width: 80px !important;
    padding: 8px 6px !important;
    font-size: 11px !important;
  }

  /* 8. MODAL DE LOGIN EN MÓVIL */
  .auth-box {
    width: 95% !important;
    max-width: 400px !important;
    max-height: 94dvh !important;
    padding: 16px 12px !important;
    border-radius: 16px !important;
  }
  .auth-header {
    margin-bottom: 10px !important;
  }
  .auth-header h2 {
    font-size: 18px !important;
  }
  .auth-logo {
    font-size: 24px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    margin-bottom: 6px !important;
  }
  .demo-card-panel {
    padding: 12px 10px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
  }
  .demo-profile-tile {
    padding: 8px 10px !important;
    gap: 8px !important;
  }
  .tile-icon-box {
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
  }
  .tile-user-name {
    font-size: 12px !important;
  }
  .tile-desc {
    font-size: 10px !important;
  }
  .tile-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
  .text-input {
    font-size: 16px !important; /* Evita que Safari en iPhone haga zoom automático */
    padding: 10px 12px !important;
  }
}


/* =============================================================================
   GLASSMORPHISM DESIGN SYSTEM & COMPACT DEMO BAR
   ============================================================================= */

/* AMBIENT BACKGROUND GLOWS */
body, html {
  background-color: #060911 !important;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(6, 182, 212, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(99, 102, 241, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.10) 0%, transparent 50%) !important;
  background-attachment: fixed !important;
}

/* CARDS GLASSMORPHISM */
.card, .glass-panel {
  background: rgba(14, 21, 37, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* AUTH OVERLAY & BOX */
.auth-overlay {
  background: rgba(4, 7, 15, 0.85) !important;
  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
}

.auth-box {
  max-width: 480px !important;
  width: 95% !important;
  max-height: 94dvh !important;
  overflow-y: auto !important;
  background: rgba(13, 20, 36, 0.84) !important;
  backdrop-filter: blur(25px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(6, 182, 212, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  border-radius: 22px !important;
  padding: 22px !important;
}

/* AUTH TABS */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.auth-tab-btn {
  border: none;
  background: none;
  color: #94a3b8;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(6, 182, 212, 0.85)) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* GLASS DEMO BOX (COMPACT & BEAUTIFUL) */
.glass-demo-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.glass-demo-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 900;
  color: #a5b4fc;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.demo-live-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-beacon 1.5s infinite;
}

.glass-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-glass-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  user-select: none;
}

.btn-glass-demo:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.demo-btn-admin {
  border-left: 3px solid #f59e0b;
}
.demo-btn-admin:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.demo-btn-trabajador {
  border-left: 3px solid #06b6d4;
}
.demo-btn-trabajador:hover {
  border-color: #06b6d4;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.25);
}

.btn-demo-content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.demo-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.demo-labels {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.demo-role-name {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-person {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-demo-badge {
  font-size: 10px;
  font-weight: 800;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 3px 6px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-left: 4px;
  transition: all 0.2s;
}

.btn-glass-demo:hover .btn-demo-badge {
  background: #4f46e5;
  color: #fff;
  border-color: #818cf8;
}

/* GLASS DIVIDER */
.glass-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 12px 0;
  text-align: center;
}

.glass-divider span {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  flex: 1;
}

.glass-divider em {
  font-size: 11px;
  color: #64748b;
  font-style: normal;
  font-weight: 600;
}

/* FROSTED GLASS INPUTS */
.text-input {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px) !important;
  color: #fff !important;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.text-input:focus {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: #06b6d4 !important;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2), 0 0 15px rgba(6, 182, 212, 0.15) !important;
}

/* HEADER & NAVBAR GLASSMORPHISM */
.app-header {
  background: rgba(12, 18, 30, 0.78) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.nav-bar {
  background: rgba(10, 15, 26, 0.72) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}


/* =============================================================================
   GLASSMORPHISM CYBER-DARK SYSTEM (AESTHETIC UPGRADE)
   ============================================================================= */

/* AMBIENT LUMINOUS BACKGROUND */
body, html {
  background-color: #060911 !important;
  background-image: 
    radial-gradient(circle at 12% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 18%, rgba(99, 102, 241, 0.09) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 55%) !important;
  background-attachment: fixed !important;
}

.view-container {
  background: transparent !important;
}

/* TOP DOWNLOAD BAR GLOSS & DISMISS */
.top-download-bar {
  background: linear-gradient(90deg, rgba(8, 14, 28, 0.94), rgba(15, 23, 42, 0.94)) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  min-height: 38px !important;
  padding: 4px 16px !important;
}

.btn-dl-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}

.btn-dl-close:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

/* DEMO TOP BAR UNIVERSAL GLASSMORPHISM (DESKTOP & TABLET) */
.demo-top-bar {
  background: rgba(10, 16, 32, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  padding: 6px 16px !important;
  position: relative;
  z-index: 99;
}

.demo-top-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}

.demo-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.demo-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGlow 1.8s infinite;
}

.demo-tag-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
}

.demo-tag-desc {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}

.demo-role-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-demo-role {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #cbd5e1 !important;
  font-family: var(--font-heading) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 5px 14px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
}

.btn-demo-role:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-demo-role.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(59, 130, 246, 0.25)) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.btn-demo-role .role-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-demo-role.active .role-badge {
  background: rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.4);
}

.demo-top-right {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-demo-exit {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #fca5a5 !important;
  font-family: var(--font-heading) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
}

.btn-demo-exit:hover {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3) !important;
}

/* CARDS GLASSMORPHISM */
.card {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 14px 40px -6px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 255, 255, 0.14) !important;
}

.card-title {
  font-family: var(--font-heading) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #f1f5f9 !important;
  letter-spacing: -0.01em;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* NAVIGATION TABS CYBER-GLASS */
.nav-tab {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #94a3b8 !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 7px 16px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.nav-tab:hover {
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.nav-tab.active {
  color: #38bdf8 !important;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.25)) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  font-weight: 700 !important;
}

/* ACTION BUTTONS WITH GLOW */
.btn-action {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid transparent !important;
  text-decoration: none !important;
}

.btn-blue {
  background: linear-gradient(135deg, #0284c7, #2563eb) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.btn-blue:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8) !important;
  border-color: #38bdf8 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-cyan {
  background: linear-gradient(135deg, #0891b2, #06b6d4) !important;
  border-color: rgba(103, 232, 249, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.btn-cyan:hover {
  background: linear-gradient(135deg, #0e7490, #0891b2) !important;
  border-color: #67e8f9 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.4) !important;
}

.btn-green {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  border-color: rgba(110, 231, 183, 0.35) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.btn-green:hover {
  background: linear-gradient(135deg, #047857, #059669) !important;
  border-color: #6ee7b7 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
}

/* ADMIN PANEL HEADER ROW */
.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-title-badge {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 4px;
}

.admin-main-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.admin-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

/* WASHER GLASS CARD */
.washer-glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.washer-glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.washer-glass-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.washer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
  flex-shrink: 0;
}

.washer-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.washer-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #f8fafc;
}

.washer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  flex-wrap: wrap;
}

.washer-phone {
  color: #94a3b8;
}

.washer-comm-badge {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #38bdf8;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 10px;
}

.washer-glass-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-wa-quick {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s ease;
}

.btn-wa-quick:hover {
  background: #16a34a;
  color: #fff;
  transform: scale(1.08);
}

.status-pill-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 9999px;
}

.status-dot-active {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* REFINED FORM LABELS & INPUTS */
.input-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 6px;
}

.text-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #f8fafc !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-family: var(--font-family) !important;
  font-size: 13px !important;
  outline: none;
  transition: all 0.2s ease !important;
}

.text-input:focus {
  background: rgba(15, 23, 42, 0.85) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 0 20px rgba(56, 189, 248, 0.15) !important;
}

/* MODALS FROSTED GLASS */
.modal-overlay {
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  background: rgba(4, 7, 16, 0.78) !important;
}

.modal-box {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(6, 182, 212, 0.12) !important;
  border-radius: 20px !important;
}


/* MOBILE COMPACT ADAPTATIONS FOR DEMO & ADMIN */
@media (max-width: 680px) {
  .demo-top-bar {
    padding: 4px 10px !important;
  }
  .demo-top-content {
    gap: 6px !important;
  }
  .demo-tag-desc {
    display: none !important;
  }
  .demo-tag-label {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }
  .btn-demo-role {
    padding: 4px 8px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
  .btn-demo-role .role-badge {
    display: none !important;
  }
  .btn-demo-exit {
    padding: 3px 6px !important;
    font-size: 10px !important;
  }
  .admin-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .washer-glass-card {
    padding: 10px;
    gap: 8px;
  }
  .washer-avatar {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
  .washer-name {
    font-size: 13px;
  }
}

/* HEADER PILLS REFINEMENT (GLASSMORPHISM) */
.user-session-pill {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
}

#btn-quick-cash {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  padding: 5px 14px !important;
}

.sync-badge {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
}

.btn-connect-head {
  border-radius: 9999px !important;
  padding: 5px 14px !important;
  font-family: var(--font-heading) !important;
  font-size: 12px !important;
}


/* =============================================================================
   MOBILE APP EXPERIENCE (< 680px) - ULTRARREFINE & REDUCED TEXT
   ============================================================================= */
@media (max-width: 680px) {
  /* TOGGLES DE TEXTO CONCISO */
  .nav-label-full { display: none !important; }
  .nav-label-short { display: block !important; font-size: 10px !important; font-weight: 700 !important; color: #94a3b8 !important; }
  .dl-btn-full { display: none !important; }
  .dl-btn-short { display: inline !important; font-size: 11px !important; font-weight: 700 !important; }
  .role-text-full { display: none !important; }
  .role-text-short { display: inline !important; font-size: 11px !important; font-weight: 700 !important; }
  .exit-full { display: none !important; }
  .exit-short { display: inline !important; font-size: 10px !important; }
  .logout-full { display: none !important; }
  .logout-short { display: inline !important; font-size: 13px !important; }
  .cash-full { display: none !important; }

  /* 1. TOP DOWNLOAD BAR MINIMALISTA */
  .top-download-bar {
    min-height: 32px !important;
    max-height: 34px !important;
    padding: 2px 10px !important;
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2) !important;
  }
  .dl-bar-text { display: none !important; }
  .btn-dl-pc { display: none !important; } /* Ocultar .exe en celular */
  .badge-live {
    font-size: 8px !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
  }
  .btn-dl-apk {
    padding: 2px 8px !important;
    font-size: 10.5px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4) !important;
  }
  .btn-dl-close {
    font-size: 12px !important;
    padding: 2px 5px !important;
  }

  /* 2. BARRA DE DEMOSTRACIÓN (1 LÍNEA ULTRA COMPACTA) */
  .demo-top-bar {
    padding: 3px 8px !important;
    min-height: 34px !important;
    max-height: 36px !important;
    background: rgba(8, 14, 27, 0.96) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25) !important;
  }
  .demo-top-content {
    gap: 4px !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .demo-top-tag {
    gap: 4px !important;
  }
  .demo-tag-desc { display: none !important; }
  .demo-tag-label {
    font-size: 9px !important;
    padding: 1px 5px !important;
    letter-spacing: 0.5px !important;
  }
  .demo-role-buttons {
    gap: 4px !important;
  }
  .btn-demo-role {
    padding: 3px 7px !important;
    font-size: 11px !important;
    gap: 3px !important;
    border-radius: 6px !important;
  }
  .btn-demo-role .role-badge { display: none !important; }
  .btn-demo-exit {
    padding: 2px 6px !important;
    font-size: 10px !important;
    border-radius: 5px !important;
  }

  /* 3. HEADER NATIVO MÓVIL */
  .app-header {
    height: 48px !important;
    padding: 0 10px !important;
    background: rgba(10, 15, 29, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .brand {
    gap: 6px !important;
  }
  .brand-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
    border-radius: 7px !important;
  }
  .header-business-title {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    max-width: 105px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .tenant-id-badge {
    font-size: 8.5px !important;
    padding: 1px 4px !important;
    border-radius: 4px !important;
  }
  .brand-badge { display: none !important; }
  .btn-connect-head { display: none !important; }
  .btn-icon-head { display: none !important; }
  #sync-text { display: none !important; }
  .sync-badge {
    padding: 4px 6px !important;
    border-radius: 9999px !important;
  }
  #btn-quick-cash {
    padding: 4px 9px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
  }
  .user-info-text { display: none !important; }
  .user-session-pill {
    padding: 3px 6px !important;
    border-radius: 9999px !important;
    gap: 4px !important;
  }
  .btn-head-logout {
    padding: 2px 5px !important;
    border-radius: 6px !important;
  }

  /* 4. BARRA DE NAVEGACIÓN INFERIOR ESTILO APP NATIVA */
  .nav-bar {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 58px !important;
    background: rgba(8, 13, 25, 0.96) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: none !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)) 4px !important;
    z-index: 9999 !important;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7) !important;
  }
  .nav-tab {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 4px 6px !important;
    gap: 1px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    flex: 1 1 0 !important;
    position: relative !important;
    transition: all 0.2s ease !important;
  }
  .nav-tab .nav-icon {
    font-size: 18px !important;
    line-height: 1.1 !important;
    transition: transform 0.2s ease !important;
  }
  .nav-tab.active {
    background: rgba(56, 189, 248, 0.12) !important;
  }
  .nav-tab.active .nav-icon {
    transform: scale(1.18) !important;
  }
  .nav-tab.active .nav-label-short {
    color: #38bdf8 !important;
    font-weight: 800 !important;
  }
  .nav-tab .nav-count {
    position: absolute !important;
    top: 2px !important;
    right: 12% !important;
    font-size: 8.5px !important;
    padding: 1px 4px !important;
    min-width: 14px !important;
    height: 14px !important;
    line-height: 12px !important;
    border-radius: 9999px !important;
  }

  /* 5. CONTENEDOR PRINCIPAL CON ESPACIO PARA LA BARRA INFERIOR */
  .view-container {
    padding: 8px 8px calc(72px + env(safe-area-inset-bottom, 0px)) 8px !important;
  }

  /* 6. VISTA RECEPCIÓN POS (TEXTO LIMPIO, ACCESO INMEDIATO) */
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .card {
    padding: 12px 10px !important;
    margin-bottom: 8px !important;
    border-radius: 14px !important;
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .card-title {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.3px !important;
  }
  .input-group {
    margin-bottom: 8px !important;
  }
  .input-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    margin-bottom: 3px !important;
    color: #94a3b8 !important;
  }
  .plate-input {
    font-size: 24px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    height: 48px !important;
    text-align: center !important;
    border-radius: 10px !important;
  }
  .category-chips {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
  }
  .category-chip {
    padding: 6px 2px !important;
    border-radius: 8px !important;
  }
  .chip-icon {
    font-size: 18px !important;
    margin-bottom: 1px !important;
  }
  .chip-name {
    font-size: 9px !important;
    font-weight: 700 !important;
  }
  .service-row {
    padding: 8px 10px !important;
    border-radius: 8px !important;
    margin-bottom: 5px !important;
  }
  .service-name {
    font-size: 13px !important;
    font-weight: 700 !important;
  }
  .service-desc {
    display: none !important; /* Oculta descripciones largas en celular */
  }
  .service-price {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #10b981 !important;
  }
  .ticket-summary {
    padding: 10px !important;
    margin-top: 10px !important;
    border-radius: 10px !important;
  }
  .ticket-total-val {
    font-size: 22px !important;
    font-weight: 900 !important;
  }
  #btn-save-yard, #btn-quick-pay {
    height: 44px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
  }

  /* 7. VISTA PATIO / YARD KANBAN */
  .yard-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .ticket-card {
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }
  .ticket-plate {
    font-size: 18px !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
  }
  .ticket-details {
    font-size: 11.5px !important;
    gap: 3px !important;
    margin: 6px 0 !important;
  }
  .ticket-actions {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 6px !important;
  }
  .ticket-actions .btn-action {
    height: 38px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 0 10px !important;
  }

  /* 8. VISTA DE CAJA Y ARQUEO */
  .cash-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .kpi-card {
    padding: 8px 10px !important;
    border-radius: 10px !important;
  }
  .kpi-label {
    font-size: 9.5px !important;
    letter-spacing: 0.3px !important;
  }
  .kpi-val {
    font-size: 16px !important;
    font-weight: 800 !important;
  }
  .kpi-subtext {
    display: none !important; /* Oculta textos explicativos secundarios */
  }
  .card-title div[style*="flex"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 8px !important;
  }
  .card-title div[style*="flex"] .btn-action {
    font-size: 11px !important;
    padding: 7px 4px !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .table-responsive {
    border-radius: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .data-table th, .data-table td {
    padding: 7px 5px !important;
    font-size: 11px !important;
  }

  /* 9. MODAL DE AUTENTICACIÓN (LOGIN) COMPACTO Y ELEGANTE */
  .auth-box {
    width: 94% !important;
    max-width: 360px !important;
    padding: 16px 12px !important;
    border-radius: 16px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
  }
  .auth-logo {
    width: 34px !important;
    height: 34px !important;
    font-size: 18px !important;
    margin-bottom: 2px !important;
  }
  .auth-header h2 {
    font-size: 17px !important;
  }
  .auth-header p {
    display: none !important;
  }
  .auth-tabs {
    margin-bottom: 8px !important;
  }
  .auth-tab-btn {
    font-size: 12px !important;
    padding: 6px 8px !important;
  }
  .glass-demo-header {
    font-size: 10px !important;
    padding: 4px 6px !important;
  }
  .glass-demo-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .btn-glass-demo {
    padding: 8px 6px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .btn-demo-content {
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
  }
  .demo-icon {
    font-size: 18px !important;
  }
  .demo-role-name {
    font-size: 11px !important;
    font-weight: 800 !important;
  }
  .demo-person {
    font-size: 8.5px !important;
  }
  .btn-demo-badge {
    display: none !important;
  }
  .text-input {
    font-size: 16px !important; /* Previene auto-zoom molesto en iPhones */
    padding: 9px 11px !important;
  }

  /* 10. PANEL DE ADMINISTRADOR */
  .admin-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }
  .admin-subtitle {
    display: none !important;
  }
  .admin-main-title {
    font-size: 18px !important;
  }
}
