/* ============================================================
   Society Maintenance Tracker — Mobile-First Stylesheet
   ============================================================ */

:root {
  --bg:          #F0F2F5;
  --bg-card:     #FFFFFF;
  --bg-sidebar:  #1A2340;
  --primary:     #3B6FE8;
  --primary-dark:#2D57CC;
  --success:     #1D9E75;
  --danger:      #E24B4A;
  --warning:     #EF9F27;
  --info:        #378ADD;
  --purple:      #7C5CE8;
  --teal:        #1D9E75;
  --orange:      #EF9F27;
  --text:        #1A2340;
  --text-sec:    #6B7385;
  --text-muted:  #9BA3B2;
  --border:      #E3E7F0;
  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 1px 4px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.12);
  --nav-h:       56px;
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: #1A2340;
  display: flex; align-items: center;
  padding: 0 14px; gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nav-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: #fff;
  white-space: nowrap; flex: 1;
}
.nav-brand i { color: #7FA8FF; font-size: 17px; }

/* Hamburger button — visible on mobile only */
.nav-hamburger {
  background: none; border: none;
  color: #B0BDD4; cursor: pointer;
  padding: 6px; border-radius: var(--radius-sm);
  font-size: 20px; display: flex; align-items: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.nav-hamburger:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Slide-down nav drawer on mobile */
.nav-drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: #1A2340;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 199;
  padding: 8px 12px 12px;
  display: flex; flex-direction: column; gap: 2px;
  transform: translateY(-110%);
  transition: transform .25s ease;
}
.nav-drawer.open { transform: translateY(0); }

.nav-drawer a {
  color: #B0BDD4;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  transition: background .15s, color .15s;
}
.nav-drawer a:hover,
.nav-drawer a.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-drawer a i { font-size: 15px; width: 18px; text-align: center; }

/* Drawer divider for user info */
.nav-drawer-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 4px;
  color: #B0BDD4; font-size: 13px;
}
.nav-drawer-user .btn-logout {
  margin-left: auto;
  color: #B0BDD4; background: rgba(255,255,255,.08);
  padding: 6px 10px; border-radius: var(--radius-sm);
  text-decoration: none; font-size: 13px;
  transition: background .15s, color .15s;
}
.nav-drawer-user .btn-logout:hover { color: #fff; background: rgba(255,255,255,.15); }

/* Backdrop for drawer */
.nav-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 198;
  background: rgba(0,0,0,.4);
}
.nav-backdrop.open { display: block; }

/* Desktop nav — hidden on mobile */
.nav-links { display: none; }
.nav-user  { display: none; }

/* ── Main Layout ─────────────────────────────────────────── */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 12px;
}

.site-footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.page-header h2 {
  font-size: 18px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.page-header p { font-size: 13px; color: var(--text-sec); margin-top: 2px; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card.card-success { border-left: 4px solid var(--success); }
.card.card-danger  { border-left: 4px solid var(--danger); }
.card-header {
  padding: 10px 14px;
  background: #F7F9FC;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.card-body { padding: 14px; }
.mb-4 { margin-bottom: 14px; }

/* ── Stats ───────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex; align-items: center; gap: 10px;
}
.stat-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; flex-shrink: 0;
}
.bg-blue   { background: #3B6FE8; }
.bg-green  { background: #1D9E75; }
.bg-red    { background: #E24B4A; }
.bg-teal   { background: #00B5A3; }
.bg-orange { background: #EF9F27; }
.bg-purple { background: #7C5CE8; }
.stat-val  { font-size: 20px; font-weight: 700; line-height: 1; }
.stat-lbl  { font-size: 11px; color: var(--text-sec); margin-top: 3px; }
.text-green  { color: #1D9E75 !important; }
.text-red    { color: #E24B4A !important; }
.text-teal   { color: #00B5A3 !important; }
.text-orange { color: #EF9F27 !important; }
.text-purple { color: #7C5CE8 !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-sec); }

/* ── Progress ────────────────────────────────────────────── */
.progress-wrap { display: flex; align-items: center; gap: 10px; }
.progress-bar  {
  flex: 1; height: 10px;
  background: var(--bg);
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1D9E75, #2FD6A0);
  border-radius: 10px;
  transition: width .5s ease;
  min-width: 4px;
}

/* ── Flat Grid ───────────────────────────────────────────── */
.flat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.flat-tile {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 10px;
  background: var(--bg-card);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.flat-tile.clickable { cursor: pointer; }
.flat-tile.clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.flat-tile.paid {
  border-color: #1D9E75;
  background: linear-gradient(135deg,#fff 0%,#E8F8F2 100%);
}
.flat-tile.unpaid {
  border-color: #F5A89A;
  background: linear-gradient(135deg,#fff 0%,#FEF0EE 100%);
}
.flat-number { font-size: 14px; font-weight: 700; color: var(--text); }
.flat-owner  { font-size: 11px; color: var(--text-sec); margin: 3px 0 6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.flat-meta   { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600; line-height: 1;
}
.badge-paid   { background: #E8F8F2; color: #0C6B4E; }
.badge-unpaid { background: #FEF0EE; color: #A83428; }
.badge-danger { background: #FEE8E8; color: #A83428; }
.badge-info   { background: #E6F1FB; color: #185FA5; }
.badge-muted  { background: #F0F2F5; color: #9BA3B2; }

nav .badge {
  background: #E24B4A; color: #fff;
  border-radius: 20px; font-size: 10px; font-weight: 700;
  padding: 1px 5px; min-width: 16px; text-align: center;
}
.badge.hidden { display: none; }

/* ── Role Pills ──────────────────────────────────────────── */
.role-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.role-superadmin { background: #F0E8FF; color: #5B2FA8; }
.role-admin      { background: #E6F1FB; color: #185FA5; }
.role-user       { background: #F0F2F5; color: #6B7385; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  cursor: pointer; border: none;
  text-decoration: none; transition: opacity .15s, box-shadow .15s;
  white-space: nowrap; min-height: 40px;
  touch-action: manipulation;
}
.btn:hover  { opacity: .85; }
.btn:active { opacity: .7; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline {
  background: #fff; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); opacity:1; }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-green   { background: #E8F8F2; color: #0C6B4E; border: 1px solid #B2E8D4; }
.btn-full    { width: 100%; justify-content: center; }
.btn-sm      { padding: 7px 12px; font-size: 12px; min-height: 34px; }
.ml-auto     { margin-left: auto; }

/* Status toggle */
.status-toggle { display: flex; gap: 8px; }
.toggle-btn {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); background: #fff;
  font-size: 13px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .15s, background .15s;
  color: var(--text-sec); min-height: 44px;
}
.toggle-active {
  border-color: var(--primary);
  background: #EBF0FF;
  color: var(--primary);
}

/* ── Forms ───────────────────────────────────────────────── */
.field-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field-group label { font-size: 12px; font-weight: 600; color: var(--text-sec); text-transform: uppercase; letter-spacing: .4px; }
.field-group input,
.field-group select,
.field-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  font-family: var(--font);
  min-height: 44px;
  width: 100%;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,111,232,.12);
}
/* Single column on mobile; two col on desktop (min-width breakpoint below) */
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; background: #fff;
  min-height: 40px;
}
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 8px 0;
}
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }

/* ── Modals — full-screen on mobile ──────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(15,20,40,.5);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  backdrop-filter: blur(2px);
}
.modal.hidden { display: none; }
.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  animation: modalInMobile .25s ease;
}
@keyframes modalInMobile {
  from { opacity:0; transform:translateY(40px); }
  to   { opacity:1; transform:none; }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-card); z-index: 1;
}
.modal-header h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.modal-header button {
  background: none; border: none; font-size: 22px;
  color: var(--text-muted); cursor: pointer; padding: 4px 8px; border-radius: 4px;
  min-width: 40px; min-height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.modal-header button:hover { background: var(--bg); color: var(--text); }
.modal-body   { padding: 16px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding-top: 8px;
}
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }

/* ── Tables — horizontally scrollable on mobile ────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.table th {
  text-align: left; padding: 10px 12px;
  background: #F7F9FC; border-bottom: 2px solid var(--border);
  font-weight: 600; font-size: 11px; color: var(--text-sec);
  text-transform: uppercase; letter-spacing: .4px;
  white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #F7F9FC; }
.table code { background: #F0F2F5; padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* Wrap card-body tables automatically */
.card-body > .table,
.card-body > table { min-width: 480px; }
.card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.alert-success { background: #E8F8F2; color: #0C6B4E; border: 1px solid #B2E8D4; }
.alert-error   { background: #FEE8E8; color: #A83428; border: 1px solid #F5B8B8; }
.alert-danger  { background: #FEE8E8; color: #A83428; border: 1px solid #F5B8B8; }

/* ── Notices ─────────────────────────────────────────────── */
.notice-item {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.notice-item:last-child { border-bottom: none; }
.notice-item.urgent .notice-dot { background: var(--danger); }
.notice-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--info); flex-shrink: 0; margin-top: 5px;
}
.notice-body strong { font-size: 14px; }
.notice-body p { font-size: 13px; color: var(--text-sec); margin-top: 2px; }
.notice-body small { color: var(--text-muted); }

/* ── Month Nav ───────────────────────────────────────────── */
.month-nav-form { display: flex; align-items: center; gap: 8px; }

/* ── Status Banner ───────────────────────────────────────── */
.status-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status-info h3 { font-size: 17px; font-weight: 700; }
.status-info p  { margin-top: 4px; color: var(--text-sec); }

/* ── Two-col layout — single col on mobile ───────────────── */
.two-col-layout { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 32px 16px;
  color: var(--text-muted);
}
.empty-state i { font-size: 32px; display: block; margin-bottom: 10px; opacity: .35; }
.empty-state p { font-size: 14px; }

/* ── Login Page ──────────────────────────────────────────── */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1A2340 0%, #2D3C66 100%);
  padding: 16px;
}
.login-wrap { width: 100%; max-width: 400px; }
.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
}
.login-header {
  background: linear-gradient(135deg,#1A2340,#3B6FE8);
  padding: 28px 24px;
  text-align: center; color: #fff;
}
.login-icon { font-size: 38px; display: block; margin-bottom: 10px; opacity: .9; }
.login-header h1 { font-size: 20px; font-weight: 700; }
.login-header p  { font-size: 13px; opacity: .75; margin-top: 4px; }
.login-form { padding: 20px 24px; }
.login-form .field-group { margin-bottom: 16px; }
.login-hint { text-align: center; font-size: 12px; color: var(--text-muted); padding: 0 24px 20px; }

/* ── Chat ────────────────────────────────────────────────── */
.chat-wrap {
  display: flex; flex-direction: column;
  height: calc(100vh - var(--nav-h) - 80px);
  min-height: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.chat-box {
  flex: 1; overflow-y: auto;
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  background: #F7F9FC;
}
.chat-msg { display: flex; align-items: flex-end; gap: 8px; }
.chat-mine   { flex-direction: row-reverse; }
.chat-theirs { flex-direction: row; }
.chat-avatar {
  width: 30px; height: 30px;
  border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.chat-bubble {
  max-width: 78%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 9px 13px;
  box-shadow: var(--shadow);
}
.chat-mine .chat-bubble {
  background: var(--primary); color: #fff;
  border-color: var(--primary-dark);
  border-bottom-right-radius: 4px;
}
.chat-theirs .chat-bubble { border-bottom-left-radius: 4px; }
.chat-name {
  font-size: 11px; font-weight: 600;
  color: var(--primary); margin-bottom: 3px;
  display: flex; align-items: center; gap: 4px;
}
.chat-text { font-size: 13px; line-height: 1.45; word-break: break-word; }
.chat-mine .chat-text { color: #fff; }
.chat-time {
  font-size: 10px; color: var(--text-muted);
  margin-top: 4px; text-align: right;
}
.chat-mine .chat-time { color: rgba(255,255,255,.65); }
.chat-input-wrap {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: #fff;
}
#chat-form { display: flex; gap: 8px; align-items: flex-end; }
#chat-input {
  flex: 1; padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  resize: none; font-size: 14px;
  font-family: var(--font);
  max-height: 100px;
  transition: border-color .15s;
}
#chat-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,111,232,.1);
}
.chat-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; text-align: center; }

/* ── Alert Popup ─────────────────────────────────────────── */
.alert-popup {
  position: fixed;
  top: auto; bottom: 16px; right: 12px; left: 12px;
  z-index: 9999;
  animation: slideInUp .35s ease;
}
.alert-popup.hidden { display: none; }
@keyframes slideInUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:none; }
}
.alert-popup-inner {
  background: #fff;
  border: 2px solid var(--danger);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(226,75,74,.25);
  padding: 14px 12px;
  display: flex; align-items: flex-start; gap: 10px;
}
.urgent-icon {
  width: 36px; height: 36px;
  background: #FEE8E8; color: var(--danger);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.alert-content { flex: 1; min-width: 0; }
.alert-content strong { font-size: 13px; color: var(--text); display: block; margin-bottom: 3px; }
.alert-content p { font-size: 12px; color: var(--text-sec); line-height: 1.4; }
.alert-close {
  background: none; border: none; font-size: 20px;
  color: var(--text-muted); cursor: pointer;
  padding: 0 2px; line-height: 1; flex-shrink: 0;
}
.alert-close:hover { color: var(--text); }

/* ============================================================
   TABLET — min-width: 600px
   ============================================================ */
@media (min-width: 600px) {
  .main-content    { padding: 20px 16px; }
  .page-header     { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .page-header h2  { font-size: 20px; }
  .stats-grid      { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .flat-grid       { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .form-row        { grid-template-columns: 1fr 1fr; gap: 12px; }
  .two-col-layout  { grid-template-columns: 1fr 1fr; }
  .card-body       { padding: 18px; }
  .card-header     { padding: 12px 18px; font-size: 14px; }
  .modal           { align-items: center; padding: 16px; }
  .modal-box       { border-radius: var(--radius); max-width: 500px; animation: modalIn .2s ease; }
  @keyframes modalIn {
    from { opacity:0; transform:translateY(-12px); }
    to   { opacity:1; transform:none; }
  }
  .alert-popup { left: auto; right: 20px; width: 340px; bottom: auto; top: 76px; }
  @keyframes slideInUp {
    from { opacity:0; transform:translateX(40px); }
    to   { opacity:1; transform:none; }
  }
  .chat-bubble { max-width: 68%; }
}

/* ============================================================
   DESKTOP — min-width: 900px
   ============================================================ */
@media (min-width: 900px) {
  :root { --nav-h: 60px; }

  .main-content  { padding: 24px 20px; }
  .stats-grid    { grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; margin-bottom: 20px; }
  .flat-grid     { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 12px; }
  .mb-4          { margin-bottom: 16px; }

  /* Show horizontal nav, hide hamburger */
  .nav-hamburger { display: none; }
  .nav-links {
    display: flex; align-items: center; gap: 4px; flex: 1;
  }
  .nav-links a {
    color: #B0BDD4; text-decoration: none;
    padding: 6px 12px; border-radius: var(--radius-sm);
    font-size: 13px;
    display: flex; align-items: center; gap: 6px;
    transition: background .15s, color .15s;
    white-space: nowrap;
  }
  .nav-links a:hover, .nav-links a.active {
    background: rgba(255,255,255,.1); color: #fff;
  }
  .nav-links a i { font-size: 13px; }
  .nav-user {
    display: flex; align-items: center; gap: 10px; margin-left: auto;
    color: #B0BDD4; font-size: 13px;
  }
  .btn-logout {
    color: #B0BDD4 !important;
    background: rgba(255,255,255,.08) !important;
    padding: 6px 10px !important; border-radius: var(--radius-sm) !important;
    text-decoration: none;
    transition: background .15s, color .15s;
  }
  .btn-logout:hover { color: #fff !important; background: rgba(255,255,255,.15) !important; }

  /* Nav brand no longer needs flex:1 — links take space */
  .nav-brand { flex: unset; }

  /* Drawer hidden on desktop */
  .nav-drawer, .nav-backdrop { display: none !important; }
}