/* ============================================
   El Caribe / Saucesalicious — Admin Panel
   Caribbean Theme
   ============================================ */
:root {
  --bg:         #040D14;
  --bg2:        #091C2A;
  --bg3:        #0E2838;
  --sidebar:    #050C12;
  --teal:       #0EB5B9;
  --teal-l:     #2ECFCD;
  --teal-dim:   rgba(14,181,185,0.13);
  --coral:      #E8704A;
  --coral-l:    #F4845F;
  --border:     rgba(255,255,255,0.07);
  --border-act: rgba(14,181,185,0.25);
  --text:       #E4EFED;
  --text-dim:   rgba(228,239,237,0.55);
  --text-muted: rgba(228,239,237,0.3);
  --green:      #34D399;
  --red:        #F87171;
  --yellow:     #FBBF24;
  --radius:     10px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', 'Segoe UI', sans-serif;
  --sidebar-w:  230px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: var(--teal-l); text-decoration: none; }
a:hover { color: var(--text); }
img { display: block; max-width: 100%; }

/* ── AUTH PAGES ─────────────────────────── */
.auth-body {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 100%, #0A2A3A 0%, #040D14 65%);
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.auth-logo { font-size: 2.8rem; margin-bottom: 0.75rem; }
.auth-title {
  font-family: var(--font-serif);
  font-size: 1.9rem; color: var(--text);
  margin-bottom: 0.3rem;
}
.auth-sub { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 1.75rem; }
.auth-form { text-align: left; }

/* ── LAYOUT ─────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; overflow-x: hidden;
  transition: transform 0.25s ease;
  z-index: 100;
}
.sidebar-brand {
  padding: 1.5rem 1.25rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand .brand-icon { font-size: 1.6rem; margin-bottom: 0.2rem; }
.sidebar-brand img { display: block; }
.sidebar-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 1.1rem; color: var(--text);
  line-height: 1.2;
}
.sidebar-brand .brand-sub {
  font-size: 0.65rem; color: var(--teal);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 0.2rem;
}

.sidebar-nav { padding: 0.85rem 0.65rem; flex: 1; }
.nav-label {
  font-size: 0.6rem; color: var(--text-muted);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.5rem 0.6rem 0.2rem;
  margin-top: 0.4rem;
}
.nav-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.88rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.nav-item:hover { background: var(--teal-dim); color: var(--text); }
.nav-item.active { background: var(--teal-dim); color: var(--teal-l); border-left: 2px solid var(--teal); padding-left: calc(0.7rem - 2px); }
.nav-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  padding: 1rem 1rem;
  border-top: 1px solid var(--border);
}
.sidebar-user { display: flex; align-items: center; gap: 0.6rem; }
.user-avatar {
  width: 30px; height: 30px;
  background: var(--teal-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.user-name { font-size: 0.82rem; color: var(--text-dim); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-logout {
  font-size: 0.72rem; color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-logout:hover { color: var(--red); border-color: var(--red); }

/* MAIN */
.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.page-body { padding: 1.5rem 1.75rem; flex: 1; }

/* TOPBAR */
.topbar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--sidebar);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text-dim); border-radius: 2px; transition: 0.2s; }

/* BRANCH SWITCHER */
.branch-switcher { position: relative; }
.branch-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg2);
  border: 1px solid var(--border-act);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  cursor: pointer; color: var(--text);
  font-size: 0.85rem; font-weight: 500;
  font-family: var(--font-sans);
  transition: background 0.15s, border-color 0.15s;
}
.branch-btn:hover { background: var(--bg3); border-color: var(--teal); }
.branch-dot {
  width: 9px; height: 9px;
  border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
.branch-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branch-chevron { color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.branch-btn[aria-expanded="true"] .branch-chevron { transform: rotate(180deg); }

.branch-dropdown {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 260px;
  background: var(--bg2);
  border: 1px solid var(--border-act);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  overflow: hidden; z-index: 200;
}
.branch-dropdown.open { display: block; }
.branch-dropdown-header {
  padding: 0.6rem 1rem 0.4rem;
  font-size: 0.65rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
}
.branch-option {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 1rem;
  color: var(--text-dim); font-size: 0.85rem;
  transition: background 0.12s;
}
.branch-option:hover { background: var(--teal-dim); color: var(--text); }
.branch-option.active { color: var(--teal-l); }
.branch-dot-sm { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.branch-opt-name { font-weight: 600; font-size: 0.85rem; }
.branch-opt-addr { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.branch-check { margin-left: auto; color: var(--teal); font-size: 0.9rem; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.topbar-user { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--text-dim); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
}
.lang-btn {
  padding: 0.32rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lang-btn:hover { color: var(--teal-l); }
.lang-btn.active { background: var(--teal); color: #0a0a0a; }
.lang-btn + .lang-btn { border-left: 1px solid var(--border); }

/* ── CARDS ──────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card + .card { margin-top: 1.25rem; }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.card-body { padding: 1.25rem; }
.mb-4 { margin-bottom: 1rem; }

/* ── STATS GRID ─────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.15s, transform 0.15s;
}
.stat-card:hover { border-color: var(--border-act); transform: translateY(-1px); }
.stat-card--alert { border-color: rgba(251,191,36,0.4); }
.stat-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--teal-l); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.35rem; }

/* branch compare cards */
.branch-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.branch-card-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600; font-size: 0.88rem;
}
.branch-mini-stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.branch-mini-stat { text-align: center; }
.branch-mini-val { font-size: 1.4rem; font-weight: 700; }
.branch-mini-lbl { font-size: 0.7rem; color: var(--text-muted); }

/* ── TABLES ─────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead th {
  text-align: left; padding: 0.7rem 1rem;
  background: var(--bg3);
  color: var(--text-muted); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody td { padding: 0.75rem 1rem; vertical-align: middle; }
.text-sm   { font-size: 0.82rem; }
.text-dim  { color: var(--text-dim); }
.text-muted{ color: var(--text-muted); }
.row-unread { background: rgba(14,181,185,0.04); }

/* ── BADGES ─────────────────────────────── */
.badge {
  display: inline-block; padding: 0.2rem 0.6rem;
  border-radius: 50px; font-size: 0.72rem; font-weight: 600;
  text-transform: capitalize;
}
.badge-pending   { background: rgba(251,191,36,0.15); color: var(--yellow); }
.badge-confirmed { background: rgba(52,211,153,0.15); color: var(--green); }
.badge-cancelled { background: rgba(248,113,113,0.15); color: var(--red); }
.badge-unread    { background: rgba(14,181,185,0.15); color: var(--teal-l); }

/* ── BUTTONS ────────────────────────────── */
.btn-admin-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--teal); color: #fff;
  border: none; border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
  font-family: var(--font-sans);
}
.btn-admin-primary:hover { background: var(--teal-l); color: #fff; }
.btn-admin-primary:active { transform: scale(0.98); }

.btn-admin-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 0.6rem 1.1rem;
  font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
  font-family: var(--font-sans);
}
.btn-admin-ghost:hover { border-color: var(--teal); color: var(--teal-l); }

.btn-admin-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.25);
  color: var(--red); border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
  font-family: var(--font-sans);
}
.btn-admin-danger:hover { background: rgba(248,113,113,0.2); }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--bg3); border: 1px solid var(--border);
  cursor: pointer; font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
  color: var(--text-dim);
}
.btn-icon:hover { background: var(--teal-dim); border-color: var(--border-act); }
.btn-icon.danger:hover { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.3); }
.w-full { width: 100%; }

/* ── FORMS ──────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: var(--text-dim); margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 0.6rem 0.85rem;
  color: var(--text); font-size: 0.88rem;
  font-family: var(--font-sans);
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-dim);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select option { background: var(--bg2); }
.form-row { display: flex; gap: 0.75rem; }
.form-row .form-group { flex: 1; }
.form-hint { font-size: 0.73rem; color: var(--text-muted); margin-top: 0.3rem; }

/* Inline select (table) */
select.inline-select {
  padding: 0.3rem 0.5rem; font-size: 0.8rem;
  border-radius: 6px; background: var(--bg3);
  border: 1px solid var(--border); color: var(--text);
}

/* ── ALERTS ─────────────────────────────── */
.alert {
  padding: 0.75rem 1rem; border-radius: 8px;
  font-size: 0.85rem; margin-bottom: 1rem;
}
.alert-success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.2); color: var(--green); }
.alert-error   { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.2); color: var(--red); }
.alert-info    { background: var(--teal-dim); border: 1px solid var(--border-act); color: var(--teal-l); }
.alert-warning { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.2); color: var(--yellow); }

/* ── EMPTY STATE ────────────────────────── */
.empty-state { padding: 3rem 1rem; text-align: center; color: var(--text-dim); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.9rem; }

/* ── PHOTO GALLERY ──────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.photo-item {
  position: relative; border-radius: 8px;
  overflow: hidden; aspect-ratio: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0; transition: opacity 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.photo-item:hover .photo-overlay { opacity: 1; }

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border-act);
  border-radius: 10px; padding: 2.5rem 1rem;
  text-align: center; color: var(--text-dim);
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.drop-zone.dragover { background: var(--teal-dim); border-color: var(--teal); }
.drop-zone-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.drop-zone p { font-size: 0.85rem; }
.drop-zone input[type=file] { display: none; }

/* ── MODAL ──────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.65); z-index: 300;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border-act);
  border-radius: 14px;
  padding: 1.5rem;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  animation: fadeInUp 0.2s ease;
}
.modal-wide { max-width: 660px; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-title { font-size: 1rem; font-weight: 600; }
.modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.2rem;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: background 0.15s;
}
.modal-close:hover { background: var(--bg3); color: var(--text); }
.modal-footer {
  display: flex; gap: 0.5rem; justify-content: flex-end;
  margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── MENU EDITOR ────────────────────────── */
.menu-category {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.menu-cat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg3); cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.menu-cat-name { font-weight: 600; font-size: 0.95rem; }
.menu-cat-count { font-size: 0.75rem; color: var(--text-muted); margin-left: 0.5rem; }
.menu-cat-actions { display: flex; gap: 0.4rem; }
.menu-items-list { padding: 0.5rem; }
.menu-item-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 7px;
  transition: background 0.1s;
}
.menu-item-row:hover { background: var(--bg3); }
.menu-item-row.disabled { opacity: 0.45; }
.item-info { flex: 1; min-width: 0; }
.item-name { font-size: 0.88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-desc { font-size: 0.75rem; color: var(--text-dim); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-price { font-size: 0.88rem; font-weight: 600; color: var(--teal-l); white-space: nowrap; }
.item-badge { font-size: 0.65rem; padding: 0.1rem 0.4rem; border-radius: 4px; background: var(--teal-dim); color: var(--teal-l); margin-left: 0.3rem; }
.item-actions { display: flex; gap: 0.3rem; flex-shrink: 0; }

/* Toggle switch */
.toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--bg3); border-radius: 20px;
  transition: 0.2s; border: 1px solid var(--border);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--text-muted);
  left: 3px; top: 50%; transform: translateY(-50%);
  transition: 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--teal-dim); border-color: var(--teal); }
.toggle input:checked + .toggle-slider::before { transform: translate(15px, -50%); background: var(--teal); }

/* ── QR PAGE ────────────────────────────── */
.qr-card-preview {
  background: var(--bg3);
  border-radius: 14px; padding: 2rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
  border: 1px solid var(--border-act);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.qr-box { background: #fff; padding: 12px; border-radius: 10px; }

/* ── UBICACIONES ────────────────────────── */
.sucursal-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.sucursal-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2); color: var(--text-dim);
  cursor: pointer; font-size: 0.85rem; font-weight: 500;
  transition: all 0.15s; font-family: var(--font-sans);
}
.sucursal-tab.active { border-color: var(--teal); background: var(--teal-dim); color: var(--teal-l); }

.horario-grid {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.4rem 0.75rem;
  align-items: center;
}
.horario-dia { font-size: 0.85rem; font-weight: 500; }

/* ── GREETING CARD ──────────────────────── */
.greeting-card {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem 1.5rem 1.4rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(14,181,185,0.10) 0%, rgba(232,107,74,0.06) 100%);
  border: 1px solid rgba(14,181,185,0.18);
  border-radius: var(--radius);
}
.greeting-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.greeting-time { color: var(--text-dim); font-weight: 400; }
.greeting-name {
  color: var(--teal);
  font-weight: 700;
  margin-left: 0.4rem;
}
.greeting-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: capitalize;
  letter-spacing: 0.04em;
}

/* ── SUITEHUB DEMO SECTION ──────────────── */
.suite-section {
  margin: 1.5rem 0 1.75rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(14,181,185,0.05) 0%, rgba(14,181,185,0.01) 100%);
  border: 1px solid rgba(14,181,185,0.18);
  border-radius: var(--radius);
}
.suite-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.suite-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--text-light, #F0F7F7);
  margin-bottom: 0.25rem;
}
.suite-sub { color: var(--text-muted); font-size: 0.82rem; max-width: 540px; }
.suite-badge {
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.32rem 0.7rem; border-radius: 999px;
}
.suite-badge.is-demo { background: rgba(251,191,36,0.12); color: #FBBF24; border: 1px solid rgba(251,191,36,0.25); }
.suite-badge.is-real { background: rgba(52,211,153,0.12); color: #34D399; border: 1px solid rgba(52,211,153,0.25); }

.suite-banner {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.9rem; margin-bottom: 1.25rem;
  background: rgba(14,181,185,0.08);
  border: 1px solid rgba(14,181,185,0.18);
  border-radius: 8px;
  font-size: 0.78rem; color: var(--text-dim);
}
.suite-banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #0EB5B9; box-shadow: 0 0 0 4px rgba(14,181,185,0.2);
  animation: suite-pulse 2s ease-in-out infinite;
}
@keyframes suite-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(14,181,185,0.2); } 50% { box-shadow: 0 0 0 8px rgba(14,181,185,0.05); } }

.suite-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem; margin-bottom: 1.25rem;
}
.suite-kpi-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1rem;
}
.suite-kpi-icon { font-size: 1rem; margin-bottom: 0.25rem; }
.suite-kpi-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.55rem; }
.suite-kpi-row { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.92rem; }
.suite-kpi-row strong { font-size: 1.1rem; font-weight: 700; }
.suite-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 0.32rem; }
.suite-dot.teal  { background: #0EB5B9; }
.suite-dot.coral { background: #E86B4A; }
.suite-tag { font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.08em; }

.suite-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1rem;
}
.suite-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.suite-card-title {
  font-size: 0.82rem; font-weight: 600; color: var(--text-dim);
  margin-bottom: 0.85rem; display: flex; align-items: center; gap: 0.4rem;
}
.suite-canvas-wrap { position: relative; height: 240px; }

.suite-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-muted);
}
.suite-link {
  color: #0EB5B9; font-weight: 600; text-decoration: none;
  transition: opacity 0.15s;
}
.suite-link:hover { opacity: 0.75; }

.suite-cta {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg2);
  border-radius: 12px;
  border: 1px solid rgba(14,181,185,0.18);
}
.suite-cta-logo {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 1rem; letter-spacing: 0.04em;
  margin-bottom: 1rem;
  color: #0EB5B9;
}
.suite-cta-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(14,181,185,0.15); font-size: 0.95rem;
}
.suite-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 0.6rem;
}
.suite-cta-body {
  color: var(--text-dim); font-size: 0.92rem; line-height: 1.6;
  max-width: 580px; margin: 0 auto 1.25rem;
}
.suite-cta-dist {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(14,181,185,0.08);
  border: 1px solid rgba(14,181,185,0.2);
  border-radius: 999px;
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.suite-cta-dist strong { color: #0EB5B9; }
.suite-cta-actions {
  display: flex; justify-content: center; align-items: center;
  gap: 1.25rem; flex-wrap: wrap;
}

@media (max-width: 768px) {
  .suite-grid-2 { grid-template-columns: 1fr; }
  .suite-canvas-wrap { height: 220px; }
}

/* ── LICENSE BANNER ─────────────────────── */
.lic-banner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem; border-radius: var(--radius);
  margin-bottom: 1.25rem; border: 1px solid transparent;
}
.lic-ok      { background: rgba(52,211,153,0.07); border-color: rgba(52,211,153,0.15); }
.lic-warning { background: rgba(251,191,36,0.07); border-color: rgba(251,191,36,0.2); }
.lic-danger  { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.2); animation: pulse-red 1.5s ease-in-out infinite; }
@keyframes pulse-red { 0%,100% { border-color: rgba(248,113,113,0.2); } 50% { border-color: rgba(248,113,113,0.5); } }
.lic-info { display: flex; align-items: center; gap: 0.75rem; }
.lic-icon { font-size: 1.1rem; }
.lic-title { font-size: 0.85rem; font-weight: 600; }
.lic-sub   { font-size: 0.75rem; color: var(--text-dim); }
.lic-counter { text-align: right; }
.lic-days  { font-size: 1.8rem; font-weight: 700; display: block; line-height: 1; }
.lic-label { font-size: 0.7rem; color: var(--text-dim); }

/* ── UNIFIED DASHBOARD (both branches) ──── */
.unif-header { margin: 0.75rem 0 1rem; }
.unif-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 0.2rem;
}
.unif-sub { color: var(--text-muted); font-size: 0.82rem; max-width: 540px; }

.unif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.unif-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
a.unif-card:hover { border-color: rgba(14,181,185,0.4); transform: translateY(-2px); }
.unif-card-icon { font-size: 1.1rem; opacity: 0.85; margin-bottom: 0.35rem; }
.unif-card-label {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.unif-card-rows {
  display: flex; flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.unif-row {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem;
}
.unif-name { color: var(--text-dim); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unif-val  { font-size: 1.05rem; font-weight: 700; color: var(--text-light, #F0F7F7); }
.unif-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.unif-dot.teal  { background: #0EB5B9; }
.unif-dot.coral { background: #E86B4A; }

.branch-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.22rem 0.55rem; border-radius: 999px;
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--bc) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--bc) 35%, transparent);
  color: var(--bc, var(--teal-l));
}
.branch-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bc, var(--teal-l));
}

/* ── PROMO BANNER → SERVICES ────────────── */
.promo-banner {
  position: relative; overflow: hidden;
  display: block;
  margin: 1.25rem 0 1.5rem;
  padding: 2.25rem 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(14,181,185,0.18) 0%, rgba(232,107,74,0.18) 100%), var(--bg2);
  border: 1px solid rgba(14,181,185,0.28);
  text-decoration: none; color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.promo-banner:hover {
  transform: translateY(-3px);
  border-color: rgba(14,181,185,0.55);
  box-shadow: 0 12px 32px rgba(14,181,185,0.12);
}
.promo-eyebrow {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #0EB5B9;
  padding: 0.32rem 0.7rem;
  background: rgba(14,181,185,0.12);
  border: 1px solid rgba(14,181,185,0.3);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.promo-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.7rem;
  max-width: 720px;
}
.promo-body {
  color: var(--text-dim);
  font-size: 0.95rem; line-height: 1.6;
  max-width: 640px;
  margin-bottom: 1.4rem;
}
.promo-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  background: #0EB5B9; color: #0a0a0a;
  font-weight: 700; font-size: 0.92rem;
  border-radius: 10px;
  transition: background 0.15s;
  position: relative; z-index: 1;
}
.promo-banner:hover .promo-cta { background: #1ad0d4; }
.promo-glow {
  position: absolute; pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.promo-glow--1 { width: 240px; height: 240px; background: rgba(14,181,185,0.45); top: -80px; right: -40px; }
.promo-glow--2 { width: 200px; height: 200px; background: rgba(232,107,74,0.4); bottom: -80px; left: 30%; }

/* ── SERVICES PAGE ──────────────────────── */
.serv-page { padding-bottom: 4rem; }
.serv-back {
  display: inline-block;
  font-size: 0.82rem; color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color 0.15s;
}
.serv-back:hover { color: #0EB5B9; }

.serv-hero {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.serv-eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #0EB5B9;
  padding: 0.4rem 0.9rem;
  background: rgba(14,181,185,0.1);
  border: 1px solid rgba(14,181,185,0.25);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.serv-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #F0F7F7 0%, #0EB5B9 50%, #E86B4A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.serv-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.serv-cat { margin-bottom: 2.5rem; }
.serv-cat-head {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.serv-cat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: rgba(14,181,185,0.45);
  font-style: italic;
}
.serv-cat-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.serv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.serv-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 1.3rem;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.serv-card:hover {
  border-color: rgba(14,181,185,0.4);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(14,181,185,0.04) 0%, var(--bg2) 100%);
}
.serv-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(14,181,185,0.1);
  border: 1px solid rgba(14,181,185,0.2);
  border-radius: 12px;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.serv-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}
.serv-card-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.serv-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, rgba(14,181,185,0.08), rgba(232,107,74,0.06));
  border: 1px solid rgba(14,181,185,0.2);
  border-radius: var(--radius);
}
.serv-cta-h {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}
.serv-cta-p {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 1.6rem;
  line-height: 1.6;
}
.serv-cta-actions { margin-bottom: 1.4rem; }
.serv-cta-btn {
  font-size: 1rem !important;
  padding: 0.85rem 2rem !important;
}
.serv-cta-dist {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .suite-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { position: fixed; transform: translateX(-230px); width: 230px; }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.5); }
  .menu-toggle { display: flex; }
  .page-body { padding: 1rem; }
  .topbar { padding: 0.65rem 0.85rem; gap: 0.5rem; flex-wrap: wrap; }
  .topbar-right { gap: 0.45rem; flex-wrap: wrap; }
  .lang-toggle .lang-btn, .mode-toggle .lang-btn { padding: 0.28rem 0.55rem; font-size: 0.68rem; }
  .topbar-user { display: none; }
  .branch-name { max-width: 100px; font-size: 0.78rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-direction: column; gap: 0; }
  .greeting-card { padding: 1.2rem 1.1rem; }
  .greeting-text { font-size: 1.5rem; line-height: 1.2; }
  .lic-banner { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1rem 1.1rem; }
  .lic-counter { align-self: flex-end; text-align: right; }
  .suite-section { padding: 1rem; }
  .suite-canvas-wrap { height: 220px; }
  .suite-grid-2 { grid-template-columns: 1fr; gap: 0.75rem; }
  .suite-kpis { grid-template-columns: repeat(2, 1fr); gap: 0.55rem; }
  .promo-banner { padding: 1.6rem 1.2rem; }
  .promo-title { font-size: 1.5rem; }
  .promo-body { font-size: 0.9rem; }
  .unif-grid { grid-template-columns: repeat(2, 1fr); }
  .unif-card-rows { gap: 0.4rem; }
  .unif-name { font-size: 0.74rem; }
  .unif-val  { font-size: 0.95rem; }
  .serv-grid { grid-template-columns: 1fr; }
  .serv-cat-head { flex-direction: row; gap: 0.75rem; }
  .serv-hero { padding: 1.5rem 0.5rem 2rem; }
  .table-wrap table { font-size: 0.78rem; }
  .table-wrap th, .table-wrap td { padding: 0.55rem 0.5rem; }
  .branch-pill { padding: 0.18rem 0.45rem; font-size: 0.6rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .unif-grid { grid-template-columns: 1fr; }
  .suite-kpis { grid-template-columns: 1fr; }
  .greeting-card { flex-direction: column; align-items: flex-start; }
  .greeting-text { font-size: 1.35rem; }
  .promo-banner { padding: 1.4rem 1rem; }
  .promo-title { font-size: 1.3rem; }
  .promo-cta { font-size: 0.85rem; padding: 0.7rem 1.1rem; }
  .serv-h1 { font-size: 1.85rem; }
  .serv-cat-num { font-size: 1.2rem; }
  .serv-cat-title { font-size: 1.2rem; }
  .serv-card { padding: 1.15rem 1.05rem; }
  .table-wrap table { font-size: 0.74rem; }
  .table-wrap th:nth-child(3), .table-wrap td:nth-child(3) { display: none; }
}
