/* assets/css/main.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #0f0e0d;
  --bg2: #181614;
  --bg3: #221f1c;
  --bg4: #2d2926;
  --surface: #332e29;
  --border: #3d3732;
  --text: #f0ebe4;
  --text2: #a89d93;
  --text3: #6b625a;
  --accent: #e8a838;
  --accent2: #c8872a;
  --green: #4caf82;
  --red: #e05252;
  --blue: #5b8fe8;
  --orange: #e87a35;
  --purple: #9b72cf;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --trans: 0.18s ease;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
}

/* ── LOGIN ───────────────────────────────────────────── */
#login-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  overflow: hidden;
}

.login-bg {
  position: absolute; inset: 0;
  background: url('assets/img/fondo.jpg') center/cover no-repeat;
  filter: blur(8px) brightness(0.35);
  transform: scale(1.06);
  z-index: 0;
}

.login-bg-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #09111a 0%, #0d2035 60%, #09111a 100%);
  z-index: 0;
}

.login-box {
  position: relative;
  z-index: 1;
  width: 100%; max-width: 420px;
  padding: 40px 40px;
  background: rgba(9,17,26,0.82);
  border: 1px solid rgba(46,184,200,0.18);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin: 16px;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-img img {
  max-width: 180px;
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(46,184,200,0.4));
  margin-bottom: 8px;
}

.login-logo h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.login-logo p { color: var(--text2); font-size: 0.88rem; margin-top: 4px; letter-spacing: 0.3px; }

/* ── LAYOUT ──────────────────────────────────────────── */
#app {
  display: none;
  height: 100vh;
  flex-direction: column;
}

.topbar {
  height: 56px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
  z-index: 100;
}

.topbar-logo {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px 4px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
}

.user-badge .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: #000;
  font-weight: 600;
}

.role-chip {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-chip.administrador { background: rgba(232,168,56,0.2); color: var(--accent); }
.role-chip.cocinero { background: rgba(232,122,53,0.2); color: var(--orange); }
.role-chip.mesero { background: rgba(76,175,130,0.2); color: var(--green); }
.role-chip.cajero { background: rgba(91,143,232,0.2); color: var(--blue); }

/* ── NAVIGATION ──────────────────────────────────────── */
.nav-tabs {
  display: flex;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

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

.nav-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  height: 44px;
  color: var(--text2);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: var(--trans);
  user-select: none;
  flex-shrink: 0;
}

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

.nav-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-tab .tab-icon { font-size: 1rem; }

/* ── MAIN CONTENT ─────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.tab-panel {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding: 20px;
}

.tab-panel.active { display: flex; flex-direction: column; }

/* ── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

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

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text);
}

/* ── STATS GRID ──────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.stat-card.gold::before { background: var(--accent); }
.stat-card.green::before { background: var(--green); }
.stat-card.orange::before { background: var(--orange); }
.stat-card.blue::before { background: var(--blue); }

.stat-icon { font-size: 1.8rem; margin-bottom: 8px; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text2); margin-top: 4px; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--trans);
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent2); }

.btn-success { background: var(--green); color: #000; }
.btn-success:hover { opacity: 0.85; }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }

.btn-sm { padding: 5px 11px; font-size: 0.8rem; }
.btn-lg { padding: 11px 22px; font-size: 0.95rem; }
.btn-icon { padding: 7px; border-radius: 8px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── FORMS ───────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 0.82rem; color: var(--text2); margin-bottom: 5px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 9px 12px;
  transition: var(--trans);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: var(--bg4);
}

.form-select option { background: var(--bg3); }

/* ── MESAS GRID ──────────────────────────────────────── */
.mesas-zona { margin-bottom: 24px; }
.zona-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
  margin-bottom: 10px;
}

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

.mesa-card {
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--trans);
  position: relative;
  user-select: none;
}

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

.mesa-card.disponible { border-color: var(--border); }
.mesa-card.ocupada { border-color: var(--red); background: rgba(224,82,82,0.05); }
.mesa-card.cuenta_pedida { border-color: var(--blue); background: rgba(91,143,232,0.05); }
.mesa-card.reservada { border-color: var(--purple); background: rgba(155,114,207,0.05); }

.mesa-numero {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.mesa-estado {
  font-size: 0.72rem;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mesa-card.disponible .mesa-estado { color: var(--green); }
.mesa-card.ocupada .mesa-estado { color: var(--red); }
.mesa-card.cuenta_pedida .mesa-estado { color: var(--blue); }

.mesa-info { font-size: 0.75rem; color: var(--text3); margin-top: 6px; }
.mesa-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
}

.mesa-card.disponible .mesa-dot { background: var(--green); }
.mesa-card.ocupada .mesa-dot { background: var(--red); animation: pulse 2s infinite; }
.mesa-card.cuenta_pedida .mesa-dot { background: var(--blue); animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ── ORDER PANEL ─────────────────────────────────────── */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.menu-panel { overflow-y: auto; }
.order-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.order-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}

.order-items { flex: 1; overflow-y: auto; padding: 12px; }

.order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  background: var(--bg3);
  transition: var(--trans);
}

.order-item:hover { background: var(--bg4); }

.order-item-name { flex: 1; font-size: 0.88rem; }
.order-item-price { font-size: 0.85rem; color: var(--accent); white-space: nowrap; }
.order-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--bg4);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.qty-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.order-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
}

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

.order-total-label { color: var(--text2); font-size: 0.9rem; }
.order-total-value { font-size: 1.4rem; font-weight: 700; color: var(--accent); }

/* ── MENU ITEMS ──────────────────────────────────────── */
.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 0.83rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--trans);
}

.cat-tab:hover { border-color: var(--accent); color: var(--text); }
.cat-tab.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }

.platillos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.platillo-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.platillo-card:hover { border-color: var(--accent); background: var(--bg3); transform: translateY(-1px); }
.platillo-card:active { transform: translateY(0); }

.platillo-name { font-size: 0.88rem; font-weight: 500; }
.platillo-desc { font-size: 0.75rem; color: var(--text2); flex: 1; }
.platillo-price { font-size: 1rem; color: var(--accent); font-weight: 600; margin-top: 6px; }

/* ── COCINA ──────────────────────────────────────────── */
.cocina-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.ticket-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ticket-header {
  padding: 12px 16px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.ticket-mesa {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text);
}

.ticket-time { font-size: 0.78rem; color: var(--text2); }

.ticket-items { padding: 10px 12px; }

.ticket-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  transition: var(--trans);
}

.ticket-item.pendiente { background: rgba(232,168,56,0.08); }
.ticket-item.en_preparacion { background: rgba(232,122,53,0.08); }
.ticket-item.listo { background: rgba(76,175,130,0.08); }

.item-status-btn {
  width: 28px; height: 28px;
  border-radius: 7px;
  border: 2px solid currentColor;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: var(--trans);
}

.ticket-item.pendiente .item-status-btn { color: var(--accent); }
.ticket-item.en_preparacion .item-status-btn { color: var(--orange); }
.ticket-item.listo .item-status-btn { color: var(--green); }

.item-status-btn:hover { background: currentColor; color: #000; }

.item-qty-badge {
  background: var(--bg4);
  border-radius: 6px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  flex-shrink: 0;
}

.item-name-ticket { flex: 1; font-size: 0.87rem; }
.item-notes { font-size: 0.75rem; color: var(--text3); font-style: italic; }

/* ── CAJA ────────────────────────────────────────────── */
.caja-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.caja-mesas { overflow-y: auto; }

.cobro-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cobro-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--text3);
  font-size: 0.9rem;
}

.cobro-content { padding: 18px; flex: 1; }
.cobro-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.cobro-items { margin-bottom: 16px; }

.cobro-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
}

.cobro-item:last-child { border-bottom: none; }

.cobro-summary {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.cobro-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 4px 0;
  color: var(--text2);
}

.cobro-row.total {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 10px;
}

.cobro-row.total span:last-child { color: var(--accent); }

/* ── MODAL ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 500;
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }

@media (min-width: 600px) {
  .modal-overlay { align-items: center; }
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
}

@media (min-width: 600px) {
  .modal { border-radius: 20px; }
}

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

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg2);
  z-index: 1;
}

.modal-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg3);
  border: none;
  color: var(--text2);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.modal-close:hover { background: var(--red); color: #fff; }
.modal-body { padding: 20px; }

/* ── STATUS BADGES ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.73rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-green { background: rgba(76,175,130,0.15); color: var(--green); }
.badge-red { background: rgba(224,82,82,0.15); color: var(--red); }
.badge-orange { background: rgba(232,122,53,0.15); color: var(--orange); }
.badge-gold { background: rgba(232,168,56,0.15); color: var(--accent); }
.badge-blue { background: rgba(91,143,232,0.15); color: var(--blue); }
.badge-gray { background: rgba(107,98,90,0.3); color: var(--text3); }

/* ── TICKET PRINT ────────────────────────────────────── */
.ticket-print {
  font-family: 'Courier New', monospace;
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.6;
}

.ticket-print hr { border: none; border-top: 1px dashed #000; margin: 8px 0; }
.ticket-print .center { text-align: center; }
.ticket-print .bold { font-weight: bold; }
.ticket-print .row { display: flex; justify-content: space-between; }

/* ── CHARTS ──────────────────────────────────────────── */
.chart-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.83rem;
}

.chart-bar-label { width: 140px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.chart-bar-track { flex: 1; height: 8px; background: var(--bg4); border-radius: 4px; overflow: hidden; }
.chart-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.5s ease; }
.chart-bar-val { color: var(--text); font-weight: 500; width: 70px; text-align: right; flex-shrink: 0; }

/* ── TOAST ───────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 0.87rem;
  box-shadow: var(--shadow);
  animation: toastIn 0.25s ease, toastOut 0.25s ease 2.75s forwards;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--blue); }

@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .order-layout { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .order-panel { max-height: 400px; }
  .caja-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .tab-panel { padding: 12px; }
  .topbar { padding: 0 12px; }
  .topbar-logo { font-size: 1rem; }
  .nav-tab { padding: 0 13px; font-size: 0.82rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .platillos-grid { grid-template-columns: repeat(2, 1fr); }
  .mesas-grid { grid-template-columns: repeat(3, 1fr); }
  .cocina-grid { grid-template-columns: 1fr; }
  .login-box { padding: 32px 24px; }
}

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

/* ── UTILITIES ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-sm { font-size: 0.82rem; }
.text-muted { color: var(--text2); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.font-serif { font-family: 'Playfair Display', serif; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.loading { opacity: 0.5; pointer-events: none; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px;
  color: var(--text3);
  font-size: 0.9rem;
  text-align: center;
}

.empty-state .icon { font-size: 2.5rem; }

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

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--green);
}

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.section-sub { font-size: 0.83rem; color: var(--text2); margin-bottom: 16px; }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text3);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
td { padding: 10px 12px; font-size: 0.87rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg3); }