/* ============================================================
   ApprovGD — app.css v3.0.0
   Fonts: Sora (headings, UI labels, numbers) + IBM Plex Sans (body, tables, forms)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  --green-deep:    #0D2B1A;
  --green-brand:   #006B3F;
  --green-mid:     #008751;
  --green-bright:  #00A060;
  --green-tint:    #F0F7F3;
  --green-mist:    #EEF9F3;
  --green-pale:    #D6F2E5;

  --row2-bg:       #F8FAF9;
  --page-bg:       #F4F6F5;
  --surface:       #FFFFFF;

  --border:        #E2EAE6;
  --border-mid:    rgba(0,107,63,.22);
  --border-strong: rgba(0,107,63,.4);

  --text-primary:  #0D1F14;
  --text-secondary:#2D5040;
  --text-muted:    #6B7C70;
  --text-on-dark:  #FFFFFF;

  --ok:    #008751;
  --warn:  #B45309;
  --bad:   #991B1B;
  --info:  #1D6FA4;

  --shadow-xs: 0 1px 3px rgba(0,107,63,.07);
  --shadow-sm: 0 2px 8px rgba(0,107,63,.09);
  --shadow-md: 0 4px 16px rgba(0,107,63,.11);
  --shadow-lg: 0 8px 32px rgba(0,107,63,.13);
  --focus-ring: 0 0 0 3px rgba(0,107,63,.2);

  --font-ui:   'Sora', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--page-bg);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
h4 { font-size: 13px; }

a { color: var(--green-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── DESKTOP TWO-ROW TOPNAV ── */
.desktop-topnav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: block;
}

/* Row 1 */
.topnav-row1 {
  background: var(--green-deep);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid #1A3D28;
}
.topnav-row1-left,
.topnav-row1-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topnav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 4px;
}
.topnav-brandname {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.2px;
}
.topnav-logomark {
  width: 28px;
  height: 28px;
  background: var(--green-brand);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topnav-divider {
  width: 1px;
  height: 20px;
  background: #1A3D28;
  margin: 0 8px;
  flex-shrink: 0;
}
.topnav-primary-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.topnav-link1 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: #A8C4B0;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.topnav-link1:hover { background: #1A3D28; color: #fff; text-decoration: none; }
.topnav-link1.active { background: var(--green-brand); color: #fff; }
.topnav-link1-locked { opacity: .5; }

.topnav-userblock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
}
.topnav-userinfo {
  text-align: right;
}
.topnav-orgname {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: #E0EDE6;
  line-height: 1.2;
}
.topnav-userrole {
  display: block;
  font-size: 11px;
  color: #5A8870;
  text-transform: capitalize;
}
.topnav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-brand);
  border: 2px solid #1A6640;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.topnav-logout {
  height: 30px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid #2A5040;
  border-radius: 5px;
  color: #A8C4B0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s;
}
.topnav-logout:hover { background: #1A3D28; color: #fff; border-color: #2A5040; }

/* Row 2 */
.topnav-row2 {
  background: var(--row2-bg);
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
}
.topnav-row2-left,
.topnav-row2-right {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}
.topnav-link2 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0 13px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 2px solid transparent;
  transition: color .12s, border-color .12s;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}
.topnav-link2:hover { color: var(--green-brand); text-decoration: none; }
.topnav-link2.active { color: var(--green-brand); border-bottom-color: var(--green-brand); font-weight: 600; }

.topnav-badge {
  background: var(--green-brand);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.6;
}

/* Dropdowns */
.topnav-dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.topnav-link2-dd { cursor: pointer; }
.dd-chevron { transition: transform .15s; flex-shrink: 0; opacity: .6; }
.topnav-dropdown.open .dd-chevron { transform: rotate(180deg); }

.topnav-dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 6px;
  z-index: 300;
}
.topnav-dropdown-right .topnav-dd-menu { left: auto; right: 0; }
.topnav-dropdown.open .topnav-dd-menu { display: block; }

.topnav-dd-item {
  display: flex;
  flex-direction: column;
  padding: 9px 12px;
  border-radius: 7px;
  text-decoration: none;
  transition: background .1s;
  gap: 2px;
}
.topnav-dd-item:hover { background: var(--green-tint); text-decoration: none; }
.topnav-dd-item:hover .topnav-dd-label { color: var(--green-brand); }
.topnav-dd-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.topnav-dd-desc {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-body);
}
.topnav-dd-item-locked { opacity: .55; }
.lock-badge {
  font-size: 10px;
  background: #FEF3C7;
  color: #92400E;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-body);
}

/* Trial banner */
.trial-banner {
  background: #FEF3C7;
  border-bottom: 1px solid #FDE68A;
  padding: 8px 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #92400E;
  font-family: var(--font-body);
}
.trial-banner-urgent { background: #FEE2E2; border-bottom-color: #FCA5A5; color: #991B1B; }
.trial-banner-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 10px;
}

/* ── LAYOUT ── */
.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  min-height: calc(100vh - 94px);
}
.main {
  padding: 32px 28px;
  min-width: 0;
}
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 22px; font-weight: 700; }
.page-head p { color: var(--text-muted); margin-top: 5px; font-size: 13px; font-family: var(--font-body); }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.card + .card { margin-top: 20px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.card-header h2 { font-size: 15px; font-weight: 600; }

/* ── STAT CARDS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--green-tint);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-left: 3px solid var(--green-brand);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-value {
  font-family: var(--font-ui);
  font-size: 28px;
  font-weight: 700;
  color: var(--green-brand);
  line-height: 1;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.stat-compare {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}
.stat-compare.up { color: var(--ok); }
.stat-compare.down { color: var(--bad); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 5px;
  border: 1px solid var(--border-mid);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--green-mid); color: var(--green-brand); background: var(--green-mist); text-decoration: none; }
.btn:focus { outline: none; box-shadow: var(--focus-ring); }
.btn.ok { background: var(--green-brand); border-color: var(--green-brand); color: #fff; }
.btn.ok:hover { background: #005533; border-color: #005533; color: #fff; }
.btn.danger { color: var(--bad); border-color: rgba(153,27,27,.25); }
.btn.danger:hover { background: #FEF2F2; }
.btn.sm { padding: 5px 11px; font-size: 12px; border-radius: 4px; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--green-mist); border-color: transparent; }

/* ── INPUTS ── */
.input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color .12s, box-shadow .12s;
  outline: none;
  appearance: none;
}
.input:focus, select:focus, textarea:focus {
  border-color: var(--green-brand);
  box-shadow: var(--focus-ring);
}
textarea { min-height: 100px; resize: vertical; }
label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field { margin-bottom: 16px; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-family: var(--font-body); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── TABLES ── */
.table-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--surface);
  font-family: var(--font-body);
}
.table thead { background: var(--row2-bg); border-bottom: 1px solid var(--border); }
.table th {
  padding: 11px 14px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
  height: 52px;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--green-tint); }
.table a { color: var(--green-brand); font-weight: 600; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table .amount { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; white-space: nowrap; }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}
.badge.ok     { color: #005C2E; }
.badge.ok::before { background: var(--ok); }
.badge.warn   { color: #92400E; }
.badge.warn::before { background: var(--warn); }
.badge.bad    { color: var(--bad); }
.badge.bad::before { background: var(--bad); }
.badge.info   { color: #1E40AF; }
.badge.info::before { background: var(--info); }
.badge.muted  { color: var(--text-muted); }
.badge.muted::before { background: #9CA3AF; }

/* ── NOTICES ── */
.notice {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
  margin-bottom: 16px;
  font-family: var(--font-body);
}
.notice.ok   { background: #D6F2E5; border-color: rgba(0,135,81,.3); color: #004D29; }
.notice.bad  { background: #FEE2E2; border-color: rgba(153,27,27,.3); color: #7F1D1D; }
.notice.warn { background: #FEF3C7; border-color: rgba(180,83,9,.3); color: #78350F; }

.hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }

/* ── AUTH PAGES ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--page-bg);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.auth-header {
  background: var(--green-deep);
  padding: 32px;
  text-align: center;
}
.auth-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--green-brand);
}
.auth-header h1 {
  font-family: var(--font-ui);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.auth-header p { color: rgba(255,255,255,.65); font-size: 13px; }
.auth-body { padding: 32px; }

/* ── FOOTER ── */
.app-footer {
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  max-width: 1280px;
  margin: 0 auto;
}
.app-footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
}
.app-footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-footer-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-body);
  transition: color .12s;
}
.app-footer-link:hover { color: var(--green-brand); }
.app-footer-sep { font-size: 12px; color: var(--border); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card, .stat-card, .auth-card { animation: fadeUp .25s ease both; }
.stat-card:nth-child(2) { animation-delay: .05s; }
.stat-card:nth-child(3) { animation-delay: .10s; }
.stat-card:nth-child(4) { animation-delay: .15s; }

/* ── MOBILE REQUEST CARDS ── */
.mob-request-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s;
}
.mob-request-card:hover { box-shadow: var(--shadow-sm); text-decoration: none; }
.mob-request-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.mob-request-id { font-family: var(--font-ui); font-size: 11px; font-weight: 700; color: var(--green-brand); }
.mob-request-title { font-family: var(--font-ui); font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.mob-request-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 6px; margin-bottom: 6px; }
.mob-request-amount { font-family: var(--font-ui); font-size: 17px; font-weight: 700; color: var(--green-brand); font-variant-numeric: tabular-nums; }

.mob-finance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
}
.mob-card-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mob-card-amount { font-family: var(--font-ui); font-size: 19px; font-weight: 700; color: var(--green-brand); margin: 6px 0; font-variant-numeric: tabular-nums; }

/* ── DESKTOP/MOBILE VISIBILITY ── */
.desktop-only { display: block; }
.mobile-only  { display: none;  }

/* ── MOBILE TOP BAR ── */
.mob-topbar { display: none; }

/* ── MOBILE BOTTOM TAB BAR ── */
.mob-tabnav { display: none; }

/* ── MOBILE PANEL ── */
.mob-panel { display: none; }
.mob-panel-overlay { display: none; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — 900px breakpoint
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Hide desktop nav, show mobile */
  .desktop-topnav { display: none !important; }
  .desktop-only   { display: none !important; }
  .mobile-only    { display: block !important; }

  /* Layout adjustments */
  .layout { grid-template-columns: 1fr; }
  .main {
    padding: 16px;
    padding-bottom: 90px;
  }
  .grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 19px; }
  .app-footer { display: none; }

  /* Table scrolling */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 520px; font-size: 12px; }
  .table th, .table td { padding: 9px 10px; white-space: nowrap; }

  /* Mobile top bar */
  .mob-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--green-deep);
    height: 52px;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid #1A3D28;
  }
  .mob-topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }
  .mob-topbar-menu {
    background: none;
    border: none;
    color: #A8C4B0;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s, color .12s;
  }
  .mob-topbar-menu:hover { background: #1A3D28; color: #fff; }

  /* Bottom tab bar */
  .mob-tabnav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--green-deep);
    border-top: 1px solid #1A3D28;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: flex-start;
  }
  .mob-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 10px;
    text-decoration: none;
    color: #5A8870;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 52px;
    transition: color .12s;
    position: relative;
  }
  .mob-tab svg {
    width: 21px; height: 21px;
    stroke: currentColor;
    display: block;
  }
  .mob-tab.active { color: #fff; }
  .mob-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
  }
  .mob-tab:hover { color: #A8C4B0; }

  /* Overlay */
  .mob-panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1001;
  }
  .mob-panel-overlay.open { display: block; }

  /* Right-side panel */
  .mob-panel {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    z-index: 1002;
    background: var(--green-deep);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.32,.72,0,1);
    display: flex;
    flex-direction: column;
  }
  .mob-panel.open { transform: translateX(0); }

  .mob-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 14px;
    border-bottom: 1px solid #1A3D28;
    flex-shrink: 0;
  }
  .mob-panel-brand { display: flex; align-items: center; gap: 8px; }
  .mob-panel-close {
    background: none;
    border: none;
    color: #5A8870;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: background .12s, color .12s;
  }
  .mob-panel-close:hover { background: #1A3D28; color: #fff; }

  .mob-panel-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #1A3D28;
    flex-shrink: 0;
  }
  .mob-panel-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--green-brand);
    border: 2px solid #1A6640;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-ui);
    font-size: 12px; font-weight: 700;
    color: #fff; flex-shrink: 0;
  }
  .mob-panel-username {
    font-family: var(--font-ui);
    font-size: 13px; font-weight: 600;
    color: #E0EDE6;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mob-panel-userrole {
    font-size: 11px; color: #5A8870;
    text-transform: capitalize;
    margin-top: 1px;
  }

  .mob-panel-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .mob-panel-section { padding: 8px 0; }
  .mob-panel-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #3D6B52;
    padding: 4px 8px 6px;
  }
  .mob-panel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #A8C4B0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    transition: background .12s, color .12s;
    margin-bottom: 1px;
  }
  .mob-panel-item svg { flex-shrink: 0; opacity: .7; }
  .mob-panel-item:hover, .mob-panel-item.active {
    background: #1A3D28;
    color: #fff;
    text-decoration: none;
  }
  .mob-panel-item:hover svg, .mob-panel-item.active svg { opacity: 1; }
  .mob-panel-item-danger { color: #F87171; }
  .mob-panel-item-danger:hover { background: rgba(153,27,27,.3); color: #FCA5A5; }
  .mob-panel-item-locked { opacity: .5; }
  .mob-panel-item-locked:hover { background: #1A3D28; color: #A8C4B0; }
  .mob-lock-badge {
    font-size: 10px;
    background: rgba(254,243,199,.15);
    color: #FCD34D;
    border: 1px solid rgba(252,211,77,.2);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    margin-left: 4px;
  }

  .mob-panel-legal {
    padding: 12px 10px 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .mob-panel-legal-link {
    font-size: 11px;
    color: #3D6B52;
    text-decoration: none;
    font-family: var(--font-body);
  }
  .mob-panel-legal-link:hover { color: #A8C4B0; }
  .mob-panel-legal-sep { font-size: 11px; color: #1A3D28; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .auth-body  { padding: 24px 16px; }
}
