:root {
  --bg: #eef2f7;
  --surface: rgba(255,255,255,.86);
  --surface-solid: #ffffff;
  --surface-soft: #f7f9fc;
  --text: #101828;
  --text-2: #344054;
  --muted: #667085;
  --line: rgba(15,23,42,.09);
  --line-strong: rgba(15,23,42,.16);
  --navy: #071120;
  --navy-2: #0d1b31;
  --navy-3: #142746;
  --primary: #5b5df0;
  --primary-2: #7c6ff7;
  --cyan: #17b6d6;
  --gold: #d9ae5f;
  --gold-2: #f0d89f;
  --success: #138a66;
  --success-soft: #e8f8f2;
  --danger: #d1435b;
  --danger-soft: #fff0f3;
  --warning: #b7791f;
  --warning-soft: #fff7df;
  --info: #2768d8;
  --info-soft: #edf4ff;
  --shadow-xs: 0 2px 8px rgba(15,23,42,.04);
  --shadow-sm: 0 10px 28px rgba(15,23,42,.07);
  --shadow: 0 20px 55px rgba(15,23,42,.10);
  --shadow-lg: 0 30px 90px rgba(2,8,23,.24);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: Inter, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; color: var(--text); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
::selection { color: #fff; background: rgba(91,93,240,.85); }

.app-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,244,251,.92)),
    radial-gradient(circle at 78% 0%, rgba(91,93,240,.15), transparent 31%),
    radial-gradient(circle at 25% 100%, rgba(23,182,214,.10), transparent 28%),
    var(--bg);
  overflow-x: hidden;
}
.app-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: linear-gradient(rgba(15,23,42,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.ambient { position: fixed; pointer-events: none; border-radius: 999px; filter: blur(2px); z-index: 0; }
.ambient-one { width: 440px; height: 440px; top: -220px; right: 7%; background: radial-gradient(circle, rgba(91,93,240,.18), transparent 69%); }
.ambient-two { width: 360px; height: 360px; bottom: -180px; left: 23%; background: radial-gradient(circle, rgba(23,182,214,.12), transparent 70%); }
.ambient-three { width: 280px; height: 280px; top: 36%; left: 48%; background: radial-gradient(circle, rgba(217,174,95,.08), transparent 72%); }

.app-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 292px minmax(0,1fr); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: 292px;
  padding: 22px 18px 18px;
  display: flex;
  flex-direction: column;
  color: #d9e3f2;
  background:
    radial-gradient(circle at 20% 5%, rgba(91,93,240,.24), transparent 30%),
    linear-gradient(180deg, #081322 0%, #0a1729 42%, #07111f 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 20px 0 65px rgba(3,8,18,.14);
  overflow: hidden;
}
.sidebar::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to bottom, black, transparent 58%); }
.sidebar-aura { position: absolute; width: 230px; height: 230px; right: -115px; top: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(23,182,214,.12), transparent 70%); }
.sidebar-top, .sidebar-command, .nav-caption, .sidebar-nav, .sidebar-footer { position: relative; z-index: 1; }
.sidebar-top { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { position: relative; width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg, var(--primary-2), #3e43cf 70%); border: 1px solid rgba(255,255,255,.28); box-shadow: 0 13px 28px rgba(91,93,240,.34), inset 0 1px 0 rgba(255,255,255,.32); overflow: hidden; }
.brand-mark::before { content: ""; position: absolute; width: 42px; height: 42px; top: -26px; left: -23px; border-radius: 50%; background: rgba(255,255,255,.23); }
.brand-mark span { position: relative; z-index: 1; font-weight: 900; font-size: 19px; letter-spacing: -.06em; }
.brand-mark i { position: absolute; width: 7px; height: 7px; right: 7px; bottom: 7px; border-radius: 50%; background: #5ff0bd; border: 2px solid #4d4fe0; box-shadow: 0 0 12px rgba(95,240,189,.8); }
.brand strong, .brand small { display: block; white-space: nowrap; }
.brand strong { color: #fff; font-size: 14px; letter-spacing: -.015em; }
.brand small { margin-top: 2px; color: #7f91ac; font-size: 9px; letter-spacing: .10em; text-transform: uppercase; }
.sidebar-close { display: none; width: 36px; height: 36px; padding: 0; place-items: center; color: #dce5f1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: 11px; cursor: pointer; font-size: 22px; }

.sidebar-command { margin: 22px 0 20px; padding: 12px 12px; display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.command-pulse { width: 8px; height: 8px; border-radius: 50%; background: #4fe0aa; box-shadow: 0 0 0 5px rgba(79,224,170,.11), 0 0 16px rgba(79,224,170,.65); }
.sidebar-command small, .sidebar-command strong { display: block; }
.sidebar-command small { color: #7f91aa; font-size: 8px; letter-spacing: .13em; }
.sidebar-command strong { margin-top: 2px; color: #edf4ff; font-size: 10px; }
.sidebar-command b { padding: 4px 6px; color: #78f0c1; background: rgba(79,224,170,.10); border: 1px solid rgba(79,224,170,.18); border-radius: 7px; font-size: 8px; letter-spacing: .08em; }
.nav-caption { margin: 0 10px 9px; color: #586a84; font-size: 9px; font-weight: 850; letter-spacing: .17em; }
.sidebar-nav { display: grid; gap: 5px; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.nav-link { position: relative; min-height: 55px; padding: 8px 10px; display: grid; grid-template-columns: 38px 1fr 18px; gap: 10px; align-items: center; color: #a9b7ca; border: 1px solid transparent; border-radius: 15px; transition: .2s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.07); transform: translateX(2px); }
.nav-link.active { color: #fff; background: linear-gradient(135deg, rgba(91,93,240,.28), rgba(91,93,240,.13)); border-color: rgba(144,145,255,.22); box-shadow: 0 12px 28px rgba(2,8,23,.16), inset 0 1px 0 rgba(255,255,255,.09); }
.nav-link.active::before { content: ""; position: absolute; left: -18px; top: 13px; bottom: 13px; width: 3px; border-radius: 0 5px 5px 0; background: linear-gradient(var(--gold-2), var(--primary-2)); box-shadow: 0 0 13px rgba(240,216,159,.5); }
.nav-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.045); transition: .2s ease; }
.nav-link.active .nav-icon { background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.07)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.nav-icon svg { width: 18px; height: 18px; fill: currentColor; }
.nav-copy strong, .nav-copy small { display: block; }
.nav-copy strong { font-size: 11px; font-weight: 740; }
.nav-copy small { margin-top: 2px; color: #6f8099; font-size: 8.5px; }
.nav-link.active .nav-copy small { color: #aeb9d1; }
.nav-arrow { color: #5a6d87; font-size: 19px; text-align: center; }
.nav-link.active .nav-arrow { color: var(--gold-2); }
.sidebar-footer { margin-top: auto; padding: 13px 10px; display: grid; grid-template-columns: 38px 1fr 32px; gap: 10px; align-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: rgba(255,255,255,.045); }
.user-avatar { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #263c60, #162640); border: 1px solid rgba(255,255,255,.11); border-radius: 12px; font-size: 11px; font-weight: 850; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.user-avatar.small { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(145deg, var(--primary), #3d46ce); }
.user-meta { min-width: 0; }
.user-meta small, .user-meta strong, .user-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { color: #73859f; font-size: 8px; }
.user-meta strong { margin-top: 1px; color: #f2f6fc; font-size: 10px; }
.user-meta span { color: #91a0b5; font-size: 8px; }
.sidebar-logout { width: 30px; height: 30px; display: grid; place-items: center; color: #9eabc0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 9px; transition: .18s ease; }
.sidebar-logout:hover { color: #fff; background: rgba(209,67,91,.16); border-color: rgba(209,67,91,.25); }

.main { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; min-height: 92px; padding: 16px 30px; display: flex; align-items: center; justify-content: space-between; gap: 22px; background: rgba(245,248,252,.76); border-bottom: 1px solid rgba(15,23,42,.07); backdrop-filter: blur(22px) saturate(155%); box-shadow: 0 8px 24px rgba(15,23,42,.025); }
.topbar-left, .topbar-actions { display: flex; align-items: center; }
.topbar-left { gap: 14px; min-width: 0; }
.menu-button { display: none; width: 42px; height: 42px; padding: 11px; background: #fff; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; box-shadow: var(--shadow-xs); }
.menu-button span { display: block; height: 2px; margin: 4px 0; background: #26364f; border-radius: 4px; }
.page-heading { min-width: 0; }
.page-path { display: flex; align-items: center; gap: 7px; color: #8b96a8; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-path span { color: var(--primary); }
.page-path i { color: #c3cad4; font-style: normal; }
.page-path b { font-weight: 800; }
.page-heading h1 { margin: 3px 0 1px; font-size: 25px; line-height: 1.2; letter-spacing: -.035em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.topbar-actions { gap: 10px; }
.live-clock { min-height: 42px; padding: 7px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-xs); }
.live-clock > span { width: 8px; height: 8px; border-radius: 50%; background: #30c492; box-shadow: 0 0 0 4px rgba(48,196,146,.11); }
.live-clock small, .live-clock strong { display: block; }
.live-clock small { color: #8a95a6; font-size: 7px; letter-spacing: .12em; }
.live-clock strong { margin-top: 1px; font-size: 10px; font-variant-numeric: tabular-nums; }
.topbar-user { min-height: 44px; padding: 4px 10px 4px 5px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.74); box-shadow: var(--shadow-xs); }
.topbar-user strong, .topbar-user span { display: block; white-space: nowrap; }
.topbar-user strong { font-size: 10px; }
.topbar-user span { color: var(--muted); font-size: 8px; }
.icon-button { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; box-shadow: var(--shadow-xs); transition: .18s ease; }
.icon-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.icon-button svg { width: 18px; height: 18px; fill: currentColor; }
.icon-button.danger { width: 30px; height: 30px; color: var(--danger); background: var(--danger-soft); border-color: rgba(209,67,91,.15); font-size: 20px; box-shadow: none; }
.topbar-logout { color: #536078; }
.topbar-logout:hover { color: var(--danger); background: var(--danger-soft); border-color: rgba(209,67,91,.16); }

.content { padding: 28px 30px 50px; }
.content-inner { width: min(1480px, 100%); margin: 0 auto; }
.content-inner > * { opacity: 0; transform: translateY(8px); transition: opacity .32s ease, transform .32s ease; }
.is-ready .content-inner > * { opacity: 1; transform: none; }
.is-ready .content-inner > *:nth-child(2) { transition-delay: .035s; }
.is-ready .content-inner > *:nth-child(3) { transition-delay: .07s; }
.is-ready .content-inner > *:nth-child(4) { transition-delay: .105s; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card { position: relative; padding: 22px; background: var(--surface); border: 1px solid rgba(255,255,255,.82); border-radius: var(--radius); box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(15,23,42,.035); backdrop-filter: blur(18px) saturate(135%); overflow: visible; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.34), transparent 38%); opacity: .65; }
.card > * { position: relative; z-index: 1; }
.card + .card, .card + .page-hero, .page-hero + .card { margin-top: 20px; }
.premium-card { background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(246,248,253,.84)); box-shadow: var(--shadow), inset 0 0 0 1px rgba(91,93,240,.035); }
.premium-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--primary), var(--cyan), var(--gold)); }
.data-card { overflow: hidden; }
.card-header { margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-header h2, .card-header h3 { margin: 0; letter-spacing: -.025em; }
.card-header h2 { font-size: 18px; }
.card-header h3 { font-size: 15px; }
.card-eyebrow { display: block; margin-bottom: 4px; color: #7b6bef; font-size: 8px; font-weight: 900; letter-spacing: .17em; }
.card-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.card-icon-badge { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--primary-2), #4548cf); border-radius: 14px; box-shadow: 0 12px 26px rgba(91,93,240,.24); font-size: 18px; }
.record-count, .block-count { padding: 7px 11px; color: #5c4fd0; background: linear-gradient(135deg, #f0efff, #e8ebff); border: 1px solid rgba(91,93,240,.12); border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }

.page-hero { position: relative; min-height: 190px; padding: 30px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; color: #fff; background:
  radial-gradient(circle at 82% 5%, rgba(124,111,247,.50), transparent 29%),
  radial-gradient(circle at 25% 100%, rgba(23,182,214,.20), transparent 31%),
  linear-gradient(135deg, #071120 0%, #10203a 50%, #162a4d 100%);
  border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(90deg, black, transparent 78%); }
.page-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -120px; bottom: -160px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.018); }
.page-hero > * { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-2); font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.hero-kicker::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.page-hero h2 { max-width: 690px; margin: 12px 0 10px; font-size: clamp(25px, 3vw, 38px); line-height: 1.12; letter-spacing: -.045em; }
.page-hero p { max-width: 700px; margin: 0; color: #aebbd0; font-size: 12px; line-height: 1.75; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.hero-metrics > div { min-height: 92px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.09); border-radius: 17px; backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.hero-metrics span { color: #91a0b9; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.hero-metrics strong { color: #fff; font-size: 27px; letter-spacing: -.04em; }

.stats-card { min-height: 142px; padding: 20px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.stats-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stats-card::before { content: ""; position: absolute; width: 110px; height: 110px; right: -35px; top: -45px; border-radius: 50%; background: radial-gradient(circle, rgba(91,93,240,.16), transparent 70%); }
.stats-label { color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.stats-value { margin-top: 14px; font-size: 34px; line-height: 1; font-weight: 820; letter-spacing: -.055em; }
.stats-note { margin-top: 11px; color: #8b95a5; font-size: 9px; }
.stats-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--primary); background: #efefff; border-radius: 12px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.form-group { min-width: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; margin: 0 0 6px; color: #3d485a; font-size: 9px; font-weight: 760; letter-spacing: .015em; }
input, select, textarea { width: 100%; min-height: 45px; padding: 10px 12px; color: var(--text); background: rgba(255,255,255,.92); border: 1px solid #d9e0ea; border-radius: 12px; outline: none; box-shadow: 0 4px 12px rgba(15,23,42,.025); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
input:hover, select:hover, textarea:hover { border-color: #c4cddd; }
input:focus, select:focus, textarea:focus { background: #fff; border-color: rgba(91,93,240,.65); box-shadow: 0 0 0 4px rgba(91,93,240,.09), 0 8px 20px rgba(15,23,42,.04); }
input[readonly] { color: #445066; background: #f4f6fa; }
textarea { min-height: 100px; resize: vertical; }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, #7d8798 50%), linear-gradient(135deg, #7d8798 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.help { display: block; margin-top: 6px; color: #8a94a5; font-size: 8.5px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 54px; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #8b95a5; font-size: 8px; font-weight: 700; }
.form-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.sticky-actions { position: sticky; bottom: 14px; z-index: 12; width: fit-content; margin-left: auto; padding: 8px; background: rgba(255,255,255,.82); border: 1px solid rgba(15,23,42,.08); border-radius: 15px; box-shadow: 0 16px 38px rgba(15,23,42,.12); backdrop-filter: blur(18px); }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .56; }

.btn { min-height: 40px; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-size: 9.5px; font-weight: 760; line-height: 1; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(145deg, var(--primary-2), #4b4fd9); box-shadow: 0 10px 23px rgba(91,93,240,.23), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:hover { box-shadow: 0 14px 29px rgba(91,93,240,.30); }
.btn-light { color: #3c485c; background: #fff; border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-soft { color: #5548cf; background: #f0efff; border-color: rgba(91,93,240,.12); }
.btn-success { color: #fff; background: linear-gradient(145deg, #1a9f78, #11785b); box-shadow: 0 8px 18px rgba(19,138,102,.16); }
.btn-danger { color: #fff; background: linear-gradient(145deg, #df5368, #bd334b); box-shadow: 0 8px 18px rgba(209,67,91,.15); }
.btn-sm { min-height: 32px; padding: 7px 10px; border-radius: 9px; font-size: 8.5px; }

.section-box { position: relative; margin-top: 16px; padding: 20px; background: linear-gradient(145deg, rgba(249,250,253,.94), rgba(255,255,255,.80)); border: 1px solid var(--line); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }
.section-box:first-of-type { margin-top: 0; }
.section-primary { background: linear-gradient(145deg, rgba(248,248,255,.98), rgba(255,255,255,.90)); border-color: rgba(91,93,240,.11); }
.section-heading { margin-bottom: 17px; display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: center; }
.section-heading > span { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--primary-2), #494dd6); border-radius: 10px; box-shadow: 0 9px 20px rgba(91,93,240,.20); font-size: 9px; font-weight: 850; }
.section-heading h3 { margin: 0; font-size: 13px; }
.section-heading p { margin: 2px 0 0; color: var(--muted); font-size: 8.5px; }
.section-heading-actions { grid-template-columns: 34px 1fr auto; }
.child-row { margin-top: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 9px 25px rgba(15,23,42,.045); transition: opacity .15s ease, transform .15s ease; }
.child-row.row-removing { opacity: 0; transform: scale(.98); }
.child-row-head { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.child-row-head strong { font-size: 10px; }
.is-hidden { display: none !important; }

.filter-bar { margin-bottom: 18px; padding: 13px; display: flex; flex-wrap: wrap; gap: 10px; align-items: end; background: linear-gradient(145deg, rgba(247,249,252,.95), rgba(255,255,255,.88)); border: 1px solid var(--line); border-radius: 16px; }
.filter-bar .form-group { min-width: 150px; flex: 1 1 150px; }
.filter-bar .filter-search { flex: 2 1 250px; }
.filter-panel { box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(15,23,42,.065); }
th { color: #788397; background: #f6f8fb; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { color: #303b4d; font-size: 10px; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: rgba(91,93,240,.025); }
tbody tr:last-child td { border-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.actions form { display: contents; }
.review-form { min-width: 250px; }
.review-form input { min-width: 175px; }
.empty { padding: 30px; color: var(--muted); text-align: center; }
.empty-state { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.empty-state > span { width: 44px; height: 44px; display: grid; place-items: center; color: var(--primary); background: #f0efff; border-radius: 14px; font-size: 18px; }
.empty-state strong { margin-top: 10px; color: var(--text-2); }
.empty-state p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-right { text-align: right; }
.money-in { color: var(--success); font-weight: 800; }
.money-out { color: var(--danger); font-weight: 800; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 999px; font-size: 8px; font-weight: 800; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-success { color: #0b7b59; background: var(--success-soft); border: 1px solid rgba(19,138,102,.11); }
.badge-danger { color: #bb3249; background: var(--danger-soft); border: 1px solid rgba(209,67,91,.11); }
.badge-warning { color: #986414; background: var(--warning-soft); border: 1px solid rgba(183,121,31,.12); }
.badge-info { color: #235fbf; background: var(--info-soft); border: 1px solid rgba(39,104,216,.11); }
.badge-muted { color: #6f7a8d; background: #f0f2f5; border: 1px solid rgba(15,23,42,.06); }

.alert { margin-bottom: 14px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid; border-radius: 14px; box-shadow: var(--shadow-xs); transition: opacity .35s ease, transform .35s ease; }
.alert.fade { opacity: .35; transform: translateY(-3px); }
.alert-dot { width: 8px; height: 8px; margin-top: 5px; flex: 0 0 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px currentColor; }
.alert-success { color: #11765a; background: #edfaf5; border-color: rgba(19,138,102,.14); }
.alert-danger { color: #b92e47; background: #fff1f4; border-color: rgba(209,67,91,.14); }
.alert-warning { color: #8c5b12; background: #fff8e7; border-color: rgba(183,121,31,.15); }
.alert-info { color: #235eaf; background: #eff6ff; border-color: rgba(39,104,216,.14); }

.timeline { display: grid; gap: 4px; }
.timeline-item { padding: 12px 0; display: grid; grid-template-columns: 86px 1fr; gap: 14px; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; }
.kv div:nth-child(odd) { color: var(--muted); }

.smart-select { position: relative; }
.smart-select-trigger { width: 100%; min-height: 46px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; color: #233048; background: #fff; border: 1px solid #d9e0ea; border-radius: 12px; cursor: pointer; text-align: left; box-shadow: var(--shadow-xs); }
.smart-select-trigger::before { content: "⌂"; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--primary-2), #4c50da); border-radius: 9px; box-shadow: 0 7px 15px rgba(91,93,240,.20); }
.smart-select-value { font-size: 10px; font-weight: 760; }
.smart-select-chevron { margin-left: auto; color: #8290a4; font-size: 18px; transition: transform .18s ease; }
.smart-select.open .smart-select-trigger { border-color: rgba(91,93,240,.62); box-shadow: 0 0 0 4px rgba(91,93,240,.09); }
.smart-select.open .smart-select-chevron { transform: rotate(180deg); }
.smart-select.invalid .smart-select-trigger { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(209,67,91,.09); }
.smart-select-menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 90; padding: 10px; display: none; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 26px 70px rgba(15,23,42,.18); backdrop-filter: blur(20px); }
.smart-select.open .smart-select-menu { display: block; animation: menuIn .16s ease; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-5px) scale(.99); } to { opacity: 1; transform: none; } }
.smart-select-search-wrap { position: relative; display: flex; align-items: center; }
.smart-select-search-wrap > span { position: absolute; left: 13px; color: #8c97a8; z-index: 1; }
.smart-select-search { padding-left: 36px; background: #f6f8fb; }
.smart-select-options { max-height: 270px; margin-top: 8px; overflow-y: auto; display: grid; gap: 5px; }
.smart-select-option { width: 100%; padding: 9px; display: grid; grid-template-columns: 34px 1fr 20px; gap: 9px; align-items: center; color: #27344a; background: transparent; border: 1px solid transparent; border-radius: 11px; cursor: pointer; text-align: left; }
.smart-select-option:hover { background: #f4f5ff; border-color: rgba(91,93,240,.09); }
.smart-select-option.selected { background: linear-gradient(90deg, #f0efff, #f8f8ff); border-color: rgba(91,93,240,.14); }
.smart-select-option[hidden] { display: none; }
.block-option-mark { width: 31px; height: 31px; display: grid; place-items: center; color: #5c55c8; background: #edecff; border-radius: 9px; }
.smart-select-option strong, .smart-select-option small { display: block; }
.smart-select-option strong { font-size: 9px; }
.smart-select-option small { margin-top: 2px; color: var(--muted); font-size: 7.5px; }
.option-check { color: var(--primary); opacity: 0; font-weight: 900; }
.smart-select-option.selected .option-check { opacity: 1; }
.smart-select-empty { display: none; padding: 17px; color: var(--muted); text-align: center; font-size: 9px; }
.smart-select-empty.show { display: block; }

.block-manager-card { background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(252,248,239,.88)); }
.registration-card .section-box::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 4px 4px 0; background: linear-gradient(var(--primary-2), var(--gold)); opacity: .68; }

.residents-table { min-width: 1060px; }
.block-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; color: #4e45bf; background: #f0efff; border: 1px solid rgba(91,93,240,.11); border-radius: 10px; font-weight: 800; white-space: nowrap; }
.block-pill b { width: 19px; height: 19px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 6px; font-size: 9px; }
.resident-name { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.person-avatar { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #1e3150, #0d1c31); border-radius: 12px; font-size: 9px; font-weight: 850; box-shadow: 0 8px 18px rgba(15,23,42,.12); }
.resident-name strong, .resident-name small { display: block; }
.resident-name strong { font-size: 10px; }
.resident-name small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.detail-stack { display: grid; gap: 5px; min-width: 150px; }
.detail-stack span { display: grid; grid-template-columns: 58px 1fr; gap: 5px; }
.detail-stack b { color: #8a95a6; font-size: 8px; }
.family-summary { min-width: 235px; display: flex; flex-wrap: wrap; gap: 5px; }
.family-chip { padding: 6px 8px; display: inline-flex; flex-direction: column; gap: 1px; border-radius: 9px; font-size: 8px; }
.family-chip b { font-size: 7px; letter-spacing: .035em; text-transform: uppercase; }
.family-chip.spouse { color: #4a4f9f; background: #f0efff; border: 1px solid rgba(91,93,240,.10); }
.family-chip.child { color: #227157; background: #ecf9f4; border: 1px solid rgba(19,138,102,.10); }

.dashboard-welcome { position: relative; padding: 27px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; color: #fff; background: linear-gradient(135deg, #0a1729, #142847); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.dashboard-welcome::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(124,111,247,.42), transparent 28%), radial-gradient(circle at 20% 100%, rgba(23,182,214,.17), transparent 30%); }
.dashboard-welcome > * { position: relative; z-index: 1; }
.dashboard-welcome h2 { margin: 6px 0; font-size: 29px; letter-spacing: -.04em; }
.dashboard-welcome p { margin: 0; color: #a6b5ca; font-size: 11px; }
.dashboard-action { display: flex; gap: 8px; }
.dashboard-welcome .btn-light { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); box-shadow: none; }
.dashboard-section { margin-top: 20px; }

.login-body { min-height: 100vh; color: #fff; background: #06101d; overflow-x: hidden; position: relative; }
.login-grid { position: fixed; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle at 36% 40%, black, transparent 72%); }
.login-body::before { content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 19% 10%, rgba(91,93,240,.22), transparent 31%), radial-gradient(circle at 90% 90%, rgba(23,182,214,.12), transparent 27%), linear-gradient(135deg, #06101d 0%, #0b1930 54%, #07111f 100%); }
.login-orb { position: fixed; border-radius: 50%; pointer-events: none; }
.orb-one { width: 500px; height: 500px; left: -250px; top: -260px; background: radial-gradient(circle, rgba(91,93,240,.30), transparent 69%); }
.orb-two { width: 430px; height: 430px; right: -210px; bottom: -220px; background: radial-gradient(circle, rgba(23,182,214,.17), transparent 70%); }
.orb-three { width: 220px; height: 220px; right: 29%; top: 15%; background: radial-gradient(circle, rgba(217,174,95,.10), transparent 70%); }
.login-wrap { position: relative; z-index: 1; width: min(1240px, 100%); min-height: 100vh; margin: 0 auto; padding: 46px; display: grid; grid-template-columns: minmax(0,1.18fr) minmax(380px,.72fr); gap: 72px; align-items: center; }
.brand.large .brand-mark { width: 54px; height: 54px; flex-basis: 54px; border-radius: 18px; }
.brand.large .brand-mark span { font-size: 23px; }
.login-info { padding: 20px 0; }
.login-eyebrow { margin-top: 62px; display: flex; align-items: center; gap: 9px; color: var(--gold-2); font-size: 9px; font-weight: 850; letter-spacing: .18em; }
.login-eyebrow span { width: 30px; height: 1px; background: var(--gold); }
.login-info h1 { max-width: 720px; margin: 17px 0 18px; font-size: clamp(43px, 5.1vw, 70px); line-height: 1.03; letter-spacing: -.06em; }
.login-info h1 em { color: transparent; background: linear-gradient(90deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; font-style: normal; }
.login-info > p { max-width: 670px; margin: 0; color: #a5b2c6; font-size: 14px; line-height: 1.8; }
.login-feature-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.login-feature-grid > div { min-height: 112px; padding: 14px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; backdrop-filter: blur(10px); }
.login-feature-grid b, .login-feature-grid strong, .login-feature-grid span { display: block; }
.login-feature-grid b { color: var(--gold-2); font-size: 9px; }
.login-feature-grid strong { margin-top: 18px; font-size: 11px; }
.login-feature-grid span { margin-top: 4px; color: #7f90aa; font-size: 8px; line-height: 1.5; }
.login-signature { margin-top: 37px; width: fit-content; padding: 12px 15px; display: flex; align-items: center; gap: 12px; border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(255,255,255,.055), transparent); }
.login-signature > span { color: var(--gold-2); font-size: 20px; font-weight: 900; }
.login-signature strong, .login-signature small { display: block; }
.login-signature strong { font-size: 10px; }
.login-signature small { margin-top: 2px; color: #73849d; font-size: 8px; }
.login-card { position: relative; padding: 32px; color: var(--text); background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.46); border-radius: 27px; box-shadow: 0 34px 100px rgba(0,0,0,.32); backdrop-filter: blur(26px) saturate(150%); overflow: hidden; }
.login-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--primary), var(--cyan), var(--gold)); }
.login-card-pattern { position: absolute; width: 220px; height: 220px; right: -100px; top: -105px; border-radius: 50%; background: radial-gradient(circle, rgba(91,93,240,.14), transparent 68%); }
.login-card-head { position: relative; margin-bottom: 24px; display: flex; align-items: flex-start; gap: 12px; }
.login-lock { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #1a2c49, #0b1729); border-radius: 13px; box-shadow: 0 11px 25px rgba(15,23,42,.19); }
.login-lock svg { width: 18px; height: 18px; fill: currentColor; }
.login-card-head small { color: #7467dc; font-size: 8px; font-weight: 850; letter-spacing: .15em; }
.login-card h2 { margin: 3px 0 2px; font-size: 24px; letter-spacing: -.04em; }
.login-card p { margin: 0; color: var(--muted); font-size: 10px; }
.login-card .form-group { margin-bottom: 14px; }
.login-card .btn { width: 100%; min-height: 45px; margin-top: 6px; }
.login-security { margin-top: 20px; padding-top: 16px; color: #8b95a5; border-top: 1px solid var(--line); font-size: 8px; text-align: center; }
.login-security span { color: #22a87c; }

@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-hero { grid-template-columns: 1fr; }
  .hero-metrics { max-width: 620px; }
  .login-wrap { gap: 38px; padding: 34px; }
  .login-info h1 { font-size: 50px; }
}

@media (max-width: 960px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-103%); transition: transform .25s ease; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: grid; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(2,7,15,.60); backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: opacity .24s ease; }
  .sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .main { width: 100%; }
  .menu-button { display: block; }
  .topbar { padding: 13px 18px; }
  .topbar-user { display: none; }
  .content { padding: 20px 18px 38px; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .login-wrap { grid-template-columns: 1fr; padding: 24px; }
  .login-info { display: none; }
  .login-card { width: min(460px, 100%); margin: auto; }
  .kv { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-width: 680px) {
  .sidebar { width: min(88vw, 310px); }
  .topbar { min-height: 78px; padding: 11px 12px; }
  .page-heading h1 { font-size: 19px; }
  .page-path, .page-heading p, .live-clock { display: none; }
  .topbar-actions { gap: 6px; }
  .content { padding: 14px 10px 28px; }
  .card { padding: 16px; border-radius: 17px; }
  .card + .card, .card + .page-hero, .page-hero + .card { margin-top: 14px; }
  .grid-4 { grid-template-columns: 1fr; }
  .card-header { align-items: flex-start; }
  .record-count, .block-count, .card-icon-badge { display: none; }
  .page-hero { min-height: 0; padding: 23px 18px; border-radius: 20px; }
  .page-hero h2 { font-size: 26px; }
  .hero-metrics { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .hero-metrics > div { min-height: 78px; padding: 10px; }
  .hero-metrics strong { font-size: 22px; }
  .filter-bar { padding: 11px; }
  .filter-bar .form-group { min-width: 100%; }
  .filter-bar .btn { flex: 1 1 auto; }
  .section-box { padding: 14px; }
  .section-heading, .section-heading-actions { grid-template-columns: 31px 1fr; }
  .section-heading-actions .btn { grid-column: 1 / -1; width: 100%; }
  .sticky-actions { position: static; width: 100%; margin-left: 0; }
  .sticky-actions .btn { flex: 1; }
  .review-form, .review-form input { min-width: 0; width: 100%; }
  .smart-select-menu { position: fixed; left: 10px; right: 10px; top: auto; bottom: 10px; max-height: 68vh; }
  .smart-select-options { max-height: 46vh; }
  .login-card { padding: 25px 20px; border-radius: 22px; }

  .responsive-table { min-width: 0; }
  .responsive-table thead { display: none; }
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
  .responsive-table tr { margin: 10px; width: calc(100% - 20px); padding: 11px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-xs); }
  .responsive-table td { min-height: 32px; padding: 8px 0 8px 98px; position: relative; border-bottom: 1px dashed rgba(15,23,42,.08); }
  .responsive-table td:last-child { border-bottom: 0; }
  .responsive-table td::before { content: attr(data-label); position: absolute; left: 0; top: 9px; width: 88px; color: #8b95a5; font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
  .responsive-table .empty { padding: 10px; }
  .responsive-table .empty::before { display: none; }
  .resident-name, .family-summary, .detail-stack { min-width: 0; }
}

/* =========================================================
   PORTAL PUBLIK GPA BLOK H 2026
   Beranda, registrasi warga tanpa login, dan upload iuran
   ========================================================= */
.public-body {
  min-height: 100vh;
  margin: 0;
  color: #172033;
  background:
    radial-gradient(circle at 12% 7%, rgba(111, 98, 238, .16), transparent 27%),
    radial-gradient(circle at 91% 18%, rgba(26, 184, 206, .13), transparent 24%),
    linear-gradient(145deg, #f7f8fc 0%, #eef2f8 48%, #f9fafc 100%);
  position: relative;
  overflow-x: hidden;
}
.public-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 34, 58, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 34, 58, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
}
.public-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.10'/%3E%3C/svg%3E");
}
.public-orb { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; z-index: 0; }
.public-orb-a { width: 420px; height: 420px; left: -210px; top: 24%; background: radial-gradient(circle, rgba(112, 92, 244, .16), transparent 69%); }
.public-orb-b { width: 460px; height: 460px; right: -230px; top: 46%; background: radial-gradient(circle, rgba(19, 181, 210, .12), transparent 70%); }
.public-shell { width: min(1260px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }
.public-header {
  min-height: 82px;
  margin-top: 18px;
  padding: 13px 15px 13px 17px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  position: sticky;
  top: 12px;
  z-index: 40;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 55px rgba(29, 43, 72, .10);
  backdrop-filter: blur(22px) saturate(160%);
}
.public-brand { display: flex; align-items: center; gap: 12px; color: #101a2d; text-decoration: none; }
.public-brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
  border-radius: 15px;
  background: linear-gradient(145deg, #111f37, #293e61 66%, #6f65eb);
  box-shadow: 0 11px 25px rgba(18, 31, 53, .22), inset 0 1px rgba(255,255,255,.22);
}
.public-brand strong, .public-brand small { display: block; }
.public-brand strong { font-size: 13px; letter-spacing: -.02em; }
.public-brand small { margin-top: 3px; color: #7d889b; font-size: 8px; letter-spacing: .07em; }
.public-nav { justify-self: center; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(236, 240, 247, .78); }
.public-nav a { padding: 10px 14px; color: #69758a; text-decoration: none; font-size: 9px; font-weight: 800; border-radius: 10px; transition: .2s ease; }
.public-nav a:hover, .public-nav a.active { color: #fff; background: linear-gradient(135deg, #172944, #30496f); box-shadow: 0 7px 18px rgba(27, 43, 69, .18); }
.public-header-actions { display: flex; justify-content: flex-end; }
.public-menu-button { display: none; width: 42px; height: 42px; padding: 11px; border: 0; border-radius: 12px; background: #12213a; }
.public-menu-button span { display: block; height: 2px; margin: 4px 0; background: #fff; border-radius: 2px; }
.public-main { padding: 38px 0 22px; }
.public-btn {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #243149;
  text-decoration: none;
  border: 1px solid rgba(25, 43, 70, .10);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(25, 39, 65, .08);
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.public-btn:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(25, 39, 65, .14); }
.public-btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.public-btn-primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, #6a5ce8, #4b68dc 48%, #168fc0); box-shadow: 0 14px 34px rgba(84, 90, 221, .27); }
.public-btn-ghost { background: rgba(255,255,255,.65); }
.public-btn-glass { color: #fff; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.09); box-shadow: none; backdrop-filter: blur(10px); }
.public-btn-lg { min-height: 48px; padding: 0 21px; border-radius: 14px; font-size: 10px; }
.public-alert {
  max-width: 920px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(40, 57, 84, .10);
  border-radius: 14px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 12px 32px rgba(24, 38, 63, .09);
  font-size: 10px;
  line-height: 1.6;
}
.public-alert > span { width: 8px; height: 8px; margin-top: 4px; flex: 0 0 8px; border-radius: 50%; background: #728097; }
.public-alert-success { border-color: rgba(20, 164, 113, .20); background: rgba(239, 252, 247, .94); }
.public-alert-success > span { background: #14a471; }
.public-alert-danger { border-color: rgba(221, 70, 89, .22); background: rgba(255, 243, 245, .95); }
.public-alert-danger > span { background: #dd4659; }
.public-alert-warning { border-color: rgba(213, 150, 45, .25); background: rgba(255, 249, 236, .95); }
.public-alert-warning > span { background: #d5962d; }
.public-hero {
  min-height: 545px;
  padding: 55px 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
  align-items: center;
  gap: 54px;
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 17%, rgba(115, 93, 239, .42), transparent 28%),
    radial-gradient(circle at 11% 100%, rgba(17, 177, 205, .18), transparent 29%),
    linear-gradient(135deg, #07111f 0%, #101f38 54%, #152b4b 100%);
  box-shadow: 0 34px 90px rgba(12, 26, 48, .24);
}
.public-hero::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 58px 58px; mask-image: radial-gradient(circle at 70% 40%, #000, transparent 72%); }
.public-hero::after { content: ""; position: absolute; width: 500px; height: 500px; right: -250px; bottom: -310px; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.018); }
.public-hero > * { position: relative; z-index: 1; }
.public-kicker { display: flex; align-items: center; gap: 9px; color: #d8c08a; font-size: 9px; font-weight: 850; letter-spacing: .17em; }
.public-kicker i { width: 31px; height: 1px; background: #d8b96f; }
.public-hero h1 { max-width: 700px; margin: 18px 0; font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -.06em; }
.public-hero-copy > p { max-width: 650px; margin: 0; color: #aebbd0; font-size: 13px; line-height: 1.8; }
.public-hero-actions { margin-top: 29px; display: flex; flex-wrap: wrap; gap: 10px; }
.public-trust-row { margin-top: 27px; display: flex; flex-wrap: wrap; gap: 19px; color: #8596b0; font-size: 9px; }
.public-trust-row b { color: #68d3b1; }
.public-hero-visual { min-height: 390px; position: relative; display: grid; place-items: center; }
.public-visual-card { width: min(360px, 100%); padding: 27px; position: relative; border: 1px solid rgba(255,255,255,.13); border-radius: 26px; background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045)); box-shadow: 0 25px 65px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.15); backdrop-filter: blur(20px); }
.public-visual-head { display: flex; align-items: center; justify-content: space-between; color: #8fa0b9; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.public-visual-head b { padding: 5px 8px; color: #7ee1bf; border: 1px solid rgba(82, 207, 167, .22); border-radius: 20px; background: rgba(52, 197, 151, .10); }
.public-visual-icon { width: 74px; height: 74px; margin: 38px 0 24px; display: grid; place-items: center; color: #fff; font-size: 34px; border-radius: 23px; background: linear-gradient(145deg, #755fe8, #1aa0c5); box-shadow: 0 18px 40px rgba(84, 84, 218, .33); }
.public-visual-card h3 { margin: 0; font-size: 21px; letter-spacing: -.04em; }
.public-visual-card p { margin: 9px 0 22px; color: #91a1b9; font-size: 9px; line-height: 1.65; }
.public-visual-meter { height: 5px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.09); }
.public-visual-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6e63ea, #25bfd3); }
.public-visual-foot { margin-top: 13px; display: flex; justify-content: space-between; color: #7f90aa; font-size: 8px; }
.public-visual-foot strong { color: #d2d9e5; }
.public-floating-chip { min-width: 150px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(9, 20, 37, .82); box-shadow: 0 18px 45px rgba(0,0,0,.26); backdrop-filter: blur(16px); }
.public-floating-chip > span { width: 35px; height: 35px; display: grid; place-items: center; color: #e5cc94; border-radius: 10px; background: rgba(216, 185, 111, .10); font-size: 9px; font-weight: 900; }
.public-floating-chip b, .public-floating-chip small { display: block; }
.public-floating-chip b { font-size: 9px; }
.public-floating-chip small { margin-top: 3px; color: #7e8ea7; font-size: 7px; }
.chip-one { left: -17px; top: 75px; }
.chip-two { right: -10px; bottom: 55px; }
.public-section { margin-top: 28px; padding: 40px; border: 1px solid rgba(255,255,255,.88); border-radius: 28px; background: rgba(255,255,255,.68); box-shadow: 0 18px 55px rgba(29, 43, 72, .08); backdrop-filter: blur(18px); }
.public-section-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.public-section-heading span, .public-info-copy > span { color: #6c63dd; font-size: 8px; font-weight: 850; letter-spacing: .16em; }
.public-section-heading h2, .public-info-copy h2 { margin: 7px 0 4px; font-size: 29px; letter-spacing: -.045em; }
.public-section-heading p { margin: 0; color: #818da0; font-size: 10px; }
.public-year-badge { min-width: 115px; padding: 12px 15px; border: 1px solid #e5e8ef; border-radius: 15px; background: #f8f9fc; }
.public-year-badge small, .public-year-badge strong { display: block; }
.public-year-badge small { color: #8c96a7; font-size: 7px; font-weight: 800; }
.public-year-badge strong { margin-top: 4px; color: #26354e; font-size: 20px; }
.public-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.public-service-card { min-height: 280px; padding: 22px; position: relative; overflow: hidden; color: #172239; text-decoration: none; border: 1px solid #e5e9f0; border-radius: 22px; background: #fff; box-shadow: 0 13px 34px rgba(26, 41, 67, .07); transition: .22s ease; }
.public-service-card:hover { transform: translateY(-5px); border-color: rgba(103, 94, 229, .27); box-shadow: 0 23px 50px rgba(26, 41, 67, .14); }
.public-service-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -95px; bottom: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(103, 94, 229, .12), transparent 70%); }
.public-service-top { display: flex; justify-content: space-between; align-items: center; }
.public-service-number { color: #8d97a8; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.public-service-top i { width: 32px; height: 32px; display: grid; place-items: center; color: #68748a; border: 1px solid #e7eaf0; border-radius: 10px; font-style: normal; }
.public-service-icon { width: 57px; height: 57px; margin: 29px 0 20px; display: grid; place-items: center; color: #fff; border-radius: 17px; font-size: 22px; background: linear-gradient(145deg, #6f62e8, #5277df); box-shadow: 0 13px 30px rgba(91, 91, 221, .22); }
.service-dues .public-service-icon { background: linear-gradient(145deg, #0f9fc1, #27c2b5); box-shadow: 0 13px 30px rgba(25, 165, 186, .20); }
.service-login .public-service-icon { background: linear-gradient(145deg, #172941, #3d5577); box-shadow: 0 13px 30px rgba(20, 36, 60, .20); }
.public-service-card h3 { margin: 0; font-size: 18px; letter-spacing: -.035em; }
.public-service-card p { min-height: 55px; margin: 8px 0 21px; color: #7c889c; font-size: 9px; line-height: 1.7; }
.public-service-link { position: relative; z-index: 1; color: #5f58ce; font-size: 9px; font-weight: 850; }
.public-service-link b { margin-left: 5px; }
.public-info-band { display: grid; grid-template-columns: .68fr 1.32fr; align-items: center; gap: 42px; background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(244,247,252,.72)); }
.public-info-copy h2 { max-width: 360px; }
.public-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.public-steps > div { min-height: 103px; padding: 15px; display: flex; gap: 11px; align-items: flex-start; border: 1px solid #e6e9f0; border-radius: 16px; background: #fff; }
.public-steps > div > b { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; color: #fff; border-radius: 9px; background: #1a2d49; font-size: 9px; }
.public-steps strong, .public-steps small { display: block; }
.public-steps strong { font-size: 10px; }
.public-steps small { margin-top: 5px; color: #8994a6; font-size: 8px; line-height: 1.5; }
.public-mini-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.public-mini-stats > div { padding: 19px 21px; border: 1px solid rgba(255,255,255,.85); border-radius: 19px; background: rgba(255,255,255,.65); box-shadow: 0 10px 30px rgba(26, 40, 65, .06); }
.public-mini-stats span, .public-mini-stats strong, .public-mini-stats small { display: block; }
.public-mini-stats span { color: #7d899b; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.public-mini-stats strong { margin: 5px 0 1px; color: #263650; font-size: 27px; }
.public-mini-stats small { color: #9aa3b1; font-size: 8px; }
.public-footer { margin: 30px 0 22px; padding: 22px 4px; display: flex; justify-content: space-between; gap: 20px; color: #7d899a; border-top: 1px solid rgba(26, 42, 67, .09); font-size: 8px; }
.public-footer strong, .public-footer span, .public-footer b { display: block; }
.public-footer strong { color: #273650; font-size: 10px; }
.public-footer b { margin-top: 4px; color: #6d63dc; text-align: right; letter-spacing: .08em; }
.public-form-hero { min-height: 225px; padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; color: #fff; border-radius: 29px; background: radial-gradient(circle at 86% 12%, rgba(115,93,239,.40), transparent 31%), linear-gradient(135deg, #081321, #132746 66%, #153754); box-shadow: 0 27px 70px rgba(13, 28, 50, .22); }
.public-form-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -100px; bottom: -180px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 37px rgba(255,255,255,.025), 0 0 0 74px rgba(255,255,255,.018); }
.public-form-hero > * { position: relative; z-index: 1; }
.public-form-hero h1 { margin: 12px 0 7px; font-size: 39px; letter-spacing: -.05em; }
.public-form-hero p { max-width: 680px; margin: 0; color: #aab8cc; font-size: 11px; line-height: 1.7; }
.public-form-hero-badge { min-width: 150px; padding: 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 19px; background: rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.public-form-hero-badge span, .public-form-hero-badge strong, .public-form-hero-badge small { display: block; }
.public-form-hero-badge span { color: #d7bd83; font-size: 24px; font-weight: 900; }
.public-form-hero-badge strong { margin-top: 8px; font-size: 9px; letter-spacing: .14em; }
.public-form-hero-badge small { margin-top: 3px; color: #8fa0b8; font-size: 8px; }
.public-dues-hero { background: radial-gradient(circle at 88% 9%, rgba(24,190,196,.34), transparent 30%), linear-gradient(135deg, #071522, #102b42 65%, #0b4351); }
.public-form-layout { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 18px; align-items: start; }
.public-form-card { padding: 24px; border: 1px solid rgba(255,255,255,.90); border-radius: 25px; background: rgba(255,255,255,.78); box-shadow: 0 19px 55px rgba(27, 42, 68, .09); backdrop-filter: blur(18px); }
.public-form-section { padding: 22px; border: 1px solid #e7eaf1; border-radius: 19px; background: #fff; }
.public-form-section + .public-form-section { margin-top: 15px; }
.public-form-section.is-hidden { display: none; }
.public-form-section-head { margin-bottom: 18px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; }
.public-form-section-head > span { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border-radius: 12px; background: linear-gradient(145deg, #6b5de5, #3b79d4); font-size: 9px; font-weight: 900; box-shadow: 0 10px 22px rgba(83, 83, 211, .19); }
.public-form-section-head h2 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.public-form-section-head p { margin: 4px 0 0; color: #8994a5; font-size: 8px; }
.public-form-card .form-group label { font-size: 8px; }
.public-form-card input, .public-form-card select, .public-form-card textarea { background-color: #fafbfe; }
.public-form-card .smart-select-trigger { background: #fafbfe; }
.public-submit-bar { margin-top: 16px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid rgba(100, 92, 225, .14); border-radius: 18px; background: linear-gradient(135deg, #f6f4ff, #f2f8fc); }
.public-submit-bar strong, .public-submit-bar span { display: block; }
.public-submit-bar strong { font-size: 10px; }
.public-submit-bar span { margin-top: 3px; color: #8490a2; font-size: 8px; }
.public-help-card { padding: 23px; position: sticky; top: 112px; border: 1px solid rgba(255,255,255,.9); border-radius: 22px; background: rgba(255,255,255,.78); box-shadow: 0 17px 48px rgba(27, 42, 68, .09); backdrop-filter: blur(18px); }
.public-help-label { color: #6960d8; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.public-help-card h3 { margin: 9px 0 14px; font-size: 19px; letter-spacing: -.035em; }
.public-help-card ul { margin: 0; padding: 0; list-style: none; }
.public-help-card li { padding: 10px 0 10px 18px; position: relative; color: #68758a; border-bottom: 1px dashed #e1e5ec; font-size: 9px; line-height: 1.55; }
.public-help-card li::before { content: "✓"; position: absolute; left: 0; color: #1aaa80; font-weight: 900; }
.public-help-security { margin: 18px 0; padding: 13px; display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; background: #effaf6; }
.public-help-security > b { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; color: #fff; border-radius: 9px; background: #1ca77d; font-size: 9px; }
.public-help-security strong, .public-help-security small { display: block; }
.public-help-security strong { font-size: 9px; }
.public-help-security small { margin-top: 3px; color: #6e8a80; font-size: 7px; line-height: 1.5; }
.public-help-card > a { color: #665dda; font-size: 9px; font-weight: 800; text-decoration: none; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.month-selection-count { padding: 8px 11px; color: #6259d5; border-radius: 10px; background: #f0efff; font-size: 8px; }
.month-selector-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.month-option { cursor: pointer; }
.month-option input { position: absolute; opacity: 0; pointer-events: none; }
.month-option > span { min-height: 78px; padding: 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; color: #6f7c90; border: 1px solid #e4e8ef; border-radius: 14px; background: #fafbfe; transition: .18s ease; }
.month-option b { color: #a1a9b5; font-size: 8px; }
.month-option strong { font-size: 9px; }
.month-option i { width: 22px; height: 22px; display: grid; place-items: center; color: transparent; border: 1px solid #dde2e9; border-radius: 7px; background: #fff; font-style: normal; font-size: 8px; }
.month-option input:checked + span { color: #fff; border-color: transparent; background: linear-gradient(145deg, #685be3, #4375d8); box-shadow: 0 11px 24px rgba(83, 85, 207, .20); }
.month-option input:checked + span b { color: #d7d5ff; }
.month-option input:checked + span i { color: #5b55c8; border-color: transparent; }
.public-upload-zone { min-height: 190px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; border: 1.5px dashed #bfc7d6; border-radius: 18px; background: linear-gradient(145deg, #fafbfe, #f4f7fb); transition: .18s ease; }
.public-upload-zone:hover, .public-upload-zone.has-file { border-color: #665ddd; background: #f4f2ff; }
.public-upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.public-upload-icon { width: 53px; height: 53px; margin-bottom: 13px; display: grid; place-items: center; color: #fff; border-radius: 16px; background: linear-gradient(145deg, #695ce6, #168fc0); box-shadow: 0 12px 27px rgba(87, 84, 211, .22); font-size: 23px; }
.public-upload-zone strong { font-size: 11px; }
.public-upload-zone small { margin-top: 5px; color: #7f8b9e; font-size: 8px; }
.public-upload-zone em { margin-top: 10px; padding: 5px 9px; color: #818da0; border-radius: 15px; background: #e9edf4; font-size: 7px; font-style: normal; }
.public-payment-summary .public-summary-item { padding: 12px 0; border-bottom: 1px dashed #e0e5ec; }
.public-summary-item span, .public-summary-item strong { display: block; }
.public-summary-item span { color: #8a95a6; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.public-summary-item strong { margin-top: 4px; color: #263650; font-size: 10px; line-height: 1.45; }
.public-error { max-width: 720px; margin: 70px auto; padding: 60px; text-align: center; border: 1px solid #e4e8ee; border-radius: 26px; background: #fff; box-shadow: 0 25px 65px rgba(24, 38, 63, .12); }
.public-error > strong { color: #675ddd; font-size: 62px; }
.public-error h1 { margin: 5px 0; }
.public-error p { color: #7d889b; }
.login-back-home { position: fixed; z-index: 5; left: 22px; top: 20px; padding: 10px 13px; color: #d7deea; text-decoration: none; border: 1px solid rgba(255,255,255,.10); border-radius: 11px; background: rgba(255,255,255,.06); backdrop-filter: blur(12px); font-size: 8px; font-weight: 800; }
.dues-review-form { min-width: 205px; }
.dues-review-form > input { width: 100%; margin-bottom: 7px; }

@media (max-width: 1040px) {
  .public-header { grid-template-columns: auto 1fr auto; }
  .public-nav { display: none; grid-column: 1 / -1; width: 100%; justify-self: stretch; flex-direction: column; align-items: stretch; }
  .public-nav a { text-align: center; }
  .public-menu-button { display: block; justify-self: end; }
  .public-header-actions { display: none; }
  .public-menu-open .public-header { grid-template-columns: auto 1fr auto; }
  .public-menu-open .public-nav { display: flex; }
  .public-hero { grid-template-columns: 1fr; padding: 48px; }
  .public-hero-visual { min-height: 330px; }
  .chip-one { left: 10%; }
  .chip-two { right: 10%; }
  .public-info-band { grid-template-columns: 1fr; }
  .public-form-layout { grid-template-columns: 1fr; }
  .public-help-card { position: static; }
}

@media (max-width: 760px) {
  .public-shell { width: min(100% - 20px, 1260px); }
  .public-header { min-height: 68px; margin-top: 10px; padding: 10px 11px; top: 7px; border-radius: 17px; }
  .public-brand-mark { width: 42px; height: 42px; border-radius: 13px; }
  .public-brand small { display: none; }
  .public-main { padding-top: 20px; }
  .public-hero { min-height: 0; padding: 32px 23px; gap: 30px; border-radius: 25px; }
  .public-hero h1 { font-size: 39px; }
  .public-hero-copy > p { font-size: 11px; }
  .public-hero-actions { flex-direction: column; }
  .public-hero-actions .public-btn { width: 100%; }
  .public-trust-row { gap: 10px; flex-direction: column; }
  .public-hero-visual { min-height: 310px; }
  .public-visual-card { padding: 22px; }
  .public-floating-chip { display: none; }
  .public-section { margin-top: 16px; padding: 22px 16px; border-radius: 22px; }
  .public-section-heading { align-items: flex-start; }
  .public-section-heading h2 { font-size: 25px; }
  .public-year-badge { display: none; }
  .public-service-grid, .public-steps, .public-mini-stats { grid-template-columns: 1fr; }
  .public-service-card { min-height: 245px; }
  .public-info-band { gap: 20px; }
  .public-footer { flex-direction: column; }
  .public-footer b { text-align: left; }
  .public-form-hero { min-height: 0; padding: 29px 22px; border-radius: 23px; }
  .public-form-hero h1 { font-size: 31px; }
  .public-form-hero-badge { display: none; }
  .public-form-card { padding: 12px; border-radius: 20px; }
  .public-form-section { padding: 16px; border-radius: 16px; }
  .public-form-section-head { grid-template-columns: 34px 1fr; }
  .public-form-section-head > span { width: 34px; height: 34px; }
  .public-form-section-head > :last-child:not(div) { grid-column: 1 / -1; width: 100%; }
  .public-submit-bar { flex-direction: column; align-items: stretch; }
  .public-submit-bar .public-btn { width: 100%; }
  .month-selector-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .month-option > span { min-height: 67px; padding: 9px; }
  .public-upload-zone { min-height: 165px; }
  .login-back-home { left: 12px; top: 12px; }
}

/* ============================================================
   UPDATE GPA BLOK H — PHONE, FILTER, PAGINATION & ROLE CONTROL
   ============================================================ */
.header-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.inline-role-form { display:flex; align-items:center; gap:8px; min-width:260px; }
.inline-role-form select { min-width:130px; height:38px; padding:7px 32px 7px 10px; }
.inline-role-form .muted { white-space:nowrap; }

.pagination { margin-top:18px; padding:15px 17px; display:flex; align-items:center; justify-content:space-between; gap:14px; background:linear-gradient(135deg,rgba(91,93,240,.075),rgba(22,184,166,.055)); border:1px solid rgba(91,93,240,.12); border-radius:18px; }
.pagination-info { color:var(--muted); font-size:11px; font-weight:750; white-space:nowrap; }
.pagination-pages { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.pagination-btn,.pagination-number { min-height:36px; display:inline-flex; align-items:center; justify-content:center; padding:8px 12px; color:var(--text); background:rgba(255,255,255,.88); border:1px solid var(--line); border-radius:11px; font-size:10px; font-weight:800; text-decoration:none; box-shadow:0 5px 14px rgba(15,23,42,.045); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.pagination-number { min-width:36px; padding-inline:9px; }
.pagination-btn:hover,.pagination-number:hover { transform:translateY(-1px); border-color:rgba(91,93,240,.35); box-shadow:0 8px 18px rgba(91,93,240,.12); }
.pagination-number.active { color:#fff; background:linear-gradient(135deg,var(--primary),#7577ff); border-color:transparent; box-shadow:0 8px 20px rgba(91,93,240,.27); }
.pagination-btn.disabled { opacity:.42; cursor:not-allowed; box-shadow:none; }
.pagination-dots { padding:0 3px; color:var(--muted); font-weight:800; }

.resident-name small + small { margin-top:4px; color:#596579; }
.filter-panel .filter-search { min-width:min(100%,280px); flex:1 1 280px; }

@media (max-width:760px) {
  .pagination { align-items:flex-start; flex-direction:column; }
  .pagination-pages { justify-content:flex-start; width:100%; }
  .pagination-btn { flex:1 1 auto; }
  .inline-role-form { min-width:0; flex-wrap:wrap; }
  .inline-role-form select { flex:1 1 140px; }
  .header-actions { justify-content:flex-start; }
}


/* =====================================================================
   GPA BLOK H — ACCESSIBLE PREMIUM UI 2026
   Desain kontras tinggi, tulisan besar, navigasi jelas, dan aksen dinamis.
   ===================================================================== */
:root {
  --bg: #f4f1e9;
  --surface: rgba(255, 255, 255, .94);
  --surface-solid: #ffffff;
  --surface-soft: #f7faf8;
  --text: #15231f;
  --text-2: #294039;
  --muted: #5f716b;
  --line: rgba(23, 59, 50, .14);
  --line-strong: rgba(23, 59, 50, .24);
  --navy: #062f2d;
  --navy-2: #074a43;
  --navy-3: #0b655a;
  --primary: #087f6b;
  --primary-2: #0aa387;
  --cyan: #2a9fd6;
  --gold: #d6a84b;
  --gold-2: #f2d794;
  --success: #13795b;
  --success-soft: #e7f7f0;
  --danger: #c23b4d;
  --danger-soft: #fff0f2;
  --warning: #a86d17;
  --warning-soft: #fff7df;
  --info: #1d68b3;
  --info-soft: #edf6ff;
  --shadow-xs: 0 3px 10px rgba(13, 55, 46, .06);
  --shadow-sm: 0 14px 36px rgba(13, 55, 46, .10);
  --shadow: 0 24px 60px rgba(13, 55, 46, .13);
  --shadow-lg: 0 34px 90px rgba(4, 39, 36, .26);
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 32px;
}

body {
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-base: 17px;
  --fs-lg: 20px;
  --fs-xl: 27px;
  --fs-2xl: 38px;
  font-size: var(--fs-base);
  line-height: 1.68;
  font-weight: 500;
  letter-spacing: .002em;
}
body.font-size-large {
  --fs-xs: 14px;
  --fs-sm: 15px;
  --fs-md: 17px;
  --fs-base: 18px;
  --fs-lg: 22px;
  --fs-xl: 30px;
  --fs-2xl: 42px;
}
body.font-size-xlarge {
  --fs-xs: 15px;
  --fs-sm: 17px;
  --fs-md: 19px;
  --fs-base: 20px;
  --fs-lg: 24px;
  --fs-xl: 34px;
  --fs-2xl: 47px;
}

.app-body {
  background:
    radial-gradient(circle at 88% 4%, rgba(42, 159, 214, .13), transparent 25%),
    radial-gradient(circle at 10% 92%, rgba(214, 168, 75, .15), transparent 28%),
    linear-gradient(145deg, #fbfaf6 0%, #f1f7f4 52%, #eef5f8 100%);
}
.app-body::before { opacity: .22; background-size: 44px 44px; }
.ambient-one { background: radial-gradient(circle, rgba(10, 163, 135, .18), transparent 70%); }
.ambient-two { background: radial-gradient(circle, rgba(42, 159, 214, .14), transparent 70%); }
.ambient-three { background: radial-gradient(circle, rgba(214, 168, 75, .13), transparent 72%); }

.app-shell { grid-template-columns: 330px minmax(0, 1fr); }
.sidebar {
  width: 330px;
  padding: 25px 20px 20px;
  color: #e8fff8;
  background:
    radial-gradient(circle at 12% 0%, rgba(58, 196, 162, .25), transparent 28%),
    radial-gradient(circle at 90% 82%, rgba(42, 159, 214, .16), transparent 28%),
    linear-gradient(180deg, #053c37 0%, #07564d 46%, #063b38 100%);
  border-right: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 24px 0 70px rgba(3, 45, 40, .18);
}
.sidebar::after { opacity: .12; background-size: 34px 34px; }
.brand-mark {
  width: 52px; height: 52px; flex-basis: 52px; border-radius: 17px;
  background: linear-gradient(145deg, #f3c66f, #d4952e 72%);
  box-shadow: 0 15px 34px rgba(214, 168, 75, .30), inset 0 1px 0 rgba(255,255,255,.46);
}
.brand-mark span { font-size: 24px; color: #163a32; }
.brand-mark i { background: #80efcf; border-color: #b67a1d; }
.brand strong { font-size: var(--fs-md); }
.brand small { margin-top: 3px; color: #b9d8cf; font-size: var(--fs-xs); letter-spacing: .07em; }
.sidebar-command { margin: 24px 0 22px; padding: 15px; border-radius: 18px; background: rgba(255,255,255,.09); }
.sidebar-command small { color: #b6d3ca; font-size: var(--fs-xs); }
.sidebar-command strong { font-size: var(--fs-sm); }
.sidebar-command b { padding: 6px 8px; color: #b9ffe9; font-size: var(--fs-xs); }
.nav-caption { color: #a4c7bd; font-size: var(--fs-xs); letter-spacing: .12em; }
.sidebar-nav { gap: 8px; }
.nav-link {
  min-height: 69px;
  padding: 10px 12px;
  grid-template-columns: 46px 1fr 22px;
  color: #d3e9e3;
  border-radius: 18px;
}
.nav-link:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.13); }
.nav-link.active {
  color: #123d35;
  background: linear-gradient(135deg, #f8f4e8, #e9fff7);
  border-color: rgba(255,255,255,.52);
  box-shadow: 0 16px 34px rgba(1, 35, 31, .22);
}
.nav-link.active::before { left: -20px; width: 5px; background: linear-gradient(#f4ca71, #74e2c0); }
.nav-icon { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.10); }
.nav-link.active .nav-icon { color: #fff; background: linear-gradient(145deg, #0c9c83, #087465); }
.nav-icon svg { width: 22px; height: 22px; }
.nav-copy strong { font-size: var(--fs-md); font-weight: 800; }
.nav-copy small { margin-top: 2px; color: #a8c7be; font-size: var(--fs-xs); line-height: 1.35; }
.nav-link.active .nav-copy small { color: #57766e; }
.nav-arrow { color: #bed7d0; font-size: 26px; }
.nav-link.active .nav-arrow { color: #0a846f; }
.sidebar-footer { padding: 15px 12px; grid-template-columns: 46px 1fr 40px; background: rgba(255,255,255,.10); border-radius: 19px; }
.user-avatar { width: 46px; height: 46px; border-radius: 14px; font-size: var(--fs-sm); background: linear-gradient(145deg, #158e79, #0b5d52); }
.user-meta small { color: #b1d0c7; font-size: var(--fs-xs); }
.user-meta strong { color: #fff; font-size: var(--fs-sm); }
.user-meta span { color: #c4ded7; font-size: var(--fs-xs); }
.sidebar-logout { width: 38px; height: 38px; color: #e7fff8; border-radius: 12px; font-size: 20px; }

.main { grid-column: 2; }
.topbar {
  min-height: 110px;
  padding: 18px 34px;
  background: rgba(252, 251, 247, .88);
  border-bottom-color: rgba(8, 92, 78, .12);
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow: 0 10px 28px rgba(13, 55, 46, .06);
}
.page-path { color: #677c75; font-size: var(--fs-xs); letter-spacing: .08em; }
.page-path span { color: #087d69; }
.page-heading h1 { margin: 3px 0; color: #153a31; font-size: var(--fs-xl); }
.page-heading p { color: #5c746c; font-size: var(--fs-sm); }
.topbar-actions { gap: 12px; }
.live-clock, .topbar-user { min-height: 54px; border-color: rgba(8,92,78,.14); border-radius: 17px; background: rgba(255,255,255,.92); }
.live-clock { padding: 9px 14px; }
.live-clock small { font-size: var(--fs-xs); }
.live-clock strong { font-size: var(--fs-sm); }
.topbar-user { padding: 5px 13px 5px 6px; }
.topbar-user strong { font-size: var(--fs-sm); }
.topbar-user span { font-size: var(--fs-xs); }
.user-avatar.small { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(145deg, #10a98b, #087264); }
.icon-button { width: 50px; height: 50px; border-radius: 15px; border-color: rgba(8,92,78,.15); }
.icon-button svg { width: 22px; height: 22px; }
.content { padding: 34px 36px 62px; }
.content-inner { width: min(1540px, 100%); }
.grid { gap: 22px; }

.text-size-control {
  min-height: 54px;
  padding: 6px 8px 6px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #31574e;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(8,92,78,.16);
  border-radius: 17px;
  box-shadow: var(--shadow-xs);
}
.text-size-label { font-size: var(--fs-xs); font-weight: 800; white-space: nowrap; }
.text-size-buttons { display: flex; gap: 4px; }
.text-size-buttons button {
  width: auto;
  min-width: 38px;
  min-height: 38px;
  padding: 6px 8px;
  color: #44665e;
  background: #f1f7f4;
  border: 1px solid rgba(8,92,78,.12);
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}
.text-size-buttons button:hover { color: #075e54; border-color: rgba(8,92,78,.35); }
.text-size-buttons button.active { color: #fff; background: linear-gradient(145deg, #0ca287, #087364); border-color: transparent; box-shadow: 0 7px 16px rgba(8,127,107,.24); }
.text-size-control-compact { min-height: 46px; padding: 5px 6px; }
.text-size-control-compact .text-size-label { display: none; }
.text-size-control-compact .text-size-buttons button { min-width: 34px; min-height: 34px; }

.card {
  padding: 27px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(8,92,78,.12);
  box-shadow: 0 16px 42px rgba(13,55,46,.09);
  backdrop-filter: blur(16px) saturate(120%);
}
.card::after { background: linear-gradient(135deg, rgba(255,255,255,.55), transparent 42%); }
.premium-card { background: linear-gradient(145deg, #ffffff, #f5faf7); }
.premium-card::before { height: 5px; background: linear-gradient(90deg, #08a58a, #2a9fd6, #e2ad43); }
.card-header { margin-bottom: 22px; }
.card-header h2 { font-size: var(--fs-xl); }
.card-header h3 { font-size: var(--fs-lg); }
.card-eyebrow { color: #087d69; font-size: var(--fs-xs); }
.card-subtitle { color: #5b726b; font-size: var(--fs-sm); }
.card-icon-badge { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(145deg, #0fa98d, #087467); font-size: 22px; }
.record-count, .block-count { padding: 8px 13px; color: #075e54; background: #e7f7f0; font-size: var(--fs-xs); }

.dashboard-welcome, .page-hero {
  color: #fff;
  background:
    radial-gradient(circle at 82% 7%, rgba(42,159,214,.36), transparent 29%),
    radial-gradient(circle at 18% 100%, rgba(226,173,67,.25), transparent 31%),
    linear-gradient(135deg, #06443e 0%, #087466 55%, #0d5f78 100%);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 28px 72px rgba(4,59,53,.27);
}
.dashboard-welcome { padding: 34px; border-radius: 28px; }
.dashboard-welcome::before { background: radial-gradient(circle at 88% 15%, rgba(255,255,255,.17), transparent 28%); }
.dashboard-welcome h2 { font-size: var(--fs-xl); }
.dashboard-welcome p { color: #d3ece6; font-size: var(--fs-md); }
.dashboard-action { gap: 10px; }
.page-hero { min-height: 230px; padding: 36px; }
.hero-kicker { color: #ffe2a2; font-size: var(--fs-xs); }
.page-hero h2 { font-size: clamp(30px, 3.2vw, 46px); }
.page-hero p { color: #d3e9e4; font-size: var(--fs-md); }
.hero-metrics span { color: #c2ded7; font-size: var(--fs-xs); }
.hero-metrics strong { font-size: 34px; }

.stats-card { min-height: 180px; padding: 25px; border-top: 5px solid #0aa387; }
.stats-card:nth-child(4n+2) { border-top-color: #2a9fd6; background: linear-gradient(145deg, #fff, #f1f9fd); }
.stats-card:nth-child(4n+3) { border-top-color: #d6a84b; background: linear-gradient(145deg, #fff, #fff9eb); }
.stats-card:nth-child(4n+4) { border-top-color: #c65c75; background: linear-gradient(145deg, #fff, #fff4f6); }
.stats-icon { width: 48px; height: 48px; border-radius: 15px; font-size: 21px; color: #fff; background: linear-gradient(145deg, #0aa387, #087466); }
.stats-card:nth-child(4n+2) .stats-icon { background: linear-gradient(145deg, #43b5e7, #2378b9); }
.stats-card:nth-child(4n+3) .stats-icon { background: linear-gradient(145deg, #ebbf61, #bd7b22); }
.stats-card:nth-child(4n+4) .stats-icon { background: linear-gradient(145deg, #db7188, #a94158); }
.stats-label { color: #4d6b63; font-size: var(--fs-sm); letter-spacing: .05em; }
.stats-value { margin-top: 16px; color: #163f35; font-size: 42px; }
.stats-note { color: #60766f; font-size: var(--fs-sm); }

.form-grid { gap: 20px; }
.form-group label { margin-bottom: 8px; color: #29483f; font-size: var(--fs-md); font-weight: 800; }
input, select, textarea {
  min-height: 56px;
  padding: 13px 15px;
  color: #18352e;
  background: #fff;
  border: 1.5px solid #c9d9d4;
  border-radius: 15px;
  font-size: var(--fs-base);
  box-shadow: 0 5px 14px rgba(13,55,46,.04);
}
input::placeholder, textarea::placeholder { color: #7f928c; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: #0a977f; box-shadow: 0 0 0 5px rgba(10,151,127,.12); }
input[readonly] { color: #405a53; background: #f0f5f3; }
textarea { min-height: 130px; }
select { background-position: calc(100% - 20px) 25px, calc(100% - 14px) 25px; }
.help { margin-top: 7px; color: #5d746d; font-size: var(--fs-sm); }
.form-actions { gap: 10px; }
.btn, .public-btn {
  min-height: 50px;
  padding: 11px 18px;
  border-radius: 14px;
  font-size: var(--fs-md);
  font-weight: 800;
}
.btn-primary, .public-btn-primary { background: linear-gradient(135deg, #0ca58a, #087467 55%, #0d7184); box-shadow: 0 12px 26px rgba(8,127,107,.23); }
.btn-soft { color: #075e54; background: #e6f7f1; border-color: rgba(8,127,107,.16); }
.btn-light { color: #29483f; background: #fff; border-color: rgba(8,92,78,.16); }
.btn-success { background: linear-gradient(145deg, #16a078, #0d7559); }
.btn-danger { background: linear-gradient(145deg, #d25567, #ad3044); }
.btn-sm { min-height: 43px; padding: 9px 13px; border-radius: 12px; font-size: var(--fs-sm); }

.section-box { margin-top: 20px; padding: 25px; border-radius: 21px; background: linear-gradient(145deg, #f7fbf9, #fff); border-color: rgba(8,92,78,.13); }
.section-primary { background: linear-gradient(145deg, #eef9f5, #fff); }
.section-heading { margin-bottom: 20px; grid-template-columns: 44px 1fr; gap: 13px; }
.section-heading > span { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(145deg, #0aa387, #087264); font-size: var(--fs-sm); }
.section-heading h3 { font-size: var(--fs-lg); }
.section-heading p { color: #60766f; font-size: var(--fs-sm); }
.child-row { padding: 20px; border-radius: 19px; }
.child-row-head strong { font-size: var(--fs-md); }

.filter-bar { margin-bottom: 22px; padding: 18px; gap: 13px; background: linear-gradient(145deg, #eef8f4, #fff); border-color: rgba(8,92,78,.14); border-radius: 20px; }
.table-wrap { border-color: rgba(8,92,78,.14); border-radius: 20px; background: #fff; }
table { min-width: 860px; }
th, td { padding: 17px 18px; border-bottom-color: rgba(8,92,78,.10); }
th { color: #34584f; background: #eaf5f1; font-size: var(--fs-sm); letter-spacing: .05em; }
td { color: #29483f; font-size: var(--fs-md); line-height: 1.55; }
tbody tr:nth-child(even) { background: #fbfdfc; }
tbody tr:hover { background: #eef9f5; }
.actions { gap: 9px; }
.empty { padding: 42px; font-size: var(--fs-md); }
.empty-state > span { width: 56px; height: 56px; border-radius: 17px; color: #087f6b; background: #e6f7f1; font-size: 23px; }
.empty-state strong { font-size: var(--fs-md); }
.empty-state p { font-size: var(--fs-sm); }
.badge { padding: 8px 11px; font-size: var(--fs-sm); }
.alert { padding: 15px 17px; border-radius: 17px; font-size: var(--fs-md); }
.timeline-item { padding: 16px 0; grid-template-columns: 112px 1fr; gap: 17px; font-size: var(--fs-md); }
.kv { grid-template-columns: 210px 1fr; gap: 13px 20px; font-size: var(--fs-md); }

.smart-select-trigger { min-height: 56px; padding: 10px 14px; border-radius: 15px; border-width: 1.5px; }
.smart-select-trigger::before { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg, #0aa387, #087264); }
.smart-select-value { font-size: var(--fs-md); }
.smart-select-menu { padding: 13px; border-radius: 19px; }
.smart-select-option { padding: 12px; grid-template-columns: 42px 1fr 24px; border-radius: 14px; }
.smart-select-option:hover, .smart-select-option.selected { background: #ebf8f3; border-color: rgba(8,127,107,.15); }
.smart-select-option strong { font-size: var(--fs-md); }
.smart-select-option small { font-size: var(--fs-sm); }
.smart-select-empty { font-size: var(--fs-sm); }
.block-option-mark { width: 39px; height: 39px; color: #075e54; background: #dff5ed; }
.block-pill { padding: 9px 12px; color: #075e54; background: #e5f7f0; font-size: var(--fs-sm); }
.person-avatar { width: 44px; height: 44px; flex-basis: 44px; font-size: var(--fs-sm); background: linear-gradient(145deg, #0aa387, #087264); }
.resident-name { min-width: 250px; }

.pagination { padding: 18px 20px; border-color: rgba(8,92,78,.15); background: linear-gradient(135deg, #eaf7f2, #f1f8fc); }
.pagination-info { font-size: var(--fs-sm); }
.pagination-btn, .pagination-number { min-height: 44px; padding: 9px 14px; border-radius: 13px; font-size: var(--fs-sm); }
.pagination-number { min-width: 44px; }
.pagination-number.active { background: linear-gradient(135deg, #0aa387, #087264); box-shadow: 0 9px 22px rgba(8,127,107,.25); }

.public-body {
  color: #16342d;
  background:
    radial-gradient(circle at 92% 3%, rgba(42,159,214,.17), transparent 25%),
    radial-gradient(circle at 5% 93%, rgba(214,168,75,.16), transparent 28%),
    linear-gradient(145deg, #fbfaf5, #f0f7f4 55%, #edf5f8);
}
.public-header {
  min-height: 88px;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  padding: 12px 15px;
  border-color: rgba(8,92,78,.14);
  background: rgba(255,255,255,.90);
  box-shadow: 0 16px 42px rgba(13,55,46,.10);
}
.public-brand-mark { width: 54px; height: 54px; border-radius: 17px; color: #173c33; background: linear-gradient(145deg, #f2c66f, #d79b37); font-size: 23px; }
.public-brand strong { font-size: var(--fs-md); }
.public-brand small { font-size: var(--fs-xs); color: #5f766f; }
.public-nav { gap: 6px; }
.public-nav a { padding: 11px 14px; border-radius: 13px; font-size: var(--fs-sm); font-weight: 800; }
.public-nav a.active { color: #fff; background: linear-gradient(145deg, #0aa387, #087264); }
.public-accessibility { display: flex; align-items: center; }
.public-main { padding-top: 34px; }
.public-hero, .public-form-hero {
  background:
    radial-gradient(circle at 87% 10%, rgba(42,159,214,.37), transparent 30%),
    radial-gradient(circle at 16% 100%, rgba(226,173,67,.23), transparent 31%),
    linear-gradient(135deg, #05413b, #087466 58%, #0e6078);
  box-shadow: 0 30px 78px rgba(4,59,53,.27);
}
.public-hero { min-height: 590px; padding: 60px; }
.public-kicker { color: #ffe3a8; font-size: var(--fs-xs); }
.public-hero h1 { font-size: clamp(48px, 5vw, 76px); }
.public-hero-copy > p { color: #d0e9e3; font-size: var(--fs-md); }
.public-trust-row { color: #c1ddd6; font-size: var(--fs-sm); }
.public-visual-head { font-size: var(--fs-xs); }
.public-visual-card h3 { font-size: var(--fs-lg); }
.public-visual-card p { color: #c6ded8; font-size: var(--fs-sm); }
.public-visual-foot, .public-floating-chip small { font-size: var(--fs-xs); }
.public-floating-chip b { font-size: var(--fs-sm); }
.public-section { padding: 46px; border-color: rgba(8,92,78,.12); background: rgba(255,255,255,.88); box-shadow: 0 20px 58px rgba(13,55,46,.09); }
.public-section-heading span, .public-info-copy > span { color: #087d69; font-size: var(--fs-xs); }
.public-section-heading h2, .public-info-copy h2 { font-size: var(--fs-xl); }
.public-section-heading p { color: #5f746d; font-size: var(--fs-sm); }
.public-service-card { min-height: 330px; padding: 27px; border-color: rgba(8,92,78,.13); }
.public-service-card:nth-child(1) { border-top: 5px solid #0aa387; }
.public-service-card:nth-child(2) { border-top: 5px solid #2a9fd6; }
.public-service-card:nth-child(3) { border-top: 5px solid #d6a84b; }
.public-service-number { font-size: var(--fs-xs); }
.public-service-card h3 { font-size: var(--fs-lg); }
.public-service-card p { min-height: 75px; color: #5d746d; font-size: var(--fs-sm); }
.public-service-link { color: #087d69; font-size: var(--fs-sm); }
.public-steps > div { min-height: 130px; padding: 19px; border-color: rgba(8,92,78,.13); }
.public-steps > div > b { width: 38px; height: 38px; flex-basis: 38px; background: #087466; font-size: var(--fs-sm); }
.public-steps strong { font-size: var(--fs-md); }
.public-steps small { font-size: var(--fs-sm); }
.public-mini-stats span, .public-mini-stats small { font-size: var(--fs-sm); }
.public-mini-stats strong { font-size: 34px; }
.public-footer { font-size: var(--fs-sm); }
.public-footer strong { font-size: var(--fs-md); }
.public-form-hero h1 { font-size: var(--fs-2xl); }
.public-form-hero p { color: #d0e8e2; font-size: var(--fs-md); }
.public-form-hero-badge strong, .public-form-hero-badge small { font-size: var(--fs-sm); }
.public-form-card { border-color: rgba(8,92,78,.13); }
.public-form-section-head h2, .public-form-section-head h3 { font-size: var(--fs-lg); }
.public-form-section-head p { font-size: var(--fs-sm); }
.public-help-label { color: #087d69; font-size: var(--fs-xs); }
.public-help-card h3 { font-size: var(--fs-lg); }
.public-help-card li { font-size: var(--fs-sm); }
.public-help-security strong { font-size: var(--fs-sm); }
.public-help-security small { font-size: var(--fs-xs); }
.public-help-card > a { color: #087d69; font-size: var(--fs-sm); }
.month-selection-count { color: #075e54; background: #e5f7f0; font-size: var(--fs-sm); }
.month-option > span { min-height: 92px; }
.month-option b, .month-option strong { font-size: var(--fs-sm); }
.month-option input:checked + span { background: linear-gradient(145deg, #0aa387, #087264); }
.public-upload-zone strong { font-size: var(--fs-md); }
.public-upload-zone small { font-size: var(--fs-sm); }
.public-upload-zone em { font-size: var(--fs-xs); }
.public-summary-item span { font-size: var(--fs-xs); }
.public-summary-item strong { font-size: var(--fs-md); }
.public-alert { font-size: var(--fs-md); }

.login-body {
  background: #04342f;
}
.login-body::before {
  background:
    radial-gradient(circle at 17% 12%, rgba(42,159,214,.22), transparent 31%),
    radial-gradient(circle at 91% 88%, rgba(226,173,67,.18), transparent 28%),
    linear-gradient(135deg, #033b35 0%, #075b51 54%, #0b5466 100%);
}
.login-info h1 { font-size: clamp(42px, 5vw, 68px); }
.login-info > p { color: #d2e7e2; font-size: var(--fs-md); }
.login-eyebrow { color: #ffe0a0; font-size: var(--fs-xs); }
.login-feature-grid strong { font-size: var(--fs-md); }
.login-feature-grid span { font-size: var(--fs-sm); }
.login-card { border-color: rgba(255,255,255,.28); }
.login-card-head small { color: #087d69; font-size: var(--fs-xs); }
.login-card-head h2 { font-size: var(--fs-xl); }
.login-card-head p { font-size: var(--fs-sm); }
.login-security { font-size: var(--fs-sm); }
.login-back-home { left: 24px; top: 22px; padding: 12px 16px; font-size: var(--fs-sm); }
.login-body > .text-size-control { position: fixed; z-index: 8; right: 24px; top: 20px; }

@media (max-width: 1260px) {
  .app-shell { grid-template-columns: 300px minmax(0,1fr); }
  .sidebar { width: 300px; }
  .text-size-label { display: none; }
  .topbar-user { display: none; }
}

@media (max-width: 960px) {
  .app-shell { display: block; }
  .sidebar { width: min(360px, 90vw); transform: translateX(-105%); transition: transform .24s ease; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .main { grid-column: auto; }
  .menu-button { display: block; width: 50px; height: 50px; border-radius: 15px; }
  .topbar { min-height: 96px; padding: 14px 20px; }
  .live-clock { display: none; }
  .content { padding: 24px 20px 48px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .public-header { grid-template-columns: auto 1fr auto auto; }
  .public-header-actions { display: none; }
  .public-nav { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { --fs-base: 17px; }
  body.font-size-large { --fs-base: 18px; }
  body.font-size-xlarge { --fs-base: 19px; }
  .topbar { align-items: flex-start; }
  .topbar-actions { margin-left: auto; }
  .topbar .text-size-control { min-height: 48px; }
  .topbar .text-size-buttons button { min-width: 33px; min-height: 33px; padding: 4px 6px; }
  .page-path, .page-heading p { display: none; }
  .page-heading h1 { margin-top: 8px; font-size: 25px; }
  .content { padding: 18px 12px 38px; }
  .card, .section-box { padding: 20px; border-radius: 20px; }
  .dashboard-welcome { padding: 26px 22px; grid-template-columns: 1fr; }
  .dashboard-action { display: grid; grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-card { min-height: 160px; }
  .filter-bar { padding: 15px; }
  th, td { padding: 15px; }
  .public-shell { width: min(100% - 18px, 1260px); }
  .public-header { grid-template-columns: auto 1fr auto; }
  .public-accessibility { grid-column: 2; justify-self: end; }
  .public-menu-button { grid-column: 3; }
  .public-brand small { display: none; }
  .public-accessibility .text-size-buttons button:first-child { display: none; }
  .public-hero { padding: 36px 24px; }
  .public-hero h1 { font-size: 43px; }
  .public-hero-copy > p { font-size: 17px; }
  .public-section { padding: 25px 18px; }
  .public-service-card { min-height: 295px; }
  .public-form-hero { padding: 32px 23px; }
  .public-form-hero h1 { font-size: 34px; }
  .login-body > .text-size-control { right: 12px; top: 12px; }
  .login-back-home { left: 12px; top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Penyempurnaan keterbacaan untuk elemen kecil yang tersebar di seluruh modul. */
.input-suffix span,
.detail-stack b,
.family-chip,
.family-chip b,
.resident-name small,
.login-signature small,
.login-card p,
.public-year-badge small,
.public-submit-bar span,
.responsive-table td::before { font-size: var(--fs-sm); }
.resident-name strong,
.login-signature strong,
.public-submit-bar strong,
.public-form-card .form-group label { font-size: var(--fs-md); }
.block-pill b { width: 24px; height: 24px; font-size: var(--fs-xs); }
.login-feature-grid b,
.public-floating-chip > span,
.public-form-section-head > span,
.public-help-security > b { font-size: var(--fs-sm); }
.public-btn-lg { min-height: 56px; padding-inline: 24px; font-size: var(--fs-md); }
.detail-stack { font-size: var(--fs-sm); }
.family-chip { padding: 8px 11px; }

/* ================================================================
   Hak Akses Dinamis & Financial Control Center — Update 2026
   ================================================================ */
.nav-link.finance-sub {
  margin-left: 18px;
  width: calc(100% - 18px);
  border-left: 2px solid rgba(255,255,255,.16);
  border-radius: 0 16px 16px 0;
  background: rgba(255,255,255,.025);
}
.nav-link.finance-sub .nav-icon { transform: scale(.9); }
.nav-link.finance-sub .nav-copy strong { font-size: .92em; }
.nav-link.finance-sub.active {
  border-left-color: #f3c969;
  background: linear-gradient(90deg, rgba(243,201,105,.16), rgba(255,255,255,.06));
}

.permission-control-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(14,116,144,.14), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(244,250,248,.95));
}
.role-access-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 20px;
  padding: 7px;
  border-radius: 18px;
  background: #eaf3f0;
  border: 1px solid rgba(7,94,84,.12);
}
.role-access-tabs a {
  flex: 1 1 130px;
  text-align: center;
  padding: 12px 16px;
  border-radius: 13px;
  font-weight: 800;
  color: #315b55;
  transition: .2s ease;
}
.role-access-tabs a:hover { background: rgba(255,255,255,.8); transform: translateY(-1px); }
.role-access-tabs a.active {
  color: #fff;
  background: linear-gradient(135deg, #075e54, #0f8c7d);
  box-shadow: 0 10px 25px rgba(7,94,84,.24);
}
.permission-role-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: #0d4d45;
  background: linear-gradient(135deg, #e1f3ed, #f4faf8);
  border: 1px solid rgba(7,94,84,.12);
}
.permission-role-summary span { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.permission-role-summary strong { font-size: 1.3rem; }
.permission-role-summary small { grid-column: 1 / -1; color: #5c716d; }
.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.permission-group {
  padding: 15px;
  border: 1px solid rgba(12,81,73,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 8px 24px rgba(26,63,57,.06);
}
.permission-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4eeeb;
}
.permission-group-head strong { color: #0d5a50; font-size: 1rem; }
.permission-group-head span { color: #71827f; font-size: .75rem; font-weight: 700; }
.permission-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px;
  margin: 4px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: .18s ease;
}
.permission-item:hover { background: #f0f8f5; }
.permission-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: #08776a; flex: 0 0 auto; }
.permission-item span { min-width: 0; }
.permission-item strong { display: block; font-size: .91rem; line-height: 1.35; color: #263e3a; }
.permission-item small { display: block; margin-top: 3px; color: #80918e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; overflow-wrap: anywhere; }
.permission-reset-form { margin-top: -45px; display: flex; justify-content: flex-end; pointer-events: none; }
.permission-reset-form .btn { pointer-events: auto; }

.finance-landing { margin-bottom: 18px; }
.finance-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 27px;
  border-radius: 25px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 0%, rgba(246,211,117,.32), transparent 32%),
    linear-gradient(125deg, #063f39 0%, #087467 56%, #0a8f80 100%);
  box-shadow: 0 22px 55px rgba(4,67,60,.24);
  overflow: hidden;
}
.finance-hero-card h2 { margin: 5px 0 7px; font-size: clamp(1.55rem, 2vw, 2.2rem); }
.finance-hero-card p { max-width: 730px; margin: 0; color: rgba(255,255,255,.8); }
.finance-hero-card .card-eyebrow { color: #f5d982; }
.finance-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.finance-hero-actions .btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.26); }
.finance-dashboard-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 15px;
  margin-top: 15px;
}
.finance-dashboard-link {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: 21px;
  border: 1px solid rgba(7,94,84,.13);
  background: linear-gradient(145deg, #fff, #f2f8f6);
  box-shadow: 0 12px 30px rgba(38,69,64,.08);
  color: #183c37;
  transition: transform .2s ease, box-shadow .2s ease;
}
.finance-dashboard-link:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(38,69,64,.13); }
.finance-link-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #087467, #0ca495);
  font-size: 1.55rem;
  font-weight: 900;
}
.finance-dashboard-link small { display: block; color: #7a8d89; font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.finance-dashboard-link strong { display: block; margin: 2px 0; color: #075e54; font-size: 1.08rem; }
.finance-dashboard-link p { margin: 0; color: #687a77; font-size: .86rem; }
.finance-dashboard-link > b { font-size: 1.45rem; color: #0a8174; }
.finance-stat-grid { margin: 0 0 18px; }
.finance-stat { overflow: hidden; position: relative; }
.finance-stat::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -35px; top: -35px; background: rgba(8,116,103,.09); }
.finance-stat.income { border-top: 4px solid #16a777; }
.finance-stat.expense { border-top: 4px solid #df5e66; }
.finance-stat.month { border-top: 4px solid #3f83c9; }
.finance-stat.total { border-top: 4px solid #d6a83a; }

.treasury-intro, .dues-recap-intro, .rates-intro { border-top: 4px solid #0b8577; }
.checkbox-line { display: flex; align-items: center; gap: 9px; min-height: 46px; font-weight: 700; }
.checkbox-line input { width: 20px; height: 20px; accent-color: #08776a; }
.rate-summary-grid { margin: 15px 0 18px; }
.mini-summary { padding: 15px 17px; border-radius: 16px; background: #eff7f4; border: 1px solid #dbeae5; }
.mini-summary span { display: block; color: #73837f; font-size: .78rem; font-weight: 700; }
.mini-summary strong { display: block; margin-top: 4px; color: #0a6156; font-size: 1.15rem; }

.dues-matrix-wrap { max-width: 100%; }
.dues-matrix-table { min-width: 1560px; border-collapse: separate; border-spacing: 0; }
.dues-matrix-table thead th { position: sticky; top: 0; z-index: 3; text-align: center; white-space: nowrap; }
.dues-matrix-table thead th:first-child,
.dues-matrix-table tbody td:first-child { position: sticky; left: 0; z-index: 4; min-width: 95px; background: #f8fbfa; }
.dues-matrix-table thead th:nth-child(2),
.dues-matrix-table tbody td:nth-child(2) { position: sticky; left: 95px; z-index: 4; min-width: 190px; background: #fff; box-shadow: 8px 0 15px -15px rgba(0,0,0,.45); }
.dues-matrix-table thead th:nth-child(2) { background: #e8f3f0; }
.dues-matrix-table th small { display: block; margin-top: 4px; color: #637a75; font-size: .66rem; font-weight: 600; }
.dues-cell { min-width: 92px; text-align: center; border-left: 1px solid #edf1ef; }
.dues-cell span { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .74rem; font-weight: 900; }
.dues-cell small { display: block; margin-top: 5px; color: #58706a; font-size: .69rem; }
.dues-cell.paid { background: #ecfaf5; }
.dues-cell.paid span { color: #087252; background: #ccefe1; }
.dues-cell.unpaid span { color: #9a6265; background: #f7e8e9; }
.dues-total { min-width: 125px; white-space: nowrap; color: #075e54; background: #f1f8f6; }

@media (max-width: 1180px) {
  .permission-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .finance-hero-card { align-items: flex-start; flex-direction: column; }
  .finance-hero-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .permission-grid, .finance-dashboard-links { grid-template-columns: 1fr; }
  .permission-reset-form { margin-top: 10px; justify-content: flex-start; }
  .finance-hero-card { padding: 21px; border-radius: 20px; }
  .finance-dashboard-link { grid-template-columns: 46px 1fr; }
  .finance-dashboard-link > b { display: none; }
  .finance-link-icon { width: 46px; height: 46px; }
  .nav-link.finance-sub { margin-left: 10px; width: calc(100% - 10px); }
}

/* ================================================================
   Rekap historis & iuran otomatis — Update Juli 2026
   ================================================================ */
.nav-link.finance-sub {
  min-height: 48px;
  margin: 2px 8px 2px 30px;
  width: calc(100% - 38px);
  padding: 10px 12px;
  border-left: 0;
  border-radius: 14px;
  background: transparent;
}
.nav-link.finance-sub::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-right: 2px;
  border-radius: 50%;
  background: rgba(255,255,255,.34);
  flex: 0 0 auto;
}
.nav-link.finance-sub .nav-icon { width: 30px; height: 30px; transform: none; }
.nav-link.finance-sub .nav-copy { min-width: 0; }
.nav-link.finance-sub .nav-copy strong { font-size: var(--fs-sm); line-height: 1.25; }
.nav-link.finance-sub.active::before { background: #f3c969; box-shadow: 0 0 0 5px rgba(243,201,105,.13); }
.nav-link.finance-sub.active { border-left: 0; background: rgba(255,255,255,.09); }

.dues-year-groups { display: grid; gap: 20px; }
.dues-year-group {
  padding: 18px;
  border: 1px solid rgba(7,94,84,.13);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(239,248,245,.9));
  box-shadow: 0 12px 32px rgba(8,67,61,.07);
}
.dues-year-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.dues-year-heading div { display: flex; align-items: baseline; gap: 10px; }
.dues-year-heading small { color: #607a74; font-size: var(--fs-xs); font-weight: 900; letter-spacing: .12em; }
.dues-year-heading strong { color: #075e54; font-size: clamp(1.4rem, 2vw, 2rem); }
.select-year-periods {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(7,94,84,.18);
  border-radius: 12px;
  color: #075e54;
  background: #fff;
  font-weight: 850;
  cursor: pointer;
}
.month-option span small { display: block; color: #6b817c; font-size: .72em; font-style: normal; font-weight: 750; }

.manual-dues-guide {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid rgba(201,145,24,.22);
  background: linear-gradient(135deg, #fffaf0, #fff 58%, #eef8f5);
}
.manual-dues-guide h3 { margin: 2px 0 6px; color: #173f38; font-size: var(--fs-lg); }
.manual-dues-guide p { margin: 0; color: #5a706b; }
.manual-dues-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #0a796b, #075e54);
  box-shadow: 0 12px 24px rgba(7,94,84,.22);
  font-size: 1.7rem;
  font-weight: 950;
}
.manual-dues-form { display: flex; justify-content: center; margin: 0 0 5px; }
.manual-paid-check { position: relative; display: inline-grid; place-items: center; width: 27px; height: 27px; cursor: pointer; }
.manual-paid-check input { position: absolute; opacity: 0; pointer-events: none; }
.manual-paid-check i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #a9bdb8;
  border-radius: 8px;
  color: transparent;
  background: #fff;
  font-style: normal;
  font-size: .8rem;
  font-weight: 950;
  transition: .18s ease;
}
.manual-paid-check:hover i { border-color: #0b796b; transform: translateY(-1px); }
.manual-paid-check.checked i { border-color: #087252; color: #fff; background: #087252; }
.manual-paid-check.locked { cursor: not-allowed; opacity: .68; }
.manual-paid-check.locked i { transform: none; }

.auto-transaction-badge,
.auto-finance-note,
.locked-transaction {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 850;
}
.auto-transaction-badge { padding: 3px 7px; margin-left: 5px; color: #075e54; background: #d9f3ea; font-size: .66rem; letter-spacing: .06em; }
.auto-finance-note { padding: 5px 9px; margin-top: 7px; color: #075e54; background: #e6f5f0; font-size: var(--fs-xs); }
.locked-transaction { padding: 7px 10px; color: #596c68; background: #eef2f1; font-size: var(--fs-xs); }

@media (max-width: 760px) {
  .nav-link.finance-sub { margin-left: 20px; width: calc(100% - 28px); }
  .dues-year-group { padding: 14px; }
  .dues-year-heading { align-items: flex-start; }
  .manual-dues-guide { grid-template-columns: 1fr; }
  .manual-dues-icon { width: 48px; height: 48px; border-radius: 15px; }
}

/* ================================================================
   Penyempurnaan Sidebar & Modul Bendahara — Juli 2026
   ================================================================ */
.nav-link.finance-sub {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 11px;
  align-items: center;
  min-height: 62px;
  width: calc(100% - 18px) !important;
  margin: 3px 0 3px 18px !important;
  padding: 9px 12px !important;
  color: #e1f3ed;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
}
.nav-link.finance-sub::before { content: none !important; display: none !important; }
.nav-link.finance-sub::after {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: rgba(214,238,231,.55);
  box-shadow: 0 0 0 4px rgba(255,255,255,.04);
}
.nav-link.finance-sub .nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: rgba(255,255,255,.09);
}
.nav-link.finance-sub .nav-copy { min-width: 0; }
.nav-link.finance-sub .nav-copy strong {
  display: block;
  color: inherit;
  font-size: var(--fs-md) !important;
  line-height: 1.32 !important;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.nav-link.finance-sub.active {
  color: #123d35;
  background: linear-gradient(135deg, #fff7df, #e5fff6);
  border-color: rgba(255,255,255,.62);
  box-shadow: 0 13px 28px rgba(2,36,31,.18);
}
.nav-link.finance-sub.active::after { background: #f3c969; box-shadow: 0 0 0 5px rgba(243,201,105,.17); }
.nav-link.finance-sub.active .nav-icon { color: #fff; background: linear-gradient(145deg, #0c9c83, #087465); }

.header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.multi-period-filter { align-items: end; }
.multi-period-filter .form-group { min-width: 145px; }
.multi-period-filter .filter-search { flex: 1 1 260px; }
.filter-hint {
  margin: -4px 0 15px;
  padding: 9px 12px;
  color: #54716b;
  background: #eef8f5;
  border: 1px solid rgba(7,94,84,.10);
  border-radius: 11px;
  font-size: var(--fs-sm);
}
.dues-delete-form { margin-top: 8px; }

.dues-block-status {
  margin: 0 0 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(7,94,84,.14);
  border-radius: 17px;
  background: #f1f8f6;
}
.dues-block-status-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0b8975;
  border-radius: 12px;
  font-weight: 900;
}
.dues-block-status strong, .dues-block-status p { display: block; margin: 0; }
.dues-block-status strong { color: #15453d; font-size: var(--fs-md); }
.dues-block-status p { margin-top: 3px; color: #607a74; font-size: var(--fs-sm); line-height: 1.55; }
.dues-block-status.waiting { background: #f6f5ef; border-color: rgba(153,126,55,.15); }
.dues-block-status.waiting .dues-block-status-icon { background: #aa8a36; }
.dues-block-status.has-paid { background: #fff7e7; border-color: rgba(200,139,34,.20); }
.dues-block-status.has-paid .dues-block-status-icon { background: #c78a24; }
.dues-block-status.clear { background: #eaf8f2; }

.month-option { position: relative; }
.month-option .month-paid-label {
  display: none;
  grid-column: 1 / -1;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 7px;
  color: #8a5f13;
  background: #fff0c8;
  border-radius: 999px;
  font-size: .68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
}
.month-option.paid-locked { cursor: not-allowed; opacity: .82; }
.month-option.paid-locked > span {
  color: #6d756f;
  background: linear-gradient(145deg, #f5f3eb, #ecefe9);
  border-color: rgba(95,105,98,.16);
  box-shadow: none;
}
.month-option.paid-locked .month-paid-label { display: inline-flex; }
.month-option.paid-locked i { display: none; }
.month-option input:disabled + span { pointer-events: none; }
.select-year-periods:disabled { cursor: not-allowed; opacity: .55; }

@media (max-width: 960px) {
  .nav-link.finance-sub { width: calc(100% - 14px) !important; margin-left: 14px !important; }
}
@media (max-width: 680px) {
  .nav-link.finance-sub { min-height: 58px; grid-template-columns: 38px minmax(0,1fr) !important; }
  .nav-link.finance-sub .nav-icon { width: 36px; height: 36px; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .header-actions .btn { flex: 1 1 auto; }
  .multi-period-filter .form-group { min-width: 100%; }
  .dues-block-status { grid-template-columns: 34px minmax(0,1fr); padding: 12px; }
  .dues-block-status-icon { width: 34px; height: 34px; }
}

/* ===== Update Dashboard, Rekap Iuran Terpadu, dan Pemeliharaan Data ===== */
.finance-live-card { position: relative; overflow: hidden; }
.finance-live-card::after { content: ""; position: absolute; right: -28px; top: -28px; width: 100px; height: 100px; border-radius: 50%; opacity: .12; background: currentColor; }
.finance-live-card.income { border-top-color: #0f9f77; }
.finance-live-card.expense { border-top-color: #df5367; }
.finance-live-card.balance { border-top-color: #3989d8; }
.finance-live-card.total { border-top-color: #d4a22f; }

/* Submenu keuangan dibuat selebar kontainer dan tidak memotong tulisan. */
.sidebar-nav .nav-link.finance-sub {
  width: calc(100% - 18px) !important;
  min-height: 58px !important;
  margin: 5px 0 5px 18px !important;
  padding: 10px 12px !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  gap: 10px !important;
  border-radius: 16px !important;
  overflow: visible !important;
}
.sidebar-nav .nav-link.finance-sub .nav-copy { display: block !important; min-width: 0 !important; overflow: visible !important; }
.sidebar-nav .nav-link.finance-sub .nav-copy strong {
  display: block !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  font-size: var(--fs-md) !important;
  line-height: 1.28 !important;
}
.sidebar-nav .nav-link.finance-sub .nav-icon { width: 38px !important; height: 38px !important; flex: 0 0 38px !important; }

.verification-moved-card { border: 1px solid rgba(15,159,119,.16); background: linear-gradient(145deg, rgba(240,252,248,.96), rgba(255,255,255,.96)); }
.manual-access-control {
  margin: 18px 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,.09);
  background: linear-gradient(145deg, #fff, #f4f8f7);
  box-shadow: var(--shadow-sm);
}
.manual-access-control.is-open { border-color: rgba(15,159,119,.24); background: linear-gradient(145deg, #edfbf6, #fff); }
.manual-access-control.is-locked { border-color: rgba(196,139,42,.24); background: linear-gradient(145deg, #fff9eb, #fff); }
.manual-access-control h3, .manual-access-control p { margin: 0; }
.manual-access-control p { margin-top: 5px; color: var(--muted); line-height: 1.55; }
.dues-cell.sequence-locked { background: linear-gradient(145deg, #f6f7f8, #eef1f1); opacity: .74; }
.dues-cell.sequence-locked small { color: #78837f; }

.maintenance-hero { background: linear-gradient(135deg, rgba(7,94,84,.98), rgba(19,139,120,.94)); color: #fff; }
.maintenance-hero h2, .maintenance-hero .card-subtitle, .maintenance-hero .card-eyebrow { color: #fff; }
.maintenance-hero .record-count { color: #075e54; background: rgba(255,255,255,.92); }
.maintenance-stats { margin-top: 18px; }
.maintenance-grid { margin-top: 18px; }
.maintenance-card { position: relative; min-height: 280px; padding-top: 72px; overflow: hidden; }
.maintenance-card-icon { position: absolute; left: 24px; top: 22px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; font-weight: 900; }
.maintenance-card.safe .maintenance-card-icon { color: #08745f; background: #dcf7ed; }
.maintenance-card.warning .maintenance-card-icon { color: #946514; background: #fff1c8; }
.maintenance-card p { color: var(--muted); line-height: 1.65; }
.maintenance-danger-form { display: grid; gap: 13px; margin-top: 16px; }
.restricted-note { margin-top: 16px; padding: 14px 16px; color: #6d5c2e; background: #fff7dc; border: 1px solid rgba(187,139,36,.18); border-radius: 14px; }
.danger-zone { margin-top: 18px; border: 1px solid rgba(209,67,91,.18); background: linear-gradient(145deg, rgba(255,248,249,.98), #fff); }
.reset-form { margin-top: 8px; }
.check-line { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; }
.check-line input { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .manual-access-control { grid-template-columns: 44px minmax(0,1fr); }
  .manual-access-control form { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .sidebar-nav .nav-link.finance-sub { width: calc(100% - 10px) !important; margin-left: 10px !important; }
  .maintenance-card { min-height: auto; }
  .manual-access-control { padding: 16px; }
}

/* ===== Sidebar Bersih Semua Role — Update 2026 =====
   Menghapus teks sekunder yang tidak diperlukan dan menjaga judul menu tetap jelas. */
.sidebar-top {
  min-height: 56px;
  margin-bottom: 18px;
}
.brand {
  min-width: 0;
}
.brand > div:last-child {
  min-width: 0;
  display: flex;
  align-items: center;
}
.brand strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-command,
.nav-caption,
.nav-copy small,
.user-meta small {
  display: none !important;
}
.sidebar-nav {
  gap: 7px;
  padding-top: 2px;
}
.sidebar-nav .nav-link {
  min-height: 58px;
  padding-top: 9px;
  padding-bottom: 9px;
  align-items: center;
}
.sidebar-nav .nav-copy {
  display: flex;
  min-width: 0;
  align-items: center;
}
.sidebar-nav .nav-copy strong {
  display: block;
  margin: 0;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
.sidebar-nav .nav-link.finance-sub {
  min-height: 54px !important;
  margin-top: 3px !important;
  margin-bottom: 3px !important;
}
.sidebar-footer {
  margin-top: 18px;
}
.user-meta strong {
  margin-top: 0;
  line-height: 1.25;
}
.user-meta span {
  margin-top: 3px;
  line-height: 1.25;
}

@media (max-width: 680px) {
  .sidebar-top { margin-bottom: 14px; }
  .sidebar-nav .nav-link { min-height: 56px; }
  .sidebar-nav .nav-link.finance-sub { min-height: 52px !important; }
}
