/* ============================================================
   Colombo Tuk Tuk Tours — Enterprise Design System v3.0
   Inspired by: Stripe, Linear, Vercel, Shopify, Notion
   ============================================================ */

/* ───────────────────────────────────────
   1. FONTS
   ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ───────────────────────────────────────
   2. CUSTOM PROPERTIES
   ─────────────────────────────────────── */
:root {
  /* ── Brand ── */
  --gold-50:  #fdf8ed;
  --gold-100: #f9edc8;
  --gold-200: #f3dc8e;
  --gold-300: #ecc854;
  --gold-400: #e4b830;
  --gold-500: #d4a520;
  --gold-600: #b89217;
  --gold-700: #967616;
  --gold-800: #7a5f18;
  --gold-900: #664e18;

  /* ── Neutrals ── */
  --n-50:  #f8f9fc;
  --n-100: #f0f1f5;
  --n-150: #e8e9ef;
  --n-200: #dcdde5;
  --n-250: #cdced8;
  --n-300: #b9bac5;
  --n-400: #9495a1;
  --n-500: #737480;
  --n-600: #555662;
  --n-700: #3c3d48;
  --n-750: #2d2e38;
  --n-800: #1f2029;
  --n-850: #181923;
  --n-900: #12131a;
  --n-950: #0b0c10;

  /* ── Semantics ── */
  --green-50:  #ecfdf3;
  --green-500: #059669;
  --green-600: #047857;
  --green-700: #03613f;
  --red-50:    #fef2f2;
  --red-500:   #dc2626;
  --red-600:   #b91c1c;
  --amber-50:  #fffbeb;
  --amber-500: #d97706;
  --amber-600: #b45309;
  --blue-50:   #eff6ff;
  --blue-500:  #2563eb;
  --blue-600:  #1d4ed8;
  --purple-50: #f5f3ff;
  --purple-500:#7c3aed;

  /* ── Theme tokens (light) ── */
  --bg-page:          var(--n-50);
  --bg-surface:       #ffffff;
  --bg-surface-hover: var(--n-100);
  --bg-sidebar:       #0f172a;
  --bg-sidebar-hover: rgba(255,255,255,0.06);
  --bg-sidebar-active:rgba(201,168,76,0.12);
  --bg-navbar:        rgba(255,255,255,0.80);
  --bg-card:          #ffffff;
  --bg-card-hover:    #fafbfc;
  --bg-input:         #ffffff;
  --bg-overlay:       rgba(0,0,0,0.45);
  --bg-tooltip:       var(--n-800);
  --bg-badge-success: var(--green-50);
  --bg-badge-warning: var(--amber-50);
  --bg-badge-danger:  var(--red-50);
  --bg-badge-info:    var(--blue-50);

  --border:           var(--n-150);
  --border-hover:     var(--n-250);
  --border-focus:     var(--gold-400);
  --border-subtle:    var(--n-100);

  --text-primary:     var(--n-900);
  --text-secondary:   var(--n-500);
  --text-tertiary:    var(--n-400);
  --text-inverse:     #ffffff;
  --text-link:        var(--gold-600);
  --text-accent:      var(--gold-600);

  --shadow-xs:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.10), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-elevated: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);

  /* ── Typography ── */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --fs-xs:      0.6875rem;  /* 11px */
  --fs-sm:      0.75rem;    /* 12px */
  --fs-base:    0.8125rem;  /* 13px */
  --fs-md:      0.875rem;   /* 14px */
  --fs-lg:      1rem;       /* 16px */
  --fs-xl:      1.125rem;   /* 18px */
  --fs-2xl:     1.375rem;   /* 22px */
  --fs-3xl:     1.75rem;    /* 28px */

  --lh-tight:   1.25;
  --lh-normal:  1.5;
  --lh-relaxed: 1.625;

  --fw-normal:  400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;
  --fw-extrabold:800;

  /* ── Spacing ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-2\.5:0.625rem;
  --space-3:  0.75rem;
  --space-3\.5:0.875rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-9:  2.25rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* ── Radii ── */
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  20px;
  --radius-full: 9999px;

  /* ── Sidebar ── */
  --sidebar-w:         260px;
  --sidebar-w-collapsed: 68px;
  --sidebar-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Navbar ── */
  --navbar-h: 60px;

  /* ── Transitions ── */
  --ease-out:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-out: cubic-bezie(0.4, 0, 0.2, 1);
  --duration-fast:   0.15s;
  --duration-normal: 0.2s;
  --duration-slow:   0.3s;
}

/* ───────────────────────────────────────
   3. RESET / BASE
   ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--gold-700); }

img, svg { display: block; max-width: 100%; }

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

/* ── Main content ── */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 0;
  min-width: 0;
  transition: margin-left var(--sidebar-transition);
  display: flex;
  flex-direction: column;
}

/* ── Page content area (below navbar) ── */
.admin-page {
  flex: 1;
  padding: var(--space-6) var(--space-8);
  margin-top: var(--navbar-h);
  max-width: 1400px;
  width: 100%;
}

@media (max-width: 768px) {
  .admin-main { margin-left: 0; }
  .admin-page { padding: var(--space-4); }
}

/* ───────────────────────────────────────
   5. TOP NAVBAR
   ─────────────────────────────────────── */
.admin-navbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--navbar-h);
  background: var(--bg-navbar);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-4);
  transition: left var(--sidebar-transition);
}

.admin-navbar-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.admin-navbar-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  pointer-events: none;
}
.admin-navbar-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-family: var(--font-sans);
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.admin-navbar-search input::placeholder { color: var(--text-tertiary); }
.admin-navbar-search input:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.10);
}

.admin-navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.navbar-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}
.navbar-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border);
}
.navbar-btn svg { width: 18px; height: 18px; }
.navbar-btn .notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-500);
  border: 2px solid var(--bg-navbar);
}

.navbar-profile {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.navbar-profile:hover { background: var(--bg-surface-hover); }

.navbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}
.navbar-profile-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}
.navbar-profile-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
}

/* ───────────────────────────────────────
   6. SIDEBAR
   ─────────────────────────────────────── */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-sidebar);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width var(--sidebar-transition);
}

.admin-sidebar-logo {
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.admin-sidebar-logo svg { flex-shrink: 0; }
.admin-sidebar-logo span {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
}
.admin-sidebar-logo small {
  display: block;
  font-size: 10px;
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.admin-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-3) var(--space-3) var(--space-4);
}
.admin-sidebar-nav::-webkit-scrollbar { width: 3px; }
.admin-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.sidebar-section-title {
  font-size: 10px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  padding: var(--space-4) var(--space-3) var(--space-2);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 12px;
  margin-bottom: 1px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-item:hover {
  background: var(--bg-sidebar-hover);
  color: rgba(255,255,255,0.85);
}
.sidebar-item.active {
  background: var(--bg-sidebar-active);
  color: var(--gold-400);
}
.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--gold-400);
  border-radius: 0 3px 3px 0;
}
.sidebar-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}
.sidebar-item.active svg { opacity: 1; }
.sidebar-item .item-label { flex: 1; }
.sidebar-item .item-badge {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  font-weight: var(--fw-bold);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.sidebar-item .item-badge.gold { background: rgba(201,168,76,0.2); color: var(--gold-400); }
.sidebar-item .item-badge.green { background: rgba(5,150,105,0.2); color: #34d399; }

/* Sidebar footer */
.sidebar-footer {
  padding: var(--space-3) var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

/* Sidebar collapsed */
.sidebar-collapsed .admin-sidebar { width: var(--sidebar-w-collapsed); }
.sidebar-collapsed .admin-main,
.sidebar-collapsed .admin-navbar { left: var(--sidebar-w-collapsed); }
.sidebar-collapsed .sidebar-section-title { display: none; }
.sidebar-collapsed .sidebar-item .item-label,
.sidebar-collapsed .sidebar-item .item-badge,
.sidebar-collapsed .admin-sidebar-logo span,
.sidebar-collapsed .admin-sidebar-logo small,
.sidebar-collapsed .sidebar-footer span { display: none; }
.sidebar-collapsed .admin-sidebar-logo { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-item { justify-content: center; padding: 8px; }
.sidebar-collapsed .sidebar-item.active::before { display: none; }
.sidebar-collapsed .sidebar-item.active { box-shadow: inset 0 0 0 1px rgba(201,168,76,0.2); }

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
}
.sidebar-overlay.active { display: block; }

.sidebar-toggle-btn,
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 300;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-sidebar);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 280px !important;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .sidebar-collapsed .admin-sidebar { transform: translateX(-100%); }
  .sidebar-collapsed .admin-main,
  .sidebar-collapsed .admin-navbar { left: 0; }
  .admin-navbar { left: 0 !important; }
  .sidebar-toggle-btn { display: flex; }
}

/* ───────────────────────────────────────
   7. PAGE HEADER
   ─────────────────────────────────────── */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.page-header h1 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}
.page-header p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin: var(--space-1) 0 0;
}

/* ───────────────────────────────────────
   8. CARDS
   ─────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-elevated); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}
.card-header h3 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.card-header h3 svg { color: var(--text-accent); width: 16px; height: 16px; }
.card-body { padding: var(--space-5); }
.card-footer {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border);
  background: var(--n-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* KPI Stat card */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-1px);
}
.stat-card .stat-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}
.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.stat-card .stat-icon svg { width: 18px; height: 18px; }
.stat-card .stat-value {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}
.stat-card .stat-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Grid layouts */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

/* ───────────────────────────────────────
   9. TABLES
   ─────────────────────────────────────── */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--n-50);
}
.table-toolbar .search-wrap {
  flex: 1;
  max-width: 300px;
  position: relative;
}
.table-toolbar .search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-tertiary);
  pointer-events: none;
}
.table-toolbar .search-wrap input {
  width: 100%;
  height: 34px;
  padding: 0 10px 0 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-family: var(--font-sans);
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
}
.table-toolbar .search-wrap input:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.10);
}
.table-toolbar .table-actions {
  display: flex;
  gap: var(--space-2);
  margin-left: auto;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
table.admin-table thead th {
  text-align: left;
  padding: var(--space-2-5) var(--space-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--n-50);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
table.admin-table tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}
table.admin-table tbody tr:last-child td { border-bottom: none; }
table.admin-table tbody tr:hover td { background: var(--n-50); }
table.admin-table tbody tr:active td { background: var(--n-100); }

/* ───────────────────────────────────────
   10. FORMS
   ─────────────────────────────────────── */
.form-group { margin-bottom: var(--space-4); }
.form-group label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-1-5, 6px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-control {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--fs-md);
  font-family: var(--font-sans);
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  transition: all var(--duration-fast) var(--ease-out);
}
.form-control:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.10);
  background: #fff;
}
.form-control::placeholder { color: var(--text-tertiary); }
textarea.form-control { height: auto; min-height: 100px; padding: 10px 12px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ───────────────────────────────────────
   11. BUTTONS
   ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--gold-500);
  color: #fff;
  border-color: var(--gold-500);
  box-shadow: 0 1px 2px rgba(212,165,32,0.2);
}
.btn-primary:hover { background: var(--gold-600); border-color: var(--gold-600); box-shadow: 0 2px 4px rgba(212,165,32,0.3); transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-surface-hover); border-color: var(--border-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-surface-hover); color: var(--text-primary); }

.btn-danger {
  background: var(--red-500);
  color: #fff;
  border-color: var(--red-500);
}
.btn-danger:hover { background: var(--red-600); border-color: var(--red-600); }

.btn-success {
  background: var(--green-500);
  color: #fff;
  border-color: var(--green-500);
}
.btn-success:hover { background: var(--green-600); }

.btn-sm { height: 30px; padding: 0 var(--space-3); font-size: var(--fs-xs); }
.btn-lg { height: 44px; padding: 0 var(--space-6); font-size: var(--fs-base); }

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-icon.btn-sm { width: 30px; height: 30px; }
.btn-icon svg { width: 16px; height: 16px; }

/* Loading spinner */
.btn.loading { color: transparent !important; pointer-events: none; position: relative; }
.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────────────────────────────────
   12. BADGES
   ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  line-height: 1.4;
}
.badge--success { background: var(--green-50); color: var(--green-700); }
.badge--warning { background: var(--amber-50); color: var(--amber-600); }
.badge--danger  { background: var(--red-50); color: var(--red-600); }
.badge--info    { background: var(--blue-50); color: var(--blue-600); }
.badge--neutral { background: var(--n-100); color: var(--n-600); }
.badge--gold    { background: rgba(201,168,76,0.12); color: var(--gold-700); }

/* ───────────────────────────────────────
   13. MODALS
   ─────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalSlideUp 0.25s ease;
}
.modal-box.modal-lg { max-width: 800px; }
.modal-box.modal-sm { max-width: 420px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}
.modal-header h2 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin: 0;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-out);
}
.modal-close:hover { background: var(--n-100); color: var(--text-primary); }

.modal-body { padding: var(--space-6); }
.modal-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--n-50);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.modal-footer .spacer { flex: 1; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ───────────────────────────────────────
   14. TOAST / NOTIFICATIONS
   ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  animation: toastSlideIn 0.3s ease;
  border: 1px solid;
}
.toast.toast--success { background: var(--green-50); color: var(--green-700); border-color: #bbf7d0; }
.toast.toast--error   { background: var(--red-50); color: var(--red-600); border-color: #fecaca; }
.toast.toast--warning { background: var(--amber-50); color: var(--amber-600); border-color: #fde68a; }
.toast.toast--info    { background: var(--blue-50); color: var(--blue-600); border-color: #bfdbfe; }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

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

/* ───────────────────────────────────────
   15. EMPTY STATE
   ─────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--text-secondary);
}
.empty-state svg {
  width: 40px;
  height: 40px;
  color: var(--text-tertiary);
  margin: 0 auto var(--space-3);
}
.empty-state p { margin: 0; font-size: var(--fs-sm); }

/* ───────────────────────────────────────
   16. PAGINATION
   ─────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  text-decoration: none;
  background: var(--bg-card);
  transition: all var(--duration-fast) var(--ease-out);
}
.pagination a:hover { border-color: var(--gold-400); color: var(--gold-600); }
.pagination .current {
  background: var(--gold-500);
  color: #fff;
  border-color: var(--gold-500);
}

/* ───────────────────────────────────────
   17. BREADCRUMBS
   ─────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--text-accent); }
.breadcrumbs .sep { color: var(--text-tertiary); }

/* ───────────────────────────────────────
   18. SKELETON LOADING
   ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--n-150) 25%, var(--n-100) 50%, var(--n-150) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  color: transparent !important;
  user-select: none;
  pointer-events: none;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ───────────────────────────────────────
   19. FILTERS GRID
   ─────────────────────────────────────── */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
}
.filters-grid label {
  display: block;
  font-size: 10px;
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-1-5, 6px);
}
.filters-grid input,
.filters-grid select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-family: var(--font-sans);
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
}
.filters-grid input:focus,
.filters-grid select:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.10);
}

/* ───────────────────────────────────────
   20. ACTION ROW
   ─────────────────────────────────────── */
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ───────────────────────────────────────
   21. STATUS SELECT
   ─────────────────────────────────────── */
.status-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  font-family: var(--font-sans);
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239494a1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.status-select:focus { border-color: var(--gold-400); }

/* ───────────────────────────────────────
   22. QUICK MODULE CARDS
   ─────────────────────────────────────── */
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.module-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--gold-300);
}
.module-card .mod-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.module-card .mod-icon svg { width: 18px; height: 18px; }
.module-card .mod-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}
.module-card .mod-desc {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  line-height: 1.4;
}
.mod-badge {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--fw-bold);
}
.mod-badge.gold { background: rgba(201,168,76,0.15); color: var(--gold-700); }
.mod-badge.green { background: var(--green-50); color: var(--green-700); }
.mod-badge.red { background: var(--red-50); color: var(--red-600); }

/* ───────────────────────────────────────
   23. HERO BANNER (dashboard)
   ─────────────────────────────────────── */
.dash-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-7);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}
.dash-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 80% 50%, rgba(201,168,76,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.dash-hero::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 180px;
  height: 180px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4a520' opacity='0.04'%3E%3Cpath d='M5 22h14a2 2 0 002-2V11a1 1 0 00-1-1h-.5l-2-6a1 1 0 00-1-.6h-9a1 1 0 00-1 .6l-2 6H4a1 1 0 00-1 1v9a2 2 0 002 2z'/%3E%3Cpath d='M8 22v-3a4 4 0 118 0v3'/%3E%3Ccircle cx='9' cy='14' r='1.5'/%3E%3Ccircle cx='15' cy='14' r='1.5'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}
.hero-text h1 {
  font-size: var(--fs-xl);
  color: #fff;
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}
.hero-text p {
  color: rgba(255,255,255,0.45);
  font-size: var(--fs-sm);
  margin-top: var(--space-1);
}
.hero-date {
  text-align: right;
  color: rgba(255,255,255,0.4);
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.hero-date strong {
  display: block;
  color: var(--gold-400);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}

/* ───────────────────────────────────────
   24. RESPONSIVE — multi-device support
   ─────────────────────────────────────── */

/* ── 24a. Sidebar: collapse at 1024px ── */
@media (max-width: 1024px) {
  .admin-sidebar { width: var(--sidebar-w-collapsed); }
  .admin-sidebar.open { width: var(--sidebar-w); z-index: 300; }
  .sidebar-collapsed .admin-sidebar,
  .admin-main { margin-left: var(--sidebar-w-collapsed); }

  .sidebar-section-title { display: none; }
  .sidebar-item .item-label,
  .sidebar-item .item-badge,
  .admin-sidebar-logo span,
  .admin-sidebar-logo small,
  .sidebar-footer span { display: none; }
  .admin-sidebar-logo { justify-content: center; padding: 0; }
  .sidebar-item { justify-content: center; padding: 8px; }
  .sidebar-item.active::before { display: none; }
  .sidebar-item.active { box-shadow: inset 0 0 0 1px rgba(201,168,76,0.2); }

  .sidebar-toggle-btn,
  .sidebar-toggle { display: flex; }

  .admin-sidebar.open .sidebar-section-title { display: block; }
  .admin-sidebar.open .sidebar-item .item-label,
  .admin-sidebar.open .sidebar-item .item-badge,
  .admin-sidebar.open .admin-sidebar-logo span,
  .admin-sidebar.open .admin-sidebar-logo small,
  .admin-sidebar.open .sidebar-footer span { display: inline; }
  .admin-sidebar.open .admin-sidebar-logo { justify-content: flex-start; padding: 0 var(--space-5); }
  .admin-sidebar.open .sidebar-item { justify-content: flex-start; padding: 8px 12px; }
  .admin-sidebar.open .sidebar-item.active::before { display: block; }
  .admin-sidebar.open .sidebar-item.active { box-shadow: none; }
}

/* ── 24b. Tablet portrait (< 769px) ── */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 280px !important;
    position: fixed;
    z-index: 200;
  }
  .admin-sidebar.open {
    transform: translateX(0);
    width: 280px !important;
  }
  .admin-sidebar.open .sidebar-section-title { display: block; }
  .admin-sidebar.open .sidebar-item .item-label,
  .admin-sidebar.open .sidebar-item .item-badge,
  .admin-sidebar.open .admin-sidebar-logo span,
  .admin-sidebar.open .admin-sidebar-logo small,
  .admin-sidebar.open .sidebar-footer span { display: inline; }
  .admin-sidebar.open .admin-sidebar-logo { justify-content: flex-start; padding: 0 var(--space-5); }
  .admin-sidebar.open .sidebar-item { justify-content: flex-start; padding: 8px 12px; }
  .admin-sidebar.open .sidebar-item.active::before { display: block; }
  .admin-sidebar.open .sidebar-item.active { box-shadow: none; }

  .admin-main { margin-left: 0; }
  .admin-navbar { left: 0; }
  .sidebar-toggle-btn,
  .sidebar-toggle { display: flex; }
  .navbar-search-wrap { display: none; }

  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .filters-grid { grid-template-columns: 1fr 1fr; }
  .page-header h1 { font-size: var(--fs-xl); }

  /* Table: horizontal scroll with sticky header */
  .admin-table-wrap { -webkit-overflow-scrolling: touch; }
  .admin-table thead { position: sticky; top: 0; z-index: 2; }
}

/* ── 24c. Large mobile (481px - 576px) ── */
@media (max-width: 576px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
  .filters-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ── 24d. Mobile (< 481px) ── */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .filters-grid { grid-template-columns: 1fr; }
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .hero-date { text-align: left; }

  .admin-sidebar { width: 100% !important; max-width: 320px; }

  /* Modal fullscreen */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    max-width: 100% !important; width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 90vh; height: auto;
  }
  .modal-box.modal-lg,
  .modal-box.modal-sm { max-width: 100% !important; }
  .modal-header { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .modal-footer { border-radius: 0; }
}

/* ── 24e. Very small mobile (< 361px) ── */
@media (max-width: 360px) {
  .admin-page { padding: var(--space-3); }
  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: var(--fs-lg); }
  .admin-sidebar { width: 100% !important; }
}

/* ── 24f. Touch-friendly: minimum 44px tap targets ── */
@media (hover: none) and (pointer: coarse) {
  .btn, .admin-btn, .sidebar-item, .settings-tab,
  .navbar-btn, .chart-period-btn, .widget-toggle,
  .pagination a, .pagination span { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  .sidebar-item { padding-top: 10px; padding-bottom: 10px; }
  .settings-tab { padding-top: 10px; padding-bottom: 10px; }
}

/* ═══════════════════════════════════════════════════════════
   CUSTOMER-FACING RESPONSIVE CONSISTENCY LAYER
   Navbar, drawer, footer, form, button, grid responsive
   rules for all customer-facing pages (index, packages,
   about, contact, blog, booking, checkout, dashboard, etc.)
   ═══════════════════════════════════════════════════════════ */

/* ───── Custom Properties (fill missing global vars) ─────── */
:root {
  --nav-height:        64px;
  --nav-height-mobile: 60px;
  --nav-blur:          saturate(180%) blur(12px);
  --z-navbar:          1030;
}

/* ───── Customer Navbar Base (not admin) ─────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, height 0.25s ease;
  pointer-events: auto;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}
@media (max-width: 640px) {
  .navbar-inner { padding: 0 16px; }
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar-link {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white, #fff);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.navbar-link:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-accent, #C8A45C);
}
.navbar-link--active { color: var(--color-accent, #C8A45C) !important; }
.navbar-link--cta {
  background: var(--color-accent, #C8A45C);
  color: var(--color-primary-dark, #091E23) !important;
  font-weight: 600;
  padding: 8px 18px;
}
.navbar-link--cta:hover {
  background: var(--color-accent-light, #d4b76a);
  color: var(--color-primary-dark, #091E23) !important;
}
.navbar-auth {
  display: flex;
  align-items: center;
  margin-left: 8px;
}
.navbar-signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 7px 14px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.navbar-signin:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.navbar-logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  transition: background 0.2s ease;
  z-index: calc(var(--z-navbar) + 2);
}
.navbar-hamburger:hover { background: rgba(255,255,255,0.1); }
.navbar-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}
.navbar-hamburger span + span { margin-top: 5px; }
.navbar-hamburger:focus-visible {
  outline: 2.5px solid var(--color-accent, #C8A45C);
  outline-offset: 2px;
}
.navbar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-navbar) - 2);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  animation: fadeIn 0.2s ease both;
}

/* ───── Scrolled state ───────────────────────────────────── */
.lp-scrolled.navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  box-shadow: 0 1px 0 rgba(15,23,42,0.06), 0 4px 20px rgba(15,46,53,0.08);
  height: var(--nav-height);
}
.lp-scrolled .navbar-logo { color: var(--color-primary, #0F2E35); }
.lp-scrolled .navbar-link { color: var(--color-text-secondary, #64748B); }
.lp-scrolled .navbar-link:hover { color: var(--color-primary, #0F2E35); background: var(--color-bg, #F8FAFC); }
.lp-scrolled .navbar-link--active { color: var(--color-accent, #C8A45C) !important; }
.lp-scrolled .navbar-signin { color: var(--color-text-secondary, #64748B); border-color: var(--color-border-medium, #CBD5E1); }
.lp-scrolled .navbar-signin:hover { background: var(--color-bg, #F8FAFC); color: var(--color-primary, #0F2E35); border-color: var(--color-text-muted, #94A3B8); }
.lp-scrolled .navbar-hamburger span { background: var(--color-primary, #0F2E35); }
.lp-scrolled .navbar-hamburger:hover { background: var(--color-bg, #F8FAFC); }

/* ───── Open drawer state ────────────────────────────────── */
.lp-open.navbar-links {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
.lp-open.navbar-links .navbar-link,
.lp-open.navbar-links .navbar-auth {
  opacity: 1 !important;
  transform: translateX(0) !important;
}
.open.navbar-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.open.navbar-hamburger span:nth-child(2) { opacity: 0; width: 0; }
.open.navbar-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.show.navbar-overlay { display: block; animation: fadeIn 0.2s ease both; pointer-events: auto; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ───── User menu ────────────────────────────────────────── */
.lp-user-menu { display: none; align-items: center; }
.lp-avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-accent, #C8A45C);
  color: var(--color-primary-dark, #091E23);
  font-size: 14px; font-weight: 700;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: border-color 0.2s ease;
}
.lp-avatar-btn:hover { border-color: var(--color-accent, #C8A45C); }
.lp-scrolled .lp-avatar-btn { border-color: var(--color-border-medium, #CBD5E1); }
.lp-user-dropdown {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(15,23,42,0.12);
  padding: 6px; display: none;
  z-index: calc(var(--z-navbar) + 3);
}
.lp-user-dropdown.open { display: block; }
.lp-user-dropdown a,
.lp-user-dropdown button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--color-text, #1E293B);
  text-decoration: none; background: none; border: none; cursor: pointer;
  transition: background 0.15s ease;
}
.lp-user-dropdown a:hover,
.lp-user-dropdown button:hover { background: var(--color-bg, #F8FAFC); }
.lp-user-dropdown .lp-logout { color: #DC2626; }

/* ───── Mobile drawer (≤ 900px) ──────────────────────────── */
@media (max-width: 900px) {
  .navbar { height: var(--nav-height-mobile); }
  .navbar-hamburger { display: flex; }
  .navbar-links {
    position: fixed; top: var(--nav-height-mobile);
    left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 2px;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 16px 16px; overflow-y: auto;
    opacity: 0; transform: translateY(-12px);
    pointer-events: none; visibility: hidden;
    transition: opacity 0.25s ease, transform 0.3s ease, visibility 0.25s ease;
    z-index: calc(var(--z-navbar) - 1);
    margin: 0; width: 100%; border-radius: 0; box-shadow: none;
  }
  .lp-scrolled .navbar-links { top: var(--nav-height-mobile); }
  .navbar-links .navbar-link {
    width: 100%; font-size: 16px; padding: 14px 16px;
    color: var(--color-primary, #0F2E35); border-radius: 10px;
    opacity: 0; transform: translateX(-12px);
    transition: opacity 0.25s ease 0.05s, transform 0.3s ease 0.05s, background 0.2s ease;
  }
  .lp-open.navbar-links .navbar-link {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
  .navbar-links .navbar-link:hover { background: var(--color-bg, #F8FAFC); }
  .navbar-links .navbar-link--cta {
    background: var(--color-accent, #C8A45C);
    color: var(--color-primary-dark, #091E23) !important;
    text-align: center; margin-top: 4px;
  }
  .navbar-links .navbar-link--cta:hover { background: var(--color-accent-light, #d4b76a); }
  .navbar-auth {
    width: 100%; flex-direction: column; margin: 8px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--color-border, #E2E8F0);
    opacity: 0; transition: opacity 0.25s ease 0.1s;
  }
  .lp-open.navbar-links .navbar-auth { opacity: 1 !important; }
  .navbar-signin {
    width: 100%; justify-content: center; padding: 14px; font-size: 15px;
  }
  .navbar-signin:hover { background: var(--color-bg, #F8FAFC); }
  .lp-user-menu { width: 100%; position: relative; }
  .lp-avatar-btn { width: 44px; height: 44px; font-size: 16px; }
  .lp-user-dropdown {
    position: static; box-shadow: none; border: none;
    padding: 0; margin-top: 4px;
    background: var(--color-bg, #F8FAFC); border-radius: 10px;
  }
  .lp-user-dropdown a,
  .lp-user-dropdown button { font-size: 15px; padding: 14px 16px; }
  .navbar-links .navbar-link:nth-child(1) { transition-delay: 0.02s; }
  .navbar-links .navbar-link:nth-child(2) { transition-delay: 0.04s; }
  .navbar-links .navbar-link:nth-child(3) { transition-delay: 0.06s; }
  .navbar-links .navbar-link:nth-child(4) { transition-delay: 0.08s; }
  .navbar-links .navbar-link:nth-child(5) { transition-delay: 0.10s; }
  .navbar-links .navbar-link:nth-child(6) { transition-delay: 0.12s; }
  .lp-drawer-header {
    display: flex; align-items: center; justify-content: flex-end;
    width: 100%; padding: 4px 0 8px;
    border-bottom: 1px solid var(--color-border, #E2E8F0);
    margin-bottom: 4px;
  }
  .lp-nav-close {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; cursor: pointer;
    border-radius: 10px;
    color: var(--color-text-secondary, #64748B);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .lp-nav-close:hover { background: var(--color-bg, #F8FAFC); color: var(--color-primary, #0F2E35); }
  .lp-nav-close svg { width: 20px; height: 20px; }
}

/* ───── Small phones ─────────────────────────────────────── */
@media (max-width: 374px) {
  .navbar-logo { font-size: 15px; }
  .navbar-logo svg { width: 24px; height: 24px; }
  .navbar-inner { padding: 0 12px; }
}

/* ───── Large phones ─────────────────────────────────────── */
@media (max-width: 480px) {
  body { overflow-x: hidden; width: 100%; }
  img, table, iframe, pre { max-width: 100% !important; }
  .hero-actions, .cta-buttons, .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn, .cta-buttons .btn, .btn-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ───── Tablet ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .grid-2-col, .two-col, .split-layout { grid-template-columns: 1fr !important; }
  .card-grid, .tour-grid, .package-grid, .blog-grid { grid-template-columns: 1fr !important; }
  h1 { font-size: clamp(28px, 8vw, 36px) !important; }
  h2 { font-size: clamp(22px, 6vw, 28px) !important; }
  .hero-title { font-size: clamp(28px, 9vw, 40px) !important; }
  section, .section { padding-top: 48px !important; padding-bottom: 48px !important; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .footer-grid, .footer-content, .footer-columns {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }
  .breadcrumb-bar { top: var(--nav-height-mobile) !important; }
  .breadcrumb-inner { height: 44px !important; padding: 0 16px !important; }
  [style*="position: sticky"] { top: var(--nav-height-mobile) !important; }
  .search-bar, .search-wrap form {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
  }
  .search-field { width: 100% !important; }
}

/* ───── Large ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ───── XL ───────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .container { padding-left: 24px; padding-right: 24px; }
}

/* ───── Touch targets (mobile) ───────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  .navbar-link, .navbar-signin, .navbar-hamburger,
  .lp-avatar-btn, .lp-nav-close,
  .btn, .btn-sm { min-height: 44px; }
  .navbar-link { padding-top: 12px; padding-bottom: 12px; }
  .navbar-signin { padding-top: 12px; padding-bottom: 12px; }
}

/* ───── Form responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px !important; }
  form .btn { width: 100%; justify-content: center; }
  .form-row, .form-group-row {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .form-actions { flex-direction: column !important; }
  .form-actions .btn { width: 100%; }
}

/* ───── Safe area ────────────────────────────────────────── */
@supports (padding: env(safe-area-inset-top)) {
  .navbar { padding-top: env(safe-area-inset-top); }
  @media (max-width: 900px) {
    .navbar-links { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  }
}

/* ───── Hero overflow guard ──────────────────────────────── */
.hero { overflow: hidden; max-width: 100vw; }
.hero-slide { max-width: 100vw; }
.hero-slide img,
.hero-slide video,
.hero-slide[data-bg] { max-width: 100vw; }

/* ───── Print ────────────────────────────────────────────── */
@media print {
  .navbar, .navbar-overlay, .navbar-hamburger,
  .wa-fab, .footer, .skip-link,
  .hero-arrows, .hero-dots, .hero-scroll { display: none !important; }
  body { padding-top: 0 !important; }
}

