:root {
  --ink: #071421;
  --muted: #64748b;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --line: rgba(15, 23, 42, 0.1);
  --nav: #081120;
  --nav-soft: #111c31;
  --blue: #246bfe;
  --cyan: #12b4d8;
  --green: #11a36a;
  --amber: #f4a62a;
  --coral: #f15f5f;
  --violet: #6d5dfc;
  --shadow: 0 24px 70px rgba(17, 34, 64, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(36, 107, 254, 0.12), transparent 32%),
    linear-gradient(240deg, rgba(18, 180, 216, 0.16), transparent 34%),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 92px),
    #eef4f8;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.app-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  color: #d7e3f7;
  background:
    linear-gradient(170deg, rgba(36, 107, 254, 0.18), transparent 38%),
    linear-gradient(16deg, rgba(18, 180, 216, 0.08), transparent 36%),
    var(--nav);
  box-shadow: 18px 0 60px rgba(8, 17, 32, 0.22);
  z-index: 20;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #d7e3f7;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.35rem;
  line-height: 1;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 8px 10px 26px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 42px rgba(36, 107, 254, 0.36);
}

.brand strong {
  display: block;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.brand small,
.ward-card span,
.ward-card time {
  display: block;
  color: #8ea0ba;
  margin-top: 4px;
}

.nav-list {
  display: grid;
  gap: 8px;
  padding: 28px 0;
}

.nav-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  min-height: 52px;
  color: #aab8cd;
  text-decoration: none;
  font-weight: 760;
  border-radius: 14px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(3px);
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--cyan);
}

.ward-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: var(--nav-soft);
}

.ward-card p {
  margin: 18px 0 4px;
  color: #dce8fb;
  font-weight: 760;
}

.portal {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 44px) 52px;
}

.topbar {
  position: sticky;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  z-index: 10;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 44px rgba(52, 73, 110, 0.1);
  backdrop-filter: blur(18px);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.top-action,
.hero-actions button,
.balance-card button,
.pay-terminal button {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  padding: 0 20px;
  color: #fff;
  font-weight: 820;
  background: linear-gradient(135deg, var(--blue), #00a6c7);
  box-shadow: 0 16px 34px rgba(36, 107, 254, 0.24);
}

.avatar,
.icon-button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(52, 73, 110, 0.12);
}

.avatar {
  font-weight: 860;
}

.account-menu {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  width: 230px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(17, 34, 64, 0.18);
  backdrop-filter: blur(18px);
  z-index: 30;
}

.profile-dropdown.open {
  display: grid;
  gap: 4px;
  animation: rise 180ms ease both;
}

.profile-dropdown button,
.profile-dropdown a {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  color: #27364a;
  background: transparent;
  text-align: left;
  text-decoration: none;
  font-weight: 780;
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  color: #9b3030;
}

.profile-dropdown button:hover,
.profile-dropdown a:hover {
  background: #edf6ff;
}

.menu-toggle {
  display: none;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: rise 260ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  min-height: 330px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58)),
    linear-gradient(145deg, rgba(36, 107, 254, 0.12), rgba(18, 180, 216, 0.1));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 860;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 58ch;
  color: #516177;
  font-size: 1.07rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions .ghost {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.city-visual {
  position: relative;
  min-height: 245px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 20, 33, 0.06), rgba(7, 20, 33, 0.12)),
    linear-gradient(120deg, rgba(36, 107, 254, 0.22), rgba(17, 163, 106, 0.12));
  isolation: isolate;
}

.sky-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: perspective(480px) rotateX(58deg) translateY(24%);
  transform-origin: bottom;
}

.tower {
  position: absolute;
  bottom: 34px;
  width: 54px;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #fff, #dbeafe);
  box-shadow: 0 30px 40px rgba(13, 43, 92, 0.18);
}

.tower::before {
  content: "";
  position: absolute;
  inset: 12px 10px;
  background: repeating-linear-gradient(#2a78ff 0 4px, transparent 4px 14px);
  opacity: 0.5;
}

.t1 { left: 12%; height: 130px; }
.t2 { left: 29%; height: 190px; background: linear-gradient(180deg, #eff6ff, #bae6fd); }
.t3 { left: 49%; height: 105px; }
.t4 { left: 67%; height: 165px; background: linear-gradient(180deg, #fff7ed, #fde68a); }

.map-line {
  position: absolute;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  filter: drop-shadow(0 12px 12px rgba(18, 180, 216, 0.24));
}

.line-a {
  left: 8%;
  right: 8%;
  bottom: 40px;
  transform: rotate(-5deg);
}

.line-b {
  left: 20%;
  right: 22%;
  bottom: 92px;
  transform: rotate(13deg);
}

.pulse {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 10px rgba(241, 95, 95, 0.14);
}

.p1 { left: 22%; bottom: 82px; }
.p2 { left: 56%; bottom: 128px; background: var(--green); }
.p3 { right: 16%; bottom: 46px; background: var(--blue); }

.metric-grid,
.content-grid,
.payment-grid,
.settings-grid,
.statement-layout,
.notice-grid,
.stage-grid,
.kanban {
  display: grid;
  gap: 20px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0;
}

.metric-card,
.panel,
.balance-card,
.kanban article,
.notice-card,
.stage {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 128px;
  padding: 22px;
}

.metric-card strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.metric-card small {
  color: var(--muted);
  font-weight: 720;
}

.metric-icon {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
}

.blue { background: var(--blue); }
.cyan { background: var(--cyan); }
.amber { background: var(--amber); }
.green { background: var(--green); }

.content-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.9fr);
  align-items: start;
}

.wide {
  grid-row: span 2;
}

.panel,
.balance-card,
.kanban article,
.notice-card,
.stage {
  padding: 26px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.panel-head span,
.pay-row span,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0c5d88;
  background: #dff3ff;
  font-size: 0.82rem;
  font-weight: 840;
}

.activity-list div,
.pay-row,
.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.activity-list small,
.summary-list dt,
.timeline p,
.kanban span,
.stage p,
.notice-card p,
.section-title p {
  color: var(--muted);
}

.credit { color: var(--green); }
.debit { color: var(--coral); }

.summary-list {
  margin: 12px 0 0;
}

.summary-list dd {
  margin: 0;
  font-weight: 860;
}

.notice-stack {
  display: grid;
  gap: 12px;
}

.notice-stack p {
  margin: 0;
  padding: 18px;
  border-left: 4px solid var(--blue);
  border-radius: 16px;
  background: #f3f7fb;
}

.notices-heading {
  margin: 10px 0 28px;
}

.resident-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 54px;
  color: #42566e;
  font-weight: 800;
}

.resident-badge::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--green), #1fb6a6);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.68);
}

.notices-heading h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.notices-heading > p:not(.resident-badge) {
  margin: 0;
  color: #566b84;
  font-size: 1.08rem;
  font-weight: 720;
}

.notices-heading > p:not(.resident-badge)::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.notice-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.notice-metric {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.notice-metric-icon {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  height: 60px;
  border-radius: 18px;
  color: var(--blue);
  background: #edf3ff;
  font-size: 1.45rem;
  font-weight: 900;
}

.notice-metric-icon.warning {
  color: #2d6ff0;
}

.notice-metric-icon.attach {
  color: #246bfe;
}

.notice-metric strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.notice-metric small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 760;
}

.notice-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.notice-tabs button {
  min-height: 58px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  padding: 0 30px;
  color: #24344a;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(52, 73, 110, 0.08);
  font-weight: 820;
}

.notice-tabs button.active {
  border-color: transparent;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 18px 42px rgba(36, 107, 254, 0.24);
}

.notice-list {
  display: grid;
  gap: 16px;
}

.notice-list-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(52, 73, 110, 0.1);
}

.notice-list-card.is-hidden,
.notice-empty-panel.is-hidden {
  display: none;
}

.notice-list-card span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #0c5d88;
  background: #dff3ff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-list-card.important span {
  color: #8b3434;
  background: #ffe3e3;
}

.notice-list-card.events span {
  color: #885512;
  background: #fff0cd;
}

.notice-list-card.documents span {
  color: #086444;
  background: #dff8ed;
}

.notice-list-card h2 {
  margin: 14px 0 10px;
}

.notice-list-card p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.notice-list-card small {
  color: #7a8da4;
  font-weight: 760;
}

.notice-empty-panel {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  text-align: center;
}

.empty-icon {
  position: relative;
  width: 66px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 10px 10px 7px 7px;
  background: #9baabd;
}

.empty-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  height: 18px;
  border-radius: 4px;
  background: #fff;
}

.empty-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -8px;
  height: 8px;
  border-radius: 0 0 8px 8px;
  background: #7f90a6;
}

.notice-empty-panel h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.notice-empty-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.notices-footer {
  margin-top: 44px;
}

.stand-heading {
  margin: 0 0 28px;
}

.stand-heading > h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.stand-heading .resident-badge {
  margin-bottom: 56px;
}

.stand-heading .section-title p {
  color: #566b84;
  font-size: 1.08rem;
  font-weight: 720;
}

.stand-heading .section-title p::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.stand-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stand-form-panel {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stand-form-title {
  display: grid;
  place-items: center;
  gap: 14px;
  margin-bottom: 52px;
  text-align: center;
}

.stand-form-title p {
  margin: 0;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.stand-form-title h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.stand-form-title span {
  display: block;
  width: 92px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.stand-form-title small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 720;
}

.stand-application-form {
  display: grid;
  gap: 48px;
}

.form-section h2 {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 1.55rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 32px;
}

.form-grid label {
  margin: 0;
  color: #25364b;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  min-height: 58px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
  font-size: 1rem;
}

.form-grid textarea {
  min-height: 112px;
  padding: 16px 14px;
  resize: vertical;
}

.stand-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 10px;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 24px;
}

.section-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.statement-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.statement-panel {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.statement-document-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
  padding: 8px 4px 24px;
  border-bottom: 1px solid var(--line);
}

.statement-document-head h2 {
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.statement-document-head p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.statement-total {
  min-width: 220px;
  text-align: right;
}

.statement-total span,
.statement-total small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.statement-total strong {
  display: block;
  margin: 8px 0;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.statement-table-wrap {
  overflow-x: auto;
}

.statement-table {
  min-width: 1080px;
}

.statement-table th {
  background: rgba(246, 250, 254, 0.92);
}

.statement-table td {
  vertical-align: middle;
}

.statement-table .money {
  text-align: right;
  white-space: nowrap;
  font-weight: 880;
}

.muted-money {
  color: #9badc2;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions button {
  min-width: 46px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 840;
}

.statement-summary {
  margin-top: 26px;
  padding: 28px;
  border-radius: 24px;
  background: #f6faff;
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.summary-head h2,
.summary-head p {
  margin: 0;
}

.summary-head strong {
  color: var(--green);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.summary-head span {
  color: var(--muted);
  font-weight: 760;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  padding-top: 18px;
}

.summary-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.summary-grid span {
  color: var(--muted);
  font-weight: 780;
}

.summary-grid strong {
  font-size: 1.05rem;
}

.summary-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  color: #08784e;
  background: #d7f8e8;
}

.statement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bottom-actions {
  justify-content: flex-end;
  margin-top: 28px;
}

.statement-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 18px;
  padding: 0 22px;
  font-weight: 860;
}

.statement-print {
  border: 1px solid rgba(36, 107, 254, 0.55);
  color: var(--blue);
  background: #fff;
}

.statement-download {
  border: 0;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 34px rgba(36, 107, 254, 0.24);
}

.statement-refresh {
  border: 0;
  color: var(--ink);
  background: #eef3f8;
}

.statement-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #8ba0b7;
  font-weight: 760;
}

.statement-layout {
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  margin-bottom: 20px;
}

.balance-card {
  color: #fff;
  background:
    linear-gradient(150deg, rgba(7, 20, 33, 0.94), rgba(15, 56, 108, 0.9)),
    var(--ink);
}

.balance-card span,
.balance-card p {
  color: #b6c7dd;
}

.balance-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 1;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 230px;
  padding-top: 24px;
}

.bar-chart span {
  flex: 1;
  height: var(--h);
  min-width: 28px;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.status.done { color: #086444; background: #dff8ed; }
.status.review { color: #885512; background: #fff0cd; }
.status.pending { color: #8b3434; background: #ffe3e3; }

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
}

.payment-grid,
.settings-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
}

.pay-terminal {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(223, 243, 255, 0.82));
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.kanban {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.kanban article {
  min-height: 170px;
  border-top: 6px solid var(--blue);
}

.kanban article:nth-child(2) { border-top-color: var(--cyan); }
.kanban article:nth-child(3) { border-top-color: var(--amber); }
.kanban article:nth-child(4) { border-top-color: var(--green); }

.parcel-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: 10px;
  min-height: 220px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(7, 20, 33, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(7, 20, 33, 0.06) 1px, transparent 1px),
    #eaf5f0;
  background-size: 34px 34px;
}

.parcel-map span {
  display: grid;
  place-items: center;
  border: 2px solid rgba(17, 163, 106, 0.34);
  border-radius: 16px;
  color: #0a6845;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.72);
}

.notice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.notice-card {
  min-height: 230px;
}

.notice-card span {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.notice-card.urgent {
  color: #fff;
  background: linear-gradient(145deg, #183153, #cf4f4f);
}

.notice-card.urgent p,
.notice-card.urgent span {
  color: rgba(255, 255, 255, 0.82);
}

.queue-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.queue-panel strong {
  display: block;
  font-size: 5rem;
  line-height: 1;
}

.radial-progress {
  display: grid;
  place-items: center;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 64%, #e5edf6 0);
}

.radial-progress span {
  display: grid;
  place-items: center;
  width: 122px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  font-size: 1.8rem;
  font-weight: 900;
}

.stage-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stage span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #fff;
  background: #93a4b8;
  font-weight: 900;
}

.stage.complete span { background: var(--green); }
.stage.active span { background: var(--amber); }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.switch-row input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--blue);
}

.modal-layer {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(7, 20, 33, 0.42);
  backdrop-filter: blur(16px);
  z-index: 60;
}

.modal-layer.open {
  display: grid;
}

.modal-card {
  position: relative;
  display: none;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 255, 0.92)),
    #fff;
  box-shadow: 0 28px 90px rgba(7, 20, 33, 0.26);
}

.modal-card.open {
  display: block;
  animation: rise 220ms ease both;
}

.wide-modal {
  width: min(780px, 100%);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: rgba(15, 23, 42, 0.06);
  font-size: 1.35rem;
}

.modal-card h2 {
  margin-bottom: 18px;
  font-size: 2rem;
}

.modal-grid,
.profile-form,
.password-form {
  display: grid;
  gap: 14px;
}

.profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-primary,
.modal-secondary,
.modal-danger,
.login-card form button,
.secondary-login {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  padding: 0 20px;
  color: #fff;
  font-weight: 840;
  background: linear-gradient(135deg, var(--blue), #00a6c7);
  box-shadow: 0 16px 34px rgba(36, 107, 254, 0.24);
}

.modal-secondary {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.modal-danger {
  background: linear-gradient(135deg, #d83b3b, #f15f5f);
  box-shadow: 0 16px 34px rgba(216, 59, 59, 0.22);
}

.modal-primary {
  margin-top: 22px;
}

.modal-copy {
  color: var(--muted);
  line-height: 1.65;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.confirm-modal {
  width: min(460px, 100%);
}

.picture-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 230px;
  padding: 28px;
  border: 2px dashed rgba(36, 107, 254, 0.3);
  border-radius: 22px;
  color: #4e6179;
  background:
    linear-gradient(135deg, rgba(36, 107, 254, 0.08), rgba(17, 163, 106, 0.08)),
    #fff;
  text-align: center;
}

.picture-drop span {
  display: grid;
  place-items: center;
  width: 82px;
  aspect-ratio: 1;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  background-position: center;
  background-size: cover;
  font-size: 1.6rem;
  font-weight: 900;
}

.picture-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(360px, 0.95fr);
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 64px));
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: 34px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(7, 20, 33, 0.92), rgba(13, 54, 104, 0.78)),
    var(--nav);
}

.login-brand {
  position: relative;
  z-index: 2;
  border-bottom: 0;
  padding: 0;
}

.login-city {
  position: absolute;
  inset: 120px 28px 150px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(18, 180, 216, 0.16)),
    rgba(255, 255, 255, 0.05);
}

.login-insight {
  position: relative;
  z-index: 2;
  margin-top: auto;
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.login-insight span {
  color: #8be7ff;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.login-insight strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
  line-height: 1.35;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.login-card h1 {
  margin-bottom: 10px;
}

.login-card > p:not(.eyebrow),
.login-note {
  color: var(--muted);
  line-height: 1.65;
}

.login-card form {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.login-options {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 14px;
}

.login-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.login-options input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

.login-options a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-weight: 800;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.secondary-login {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.login-note {
  margin: 18px 0 0;
  font-size: 0.92rem;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(310px, 86vw);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: grid;
    place-items: center;
  }

  .menu-toggle {
    display: grid;
  }

  .metric-grid,
  .notice-grid,
  .notice-metric-grid,
  .stand-metric-grid,
  .stage-grid,
  .kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .portal {
    padding: 16px 14px 36px;
  }

  .topbar {
    top: 10px;
    gap: 8px;
  }

  .top-action {
    display: none;
  }

  .hero-panel,
  .content-grid,
  .statement-layout,
  .payment-grid,
  .settings-grid,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 420px;
  }

  .hero-panel {
    border-radius: 24px;
    padding: 22px;
  }

  .metric-grid,
  .notice-grid,
  .notice-metric-grid,
  .stand-metric-grid,
  .stage-grid,
  .kanban {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 108px;
  }

  .resident-badge {
    margin-bottom: 26px;
  }

  .notice-metric {
    min-height: 118px;
  }

  .notice-tabs button {
    flex: 1 1 180px;
    padding: 0 18px;
  }

  .notice-empty-panel {
    min-height: 250px;
    padding: 28px 20px;
  }

  .stand-heading .resident-badge {
    margin-bottom: 28px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stand-form-panel {
    padding: 24px 18px;
  }

  .stand-form-title {
    margin-bottom: 34px;
  }

  .queue-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .parcel-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statement-header,
  .statement-document-head,
  .summary-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .statement-total {
    text-align: left;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.25rem;
  }

  .search {
    min-width: 0;
    padding: 0 12px;
  }

  .avatar,
  .icon-button {
    width: 46px;
    height: 46px;
  }

  .hero-actions button {
    width: 100%;
  }

  .activity-list div,
  .pay-row,
  .summary-list div {
    flex-direction: column;
    gap: 6px;
  }

  .profile-form {
    grid-template-columns: 1fr;
  }

  .login-page {
    padding: 12px;
  }

  .login-shell {
    border-radius: 24px;
  }

  .login-visual {
    min-height: 330px;
    padding: 24px;
  }

  .login-city {
    inset: 96px 18px 92px;
  }

  .login-card {
    padding: 24px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .statement-header .statement-actions,
  .no-print,
  .modal-layer,
  .statement-footer {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .portal {
    padding: 0;
  }

  .page {
    display: block;
  }

  .statement-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }

  .section-title {
    margin-bottom: 14px;
  }

  .statement-document-head,
  .summary-head {
    flex-direction: row;
  }

  .statement-table-wrap {
    overflow: visible;
  }

  .statement-table {
    min-width: 0;
    font-size: 0.78rem;
  }

  th,
  td {
    padding: 9px 8px;
  }

  .statement-summary {
    break-inside: avoid;
    background: #f8fafc;
  }
}
