/************************************************************
 * FILE: assets.css
 * PROJECT: TURISMO+ — ADMIN DASHBOARD
 * VERSION: 4.0.1 — MOBILE SIDEBAR FIX
 * DATE: 2026-02-25
 ************************************************************/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&family=Outfit:wght@300;400;500;600&display=swap');

/* ═══════════════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════════════ */
:root {
  --obsidian:    #070d16;
  --deep:        #0b1422;
  --surface:     #111e30;
  --surface2:    #172438;
  --surface3:    #1d2e44;
  --gold:        #c9a96e;
  --gold-bright: #e8c98a;
  --gold-dim:    rgba(201,169,110,.15);
  --gold-glow:   rgba(201,169,110,.22);
  --teal:        #2a8c8c;
  --teal-bright: #3ab5b5;
  --teal-dim:    rgba(42,140,140,.18);
  --cream:       #f0ebe0;
  --cream-dim:   rgba(240,235,224,.60);
  --cream-faint: rgba(240,235,224,.25);
  --line:        rgba(240,235,224,.07);
  --line2:       rgba(240,235,224,.12);
  --good:        #3ecf82;
  --bad:         #e05c5c;
  --warn:        #e8c96e;
  --sidebar-w:   240px;
  --topbar-h:    62px;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow-card: 0 4px 20px rgba(0,0,0,.35), 0 1px 0 rgba(240,235,224,.04) inset;
  --shadow-gold: 0 0 20px rgba(201,169,110,.18);
  --ease-out:    cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; scroll-behavior: smooth; }

body {
  height: 100%;
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  color: var(--cream);
  background: var(--obsidian);
  overflow: hidden;
}

body.login-page {
  overflow: auto !important;
  height: auto !important;
  min-height: 100vh;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   ANIMATED BACKGROUND
═══════════════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 120% 70% at -10% -5%,  rgba(42,140,140,.14)  0%, transparent 55%),
    radial-gradient(ellipse 80%  90% at 110% 20%,  rgba(201,169,110,.09) 0%, transparent 55%),
    radial-gradient(ellipse 60%  80% at 50%  110%, rgba(42,140,140,.08)  0%, transparent 55%),
    radial-gradient(ellipse 90%  50% at 80%  80%,  rgba(201,169,110,.06) 0%, transparent 50%),
    linear-gradient(168deg, #060c14 0%, #0a1525 50%, #0d1a2e 100%);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='1'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: .028;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════════════
   FULL-SCREEN LAYOUT
═══════════════════════════════════════════════════════ */
.container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 0;
  max-width: none;
  margin: 0;
}

.shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
  animation: none;
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #060d16;
  border-right: 1px solid var(--line2);
  position: relative;
  z-index: 100;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--teal) 30%, var(--gold) 65%, transparent 100%);
  opacity: .55;
}

.sidebar::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 200px 300px at 0% 30%, rgba(42,140,140,.08) 0%, transparent 70%),
    radial-gradient(ellipse 160px 200px at 50% 85%, rgba(201,169,110,.06) 0%, transparent 70%);
  pointer-events: none;
}

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 1;
}

.sidebar-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 6px;
}

.sidebar-dot {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(201,169,110,.06); border: 1px solid rgba(201,169,110,.14);
  box-shadow: 0 0 14px rgba(201,169,110,.12); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sidebar-dot img { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 0 5px rgba(201,169,110,.25)); }

.sidebar-title { font-family: 'Playfair Display', Georgia, serif; font-size: 19px; font-weight: 700; color: var(--cream); letter-spacing: .02em; line-height: 1; }
.sidebar-title span { color: var(--gold); }
.sidebar-subtitle { font-size: 10px; font-weight: 500; letter-spacing: .10em; text-transform: uppercase; color: var(--cream-faint); padding-left: 46px; }

.sidebar-nav {
  flex: 1; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 3px;
  overflow-y: auto; position: relative; z-index: 1;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(201,169,110,.18); border-radius: 999px; }

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  color: var(--cream-dim); cursor: pointer;
  transition: background .18s var(--ease-out), color .18s, transform .18s var(--ease-out);
  position: relative; overflow: hidden; text-decoration: none;
  border: 1px solid transparent;
}

.nav-item::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px; height: 70%;
  background: var(--gold); border-radius: 0 3px 3px 0;
  transition: transform .22s var(--ease-out);
}

.nav-item:hover { background: rgba(201,169,110,.07); color: var(--cream); transform: translateX(2px); border-color: rgba(201,169,110,.12); }
.nav-item.active { background: linear-gradient(100deg, rgba(201,169,110,.18) 0%, rgba(42,140,140,.10) 100%); color: var(--gold-bright); border-color: rgba(201,169,110,.25); box-shadow: inset 0 0 20px rgba(201,169,110,.05); }
.nav-item.active::before { transform: translateY(-50%) scaleY(1); }

.nav-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: .70; transition: opacity .18s; }
.nav-item:hover .nav-icon, .nav-item.active .nav-icon { opacity: 1; }

.sidebar-footer {
  padding: 14px 12px; border-top: 1px solid var(--line);
  position: relative; z-index: 1;
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm); margin-bottom: 8px;
  background: rgba(240,235,224,.04); border: 1px solid var(--line);
}

.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--obsidian); flex-shrink: 0;
}

.user-name { font-size: 12px; font-weight: 500; color: var(--cream-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════════════ */
.header {
  height: var(--topbar-h); min-height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 28px; border-bottom: 1px solid var(--line);
  background: rgba(7,13,22,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: relative; z-index: 10; flex-shrink: 0;
}

.header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dim) 30%, rgba(201,169,110,.18) 50%, var(--teal-dim) 75%, transparent 100%);
}

.brand { display: none; }
.logoDot { display: none; }

.page-title-wrap { display: flex; flex-direction: column; }
.page-title { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 500; color: var(--cream); letter-spacing: .02em; line-height: 1.1; }
.page-sub { font-size: 11px; font-weight: 400; color: var(--cream-faint); letter-spacing: .04em; margin-top: 2px; }

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

.pill {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(240,235,224,.06); border: 1px solid var(--line2);
  font-size: 12px; font-weight: 500; color: var(--cream-dim); cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s var(--ease-out);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.pill:hover { background: rgba(201,169,110,.10); border-color: rgba(201,169,110,.35); color: var(--cream); transform: translateY(-1px); }
.pill.active { background: linear-gradient(135deg, rgba(201,169,110,.22), rgba(42,140,140,.12)); border-color: rgba(201,169,110,.50); color: var(--gold-bright); }

/* ═══════════════════════════════════════════════════════
   CONTENT AREA
═══════════════════════════════════════════════════════ */
.content {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 24px 28px 32px; position: relative; z-index: 1;
}
.content::-webkit-scrollbar { width: 5px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb { background: rgba(201,169,110,.18); border-radius: 999px; }
.content::-webkit-scrollbar-thumb:hover { background: rgba(201,169,110,.32); }

/* ═══════════════════════════════════════════════════════
   GRID
═══════════════════════════════════════════════════════ */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }

/* ═══════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════ */
.card {
  grid-column: span 12;
  background: rgba(17,30,48,.72); border: 1px solid var(--line2);
  border-radius: var(--radius); padding: 20px 22px;
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-card);
  animation: cardReveal .5s var(--ease-out) both;
}

.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(240,235,224,.08) 40%, transparent 100%); }
.card::after { content: ''; position: absolute; top: 0; right: 0; width: 60px; height: 60px; background: radial-gradient(circle at 100% 0%, rgba(201,169,110,.08) 0%, transparent 70%); pointer-events: none; }

.grid .card:nth-child(1) { animation-delay: .06s; }
.grid .card:nth-child(2) { animation-delay: .10s; }
.grid .card:nth-child(3) { animation-delay: .14s; }
.grid .card:nth-child(4) { animation-delay: .18s; }
.grid .card:nth-child(5) { animation-delay: .22s; }
.grid .card:nth-child(6) { animation-delay: .26s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(18px) scale(.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 900px) {
  .card.span4  { grid-column: span 4; }
  .card.span6  { grid-column: span 6; }
  .card.span8  { grid-column: span 8; }
  .card.span12 { grid-column: span 12; }
}

.cardTitle {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line);
  position: relative;
}
.cardTitle::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 40px; height: 1px; background: var(--gold); opacity: .60; }
.cardTitle h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; font-weight: 500; letter-spacing: .02em; color: var(--cream); line-height: 1.3; }
.cardTitle .hint { font-size: 10px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--cream-faint); text-align: right; flex-shrink: 0; }

.kpi { margin: 8px 0 4px; }
.kpi .num { font-family: 'Playfair Display', Georgia, serif; font-size: 52px; font-weight: 400; color: var(--gold-bright); line-height: 1; letter-spacing: -.02em; }
.kpi .lab { font-size: 10px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; color: var(--cream-faint); margin-top: 6px; }

/* ═══════════════════════════════════════════════════════
   ROW & FIELDS
═══════════════════════════════════════════════════════ */
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 170px; flex: 1; }

label { font-size: 10px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; color: var(--cream-faint); }

/* ═══════════════════════════════════════════════════════
   INPUTS
═══════════════════════════════════════════════════════ */
.input, select, textarea {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(7,13,22,.70); border: 1px solid var(--line2);
  color: var(--cream); outline: none;
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 400;
  transition: border-color .18s, box-shadow .18s, background .18s;
  -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c9a96e' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
option { background: var(--surface); color: var(--cream); }
textarea { min-height: 88px; resize: vertical; }
.input::placeholder, textarea::placeholder { color: rgba(240,235,224,.22); }
.input:focus, select:focus, textarea:focus { background: rgba(7,13,22,.85); border-color: rgba(201,169,110,.55); box-shadow: 0 0 0 3px rgba(201,169,110,.09), 0 0 12px rgba(201,169,110,.08); }

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  padding: 10px 18px; border-radius: var(--radius-sm);
  background: rgba(17,30,48,.80); border: 1px solid var(--line2);
  color: var(--cream-dim); cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  white-space: nowrap; transition: all .20s var(--ease-out); position: relative;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover:not(:disabled) { background: rgba(201,169,110,.10); border-color: rgba(201,169,110,.40); color: var(--cream); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.btn:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.btn.primary { background: linear-gradient(135deg, rgba(201,169,110,.24) 0%, rgba(201,169,110,.11) 100%); border-color: rgba(201,169,110,.52); color: var(--gold-bright); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, rgba(201,169,110,.40) 0%, rgba(201,169,110,.20) 100%); border-color: rgba(201,169,110,.80); box-shadow: 0 4px 20px rgba(201,169,110,.20); color: var(--gold-bright); }
.btn.danger { background: linear-gradient(135deg, rgba(224,92,92,.18) 0%, rgba(224,92,92,.08) 100%); border-color: rgba(224,92,92,.40); color: #f09090; }
.btn.danger:hover:not(:disabled) { background: linear-gradient(135deg, rgba(224,92,92,.30) 0%, rgba(224,92,92,.16) 100%); border-color: rgba(224,92,92,.65); box-shadow: 0 4px 18px rgba(224,92,92,.15); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn.icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); min-width: 34px; flex-shrink: 0; }
.btn.icon svg { width: 14px; height: 14px; fill: currentColor; display: block; }

/* ═══════════════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════════════ */
.tableWrap { overflow: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.tableWrap::-webkit-scrollbar { height: 5px; width: 5px; }
.tableWrap::-webkit-scrollbar-track { background: rgba(255,255,255,.02); border-radius: 999px; }
.tableWrap::-webkit-scrollbar-thumb { background: rgba(201,169,110,.22); border-radius: 999px; }

table { width: 100%; border-collapse: collapse; min-width: 860px; background: rgba(7,13,22,.22); }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { position: sticky; top: 0; background: rgba(7,13,22,.88); text-align: left; font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--cream-faint); z-index: 2; white-space: nowrap; }
th::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--line2); }
td { font-size: 13px; font-weight: 400; color: var(--cream); }
tr:last-child td { border-bottom: none; }
tr { transition: background .12s; }
tr:hover td { background: rgba(201,169,110,.04); }

.tableWrap.miniScroll { overflow-y: auto; overflow-x: hidden; max-height: 200px; }
.miniTable { min-width: 0 !important; width: 100%; table-layout: fixed; }
.miniTable th, .miniTable td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.miniTable th:nth-child(1), .miniTable td:nth-child(1) { width: 55%; }
.miniTable th:nth-child(2), .miniTable td:nth-child(2) { width: 20%; }
.miniTable th:nth-child(3), .miniTable td:nth-child(3) { width: 25%; }

.actions-col { text-align: right; }
.actions-col .row { justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }

.empTableWrap { overflow-x: auto; overflow-y: hidden; }
.empTableWrap::-webkit-scrollbar { height: 6px; }
.empTableWrap::-webkit-scrollbar-track { background: rgba(255,255,255,.02); border-radius: 999px; }
.empTableWrap::-webkit-scrollbar-thumb { background: rgba(201,169,110,.22); border-radius: 999px; }
.empTable { min-width: 1200px; }
.empTable th, .empTable td { white-space: nowrap; }

/* ═══════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; background: rgba(240,235,224,.06); border: 1px solid var(--line2); color: var(--cream-faint); }
.badge.good { border-color: rgba(62,207,130,.44); background: rgba(62,207,130,.09); color: #6eeaaa; }
.badge.warn { border-color: rgba(232,201,110,.44); background: rgba(232,201,110,.09); color: var(--gold-bright); }
.badge.bad  { border-color: rgba(224,92,92,.44);   background: rgba(224,92,92,.09);   color: #f09898; }

/* ═══════════════════════════════════════════════════════
   NOTE / SMALL / LINK
═══════════════════════════════════════════════════════ */
.note  { font-size: 11px; color: var(--cream-faint); margin-top: 10px; line-height: 1.65; letter-spacing: .02em; }
.small { font-size: 11px; color: var(--cream-faint); }
.link  { color: var(--gold-bright); text-decoration: underline; text-decoration-color: rgba(232,201,138,.35); }
.link:hover { text-decoration-color: var(--gold-bright); }

/* ═══════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════ */
.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(7,13,22,.95); border: 1px solid rgba(201,169,110,.35);
  padding: 12px 22px; border-radius: 12px;
  max-width: min(540px, calc(100vw - 40px));
  color: var(--cream); font-size: 13px; font-weight: 500;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: none; z-index: 99999;
  box-shadow: 0 8px 32px rgba(0,0,0,.50), var(--shadow-gold);
  opacity: 0; transition: transform .30s var(--ease-out), opacity .22s;
}
.toast.show { display: block; transform: translateX(-50%) translateY(0); opacity: 1; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  padding: 14px 28px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; flex-shrink: 0; background: rgba(7,13,22,.40);
}
.footer img { height: 52px; width: auto; opacity: .88; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }

/* ═══════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════ */
.modalWrap { position: fixed; inset: 0; background: rgba(4,8,16,.80); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 99999; padding: 16px; }
.modalWrap.show { display: flex; }

.modal {
  width: min(880px, 98vw); max-height: calc(100vh - 48px); overflow: auto;
  background: linear-gradient(155deg, rgba(23,36,56,.97) 0%, rgba(11,20,34,.99) 100%);
  border: 1px solid rgba(201,169,110,.24); border-radius: 18px;
  padding: 22px 24px; box-shadow: 0 24px 60px rgba(0,0,0,.55), var(--shadow-gold);
  position: relative; animation: modalIn .30s var(--ease-out) both;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--gold) 35%, var(--teal-bright) 70%, transparent 100%); opacity: .45; border-radius: 18px 18px 0 0; }
.modal::-webkit-scrollbar { width: 5px; }
.modal::-webkit-scrollbar-thumb { background: rgba(201,169,110,.22); border-radius: 999px; }

.modalHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: linear-gradient(155deg, rgba(23,36,56,.98) 0%, rgba(11,20,34,1) 100%); z-index: 2; }
.modalHeader h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; font-weight: 500; letter-spacing: .02em; color: var(--cream); }
.modalGrid { display: grid; grid-template-columns: repeat(12,1fr); gap: 12px; margin-top: 12px; }
.modalGrid .field      { grid-column: span 6; min-width: 0; }
.modalGrid .field.full { grid-column: span 12; }
.modalActions { grid-column: span 12; display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ═══════════════════════════════════════════════════════
   CODE
═══════════════════════════════════════════════════════ */
code { font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 11px; color: var(--gold-bright); background: rgba(201,169,110,.08); padding: 2px 7px; border-radius: 4px; border: 1px solid rgba(201,169,110,.15); }

/* ═══════════════════════════════════════════════════════
   MOBILE SIDEBAR TOGGLE
═══════════════════════════════════════════════════════ */
.sidebar-toggle {
  display: none;
  background: none; border: none; color: var(--cream); cursor: pointer;
  padding: 8px; border-radius: 8px; margin-right: 4px;
  align-items: center; justify-content: center;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: var(--sidebar-w);  /* starts AFTER the sidebar */
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.65);
  z-index: 150;
}
.sidebar-overlay.show {
  display: block;
}

/* ═══════════════════════════════════════════════════════
   MOBILE — max-width: 900px
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  body { overflow: hidden; }

  .container {
    flex-direction: row;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
  }

  /* Sidebar slides in over the content — fixed, not in flow */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    height: 100vh;
    transform: translateX(-100%);
    transition: transform .30s var(--ease-out);
    z-index: 200;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 48px rgba(0,0,0,.80);
    background: #060d16;
  }

  /* Show hamburger button */
  .sidebar-toggle {
    display: flex;
  }

  /* Shell takes full width (sidebar is overlaid, not in flow) */
  .shell {
    flex: 1;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 24px;
  }

  .header { padding: 0 16px; flex-shrink: 0; }
  .header img[alt="logo"] { height:22px !important; }
  .footer { padding: 12px 16px; flex-shrink: 0; }

  .card { padding: 16px; }
  .kpi .num { font-size: 40px; }
  .grid { gap: 12px; }

  .modal, .toast { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 600px) {
  .grid .card.span4,
  .grid .card.span6 { grid-column: span 12; }
  .field { min-width: 140px; }
  table  { min-width: 480px; }
  .kpi .num { font-size: 34px; }
}

/* ═══════════════════════════════════════════════════════
   GLOBAL SCROLLBAR
═══════════════════════════════════════════════════════ */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,169,110,.18); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,169,110,.34); }

body.login-page { overflow: auto !important; }