/* ============================================================
   LodgeIQ Main Stylesheet
   Midnight Navy + Copper/Amber Theme
   ProStackNG Technologies · lodgeiq.ng
   ============================================================ */

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

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Core palette */
  --navy-950:    #040709;
  --navy-900:    #080c14;
  --navy-800:    #0d1425;
  --navy-700:    #111d35;
  --navy-600:    #162347;
  --navy-500:    #1e3163;
  --navy-400:    #2c4a8a;

  --copper-600:  #c4732e;
  --copper-500:  #e8934a;
  --copper-400:  #f0a862;
  --copper-300:  #f5c08a;
  --copper-100:  #fdf2e7;

  --slate-50:    #f8fafc;
  --slate-100:   #f1f5f9;
  --slate-200:   #e2e8f0;
  --slate-300:   #cbd5e1;
  --slate-400:   #94a3b8;
  --slate-500:   #64748b;
  --slate-600:   #475569;
  --slate-700:   #334155;
  --slate-800:   #1e293b;

  /* Semantic */
  --bg-primary:    var(--navy-900);
  --bg-secondary:  var(--navy-800);
  --bg-card:       var(--navy-700);
  --bg-hover:      var(--navy-600);
  --accent:        var(--copper-500);
  --accent-hover:  var(--copper-400);
  --accent-dark:   var(--copper-600);
  --text-primary:  #f1f5f9;
  --text-muted:    var(--slate-400);
  --text-dim:      var(--slate-500);
  --border:        rgba(255,255,255,.08);
  --border-accent: rgba(232,147,74,.3);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --sidebar-w:   260px;
  --topbar-h:    64px;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.4);
  --shadow:      0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.6);
  --shadow-glow: 0 0 24px rgba(232,147,74,.15);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--copper-500); text-decoration: none; transition: color .2s; }
a:hover { color: var(--copper-400); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: 0;
}

code, pre { font-family: var(--font-mono); }

img { max-width: 100%; height: auto; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--navy-800); }
::-webkit-scrollbar-thumb { background: var(--navy-500); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--copper-600); }

/* ============================================================
   LAYOUT — SIDEBAR + MAIN
   ============================================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
  transition: transform .25s ease;
  overflow: hidden;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sidebar-logo .logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--copper-500), var(--copper-600));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -.3px;
  line-height: 1;
}

.sidebar-logo .logo-sub {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav sections */
.nav-section {
  padding: 20px 12px 8px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 8px;
  margin-bottom: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  margin-bottom: 2px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(232,147,74,.15), rgba(232,147,74,.05));
  color: var(--copper-400);
  border: 1px solid var(--border-accent);
}

.nav-item .nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: .7;
}

.nav-item.active .nav-icon { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--copper-500);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background .2s;
  cursor: pointer;
  text-decoration: none;
}

.sidebar-user:hover { background: var(--bg-hover); }

.user-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--copper-500), var(--navy-500));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
  flex-shrink: 0;
}

.user-info .user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-info .user-role {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: capitalize;
}

/* Main content area */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top bar */
/* Sidebar overlay — always hidden until explicitly opened */
.sidebar-overlay {
  display: none;
  pointer-events: none;
}
.sidebar-overlay.open {
  display: block;
  pointer-events: auto;
}

.topbar {
  height: var(--topbar-h);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 201;
  gap: 16px;
}

.topbar-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  flex: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-btn {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.topbar-btn:hover { color: var(--copper-400); border-color: var(--border-accent); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px;
}

/* Page content */
.page-content {
  padding: 28px;
  flex: 1;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .2s;
}

.card:hover { border-color: var(--border-accent); }

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -12px;
  margin-bottom: 16px;
}

/* Stat cards */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all .25s;
}

.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(232,147,74,.2), rgba(232,147,74,.05));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--copper-500);
  flex-shrink: 0;
}

.stat-info .stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 500;
}

.stat-info .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  font-family: var(--font-mono);
}

.stat-info .stat-change {
  font-size: 12px;
  color: var(--text-dim);
}

.stat-change.up   { color: #10b981; }
.stat-change.down { color: #ef4444; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--copper-500), var(--copper-600));
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--copper-400), var(--copper-500));
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,147,74,.4);
}

.btn-primary:active { transform: none; }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

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

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-danger:hover { opacity: .9; color: white; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: .3px;
}

.form-label .required { color: var(--copper-500); margin-left: 2px; }

.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  padding: 10px 14px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--copper-500);
  box-shadow: 0 0 0 3px rgba(232,147,74,.1);
}

.form-control::placeholder { color: var(--text-dim); }

.form-control.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.invalid-feedback {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: block;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2394a3b8' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 36px;
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--copper-500);
  cursor: pointer;
  flex-shrink: 0;
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group-text {
  background: var(--navy-600);
  border: 1px solid var(--border);
  border-right: none;
  padding: 10px 14px;
  color: var(--text-dim);
  font-size: 14px;
  border-radius: var(--radius) 0 0 var(--radius);
  display: flex;
  align-items: center;
}

.input-group .form-control {
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive { overflow-x: auto; }

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

.data-table th {
  background: var(--bg-secondary);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
}

.badge-success  { background: rgba(16,185,129,.15); color: #10b981; border: 1px solid rgba(16,185,129,.25); }
.badge-warning  { background: rgba(245,158,11,.15); color: #f59e0b; border: 1px solid rgba(245,158,11,.25); }
.badge-danger   { background: rgba(239,68,68,.15);  color: #ef4444; border: 1px solid rgba(239,68,68,.25); }
.badge-info     { background: rgba(59,130,246,.15); color: #60a5fa; border: 1px solid rgba(59,130,246,.25); }
.badge-amber    { background: rgba(232,147,74,.15); color: var(--copper-400); border: 1px solid var(--border-accent); }
.badge-muted    { background: rgba(255,255,255,.06); color: var(--text-muted); border: 1px solid var(--border); }

/* ============================================================
   ALERTS / FLASH
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid transparent;
}

.alert-success  { background: rgba(16,185,129,.1);  color: #10b981; border-color: rgba(16,185,129,.2);  }
.alert-warning  { background: rgba(245,158,11,.1);  color: #f59e0b; border-color: rgba(245,158,11,.2);  }
.alert-danger   { background: rgba(239,68,68,.1);   color: #ef4444; border-color: rgba(239,68,68,.2);   }
.alert-info     { background: rgba(59,130,246,.1);  color: #60a5fa; border-color: rgba(59,130,246,.2);  }

/* Bootstrap flash override */
.alert-dismissible .btn-close { filter: invert(1); opacity: .5; }

/* ============================================================
   TRIAL BANNER
   ============================================================ */
.trial-banner {
  background: linear-gradient(90deg, rgba(232,147,74,.1) 0%, rgba(232,147,74,.05) 100%);
  border-bottom: 1px solid var(--border-accent);
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--copper-300);
}

.trial-banner strong { color: var(--copper-400); }
.trial-banner .upgrade-link {
  margin-left: auto;
  background: var(--copper-500);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}
.trial-banner .upgrade-link:hover { background: var(--copper-400); color: white; }

/* ============================================================
   PLAN CARDS (billing)
   ============================================================ */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
  transition: background .3s;
}

.plan-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.plan-card.featured {
  border-color: var(--copper-500);
  background: linear-gradient(180deg, rgba(232,147,74,.08) 0%, var(--bg-card) 60%);
}

.plan-card.featured::before {
  background: linear-gradient(90deg, var(--copper-500), var(--copper-400));
}

.plan-card .featured-tag {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--copper-500);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 4px;
}

.plan-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }

.plan-price {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1;
}

.plan-price span { font-size: 16px; color: var(--text-muted); font-weight: 400; }

.plan-features {
  list-style: none;
  padding: 0; margin: 24px 0;
  flex: 1;
}

.plan-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features li::before {
  content: '✓';
  color: var(--copper-500);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.empty-icon {
  width: 64px; height: 64px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-dim);
}

.empty-state h4 {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.empty-state p { font-size: 14px; color: var(--text-dim); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.page-item .page-link {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: all .2s;
}

.page-item .page-link:hover,
.page-item.active .page-link {
  background: var(--copper-500);
  border-color: var(--copper-500);
  color: white;
}

/* ============================================================
   SUPPORT TICKETS
   ============================================================ */
.ticket-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  background: var(--bg-secondary);
  transition: all .2s;
  text-decoration: none;
  color: var(--text-primary);
}

.ticket-item:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: var(--bg-card);
}

.ticket-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--copper-400);
  background: rgba(232,147,74,.1);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Priority dots */
.prio-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.prio-dot.low    { background: var(--slate-500); }
.prio-dot.medium { background: #f59e0b; }
.prio-dot.high   { background: #f97316; }
.prio-dot.urgent { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

/* ============================================================
   ANNOUNCEMENT BANNER (from super admin)
   ============================================================ */
.announcement-bar {
  background: rgba(59,130,246,.08);
  border-bottom: 1px solid rgba(59,130,246,.2);
  padding: 8px 28px;
  font-size: 13px;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-accent   { color: var(--copper-500) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-dim      { color: var(--text-dim) !important; }
.text-mono     { font-family: var(--font-mono); }
.text-display  { font-family: var(--font-display); }

.bg-card       { background: var(--bg-card) !important; }
.bg-secondary  { background: var(--bg-secondary) !important; }

.border-accent { border-color: var(--border-accent) !important; }
.border-subtle { border-color: var(--border) !important; }

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

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

.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 199;
  }

  .main-content {
    margin-left: 0;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-content {
    padding: 12px;
    overflow-x: hidden;
    max-width: 100%;
  }

  .topbar {
    padding: 0 12px;
    gap: 8px;
    z-index: 201;
    overflow: visible;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
    flex-shrink: 0;
    z-index: 202;
    position: relative;
  }

  .topbar-title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
    order: 0;
  }

  .topbar-actions {
    gap: 6px;
    flex-shrink: 0;
    order: 1;
  }

  .trial-banner { padding: 8px 12px; font-size: 11px; }

  .stat-card { padding: 14px; }

  .plan-card { padding: 20px 16px; }

  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table th, .data-table td { padding: 8px 10px; font-size: 13px; }

  /* All col-lg become full width on mobile */
  .row.g-3 > [class*="col-lg"],
  .row.g-4 > [class*="col-lg"],
  .row > [class*="col-lg"] {
    overflow-x: hidden;
    max-width: 100%;
  }

  .card { padding: 14px; overflow: hidden; max-width: 100%; }

  .section-header { flex-wrap: wrap; gap: 8px; }
  .section-header h2, .section-header h3 { font-size: 17px; }

  .stat-value { font-size: 20px !important; }

  /* Prevent page content from causing horizontal scroll - NOT body/html */
  .main-content { overflow-x: hidden; }
  .page-content { overflow-x: hidden; }

  /* Tables in page content scroll horizontally within container */
  .page-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  /* Room status grid on mobile */
  .room-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,147,74,0); }
  50%       { box-shadow: 0 0 16px 4px rgba(232,147,74,.2); }
}

.animate-fade-up {
  animation: fadeInUp .4s ease both;
}

.animate-fade-up-delay-1 { animation-delay: .1s; }
.animate-fade-up-delay-2 { animation-delay: .2s; }
.animate-fade-up-delay-3 { animation-delay: .3s; }

/* ============================================================
   PUBLIC / LANDING PAGE
   ============================================================ */
.public-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 16px 0;
  transition: background .3s, backdrop-filter .3s;
}

.public-nav.scrolled {
  background: rgba(8,12,20,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.public-nav .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.public-nav .nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-nav .nav-logo .mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--copper-500), var(--copper-600));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  list-style: none;
  padding: 0; margin: 0 auto 0 40px;
}

.public-nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color .2s;
}

.public-nav-links a:hover { color: var(--text-primary); }

.public-nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(232,147,74,.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(22,35,71,.8) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,147,74,.1);
  border: 1px solid var(--border-accent);
  color: var(--copper-400);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--copper-500);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-title .accent {
  color: var(--copper-500);
  position: relative;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-cta .trial-note {
  font-size: 12px;
  color: var(--text-dim);
  width: 100%;
}

/* Feature cards (landing) */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .3s;
}

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

.feature-icon-wrap {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(232,147,74,.15), rgba(232,147,74,.05));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--copper-500);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* Sections */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper-500);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.public-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-logo .accent { color: var(--copper-500); }

.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 220px;
  line-height: 1.6;
}

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color .2s;
}

.footer-link:hover { color: var(--copper-400); }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}

.powered-by { color: var(--copper-500); font-weight: 600; }
