:root {
  --navy: #10215c;
  --navy-deep: #0b1744;
  --blue: #2454d6;
  --pink: #ef3b8d;
  --ink: #10215c;
  --muted: #64748b;
  --line: #e6eaf3;
  --bg: #f4f7fb;
  --good: #2454d6;
  --warn: #d97706;
  --bad: #ef4444;
  --sidebar: 252px;
  --radius: 16px;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 15px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid rgba(239, 59, 141, 0.45); outline-offset: 2px; }

.login {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px 64px 120px;
  overflow: hidden;
  background:
    radial-gradient(820px 460px at 8% 0%, rgba(36, 84, 214, 0.16), transparent 62%),
    radial-gradient(640px 380px at 96% 8%, rgba(239, 59, 141, 0.12), transparent 58%),
    linear-gradient(180deg, #f8fafc 0%, #eef3fb 100%);
}
.login::before, .login::after { content: ""; position: absolute; pointer-events: none; }
.login::before {
  left: -12%;
  right: -8%;
  bottom: -90px;
  height: 190px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(90deg, #10215c 0%, #2454d6 58%, #ef3b8d 100%);
  transform: rotate(-3deg);
}
.login::after {
  left: -14%;
  width: 62%;
  bottom: -70px;
  height: 120px;
  border-radius: 50% 70% 0 0;
  background: #10215c;
}
.login-brand {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
}
.login-brand img { width: min(460px, 100%); height: auto; background: transparent; }
.login-stage {
  position: relative;
  z-index: 1;
  flex: 0 1 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: transparent;
}
.login-art, .login-panel { position: relative; z-index: 1; }
.login-art { display: flex; flex-direction: column; justify-content: center; }
.login-art img { width: 100%; background: transparent; }
.login-art .pitch { margin: 4px 0 0; max-width: 420px; color: #31406b; font-size: 22px; font-weight: 700; line-height: 1.35; }
.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin: 0;
  background: white;
  border-radius: 28px;
  padding: 28px 26px 18px;
  box-shadow: 0 24px 60px rgba(16, 33, 92, 0.14);
}
.login-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #10215c;
  color: white;
}
.login-avatar .icon { position: static; transform: none; color: white; }
.login-avatar .icon svg { width: 30px; height: 30px; }
.accent { width: 84px; height: 4px; border-radius: 99px; margin: 0 auto 18px; background: linear-gradient(90deg, #2454d6, #ef3b8d); }
.login-card h2 { margin: 0; text-align: center; color: var(--navy); font-size: 34px; letter-spacing: -0.03em; }
.lede { color: var(--muted); text-align: center; margin: 8px 0 22px; font-size: 15px; }
.stack { display: grid; gap: 14px; }
.field { position: relative; }
.field .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #8b93a7; }
.field input { padding-left: 40px; }
.field .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #8b93a7; padding: 4px; }
label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
input, select, textarea {
  width: 100%;
  border: 1px solid #dfe4ef;
  background: white;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login .field input { padding-left: 44px; }
.login .field:has(.eye) input { padding-right: 44px; }
input:hover, select:hover, textarea:hover { border-color: #c9d2e4; }
input:focus, select:focus, textarea:focus { border-color: #8ea4e8; box-shadow: 0 0 0 3px rgba(36, 84, 214, 0.12); outline: none; }
textarea { min-height: 76px; resize: vertical; }
.btn {
  border: 0;
  border-radius: 14px;
  min-height: 48px;
  padding: 12px 16px;
  font-weight: 750;
  font-size: 15px;
  color: white;
  background: linear-gradient(90deg, #1e3a8a 0%, #2454d6 46%, #ef3b8d 100%);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16, 33, 92, 0.16); }
.btn.ghost, .btn.danger { background: white; color: var(--navy); border: 1px solid var(--line); }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; }
.btn.full { width: 100%; border-radius: 14px; padding: 14px 16px; font-size: 16px; }
.demo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.demo-row button { text-align: left; background: #f7f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; transition: border-color .15s ease, background .15s ease; }
.demo-row button:hover { border-color: #c9b6ff; background: white; }
.demo-row strong { display: block; color: var(--navy); font-size: 13px; }
.demo-row span { color: var(--muted); font-size: 12px; }
.help-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0 8px; }
.help-line::before, .help-line::after { content: ""; height: 1px; background: var(--line); flex: 1; }

.app-shell { display: flex; align-items: flex-start; min-height: 100vh; background: var(--bg); }
.app-main { min-width: 0; flex: 1; }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 252px;
  flex: 0 0 252px;
  overflow: hidden;
  background: #10215c;
  color: white;
  padding: 16px 14px;
}
.nav-label { margin: 14px 8px 6px; color: #94a3b8; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.brand { background: white; border-radius: 14px; padding: 8px 10px; }
.brand img { width: 100%; }
.who { display: flex; gap: 10px; align-items: center; margin: 16px 8px 10px; }
.who strong { display: block; font-size: 14px; }
.who span, .tagline { color: rgba(255,255,255,.65); font-size: 12px; }
.avatar, .avatar-lg {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: #e8eeff; color: var(--navy); font-weight: 800; font-size: 14px; flex: 0 0 auto;
}
.nav { display: flex; flex-direction: column; gap: 4px; overflow: auto; margin-top: 8px; flex: 1; min-height: 0; }
.nav a {
  display: flex; gap: 10px; align-items: center;
  color: rgba(255,255,255,.82);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.nav a.active { background: rgba(255,255,255,.08); color: white; box-shadow: inset 3px 0 0 #ef3b8d; }
.nav a:hover { background: rgba(255,255,255,.06); color: white; }
.side-foot { margin-top: auto; padding-top: 10px; }
.sidebar .btn.ghost {
  width: 100%; color: white; border-color: rgba(255,255,255,.22); background: transparent;
  display: flex; gap: 8px; justify-content: center; align-items: center;
}
.tagline { margin: 8px 4px 0; }

.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 24px;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(10px);
}
.topbar strong { font-size: 16px; }
.top-gap { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bell { position: relative; width: 38px; height: 38px; border-radius: 50%; background: white; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); transition: transform .15s ease; }
.bell:hover { transform: translateY(-1px); }
.bell b { position: absolute; top: -2px; right: -2px; background: var(--pink); color: white; border-radius: 99px; font-size: 10px; min-width: 16px; height: 16px; display: grid; place-items: center; }
.menu-btn, .icon-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: white; display: inline-grid; place-items: center;
}
.crumb { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.crumb a { color: var(--blue); }
.page-head h1, .title-row h1, .banner h1 { margin: 0; color: var(--navy); font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; }
.page-head h1::after, .title-row h1::after {
  content: ""; display: block; width: 46px; height: 3px; margin-top: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
}
.page-head p, .title-row p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

.banner {
  background: linear-gradient(120deg, #10215c 0%, #2454d6 62%, #ef3b8d 140%);
  color: white; border-radius: 18px; padding: 24px 28px; margin-bottom: 16px;
  position: relative; overflow: hidden; min-height: 148px;
}
.banner::after {
  content: ""; position: absolute; right: -20px; top: -30px; width: 280px; height: 220px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), transparent 40%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 10px, transparent 10px 22px);
  mask-image: linear-gradient(90deg, transparent, #000 20%);
}
.banner-action {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: min(100%, 280px);
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: white;
  color: #10215c;
  text-align: left;
  box-shadow: 0 10px 24px rgba(8, 16, 48, 0.18);
}
.banner-action strong { font-size: 14px; line-height: 1.3; }
.banner-action span { color: #64748b; font-size: 12px; font-weight: 650; line-height: 1.35; }
.banner h1, .banner p { position: relative; z-index: 1; }
.banner h1 { color: white; font-size: 32px; }
.banner h1::after { content: ""; display: block; width: 52px; height: 3px; margin-top: 10px; border-radius: 99px; background: #ef3b8d; }
.banner p { margin: 8px 0 0; color: rgba(255,255,255,.86); font-size: 15px; }
.apt-chip { position: relative; z-index: 1; background: white; color: var(--ink); border-radius: 14px; padding: 14px 16px; min-width: 210px; }
.apt-chip span, .apt-chip em { display: block; color: var(--muted); font-size: 12px; font-style: normal; }
.apt-chip strong { display: block; color: var(--navy); font-size: 20px; }
.apt-chip b { color: var(--navy); }

.stat, .card, .unit, .mini {
  background: white; border-radius: 16px; border: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: transform .16s ease, box-shadow .16s ease;
}
.stat:hover, .unit:hover, .mini:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(16, 33, 92, 0.08); }
.stat { padding: 16px 18px; display: flex; gap: 12px; align-items: center; }
.stat p, .stat span { margin: 0; color: var(--muted); font-size: 13px; }
.stat strong { display: block; font-size: 22px; color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; }
.bubble { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--blue); flex: 0 0 auto; }
.bubble.pink { background: var(--pink); }
.bubble.green { background: #2454d6; }
.bubble.amber { background: #f59e0b; }
.bubble.navy { background: var(--navy); }
.card { padding: 16px 18px; margin-bottom: 16px; }
.card h3, .card-head h3 { margin: 0; font-size: 16px; }
.card-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.card-head a, .link { color: var(--pink); font-size: 13px; font-weight: 750; }
.mini-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mini, .unit { padding: 16px; display: block; }
.unit { border-left: 4px solid #2454d6; position: relative; }
.unit.vacant { border-left-color: #ef3b8d; }
.unit.long-vacant { border-left-color: #be185d; }
.unit.maintenance { border-left-color: #f59e0b; }
.unit .code { font-size: 22px; }
.unit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (min-width: 701px) {
  .unit-actions { max-height: 0; margin-top: 0; overflow: hidden; opacity: 0; transition: opacity 0.15s ease, max-height 0.15s ease, margin 0.15s ease; }
  .unit:hover .unit-actions, .unit:focus-within .unit-actions { max-height: 80px; margin-top: 12px; opacity: 1; }
}
.pulse-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 99px; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); animation: pulse-dot 1.4s infinite; vertical-align: middle; }
.pulse-dot.amber { background: #f59e0b; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 8px transparent; } }
.unit:hover, .mini:hover { border-color: #d5dced; }
.unit-top, .row-between, .filters, .actions, .toolbar { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.unit .code { font-size: 18px; font-weight: 800; color: var(--navy); margin: 8px 0 4px; letter-spacing: -0.02em; }
.rent { color: var(--navy); font-size: 15px; }
.unit-meta { display: grid; gap: 3px; color: var(--muted); font-size: 13px; }
.unit-meta b { color: var(--navy); font-weight: 700; }
.muted { color: var(--muted); }
.toolbar { margin-bottom: 12px; }
.toolbar input, .toolbar select, .filters input, .filters select { width: auto; min-width: 140px; background: white; }
.toolbar input { flex: 1; min-width: 180px; }
.count-pills { display: flex; gap: 8px; }
.count-pills div { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; min-width: 108px; }
.count-pills span { display: block; color: var(--muted); font-size: 12px; }
.count-pills strong { color: var(--navy); font-size: 22px; }
.count-pills .pink strong { color: var(--pink); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th { text-align: left; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; }
td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.band { border-radius: 14px 14px 0 0; color: white; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.band.navy { background: var(--navy); }
.band.pink { background: linear-gradient(90deg, #7a4dff, #ef3b8d); }
.band h3 { margin: 0; font-size: 15px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .table-wrap { padding: 0 6px 8px; }
.activity { display: grid; }
.activity a, .activity div { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.activity strong { display: block; font-size: 14px; }
.activity span { color: var(--muted); font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 750; background: #eef1f8; color: var(--navy); }
.pill.overdue, .pill.failed { background: #ffe4ea; color: var(--bad); }
.pill.paid, .pill.completed, .pill.occupied, .pill.done, .pill.active { background: #e7eeff; color: #1e3a8a; }
.pill.due, .pill.pending, .pill.in_progress, .pill.maintenance { background: #fff4df; color: var(--warn); }
.pill.vacant { background: #ffe4f1; color: #c2186a; }
.pill.momo { background: #ffe4f1; color: #be185d; }
.pill.manager, .pill.owner { background: #e7eeff; color: #1e3a8a; }
.pill.tenant { background: #ecebff; color: #4338ca; }
.note { background: white; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid #ffd0e4; font-size: 13px; }
.note strong { color: #c2186a; }
.empty { padding: 18px 8px; text-align: center; color: var(--muted); font-size: 13px; }
.loading { display: grid; place-items: center; min-height: 30vh; gap: 8px; color: var(--navy); font-weight: 750; }
.spinner, .pulse { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(36,84,214,.2); border-top-color: var(--pink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wait { display: grid; justify-items: center; gap: 6px; padding: 18px 8px; text-align: center; }
.choice { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; }
.choice input { width: auto; margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal .form-grid { grid-template-columns: 1fr; }
.modal .btn { width: 100%; }
.repair-list, .card .repair-item { margin-bottom: 10px; }
.repair-item { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; background: white; }
.repair-item p { margin: 0; }
.repair-item .actions, .job-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.job-list { display: grid; gap: 12px; }
.job { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 10px; box-shadow: 0 8px 20px rgba(16, 33, 92, 0.04); }
.job header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job header p, .job-text, .job-note { margin: 0; }
.job header p { color: var(--muted); font-size: 13px; }
.job-text { color: var(--navy); line-height: 1.45; }
.job-status, .job select { border: 1px solid var(--line); border-radius: 999px; background: #f4f7fb; padding: 8px 12px; font-weight: 700; }
.job.open { border-top: 4px solid #ef3b8d; }
.job.in_progress { border-top: 4px solid #2454d6; }
.job.done { border-top: 4px solid #16a34a; }
.thread { display: grid; gap: 8px; }
.job-note { border-radius: 14px; padding: 8px 12px; font-size: 14px; }
.job-note span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.job-note.ours { background: #eef3ff; }
.job-note.theirs { background: #fff4f8; }
.job-compose { display: flex; gap: 8px; }
.job-compose input { flex: 1; }
.job-compose .btn { width: auto; }
.stat { text-decoration: none; color: inherit; }
.stat .btn.small { display: inline-flex; min-height: 0; margin-top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.4; }
.full { grid-column: 1 / -1; }
.modal-back { position: fixed; inset: 0; background: rgba(10, 18, 48, .46); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal { width: min(560px, 100%); background: white; border-radius: 16px; padding: 14px; max-height: min(88vh, 760px); overflow: auto; }
.modal.receipt-view { width: min(760px, calc(100% - 24px)); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.receipt-sheet { overflow: auto; border-radius: 12px; background: #e7edf5; }
.receipt-sheet canvas { width: 100%; height: auto; display: block; background: white; }
.receipt-actions { display: inline-flex; align-items: center; gap: 6px; }
.peek-bar { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: #fff4f8; color: #10215c; font-weight: 700; }
.peek-bar a { color: #2454d6; margin-left: 8px; }
.modal h2 { margin: 0; color: var(--navy); font-size: 18px; }
.backdrop { display: none; }
#toasts { position: fixed; right: 12px; bottom: 12px; display: grid; gap: 8px; z-index: 50; }
.toast { background: var(--navy); color: white; border-radius: 10px; padding: 10px 12px; max-width: 280px; font-size: 13px; }
.toast.bad { background: var(--bad); }
.icon svg { width: 18px; height: 18px; display: block; }
.chart { width: 100%; height: 220px; display: block; }
.chart.trend { height: 280px; }
.doc-card {
  background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  display: grid; align-content: start; gap: 8px;
  box-shadow: 0 8px 20px rgba(16, 33, 92, 0.04);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.doc-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(16, 33, 92, 0.08); }
.doc-card.active { border-color: #b7a4ff; box-shadow: 0 12px 28px rgba(122, 77, 255, 0.14); }
.doc-card h3 { margin: 0; color: var(--navy); font-size: 16px; }
.doc-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.doc-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, #2454d6, #ef3b8d); }
.doc-card .actions { margin-top: 4px; }
.viewer-frame { background: #eef2f8; border-radius: 12px; overflow: hidden; }
.viewer-frame iframe { width: 100%; height: 100%; border: 0; background: white; }
.split { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.big-balance { font-size: 22px; margin: 2px 0; color: var(--navy); }

.menu-veil { display: none; }
.menu-veil.show { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(16, 33, 92, 0.46); }
.bottom-nav { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: white; }
.bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 10px; color: #64748b; font-size: 11px; font-weight: 700; }
.bottom-nav a.on { color: #ef3b8d; }
.menu-btn { display: inline-grid; width: 44px; height: 44px; place-items: center; border: 0; }
.login-logo { width: min(100%, 340px); margin: 8px auto 4px; }
.login-card h2 { font-size: 32px; }
.forgot { display: block; width: 100%; margin-top: 14px; border: 0; background: transparent; color: #2454d6; font-weight: 800; font-size: 15px; }
.login-foot { position: relative; z-index: 1; margin-top: 28px; text-align: center; color: #10215c; }
.login-foot strong { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 15px; }
.login-foot strong::before, .login-foot strong::after { content: ""; width: 42px; height: 1px; background: #2454d6; }
.login-foot em { display: block; margin-top: 4px; font-style: italic; font-weight: 650; }
.login-sky { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; }
.login .btn.login-go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #10215c;
  border-radius: 999px;
  min-height: 52px;
  box-shadow: 0 10px 24px rgba(16, 33, 92, 0.22);
  font-size: 17px;
}
.login .btn.login-go .icon { position: static; transform: none; color: white; }
.login .forgot { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: #64748b; font-weight: 650; font-size: 14px; }
.login .forgot::before, .login .forgot::after { content: ""; height: 1px; flex: 1; background: #e2e8f0; }
.login .demo-row { margin-top: 14px; gap: 8px; }
.login .demo-row button { display: flex; align-items: center; gap: 8px; padding: 10px 8px; border-radius: 16px; background: #f4f6fb; }
.login .demo-row .icon { position: static; transform: none; color: #10215c; flex: 0 0 auto; }
.login .demo-row .icon svg { width: 16px; height: 16px; }
.login .demo-row em { display: block; color: var(--muted); font-size: 11px; font-style: normal; font-weight: 650; }

@media (max-width: 1023px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
}
@media (min-width: 1024px) {
  .menu-btn, .bottom-nav, .menu-veil.show { display: none; }
}
.due-card { background: white; border-radius: 16px; box-shadow: 0 16px 40px rgba(16, 33, 92, 0.08); padding: 22px; margin-bottom: 16px; }
.due-card h2 { margin: 0 0 6px; color: var(--navy); }
.due-card .amount { margin: 8px 0 12px; font-size: 36px; font-weight: 800; color: #10215c; letter-spacing: -0.03em; }
.due-badge { display: inline-flex; background: #fee2e2; color: #b91c1c; border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.momo-btn, .airtel-btn { height: 56px; width: 100%; margin-top: 8px; border: 0; border-radius: 14px; color: white; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.momo-btn { background: #16a34a; }
.airtel-btn { background: #ed1c24; }
.momo-mark { background: #ffcb05; color: #1a1a1a; border-radius: 6px; padding: 2px 6px; font-size: 12px; font-weight: 800; }
.pay-tabs { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.pay-tabs button, .pay-tabs label { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 12px; font-weight: 700; }
.pay-tabs button.on { background: #10215c; color: white; }
#install-app { position: fixed; z-index: 40; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; width: min(440px, calc(100% - 24px)); padding: 10px 10px 10px 14px; border-radius: 16px; background: #10215c; color: white; box-shadow: 0 12px 30px rgba(16, 33, 92, 0.28); }
#install-app[hidden] { display: none; }
#install-app p { margin: 0; flex: 1; font-size: 13px; font-weight: 700; line-height: 1.35; }
#install-app .go { border: 0; border-radius: 999px; background: #ef3b8d; color: white; font-weight: 800; font-size: 13px; padding: 8px 12px; min-height: 36px; }
#install-app .x { border: 0; background: transparent; color: white; width: 32px; height: 32px; font-size: 20px; line-height: 1; }
@media (max-width: 1023px) {
  body:has(.bottom-nav) #install-app { bottom: 76px; }
}
#momo-wait { text-align: center; padding: 16px 8px; }
.confetti { height: 10px; border-radius: 99px; margin-bottom: 12px; background: linear-gradient(90deg, #2454d6, #ef3b8d, #ffcb05); }
.login-ribbon { display: none; }
@media (min-width: 900px) {
  .login-card { box-shadow: 0 28px 70px rgba(16, 33, 92, 0.16); }
}

@media (max-width: 700px) {
  .form-grid, .demo-row { grid-template-columns: 1fr; }
  .banner h1, .page-head h1, .title-row h1 { font-size: 22px; }
  .banner-action { width: 100%; }
  .toolbar input, .toolbar select, .filters input, .filters select { width: 100%; }
}
@media (max-width: 900px) {
  .login { flex-direction: column; height: auto; min-height: 100dvh; overflow: auto; justify-content: flex-start; padding: 28px 16px 110px; }
  .login-brand { flex: none; width: 100%; padding: 8px 12px 0; }
  .login-brand img { width: min(280px, 78%); }
  .login-stage { flex: none; width: 100%; padding: 0 0 12px; }
  .login-card { width: min(440px, 100%); padding: 24px 18px 16px; }
  .login .demo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .login .demo-row { grid-template-columns: 1fr; }
}
