/* ═══════════════════════════════════════════════════════════
   ui2026.css - the November 2026 look (loaded after style.css
   and after each page's own styles, so it refines them all).
   Font: Plus Jakarta Sans (SIL OFL 1.1), served from this site.
   ═══════════════════════════════════════════════════════════ */
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
:root {
  --blue:       #2550E6;
  --blue-dark:  #1B3FC4;
  --blue-tint:  #ECF1FF;
  --blue-ring:  rgba(37,80,230,.18);
  --ink:        #0E1830;
  --ink-2:      #34405C;
  --muted:      #6A7591;
  --line:       #E4E9F2;
  --line-2:     #EFF2F8;
  --canvas:     #F3F5FA;
  --brand-grad: linear-gradient(135deg, #172E86 0%, #2550E6 58%, #5468FF 100%);
  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 1px 2px rgba(14,24,48,.04), 0 8px 24px -6px rgba(14,24,48,.08);
  --shadow-up:  0 18px 44px -12px rgba(14,24,48,.28);
  --font: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
body { font-family:var(--font); background:var(--canvas); }
button, input, select, textarea { font-family:inherit; }
.ui-i { display:block; flex-shrink:0; }

/* ── Top bar ── */
.rv-nav { height:62px; background:rgba(255,255,255,.82); border-bottom:1px solid rgba(228,233,242,.8); }
.rv-brand-mark { background:var(--brand-grad); box-shadow:0 6px 14px -4px rgba(37,80,230,.55); border-radius:11px; }
.rv-brand-name { font-weight:800; letter-spacing:.2px; }
.rv-avatar { box-shadow:0 0 0 2px #fff, 0 0 0 3.5px rgba(37,80,230,.25); }

/* ── Menu (drawer) ── */
.rv-drawer { width:min(318px, 88vw); border-right:none; background:#fff; }
.rv-drawer-head { padding:20px 18px 16px; background:linear-gradient(180deg,#F6F8FF,#fff); }
.rv-drawer-head .rv-avatar { border-radius:16px; box-shadow:none; }
.rv-drawer-name { font-weight:800; }
.rv-drawer-nav { padding:6px 10px 24px; }
.rv-link { padding:9px 10px; margin:1px 0; font-weight:600; font-size:14.5px; color:var(--ink-2); }
.rv-link-icon { width:34px; height:34px; border-radius:11px; background:var(--line-2); color:#4B587A; }
.rv-link:hover .rv-link-icon { color:var(--blue); }
.rv-link.active { background:var(--blue-tint); color:var(--blue); }
.rv-link.active .rv-link-icon { background:var(--blue); color:#fff; box-shadow:0 6px 14px -6px rgba(37,80,230,.8); }
.rv-group {
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin:10px 0 2px; padding:8px 10px; border:none; background:none; cursor:pointer; border-radius:10px;
  font:inherit; font-size:11.5px; font-weight:800; letter-spacing:.9px; text-transform:uppercase; color:#8A93AB;
}
.rv-group:hover { background:var(--line-2); color:var(--ink-2); }
.rv-group .ui-i { transition:transform .22s var(--ease); }
.rv-group.open { color:var(--ink-2); }
.rv-group.open .ui-i { transform:rotate(180deg); }
.rv-group-label { margin:14px 10px 4px; font-size:11.5px; font-weight:800; letter-spacing:.9px; text-transform:uppercase; color:#8A93AB; }
.rv-group-items { animation:uiDrop .2s var(--ease); }
@keyframes uiDrop { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }
.rv-link.logout { color:#C2362F; margin-top:14px; border-top:1px solid var(--line-2); border-radius:0; padding-top:16px; }
.rv-link.logout .rv-link-icon { background:#FDEEEE; color:#C2362F; }

/* ── Bottom bar (residents, phones) ── */
.rv-tabbar { display:none; }
@media (max-width:767px) {
  .rv-tabbar {
    display:grid; grid-template-columns:repeat(4,1fr); position:fixed; z-index:9996; left:10px; right:10px;
    bottom:calc(10px + env(safe-area-inset-bottom)); height:64px; padding:6px;
    background:rgba(255,255,255,.92); backdrop-filter:saturate(1.6) blur(16px); -webkit-backdrop-filter:saturate(1.6) blur(16px);
    border:1px solid rgba(228,233,242,.9); border-radius:22px; box-shadow:0 14px 34px -12px rgba(14,24,48,.30);
  }
  .rv-tabbar a {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
    border-radius:16px; color:#7C86A0; text-decoration:none; font-size:11px; font-weight:700; letter-spacing:.1px;
    transition:color .15s, background .15s;
  }
  .rv-tabbar a .tb-ic { display:grid; place-items:center; width:42px; height:28px; border-radius:999px; transition:background .2s, color .2s; }
  .rv-tabbar a.on { color:var(--blue); }
  .rv-tabbar a.on .tb-ic { background:var(--blue-tint); }
  .rv-tabbar a:active .tb-ic { transform:scale(.92); }
  body.has-tabbar { padding-bottom:calc(86px + env(safe-area-inset-bottom)); }
  body.has-tabbar .pprv-watermark { display:none; }
  body.has-tabbar .rv-toasts { bottom:auto; }
}

/* ── Surfaces ── */
.card, .d-card, .stat-card, .stat-tile, .pub-card { border-radius:var(--radius); border:1px solid var(--line); box-shadow:var(--shadow); }
.card-title { font-weight:800; letter-spacing:-.2px; }
.page-title { font-weight:800; letter-spacing:-.6px; }

/* ── Buttons & inputs ── */
.btn { border-radius:12px; font-weight:700; letter-spacing:.1px; }
.btn-primary { background:var(--brand-grad); background-size:140% 140%; background-position:0 0; border:none;
  box-shadow:0 1px 0 rgba(255,255,255,.2) inset, 0 10px 22px -10px rgba(37,80,230,.75); transition:background-position .4s, box-shadow .2s, transform .08s; }
.btn-primary:hover { background:var(--brand-grad); background-size:140% 140%; background-position:100% 0; }
.btn-secondary { background:#fff; border-color:var(--line); color:var(--ink-2); box-shadow:0 1px 2px rgba(14,24,48,.05); }
.form-group input, .form-group select, .form-group textarea { border-radius:12px; background:#FAFBFE; border-color:#E1E6F0; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { box-shadow:0 0 0 4px var(--blue-ring); }
.badge { font-weight:800; letter-spacing:.2px; }
.chip.on { background:var(--blue); border-color:var(--blue); box-shadow:0 6px 14px -8px rgba(37,80,230,.9); }
th { background:#F7F9FD; font-weight:700; letter-spacing:.2px; }

/* ── Resident home ── */
.hero-banner { background:var(--brand-grad) !important; }
.hero-banner::before { background:radial-gradient(circle, rgba(255,255,255,.16), transparent 65%) !important; width:360px !important; height:360px !important; }
.hero-name { font-weight:800; letter-spacing:-.6px; }
.role-badge { backdrop-filter:blur(6px); }
.stat-tile { border-radius:20px; }
.stat-tile-icon { width:44px; height:44px; border-radius:14px; font-size:0; }
.stat-tile.st-green .stat-tile-icon { background:#E7F8EE; color:#15803D; }
.stat-tile.st-amber .stat-tile-icon { background:#FEF3E2; color:#C2620A; }
.stat-tile.st-red   .stat-tile-icon { background:#FDECEC; color:#C62828; }
.stat-tile.st-blue  .stat-tile-icon { background:var(--blue-tint); color:var(--blue); }
.stat-tile-label { font-size:12px; color:#7A84A0; font-weight:700; }
.stat-tile-value { font-weight:800; letter-spacing:-.8px; }
.dash-alert { border-radius:16px; }

/* ── Admin dashboard ── */
.container > .hero-banner { background:var(--brand-grad) !important; border-radius:22px; box-shadow:0 18px 36px -20px rgba(23,46,134,.7); }
body .hero-banner .hero-title { font-weight:800; letter-spacing:-.3px; }
.st-icon { width:42px; height:42px; border-radius:13px; display:grid; place-items:center; font-size:0; margin-bottom:12px; }
.st-icon.t-green  { background:#E7F8EE; color:#15803D; }
.st-icon.t-red    { background:#FDECEC; color:#C62828; }
.st-icon.t-blue   { background:var(--blue-tint); color:var(--blue); }
.st-icon.t-violet { background:#F1ECFF; color:#6D3FE0; }

/* ── Login ── */
body.public .login-art.no-photo { background:var(--brand-grad); }
body.public .login-art.no-photo::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(600px 300px at 85% 10%, rgba(255,255,255,.18), transparent 60%),
             radial-gradient(500px 260px at 0% 100%, rgba(10,20,70,.35), transparent 60%);
}
.login-art h1 { font-weight:800; letter-spacing:-1.2px; }
.login-art .eyebrow { position:relative; display:inline-flex; align-items:center; gap:8px; padding:6px 12px; margin-bottom:14px; border-radius:999px;
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22); font-size:12px; font-weight:700; letter-spacing:.4px; backdrop-filter:blur(6px); width:max-content; }
.login-side h2 { font-weight:800; letter-spacing:-.8px; }
@media (max-width:820px) {
  body.public .login-art { min-height:250px; padding:30px 24px 64px; }
  body.public { background:#fff; }
  body.public .login-side { position:relative; z-index:2; margin-top:-34px; border-radius:26px 26px 0 0; box-shadow:0 -12px 30px -18px rgba(14,24,48,.35); flex:1; justify-content:flex-start; padding-top:30px; }
  body.public .login-side > .pub-brand { display:none !important; }   /* the blue header already shows the estate */
}
.login-trust { display:flex; align-items:center; gap:8px; margin-top:16px; font-size:12px; color:var(--muted); }
.login-trust .ui-i { color:#16A34A; }

/* ── "Verify your email" bar (Require email verification) ── */
.rv-verify-bar { display:flex; align-items:center; gap:10px; padding:11px 16px; background:var(--brand-grad); color:#fff; text-decoration:none; font-size:13px; line-height:1.4; }
.rv-verify-bar b { font-weight:800; }
.rv-verify-bar .go { margin-left:auto; white-space:nowrap; font-weight:800; background:rgba(255,255,255,.18); border-radius:999px; padding:5px 11px; }

/* ── Page polish ── */
.bill-amount { font-family:var(--font); font-variant-numeric:tabular-nums; font-weight:800; letter-spacing:-.2px; }
.stat-tile-value, .st-value, .hero-date { font-variant-numeric:tabular-nums; }
.info-banner { background:var(--blue-tint) !important; color:var(--ink-2) !important; border:1px solid var(--blue-soft, #C9D6FF); }
.info-banner strong { color:var(--blue-dark) !important; }
.alert { border-radius:14px; }
.table-wrap { border-radius:14px; }
/* Bigger tap targets on touch screens (guards use phones at the gate) */
@media (pointer:coarse) {
  .btn { min-height:44px; }
  .btn-sm { min-height:38px; }
  .form-group input:not([type=checkbox]):not([type=radio]):not([type=color]), .form-group select { min-height:48px; }
}
