/* InvestTrack Pro - Complete Self-Contained CSS */
/* No external dependencies - works on all servers */

:root {
  --blue: #2563eb;
  --blue-dk: #1d4ed8;
  --blue-lt: #eff6ff;
  --blue-bd: #bfdbfe;
  --navy: #0f172a;
  --navy2: #1e293b;
  --bg: #f1f5f9;
  --white: #ffffff;
  --tx1: #0f172a;
  --tx2: #475569;
  --tx3: #94a3b8;
  --line: #e2e8f0;
  --line2: #cbd5e1;
  --green: #16a34a; --gbg: #f0fdf4; --gbd: #86efac;
  --red: #dc2626;   --rbg: #fef2f2; --rbd: #fca5a5;
  --amber: #d97706; --abg: #fffbeb; --abd: #fcd34d;
  --violet: #7c3aed; --vbg: #f5f3ff; --vbd: #c4b5fd;
  --sh: 0 1px 3px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  --sh2: 0 4px 16px rgba(0,0,0,.1);
  --sh3: 0 8px 32px rgba(0,0,0,.14);
  --r: 12px;
  --sw: 250px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--tx1);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── SIDEBAR ── */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.sidebar-overlay.show { opacity: 1; pointer-events: all; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sw);
  background: var(--navy);
  display: flex; flex-direction: column;
  z-index: 200; overflow-y: auto;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}

.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.brand-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-name { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.brand-sub  { display: block; font-size: 9px; font-weight: 700; color: #fbbf24; letter-spacing: 1.2px; text-transform: uppercase; }
.sidebar-close {
  display: none; margin-left: auto;
  background: none; border: none;
  color: rgba(255,255,255,.4); font-size: 20px; cursor: pointer; padding: 4px;
  border-radius: 6px; line-height: 1; flex-shrink: 0;
}

.sidebar-nav { flex: 1; padding: 12px 10px; }
.nav-grp { font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px;
  color: rgba(148,163,184,.45); text-transform: uppercase; padding: 10px 8px 4px; }
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 9px;
  color: rgba(148,163,184,.85); font-weight: 500; font-size: 13px;
  margin-bottom: 1px; transition: all .15s; cursor: pointer;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: var(--blue); color: #fff; }
.ni { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
}
.s-av {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.s-name { display: block; color: #fff; font-size: 12px; font-weight: 600; }
.s-role { display: block; color: rgba(148,163,184,.6); font-size: 10px; }
.s-out  { color: rgba(148,163,184,.6); font-size: 16px; flex-shrink: 0; transition: color .15s; }
.s-out:hover { color: #ef4444; }

/* ── LAYOUT ── */
.main-wrap { margin-left: var(--sw); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: 58px; background: var(--white); border-bottom: 1px solid var(--line);
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50; gap: 10px; flex-shrink: 0;
}
.topbar-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.menu-btn {
  display: none; background: none; border: none;
  font-size: 20px; cursor: pointer; color: var(--tx2);
  padding: 6px; border-radius: 8px; flex-shrink: 0; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.page-title { font-size: 15px; font-weight: 700; color: var(--tx1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-sub   { font-size: 11px; color: var(--tx3); white-space: nowrap; margin-top: 1px; }
.topbar-titles { min-width: 0; }
.kpi-body { flex: 1; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }

.content { padding: 18px 20px; flex: 1; }

/* ── KPI CARDS ── */
.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--line); padding: 16px;
  display: flex; align-items: flex-start; gap: 12px;
  box-shadow: var(--sh);
}
.kpi-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.kpi-icon.blue, .ic-blue { background: #dbeafe; }
.kpi-icon.green, .ic-green { background: #dcfce7; }
.kpi-icon.amber, .ic-amber { background: #fef9c3; }
.kpi-icon.violet, .ic-violet { background: #ede9fe; }
.kpi-icon.rose, .ic-rose { background: #ffe4e6; }
.kpi-icon.teal, .ic-teal { background: #ccfbf1; }
.kpi-lbl { font-size: 10.5px; font-weight: 600; color: var(--tx3); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.kpi-val { font-size: 20px; font-weight: 800; color: var(--tx1); line-height: 1.2; }
.kpi-val.sm { font-size: 15px; letter-spacing: -.3px; }
.kpi-sub { font-size: 11px; color: var(--tx3); margin-top: 2px; }
.kpi-bar { height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.kpi-bar-fill { height: 100%; border-radius: 99px; }

/* ── CARD ── */
.card { background: var(--white); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--sh); }
.card-head {
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.card-head h3,.card-head .ch { font-size: 13px; font-weight: 700; color: var(--tx1); }
.card-body,.card-bd { padding: 16px; }
/* legacy compat */
.card-header { padding: 13px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-title  { font-size: 13px; font-weight: 700; }

/* ── TABLE ── */
.tbl-scroll,.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table,table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table thead th, table thead th {
  padding: 9px 12px; text-align: left;
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--tx3);
  background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table tbody td, table tbody td {
  padding: 11px 12px; border-bottom: 1px solid var(--line);
  font-size: 13px; vertical-align: middle;
}
.data-table tbody tr:last-child td, table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover, table tbody tr:hover { background: #f8fafc; }

/* ── TAGS/BADGES ── */
.tag,.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 99px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.tag-green,.badge-success  { background: var(--gbg); color: var(--green); border: 1px solid var(--gbd); }
.tag-red,.badge-danger     { background: var(--rbg); color: var(--red);   border: 1px solid var(--rbd); }
.tag-amber,.badge-warning  { background: var(--abg); color: var(--amber); border: 1px solid var(--abd); }
.tag-blue,.badge-blue      { background: var(--blue-lt); color: var(--blue); border: 1px solid var(--blue-bd); }
.tag-violet                { background: var(--vbg); color: var(--violet); border: 1px solid var(--vbd); }
.tag-gray,.badge-gray      { background: #f8fafc; color: var(--tx2); border: 1px solid var(--line); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 15px; border-radius: 8px; border: none;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: all .15s;
}
.btn-primary  { background: var(--blue); color: #fff; }
.btn-primary:hover  { background: var(--blue-dk); }
.btn-primary:active { background: var(--blue-dk); transform: scale(.97); }
.btn-ghost    { background: transparent; color: var(--tx2); border: 1.5px solid var(--line); }
.btn-ghost:hover    { background: var(--bg); }
.btn-outline  { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover  { background: var(--blue-lt); }
.btn-danger   { background: var(--rbg); color: var(--red); border: 1px solid var(--rbd); }
.btn-success  { background: var(--gbg); color: var(--green); border: 1px solid var(--gbd); }
.btn-sm  { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn-xs  { padding: 3px 8px;  font-size: 11px; border-radius: 6px; }

/* ── FORMS ── */
.field,.form-group { display: flex; flex-direction: column; gap: 5px; }
.field-label,.form-label {
  font-size: 11px; font-weight: 600; color: var(--tx2);
  text-transform: uppercase; letter-spacing: .4px;
}
.field-input,.form-control {
  padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: 9px; font-family: inherit; font-size: 14px;
  color: var(--tx1); background: var(--white);
  outline: none; width: 100%;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.field-input:focus,.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
select.field-input, select.form-control { cursor: pointer; }
textarea.field-input, textarea.form-control { resize: vertical; min-height: 78px; }
.fgrid   { display: grid; gap: 13px; }
.fgrid-2 { grid-template-columns: 1fr 1fr; }

/* ── MODAL ── */
.overlay,.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 300; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
  padding: 16px;
}
.overlay.open,.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: 18px;
  width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--sh3);
  transform: translateY(14px); transition: transform .2s;
}
.overlay.open .modal,.modal-overlay.open .modal { transform: none; }
.modal-lg { max-width: 620px; }
.modal-head,.modal-header {
  padding: 16px 18px 13px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.modal-title { font-size: 14px; font-weight: 700; }
.modal-close {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--tx3); flex-shrink: 0;
}
.modal-body { padding: 16px 18px; }
.modal-foot,.modal-footer {
  padding: 11px 18px; border-top: 1px solid var(--line);
  display: flex; gap: 8px; justify-content: flex-end;
  position: sticky; bottom: 0; background: var(--white);
}

/* ── ALERTS ── */
.alert {
  padding: 10px 14px; border-radius: 9px; margin-bottom: 14px;
  font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 7px;
}
.alert-success { background: var(--gbg); color: var(--green); border: 1px solid var(--gbd); }
.alert-danger  { background: var(--rbg); color: var(--red);   border: 1px solid var(--rbd); }
.alert-info    { background: var(--blue-lt); color: var(--blue); border: 1px solid var(--blue-bd); }

/* ── HERO CARD ── */
.hero-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-radius: 16px; padding: 20px; color: #fff;
  margin-bottom: 16px; display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
}
.hero-av {
  width: 48px; height: 48px; border-radius: 13px;
  background: rgba(37,99,235,.7); border: 2px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; flex-shrink: 0;
}
.hero-meta { flex: 1; min-width: 140px; }
.hero-meta h2 { font-size: 17px; font-weight: 800; }
.hero-meta p  { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 3px; }
.hero-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.hero-tag { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); padding: 2px 9px; border-radius: 99px; font-size: 10px; font-weight: 600; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.hstat { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; padding: 11px; text-align: center; }
.hstat-l { font-size: 9.5px; color: rgba(255,255,255,.45); text-transform: uppercase; font-weight: 700; }
.hstat-v { font-size: 13px; font-weight: 800; margin-top: 3px; letter-spacing: -.3px; }

/* ── TABS ── */
.tabs {
  display: flex; gap: 2px;
  background: #f8fafc; padding: 3px; border-radius: 10px;
  margin-bottom: 14px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1; min-width: max-content; padding: 7px 12px;
  border-radius: 7px; border: none; font-family: inherit;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .15s; color: var(--tx3); background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.tab.active { background: var(--white); color: var(--blue); box-shadow: var(--sh); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── MONTH GRID ── */
.month-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.month-card { border-radius: 10px; padding: 13px; border: 1.5px solid var(--line); background: var(--white); }
.month-card.credited     { border-color: var(--gbd); background: var(--gbg); }
.month-card.pending      { border-color: var(--abd); background: var(--abg); }
.month-card.not-credited { border-color: var(--rbd); background: var(--rbg); }
.mc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mc-mo   { font-size: 12px; font-weight: 700; }
.mc-row  { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 3px; }
.mc-row span:first-child { color: var(--tx3); }
.mc-row span:last-child  { font-weight: 700; }

/* ── RATE CARDS ── */
.rate-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.rate-card { border: 1.5px solid var(--line); border-radius: 13px; padding: 18px; }
.rate-card.is-default { border-color: var(--blue); background: var(--blue-lt); }
.rate-pills { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 11px 0; }
.rate-pill  { background: rgba(255,255,255,.8); border-radius: 8px; padding: 8px 5px; text-align: center; border: 1px solid var(--line); }
.rp-num { font-size: 16px; font-weight: 800; }
.rp-lbl { font-size: 9px; color: var(--tx3); font-weight: 600; text-transform: uppercase; margin-top: 2px; }
.rate-ex { background: #f8fafc; border-radius: 8px; padding: 9px 11px; font-size: 11.5px; color: var(--tx2); margin-bottom: 12px; line-height: 1.7; }

/* ── TYPE SELECTOR ── */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }
.type-card { border: 2px solid var(--line); border-radius: 11px; padding: 12px; cursor: pointer; text-align: center; user-select: none; -webkit-tap-highlight-color: transparent; transition: all .15s; }
.type-card.active { border-color: var(--blue); background: var(--blue-lt); }
.tc-icon { font-size: 22px; margin-bottom: 4px; }
.tc-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.tc-desc { font-size: 11px; color: var(--tx3); line-height: 1.4; }
.type-card.active .tc-desc { color: var(--blue); }

/* ── BOTTOM NAV ── */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: 58px; background: var(--white); border-top: 1px solid var(--line);
  z-index: 100; box-shadow: 0 -2px 10px rgba(0,0,0,.06);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bnav { display: flex; height: 100%; }
.bnav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  color: var(--tx3); font-size: 9.5px; font-weight: 600;
  -webkit-tap-highlight-color: transparent; transition: color .15s;
}
.bnav-item.active { color: var(--blue); }
.bnav-icon { font-size: 17px; line-height: 1; padding: 2px 10px; border-radius: 8px; }
.bnav-item.active .bnav-icon { background: var(--blue-lt); }

/* ── MISC ── */
.mono,.font-mono { font-family: "Courier New", Courier, monospace; letter-spacing: -.3px; }
.muted,.text-muted { color: var(--tx3); }
.mb-4 { margin-bottom: 14px; }
.mb-3 { margin-bottom: 10px; }
.empty-state { text-align: center; padding: 40px 16px; }
.empty-state-icon { font-size: 36px; margin-bottom: 10px; }
.empty-state h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.empty-state p  { font-size: 12px; color: var(--tx3); }
.filter-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.search-row { display: flex; align-items: center; gap: 7px; background: #f8fafc; border: 1.5px solid var(--line); border-radius: 9px; padding: 7px 11px; }
.search-row input { border: none; background: none; font-family: inherit; font-size: 13px; outline: none; flex: 1; min-width: 0; color: var(--tx1); }
.info-strip { border-radius: 9px; padding: 11px 14px; margin-bottom: 14px; font-size: 12px; line-height: 1.6; }
.info-strip.green { background: var(--gbg); color: var(--green); border: 1px solid var(--gbd); }
.info-strip.blue  { background: var(--blue-lt); color: var(--blue); border: 1px solid var(--blue-bd); }
.dash-grid { display: grid; gap: 14px; }

/* ── TABLET ≤960px ── */
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: var(--sh3); }
  .sidebar-close { display: flex; }
  .main-wrap { margin-left: 0; }
  .menu-btn { display: flex !important; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .rate-grid { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
}

/* ── MOBILE ≤640px ── */
@media (max-width: 640px) {
  .bottom-nav { display: flex; }
  .main-wrap { margin-left: 0; }
  .menu-btn { display: flex !important; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: var(--sh3); }
  .sidebar-close { display: flex; }

  .content {
    padding: 11px 11px !important;
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0) + 12px) !important;
  }

  .topbar { padding: 0 11px; height: 52px; }
  .page-title { font-size: 14px; }
  .page-sub { display: none; }
  .topbar-right .btn-ghost { display: none; }
  .topbar-right .btn-primary { padding: 7px 11px; font-size: 12px; }

  .kpi-row { grid-template-columns: 1fr 1fr !important; gap: 9px !important; }
  .kpi { padding: 12px 11px; gap: 9px; }
  .kpi-icon { width: 36px; height: 36px; font-size: 16px; border-radius: 9px; }
  .kpi-val { font-size: 17px; }
  .kpi-val.sm { font-size: 13px; }
  .kpi-bar { display: none; }

  .card-head,.card-header { padding: 11px 13px; }
  .card-body,.card-bd { padding: 12px 13px; }

  .fgrid-2 { grid-template-columns: 1fr; }

  .overlay,.modal-overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: 18px 18px 0 0; max-width: 100%; max-height: 92vh; transform: translateY(100%); }
  .overlay.open .modal,.modal-overlay.open .modal { transform: none; }
  .modal-head,.modal-header { padding: 13px 15px 11px; }
  .modal-body { padding: 13px 15px; }
  .modal-foot,.modal-footer { padding: 10px 15px; flex-direction: row; }
  .modal-foot .btn,.modal-footer .btn { flex: 1; justify-content: center; }
  .modal-lg { max-width: 100%; }

  .tbl-scroll,.table-wrap { margin: 0 -11px; }

  .month-grid { grid-template-columns: 1fr; }
  .rate-grid  { grid-template-columns: 1fr; }
  .type-grid  { grid-template-columns: 1fr 1fr; }

  .filter-form { flex-direction: column; gap: 8px; }
  .filter-form .field,.filter-form .form-group { min-width: unset !important; }
  .filter-form .btn { width: 100%; justify-content: center; }

  .dash-grid { grid-template-columns: 1fr !important; }
  .hero-card { padding: 14px; gap: 10px; }
  .hero-av   { width: 42px; height: 42px; font-size: 17px; }
  .hero-meta h2 { font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(3,1fr); gap: 7px; width: 100%; }
  .hstat { padding: 9px 5px; }
  .hstat-v { font-size: 12px; }

  .tabs { overflow-x: auto; }
  .tab  { font-size: 11.5px; padding: 7px 9px; }
}

@supports (padding: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(58px + env(safe-area-inset-bottom));
  }
}
