:root {
  color-scheme: light;
  --ink: #004852;
  --ink-2: #00545f;
  --muted: #66808a;
  --line: #d8e8ec;
  --paper: #ffffff;
  --wash: #f6fbfb;
  --nav: #004852;
  --nav-2: #003a42;
  --brand: #004852;
  --brand-2: #00606c;
  --gold: #e6a817;
  --gold-2: #fff3d6;
  --good: #007a5a;
  --warn: #b46c00;
  --bad: #b42318;
  --info: #007586;
  --shadow: 0 18px 42px rgba(0, 72, 82, 0.14);
  --soft-shadow: 0 1px 2px rgba(0, 72, 82, 0.06);
  --deep: #0b1f2d;
  --deep-2: #0d2535;
  --cream-text: #e8dfc8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(13, 61, 48, 0.09) 1px, transparent 0) 0 0 / 22px 22px,
    var(--wash);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand);
}

.marketing-login {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 5% 90%, rgba(230, 168, 23, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 48% 55% at 95% 8%, rgba(0, 150, 180, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 35% 42% at 50% 50%, rgba(0, 72, 82, 0.18) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='1' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E") center / 32px 32px repeat,
    linear-gradient(148deg, #07080f 0%, #0b1118 22%, #0e1a24 45%, #0b1520 68%, #060810 100%);
  color: #fff;
  font-family: "Plus Jakarta Sans", Inter, "Segoe UI", Arial, sans-serif;
  overscroll-behavior: contain;
}

.marketing-shell {
  width: min(100vw, 1360px);
  min-height: 100%;
  margin: 0 auto;
  background: transparent;
}

.marketing-login .gold-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(230, 168, 23, 0.3), #e6a817 28%, #ffd166 50%, #e6a817 72%, rgba(230, 168, 23, 0.3), transparent);
}

.marketing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 8, 15, 0.40);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.marketing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-box {
  width: 32px;
  height: 32px;
  background: var(--brand);
  border: 1px solid #e6a817;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #e6a817;
  letter-spacing: 1px;
}

.brand-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.brand-name span {
  color: #e6a817;
}

.nav-pill {
  background: rgba(230, 168, 23, 0.1);
  border: 0.5px solid rgba(230, 168, 23, 0.4);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e6a817;
}

.marketing-hero {
  padding: 60px 40px 48px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 42px;
  align-items: start;
}

.hero-bg-circle {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 0.5px solid rgba(230, 168, 23, 0.10);
  background: radial-gradient(circle, rgba(230, 168, 23, 0.04) 0%, transparent 70%);
  top: -260px;
  right: -240px;
  pointer-events: none;
}

.hero-bg-circle2 {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 0.5px solid rgba(230, 168, 23, 0.07);
  background: radial-gradient(circle, rgba(230, 168, 23, 0.03) 0%, transparent 70%);
  top: -120px;
  right: -120px;
  pointer-events: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow-line {
  width: 32px;
  height: 1px;
  background: #e6a817;
}

.eyebrow-text {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e6a817;
  font-weight: 500;
}

.marketing-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 8px;
}

.marketing-hero h1 em {
  font-style: italic;
  color: #e6a817;
}

.hero-desc {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.85;
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1;
}

.hero-copy-block {
  min-width: 0;
}

.hero-login-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 0.5px solid rgba(230, 168, 23, 0.28);
  border-top: 2px solid rgba(230, 168, 23, 0.55);
  border-radius: 18px;
  background: rgba(7, 10, 18, 0.80);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(230, 168, 23, 0.06);
}

.hero-login-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-login-top strong {
  display: block;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  line-height: 1.1;
}

.hero-login-top span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.hero-login-card label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero-login-card input {
  min-height: 44px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(5, 32, 26, 0.84);
  color: #fff;
  box-shadow: none;
}

.hero-login-card .cta-btn {
  width: 100%;
  margin-top: 4px;
  background: #e6a817;
  color: var(--nav);
}

.tag {
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.tag.gold {
  border-color: rgba(230, 168, 23, 0.4);
  color: #e6a817;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 40px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stat {
  padding: 24px 16px;
  text-align: center;
  border-right: 0.5px solid rgba(255, 255, 255, 0.08);
}

.stat:last-child {
  border-right: none;
}

.stat-n {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: #e6a817;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-l {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.4;
}

.section-label {
  padding: 44px 40px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.section-label::after {
  content: "";
  flex: 1;
  height: 0.5px;
  background: rgba(255, 255, 255, 0.07);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 40px;
}

.feat {
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.feat:hover {
  border-color: rgba(230, 168, 23, 0.3);
}

.feat::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #e6a817;
  transition: width 0.4s;
}

.feat:hover::after {
  width: 100%;
}

.feat-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(230, 168, 23, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feat-ico svg {
  width: 18px;
  height: 18px;
  stroke: #e6a817;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feat-t {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}

.feat-d {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.75;
  font-weight: 300;
}

.mpesa-banner {
  margin: 36px 40px;
  background: linear-gradient(135deg, rgba(0, 68, 78, 0.55) 0%, rgba(0, 28, 36, 0.75) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(230, 168, 23, 0.22);
  border-radius: 16px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.mpesa-banner::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(230, 168, 23, 0.05);
}

.mpesa-left h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.mpesa-left p {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  margin: 0;
}

.mpesa-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.mbadge {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.mbadge.g {
  background: rgba(230, 168, 23, 0.1);
  border-color: rgba(230, 168, 23, 0.3);
  color: #e6a817;
}

.mpesa-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(230, 168, 23, 0.1);
  border: 1px solid rgba(230, 168, 23, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mpesa-icon svg {
  width: 28px;
  height: 28px;
  stroke: #e6a817;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modules {
  padding: 0 40px 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mod {
  background: rgba(13, 61, 48, 0.5);
  border: 0.5px solid rgba(230, 168, 23, 0.2);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.cta {
  margin: 0 40px 20px;
  background: linear-gradient(135deg, #e6a817 0%, #f0bc38 60%, #e6a817 100%);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(230, 168, 23, 0.22);
}

.cta-text h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--nav);
  margin: 0 0 4px;
}

.cta-text p {
  font-size: 12px;
  color: rgba(5, 32, 26, 0.6);
  font-weight: 400;
  margin: 0;
}

.cta-login-form {
  display: grid;
  grid-template-columns: 150px 150px auto;
  gap: 8px;
  align-items: center;
}

.cta-login-form input {
  min-height: 42px;
  border: 0;
  border-radius: 40px;
  background: rgba(5, 32, 26, 0.14);
  color: var(--nav);
  padding: 0 14px;
  box-shadow: none;
}

.cta-login-form input::placeholder {
  color: rgba(5, 32, 26, 0.5);
}

.cta-btn {
  background: var(--nav);
  color: #e6a817;
  border: none;
  min-height: 42px;
  padding: 0 24px;
  border-radius: 40px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.marketing-demo {
  display: flex;
  flex-wrap: wrap;
  padding: 0 40px 32px;
  margin: 0;
}

.marketing-demo button {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 8px 14px;
}

.marketing-footer {
  padding: 18px 40px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-l {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
}

.footer-r {
  display: flex;
  gap: 18px;
}

.footer-r a {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.perm-check {
  display: block;
  margin: 0 auto;
}

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  background:
    radial-gradient(circle at 1px 1px, rgba(230, 168, 23, 0.08) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--nav), var(--nav-2));
  background-size: auto, cover;
}

.login-copy {
  padding: 56px 52px 34px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.brandmark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--nav);
  border: 1px solid rgba(255, 173, 23, 0.8);
  color: white;
  font-weight: 900;
  letter-spacing: 0;
}

.login h1 {
  margin: 18px 0 14px;
  max-width: 820px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.97;
  letter-spacing: 0;
}

.login h1 {
  color: var(--ink);
}

.login-copy p {
  max-width: 760px;
  font-size: 19px;
  line-height: 1.58;
  color: var(--muted);
}

.login-hero-copy {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 173, 23, 0.5);
  border-radius: 999px;
  background: var(--gold-2);
  color: var(--warn);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 950;
}

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

.hero-actions span {
  padding: 11px 13px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  color: var(--brand);
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}

.login-story {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(260px, 0.62fr);
  gap: 18px;
  align-items: stretch;
  max-width: 980px;
}

.banking-picture {
  margin: 0;
  min-height: 285px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--nav);
  border: 1px solid rgba(255, 173, 23, 0.35);
  box-shadow: var(--shadow);
}

.banking-picture img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 285px;
  object-fit: cover;
}

.story-cards {
  display: grid;
  gap: 10px;
}

.story-cards div {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 17px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.story-cards strong {
  color: var(--ink);
  font-size: 18px;
}

.story-cards span {
  color: var(--muted);
  line-height: 1.45;
}

.login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-points span,
.chip {
  border: 1px solid rgba(255, 173, 23, 0.45);
  background: var(--gold-2);
  color: var(--warn);
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.login-panel {
  background: var(--nav-2);
  margin: 28px;
  border-radius: 8px;
  padding: 30px;
  align-self: center;
  box-shadow: var(--shadow);
  color: white;
  border: 1px solid rgba(255, 173, 23, 0.18);
}

.login-panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.login-panel-brand .brandmark {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.login-panel-brand strong {
  color: white;
  font-size: 18px;
}

.login-panel h2,
.panel h2,
.section-title h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.subtle {
  color: var(--muted);
}

.login-panel .subtle {
  color: #9ab5bd;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.field label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 9px 11px;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(0, 31, 39, 0.02);
}

.login-panel input,
.login-panel select,
.login-panel textarea {
  background: var(--nav);
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
}

.login-panel .field label {
  color: #bfd5da;
}

input[readonly] {
  background: #f2f8f9;
  color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(255, 173, 23, 0.22);
  border-color: var(--brand-2);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input,
select,
textarea {
  border-color: rgba(201, 168, 76, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: #0d2233;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(201, 168, 76, 0.48);
}

.btn {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  background: #eef5f4;
  color: #0d2233;
  border: 1px solid rgba(201, 168, 76, 0.18);
  box-shadow: 0 10px 24px rgba(13, 34, 51, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(13, 34, 51, 0.12);
}

.btn.primary {
  background: linear-gradient(135deg, #f0c96b, #c9a84c);
  color: #0d2233;
  border-color: rgba(201, 168, 76, 0.5);
}

.btn.warning {
  background: linear-gradient(135deg, #004852, #0d2233);
  color: white;
  border-color: rgba(201, 168, 76, 0.3);
}

.btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border-color: rgba(18, 140, 126, 0.35);
}

.btn.ghost {
  background: white;
  border: 1px solid rgba(201, 168, 76, 0.26);
  color: #0d2233;
}

.btn.danger {
  background: #fee4e2;
  color: var(--bad);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.demo {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.demo button {
  text-align: left;
  padding: 11px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7e9ed;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo button:hover {
  border-color: rgba(255, 173, 23, 0.5);
  background: rgba(255, 173, 23, 0.12);
}

.app {
  height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
}

.sidebar {
  background:
    linear-gradient(160deg, rgba(11, 31, 45, 0.99) 0%, rgba(13, 37, 53, 0.99) 54%, rgba(6, 25, 35, 0.99) 100%);
  color: white;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid rgba(201, 168, 76, 0.24);
  height: 100vh;
  overflow: hidden;
  min-height: 0;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04), 18px 0 34px rgba(4, 20, 28, 0.1);
}

.side-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 15px;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  background: linear-gradient(160deg, var(--deep-2) 0%, var(--deep) 100%);
}

.sidebar .brandmark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #c9a84c;
  border-color: #c9a84c;
  color: #0d2233;
  font-size: 14px;
}

.side-head strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.side-head span {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.62) rgba(255, 255, 255, 0.06);
}

.nav::-webkit-scrollbar {
  width: 8px;
}

.nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.nav::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.62);
  border-radius: 999px;
}

.nav-section {
  display: grid;
  align-content: start;
  gap: 4px;
  margin-bottom: 6px;
}

.nav-divider {
  height: 1px;
  margin: 8px 10px;
  background: rgba(201, 168, 76, 0.18);
}

.nav-group-title {
  padding: 9px 10px 7px;
  color: #5a7a90;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.nav button {
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 9px;
  background: transparent;
  color: #e8dfc8;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  position: relative;
  font-weight: 750;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav button:hover {
  background: rgba(201, 168, 76, 0.12);
  color: #fff;
}

.nav button.active {
  background: rgba(201, 168, 76, 0.22);
  color: #f0c96b;
}

.nav button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #c9a84c;
}

.nav-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 8px;
  color: #c9a84c;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.18);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.nav button:hover .nav-icon,
.nav button.active .nav-icon,
.nav-parent.active .nav-icon {
  background: rgba(201, 168, 76, 0.18);
  border-color: #c9a84c;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  opacity: 0.95;
}

.nav-label {
  min-width: 0;
  flex: 1 1 auto;
}

.nav-parent {
  justify-content: space-between;
}

.nav-group-left,
.nav-group-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-group-left {
  flex: 1 1 auto;
}

.nav-group-right {
  flex: 0 0 auto;
}

.nav-parent strong {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #7a8fa0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.nav-badge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #c9a84c;
  color: #0d2233;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 900;
}

.nav-children {
  display: grid;
  gap: 2px;
  padding: 4px 0 2px 8px;
}

.nav-children[hidden] {
  display: none;
}

.nav button.nav-child {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  font-size: 13px;
  color: #7a8fa0;
}

.nav button.nav-child .nav-icon {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
  border-color: transparent;
  background: transparent;
  color: #7a8fa0;
}

.nav button.nav-child svg {
  width: 15px;
  height: 15px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  flex: 0 0 auto;
}

.sidebar-footer strong {
  display: block;
  color: #e8dfc8;
  font-size: 13px;
}

.sidebar-footer .subtle {
  margin-top: 3px;
  color: #7a8fa0;
  font-size: 11px;
  font-weight: 750;
}

.main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 252, 0.96)),
    radial-gradient(circle at 8% 0%, rgba(201, 168, 76, 0.14), transparent 28%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.22);
  z-index: 5;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(13, 34, 51, 0.06);
}

.topbar strong {
  color: #0d2233;
  font-size: 17px;
  letter-spacing: 0;
}

.top-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.chip {
  border-color: rgba(201, 168, 76, 0.28);
  background: #fffaf0;
  color: #7c5c13;
  font-size: 12px;
  font-weight: 800;
}

.chip.good {
  border-color: #b6dfd0;
  background: #e7f7f1;
  color: var(--good);
}

.chip.warn {
  border-color: rgba(255, 173, 23, 0.42);
  background: var(--gold-2);
  color: var(--warn);
}

.tenant-select {
  max-width: 280px;
  min-height: 42px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(13, 34, 51, 0.06);
}

.period-filters {
  display: inline-grid;
  grid-template-columns: 130px 150px;
  gap: 8px;
}

.content {
  min-height: 0;
  overflow: auto;
  padding: 20px 24px 42px;
  background:
    radial-gradient(circle at 1px 1px, rgba(13, 34, 51, 0.045) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #f8fbfa 0%, #eef5f4 100%);
}

.guide-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.guide-strip span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(201, 168, 76, 0.22);
  color: #0d2233;
  font-weight: 750;
  box-shadow: 0 12px 28px rgba(13, 34, 51, 0.06);
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: -20px -24px 18px;
  padding: 18px 24px 14px;
  position: sticky;
  top: 0;
  z-index: 8;
  background:
    linear-gradient(135deg, rgba(247, 251, 250, 0.98), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 12% 0%, rgba(201, 168, 76, 0.16), transparent 30%);
  border-bottom: 1px solid rgba(201, 168, 76, 0.24);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(13, 34, 51, 0.045);
}

.section-title h2 {
  color: #0d2233;
  letter-spacing: 0;
}

.section-title p {
  margin: 5px 0 0;
}

.grid {
  display: grid;
  gap: 16px;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric,
.panel,
.table-wrap,
.list-toolbar,
.inline-editor {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(13, 34, 51, 0.07);
}

.metric {
  padding: 16px 17px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 251, 0.96));
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #0d2233, #004852);
}

.metric:nth-child(2)::before {
  background: linear-gradient(90deg, #004852, #2ba8ad);
}

.metric:nth-child(3)::before {
  background: linear-gradient(90deg, #c9a84c, #f0c96b);
}

.metric:nth-child(4)::before {
  background: linear-gradient(90deg, #0d2233, #004852);
}

.metric span {
  color: #667d84;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.metric-top i {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(201, 168, 76, 0.15);
  color: #9a741d;
  font-style: normal;
}

.metric-top i svg {
  width: 16px;
  height: 16px;
}

.metric strong {
  display: block;
  margin-top: 0;
  color: #0d2233;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.metric em {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.dashboard-board {
  display: grid;
  gap: 16px;
}

.dashboard-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 168, 76, 0.26);
  border-radius: 12px;
  background: #fff8e7;
  box-shadow: 0 10px 24px rgba(13, 34, 51, 0.055);
}

.dashboard-alert strong {
  display: block;
  color: #75320c;
  font-size: 14px;
}

.dashboard-alert span {
  display: block;
  margin-top: 3px;
  color: #6b5960;
  font-size: 13px;
  font-weight: 750;
}

.dashboard-alert.good {
  background: #eefbf5;
  border-color: rgba(0, 107, 87, 0.2);
}

.dashboard-alert.good strong {
  color: #006b57;
}

.dashboard-alert.danger {
  background: #fff0ef;
  border-color: rgba(185, 45, 45, 0.2);
}

.dashboard-command-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.command-metric {
  position: relative;
  min-height: 124px;
  padding: 16px 16px 14px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 250, 0.96));
  box-shadow: 0 12px 28px rgba(13, 34, 51, 0.065);
}

.command-metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #004852, #2ba8ad);
}

.command-metric.warn::before {
  background: linear-gradient(90deg, #b7770c, #e0a70c);
}

.command-metric.danger::before {
  background: linear-gradient(90deg, #b92d2d, #e36a5f);
}

.command-metric.good::before {
  background: linear-gradient(90deg, #006b57, #87b95b);
}

.command-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 9px;
  background: rgba(201, 168, 76, 0.14);
  color: #9a741d;
}

.command-metric span {
  color: #667d84;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-metric strong {
  display: block;
  margin-top: 8px;
  color: #0d2233;
  font-size: 26px;
  line-height: 1;
}

.command-metric em {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.dashboard-finance-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.finance-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(13, 34, 51, 0.055);
}

.finance-metric i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #f7f1df;
  color: #9a741d;
  font-style: normal;
}

.finance-metric span {
  display: block;
  color: #667d84;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-metric strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #0d2233;
  font-size: 19px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-metric em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.dashboard-metrics .metric {
  min-height: 112px;
}

.panel {
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #004852, #c9a84c);
}

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

.panel-head p {
  margin: 4px 0 0;
}

.dashboard-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.82fr);
  gap: 16px;
  margin-top: 16px;
}

.chart-panel {
  min-width: 0;
}

.chart-panel .chart-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.chart-panel .chart-title {
  display: none;
}

.chart-panel .line-chart {
  min-height: 230px;
}

.chart-panel.compact .pie-card {
  display: grid;
  place-items: center;
  min-height: 230px;
}

.target-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 12px;
  min-height: 230px;
  align-items: end;
  padding: 8px 2px 2px;
}

.target-month {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.target-bars {
  position: relative;
  height: 176px;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(180deg, #f5faf8, #eaf3f0);
  border: 1px solid rgba(0, 72, 82, 0.08);
}

.target-bars i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 9px 9px 0 0;
  background: linear-gradient(180deg, #2ba8ad, #004852);
}

.target-month.partial .target-bars i {
  background: linear-gradient(180deg, #e0a70c, #b7770c);
}

.target-month.none .target-bars i {
  background: #b92d2d;
}

.target-line {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  border-top: 2px dashed rgba(185, 45, 45, 0.72);
}

.target-month strong {
  color: #607784;
  font-size: 11px;
  text-align: center;
}

.target-month em {
  overflow: hidden;
  color: #0d2233;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compliance-heatmap {
  display: grid;
  gap: 0;
  min-height: 230px;
}

.compliance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
}

.compliance-row:last-child {
  border-bottom: 0;
}

.member-chip {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.member-chip span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 999px;
  background: #e9f8ef;
  color: #006b57;
  font-size: 10px;
  font-weight: 950;
}

.compliance-row.partial .member-chip span {
  background: #fff6df;
  color: #9a741d;
}

.compliance-row.none .member-chip span {
  background: #fff0ef;
  color: #b92d2d;
}

.member-chip strong {
  overflow: hidden;
  color: #0d2233;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compliance-row em {
  color: #334f5c;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.compliance-row b {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9f8ef;
  color: #006b57;
  font-size: 10px;
}

.compliance-row.partial b {
  background: #fff6df;
  color: #9a741d;
}

.compliance-row.none b {
  background: #fff0ef;
  color: #b92d2d;
}

.compliance-more {
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.risk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 11px 0 6px;
}

.risk-row strong,
.risk-row span {
  display: block;
}

.risk-row strong {
  color: #0d2233;
  font-size: 13px;
}

.risk-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.risk-row em {
  color: #b92d2d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.smart-empty {
  display: grid;
  min-height: 180px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 24px;
  border: 1px dashed rgba(0, 72, 82, 0.18);
  border-radius: 12px;
  background: rgba(0, 72, 82, 0.025);
  text-align: center;
}

.smart-empty strong {
  color: #0d2233;
}

.smart-empty span {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mobile-tabbar {
  display: none;
}

.mobile-dashboard-hero {
  display: none;
}

.action-list {
  display: grid;
  gap: 10px;
}

.action-card {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 13px;
  text-align: left;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 9px;
  background: #fffaf0;
  color: var(--ink);
}

.action-card:hover {
  border-color: rgba(201, 168, 76, 0.48);
  background: #fff7e5;
}

.action-card strong {
  color: #0d2233;
}

.action-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-list {
  display: grid;
  gap: 0;
}

.dashboard-list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
}

.dashboard-list-row:last-child {
  border-bottom: 0;
}

.dash-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.18);
  color: #8a6010;
  font-size: 11px;
  font-weight: 950;
}

.dash-avatar.blue {
  background: rgba(0, 72, 82, 0.12);
  color: var(--brand);
}

.dashboard-list-row strong {
  display: block;
  color: #0d2233;
  font-size: 13px;
}

.dashboard-list-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dash-amount {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.loan-progress-row {
  align-items: start;
}

.loan-progress {
  display: block;
  width: min(150px, 100%);
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eff2;
}

.loan-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}

.split {
  grid-template-columns: 1.15fr 0.85fr;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.form-subhead {
  padding: 12px 14px;
  border: 1px solid rgba(217, 160, 20, 0.34);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: #fffaf0;
}

.form-subhead strong {
  font-size: 14px;
}

.form-subhead span,
.login-access-row small {
  color: var(--muted);
  font-size: 13px;
}

.login-access-row input {
  border-color: rgba(217, 160, 20, 0.55);
  background: #fffdf7;
}

.email-preview {
  max-width: 520px;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: var(--ink);
}

.settings-subhead {
  padding-top: 16px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.settings-subhead strong {
  display: block;
  font-size: 15px;
}

.settings-subhead span {
  color: var(--muted);
  font-size: 13px;
}

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

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
  vertical-align: middle;
}

td:first-child,
td:last-child,
th:first-child,
th:last-child {
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 12px;
  text-transform: uppercase;
  color: #5a7a90;
  background: linear-gradient(180deg, #f8fbfa, #eef5f4);
  letter-spacing: 0.3px;
  font-weight: 900;
}

tbody tr:hover {
  background: #fbf7ea;
}

tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 310px);
  min-height: 260px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.62) rgba(13, 34, 51, 0.08);
}

.table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-wrap::-webkit-scrollbar-track {
  background: rgba(13, 34, 51, 0.06);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.62);
  border-radius: 999px;
}

.table-wrap table {
  min-width: 900px;
}

.table-wrap th {
  top: 0;
  z-index: 3;
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.18);
}

.table-wrap th:first-child,
.table-wrap td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  min-width: 160px;
  box-shadow: 1px 0 0 rgba(201, 168, 76, 0.18);
}

.table-wrap th:first-child {
  z-index: 5;
  background: linear-gradient(180deg, #f8fbfa, #eef5f4);
}

.table-wrap th:last-child,
.table-wrap td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.98);
  min-width: 150px;
  box-shadow: -1px 0 0 rgba(201, 168, 76, 0.18);
}

.table-wrap th:last-child {
  z-index: 5;
  background: linear-gradient(180deg, #f8fbfa, #eef5f4);
}

.table-wrap tbody tr:hover td {
  background: #fbf7ea;
}

.table-wrap .panel-head {
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 0;
  padding: 14px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.table-wrap .panel-head + table th {
  top: 57px;
}

.frozen-grid {
  max-height: calc(100vh - 360px);
  min-height: 320px;
}

.frozen-grid table {
  min-width: 1040px;
}

.frozen-grid th {
  top: 0;
  z-index: 3;
  box-shadow: 0 1px 0 var(--line);
}

.frozen-grid th:first-child,
.frozen-grid td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: white;
  min-width: 190px;
  box-shadow: 1px 0 0 var(--line);
}

.frozen-grid th:first-child {
  z-index: 5;
  background: #f4fbfb;
}

.frozen-grid th:last-child,
.frozen-grid td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: white;
  min-width: 190px;
  box-shadow: -1px 0 0 var(--line);
}

.frozen-grid th:last-child {
  z-index: 5;
  background: #f4fbfb;
}

.frozen-grid tbody tr:hover td {
  background: #f7fcfc;
}

.list-page {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.contributions-workspace {
  grid-template-rows: auto auto minmax(320px, calc(100vh - 360px));
}

.list-toolbar {
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.96));
}

.contributions-workspace > .list-toolbar,
.contributions-workspace > .inline-editor {
  position: sticky;
  z-index: 4;
}

.contributions-workspace > .list-toolbar {
  top: 96px;
}

.contributions-workspace > .inline-editor {
  top: 166px;
}

.list-toolbar.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(5, minmax(130px, 0.7fr));
  gap: 10px;
}

.list-toolbar input {
  max-width: 460px;
  background: #fff;
}

.list-toolbar.filters input {
  max-width: none;
}

.inline-editor {
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.96));
}

.inline-editor.compact {
  padding-top: 10px;
}

.meeting-capture-table {
  margin-top: 14px;
  max-height: 360px;
}

.meeting-card {
  display: grid;
  gap: 12px;
}

.contribution-card {
  display: grid;
  gap: 12px;
}

.member-card {
  display: grid;
  gap: 12px;
}

.page-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 16px 38px rgba(13, 34, 51, 0.08);
}

.meeting-card form {
  display: grid;
  gap: 16px;
}

.edit-history {
  display: grid;
  gap: 8px;
}

.edit-history div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 8px;
  background: #fffaf0;
}

.edit-history span {
  color: var(--muted);
}

.meeting-date-field {
  max-width: 240px;
  margin-top: 0;
}

.meeting-capture-table input,
.meeting-capture-table select {
  min-height: 36px;
  padding: 7px 9px;
}

.meeting-capture-table td:nth-child(3) {
  min-width: 150px;
}

.meeting-capture-table td:nth-child(5) {
  min-width: 180px;
}

.meeting-line-actions {
  padding-top: 2px;
}

.meeting-details-grid {
  padding-bottom: 4px;
}

.meeting-lines-head {
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.member-picker {
  position: relative;
}

.member-results {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 240px;
  overflow: auto;
  border: 1px solid rgba(201, 168, 76, 0.24);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 42px rgba(13, 34, 51, 0.16);
}

.member-results:empty {
  display: none;
}

.member-results button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.member-results button:hover {
  background: #fffaf0;
}

.member-results span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 850;
  background: #eef5f4;
  color: #004852;
  white-space: nowrap;
}

.pill.warn {
  background: #fff3d6;
  color: #7c5c13;
}

.pill.bad {
  background: #fee4e2;
  color: var(--bad);
}

.pill.good {
  background: #e7f7f1;
  color: #007a5a;
}

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

.notice {
  margin: 0 0 14px;
  padding: 12px 13px;
  border-radius: 10px;
  background: #eef5f4;
  color: #004852;
  font-weight: 800;
  border: 1px solid rgba(201, 168, 76, 0.22);
  box-shadow: 0 12px 28px rgba(13, 34, 51, 0.06);
}

.notice.error {
  background: #fee4e2;
  color: var(--bad);
  border-color: #f6c7c2;
}

.empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
}

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

.report-export-actions {
  align-items: center;
}

.report-export-actions select {
  min-width: 260px;
}

.report-table-wrap {
  max-height: min(420px, calc(100vh - 260px));
}

.report-table-wrap .panel-head {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 250, 0.96));
  border-bottom-color: rgba(201, 168, 76, 0.2);
}

.report-table-wrap .panel-head + table th {
  top: 57px;
}

.premium-stack {
  display: grid;
  gap: 16px;
}

.premium-stack > section {
  min-width: 0;
}

.premium-metrics {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.intelligence-stack {
  gap: 20px;
}

.analytics-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.2fr);
  gap: 20px;
  min-height: 260px;
  padding: 26px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 173, 23, 0.18), transparent 38%),
    radial-gradient(circle at 82% 18%, rgba(0, 128, 142, 0.28), transparent 34%),
    linear-gradient(135deg, #003942 0%, #004852 54%, #072f34 100%);
  color: #fff;
  box-shadow: 0 22px 50px rgba(0, 49, 56, 0.24);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.hero-eyebrow {
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 173, 23, 0.16);
  color: #ffd66b;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 44px;
  line-height: 1;
}

.hero-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
  line-height: 1.55;
}

.hero-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
}

.kpi-ribbon {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

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

.story-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(0, 72, 82, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 49, 56, 0.1);
}

.story-card.good {
  border-top: 4px solid #12805c;
}

.story-card.warn {
  border-top: 4px solid #c57900;
}

.story-card.neutral {
  border-top: 4px solid var(--brand);
}

.story-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.story-card p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
}

.story-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.story-card dl div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f5fafb;
}

.story-card dt {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.story-card dd {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-tile {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(0, 72, 82, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px var(--soft-shadow);
}

.analytics-hero .kpi-tile {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.kpi-tile span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.analytics-hero .kpi-tile span {
  color: rgba(255, 255, 255, 0.66);
}

.kpi-tile strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-hero .kpi-tile strong {
  color: #fff;
}

.kpi-tile em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-hero .kpi-tile em {
  color: rgba(255, 255, 255, 0.68);
}

.kpi-tile.good {
  box-shadow: inset 4px 0 0 #12805c, 0 12px 28px var(--soft-shadow);
}

.kpi-tile.gold {
  box-shadow: inset 4px 0 0 var(--gold), 0 12px 28px var(--soft-shadow);
}

.kpi-tile.warn {
  box-shadow: inset 4px 0 0 #c57900, 0 12px 28px var(--soft-shadow);
}

.analytics-hero .kpi-tile.good,
.analytics-hero .kpi-tile.gold,
.analytics-hero .kpi-tile.warn {
  box-shadow: none;
}

.progress-meter {
  display: grid;
  gap: 8px;
  max-width: 460px;
}

.progress-meter div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-meter i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.progress-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #20b7c3, var(--gold));
}

.progress-meter.warn b {
  background: linear-gradient(90deg, var(--gold), #f06543);
}

.executive-board {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.9fr);
  gap: 16px;
}

.board-main,
.board-side {
  min-width: 0;
}

.board-side {
  display: grid;
  gap: 16px;
}

.insight-panel {
  display: grid;
  gap: 14px;
}

.insight-visual-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.15fr 1.15fr;
  gap: 14px;
  align-items: stretch;
}

.insight-visual-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chart-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(0, 72, 82, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 72, 82, 0.055), rgba(255, 255, 255, 0) 58%),
    #fff;
  box-shadow: 0 16px 34px rgba(0, 49, 56, 0.1);
}

.chart-title {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
}

.chart-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.chart-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.bar-chart {
  display: grid;
  gap: 10px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.9fr) minmax(90px, 2fr) minmax(74px, auto);
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.chart-label {
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eff2;
}

.chart-bar {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, #00808e, var(--gold));
  box-shadow: 0 6px 12px rgba(0, 128, 142, 0.18);
}

.chart-row strong {
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

.column-chart-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 72, 82, 0.24) transparent;
}

.column-chart-wrap::-webkit-scrollbar {
  height: 8px;
}

.column-chart-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 72, 82, 0.24);
}

.column-chart {
  display: block;
  width: 100%;
  min-width: 560px;
  height: 280px;
}

.column-grid {
  stroke: rgba(0, 72, 82, 0.1);
  stroke-width: 1;
}

.column-zero {
  stroke: rgba(0, 72, 82, 0.22);
  stroke-width: 1.4;
}

.column-axis,
.column-label {
  fill: #65777c;
  font-size: 11px;
  font-weight: 850;
}

.column-value {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 950;
}

.column-bar {
  filter: drop-shadow(0 9px 10px rgba(0, 72, 82, 0.16));
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.column-bar:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.line-chart-card {
  overflow: hidden;
}

.line-chart {
  width: 100%;
  min-height: 220px;
}

.line-grid {
  stroke: rgba(0, 72, 82, 0.12);
  stroke-width: 1;
}

.line-axis,
.line-x {
  fill: #60747a;
  font-size: 10px;
  font-weight: 800;
}

.line-area {
  fill: rgba(0, 128, 142, 0.11);
}

.line-stroke {
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  filter: drop-shadow(0 7px 10px rgba(0, 72, 82, 0.18));
}

.line-dot {
  fill: var(--gold);
  stroke: #fff;
  stroke-width: 2;
}

.pie-card {
  min-height: 100%;
}

.pie-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.pie-chart {
  position: relative;
  display: grid;
  width: 140px;
  height: 140px;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 72, 82, 0.12), 0 14px 24px rgba(0, 72, 82, 0.12);
}

.pie-chart::before {
  content: "";
  position: absolute;
}

.pie-chart span {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(0, 72, 82, 0.08);
}

.pie-legend {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pie-legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 12px;
}

.pie-legend-row span {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.pie-legend-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pie-legend-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.heatmap-card {
  min-height: 330px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 9px;
}

.heat-cell {
  display: grid;
  gap: 7px;
  min-height: 78px;
  padding: 11px;
  border-radius: 8px;
  color: #fff;
  align-content: space-between;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.heat-cell.strong {
  background: linear-gradient(135deg, #00616b, #12805c);
}

.heat-cell.ok {
  background: linear-gradient(135deg, #00808e, #53a36d);
}

.heat-cell.watch {
  background: linear-gradient(135deg, #b9820b, #d9a014);
}

.heat-cell.weak {
  background: linear-gradient(135deg, #9f2d20, #d45a3c);
}

.heat-cell strong {
  font-size: 18px;
}

.heat-cell span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waterfall-card {
  min-height: 300px;
}

.waterfall-chart {
  display: flex;
  min-height: 210px;
  align-items: end;
  justify-content: space-around;
  gap: 14px;
  padding-top: 12px;
}

.waterfall-step {
  display: grid;
  min-width: 80px;
  gap: 8px;
  justify-items: center;
  align-items: end;
}

.waterfall-step strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.waterfall-step span {
  display: block;
  width: 44px;
  min-height: 8px;
  border-radius: 10px 10px 3px 3px;
  background: linear-gradient(180deg, var(--gold), var(--brand));
  box-shadow: 0 10px 18px rgba(0, 72, 82, 0.18);
}

.waterfall-step.negative span {
  background: linear-gradient(180deg, #ef7d5b, #9f2d20);
}

.waterfall-step em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.detail-evidence-grid {
  display: grid;
  gap: 12px;
}

.donut-card {
  display: grid;
  place-items: center;
  text-align: center;
}

.donut {
  --value: 0;
  display: grid;
  width: 132px;
  height: 132px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(var(--gold) calc(var(--value) * 1%), #e4eff2 0);
  box-shadow: inset 0 0 0 1px #d6e4e7;
}

.donut span {
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.drill-table {
  border: 1px solid #d6e4e7;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.drill-table summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.drill-table summary::-webkit-details-marker {
  display: none;
}

.drill-table summary::before {
  content: "+";
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  place-items: center;
  border-radius: 999px;
  background: #e4f4f5;
  color: var(--brand);
}

.drill-table[open] summary::before {
  content: "-";
}

.drill-table summary span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
}

.drill-table .table-wrap {
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.compact-metrics {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
}

.mini-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.mini-kpis span {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-kpis strong {
  color: var(--ink);
  font-size: 16px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: #e4eff2;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--gold);
}

@media (max-width: 1100px) {
  .marketing-shell {
    width: 100%;
  }

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

  .cta {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-login-form {
    grid-template-columns: 1fr 1fr auto;
  }

  .app {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .dashboard-visuals,
  .split {
    grid-template-columns: 1fr;
  }

  .side-head {
    justify-content: center;
  }

  .side-head div:not(.brandmark),
  .nav button span,
  .sidebar-footer {
    display: none;
  }

  .nav button {
    justify-content: center;
  }
}

@media (max-width: 980px) {
  .app {
    height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    background: #f3f8f6;
  }

  .marketing-hero {
    padding: 52px 28px 40px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-tags {
    grid-column: auto;
    order: 3;
  }

  .marketing-nav,
  .section-label,
  .marketing-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .stats,
  .features,
  .mpesa-banner,
  .modules,
  .cta,
  .marketing-demo {
    margin-left: 28px;
    margin-right: 28px;
    padding-left: 0;
    padding-right: 0;
  }

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

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  }

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

  .mpesa-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .modules {
    padding-bottom: 30px;
  }

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

  .sidebar {
    display: none;
  }

  .main {
    display: block;
    height: 100svh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 8px;
  }

  .nav button span,
  .sidebar-footer,
  .side-head div:not(.brandmark) {
    display: block;
  }

  .nav button {
    justify-content: flex-start;
  }

  .metrics,
  .split,
  .report-grid,
  .guide-strip,
  .list-toolbar.filters,
  .analytics-hero,
  .executive-board,
  .kpi-ribbon,
  .story-grid,
  .insight-visual-grid,
  .insight-visual-grid.three,
  .premium-metrics,
  .compact-metrics,
  .mini-kpis {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-title {
    position: static;
    margin: 0;
    align-items: stretch;
    flex-direction: column;
  }

  .content {
    min-height: 0;
    overflow: visible;
    padding: 12px 12px calc(104px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 1px 1px, rgba(13, 34, 51, 0.035) 1px, transparent 0) 0 0 / 18px 18px,
      linear-gradient(180deg, #f8fbfa 0%, #edf5f3 100%);
  }

  .actions .btn,
  .actions select,
  .report-export-actions select {
    min-width: 0;
    flex: 1 1 180px;
  }

  .pie-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .analytics-hero {
    padding: 20px;
  }

  .hero-copy h2 {
    font-size: 34px;
  }

  .topbar {
    padding: calc(12px + env(safe-area-inset-top)) 12px 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 18px rgba(13, 34, 51, 0.055);
  }

  .topbar .actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
    gap: 8px;
  }

  .topbar strong {
    overflow: hidden;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-chips,
  .guide-strip {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .top-chips::-webkit-scrollbar,
  .guide-strip::-webkit-scrollbar {
    display: none;
  }

  .chip,
  .guide-strip span {
    white-space: nowrap;
  }

  .mobile-dashboard-hero {
    display: block;
    margin-bottom: 10px;
    padding: 18px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 18px;
    background: linear-gradient(135deg, #07343c, #061f2b);
    box-shadow: 0 20px 42px rgba(4, 20, 28, 0.22);
  }

  .mobile-hero-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
  }

  .hero-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: #eef7ff;
    color: #004852;
    font-size: 12px;
    font-weight: 950;
  }

  .mobile-hero-head strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-hero-head em {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    font-style: normal;
    font-weight: 750;
  }

  .mobile-hero-head b {
    padding: 5px 10px;
    border-radius: 999px;
    background: #e9f8ef;
    color: #006b57;
    font-size: 11px;
  }

  .dashboard-alert {
    align-items: stretch;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .dashboard-command-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(156px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .dashboard-command-strip::-webkit-scrollbar {
    display: none;
  }

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

  .dashboard-finance-strip {
    grid-auto-flow: column;
    grid-auto-columns: minmax(188px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .dashboard-finance-strip::-webkit-scrollbar {
    display: none;
  }

  .finance-metric {
    min-width: 0;
  }

  .dashboard-visuals {
    grid-template-columns: 1fr;
  }

  .target-chart {
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .mobile-tabbar {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 8px;
    border: 1px solid rgba(201, 168, 76, 0.24);
    border-radius: 22px;
    background: linear-gradient(180deg, #08343c, #062833);
    box-shadow: 0 20px 44px rgba(4, 20, 28, 0.32);
  }

  .mobile-tabbar button {
    display: grid;
    min-width: 0;
    min-height: 56px;
    place-items: center;
    gap: 3px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 850;
  }

  .mobile-tabbar button svg {
    width: 18px;
    height: 18px;
  }

  .mobile-tabbar button.active {
    background: rgba(201, 168, 76, 0.18);
    color: #f7c948;
  }
}

@media (max-width: 640px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
    height: 100svh;
    background: #f3f8f6;
  }

  .marketing-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  .marketing-hero {
    padding: 30px 20px 28px;
    gap: 18px;
  }

  .hero-login-card {
    padding: 18px;
    border-radius: 14px;
    gap: 9px;
  }

  .marketing-hero h1 {
    font-size: clamp(31px, 10.5vw, 41px);
    line-height: 1.02;
    margin-bottom: 10px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  .eyebrow-text {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .hero-desc {
    max-width: none;
    font-size: 12px;
    line-height: 1.65;
    margin-bottom: 0;
  }

  .hero-login-top {
    margin-bottom: 4px;
  }

  .hero-login-top strong {
    font-size: 19px;
  }

  .hero-login-top span {
    font-size: 11px;
  }

  .hero-login-card input,
  .hero-login-card .cta-btn {
    min-height: 40px;
  }

  .hero-tags,
  .mpesa-badges,
  .marketing-demo {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tag,
  .mbadge,
  .marketing-demo button,
  .mod {
    width: 100%;
  }

  .marketing-nav,
  .section-label,
  .marketing-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .stats,
  .features,
  .mpesa-banner,
  .modules,
  .cta,
  .marketing-demo {
    margin-left: 20px;
    margin-right: 20px;
  }

  .section-label {
    padding-top: 30px;
    padding-bottom: 14px;
  }

  .feat {
    padding: 18px 16px;
  }

  .feat-ico {
    margin-bottom: 10px;
  }

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

  .stat,
  .stat:nth-child(2) {
    border-right: none;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .mpesa-banner {
    padding: 24px 22px;
  }

  .cta {
    padding: 24px 22px;
  }

  .marketing-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .topbar,
  .section-title {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .topbar .actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
    gap: 8px;
  }

  .tenant-select {
    width: 100%;
    max-width: none;
  }

  .period-filters {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .content {
    padding: 10px 10px calc(96px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 1px 1px, rgba(13, 34, 51, 0.035) 1px, transparent 0) 0 0 / 18px 18px,
      linear-gradient(180deg, #f8fbfa 0%, #edf5f3 100%);
  }

  .section-title {
    margin: -10px -10px 10px;
    padding: 13px 10px 10px;
    background: rgba(248, 251, 250, 0.96);
    box-shadow: none;
  }

  .section-title h2 {
    font-size: 22px;
    line-height: 1.08;
  }

  .section-title p,
  .topbar .subtle {
    font-size: 13px;
  }

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

  .sidebar {
    display: none;
  }

  .side-head {
    justify-content: center;
    min-height: calc(64px + env(safe-area-inset-top));
    padding: calc(10px + env(safe-area-inset-top)) 6px 8px;
  }

  .side-head > div:not(.brandmark),
  .side-head strong,
  .side-head span {
    display: none;
  }

  .sidebar .brandmark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 12px;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 7px 12px;
    gap: 6px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-section {
    position: relative;
    min-width: 0;
    margin-bottom: 0;
  }

  .nav button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    justify-content: center;
    padding: 6px;
    border-radius: 12px;
    font-size: 12px;
  }

  .nav-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 10px;
  }

  .nav button .nav-label {
    display: none;
  }

  .nav button .nav-group-left {
    flex: 0 0 auto;
    justify-content: center;
  }

  .nav button .nav-group-right {
    position: static;
  }

  .nav-divider {
    display: none;
  }

  .nav-group-title {
    display: none;
  }

  .nav-children {
    position: fixed;
    left: 70px;
    top: calc(74px + env(safe-area-inset-top));
    z-index: 40;
    width: min(248px, calc(100vw - 78px));
    max-height: calc(100svh - 94px - env(safe-area-inset-top));
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 16px;
    background: linear-gradient(160deg, #0f2a3d 0%, #0d2233 100%);
    box-shadow: 0 24px 54px rgba(4, 20, 28, 0.36);
  }

  .nav-children .nav-child .nav-label {
    display: block;
  }

  .nav-children .nav-child .nav-group-left {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .nav-children .nav-child {
    justify-content: flex-start;
    min-height: 44px;
  }

  .nav-children .nav-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    margin-left: 0;
    padding: 2px 6px;
    font-size: 9px;
  }

  .nav-parent strong {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 18px;
    height: 18px;
    font-size: 13px;
  }

  .sidebar-footer {
    display: none;
  }

  .topbar {
    min-height: 0;
    padding: calc(10px + env(safe-area-inset-top)) 10px 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 18px rgba(13, 34, 51, 0.055);
  }

  .topbar strong {
    overflow: hidden;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-chips {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 7px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .top-chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    padding: 6px 9px;
    font-size: 10px;
    white-space: nowrap;
  }

  .guide-strip {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .guide-strip::-webkit-scrollbar {
    display: none;
  }

  .guide-strip span {
    min-width: max-content;
    min-height: 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12px;
    box-shadow: 0 8px 20px rgba(13, 34, 51, 0.045);
  }

  .metric,
  .panel,
  .table-wrap,
  .list-toolbar,
  .inline-editor,
  .page-card {
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(13, 34, 51, 0.06);
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metric {
    min-height: 0;
    padding: 14px;
  }

  .metric strong {
    font-size: 25px;
  }

  .metric-top {
    margin-bottom: 8px;
  }

  .metric-top i {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .section-title .actions,
  .report-export-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .period-filters select,
  .report-export-actions select,
  .btn {
    min-height: 41px;
    width: 100%;
    max-width: none;
  }

  .dashboard-board,
  .dashboard-visuals,
  .dashboard-finance-strip,
  .grid,
  .premium-stack {
    gap: 10px;
  }

  .dashboard-alert {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 10px;
    padding: 12px;
  }

  .dashboard-alert .btn {
    width: 100%;
  }

  .dashboard-command-strip {
    grid-template-columns: 1fr;
  }

  .command-metric {
    min-height: 0;
    padding: 14px;
  }

  .command-metric strong {
    font-size: 24px;
  }

  .dashboard-finance-strip {
    grid-template-columns: 1fr;
  }

  .finance-metric strong {
    font-size: 18px;
  }

  .target-chart {
    grid-auto-flow: column;
    grid-auto-columns: minmax(82px, 1fr);
    grid-template-columns: none;
    min-height: 210px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .target-bars {
    height: 150px;
  }

  .compliance-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .compliance-row b {
    grid-column: 2;
  }

  .mobile-tabbar {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 8px;
    border: 1px solid rgba(201, 168, 76, 0.24);
    border-radius: 20px;
    background: linear-gradient(180deg, #08343c, #062833);
    box-shadow: 0 20px 44px rgba(4, 20, 28, 0.32);
  }

  .mobile-tabbar button {
    display: grid;
    min-width: 0;
    min-height: 54px;
    place-items: center;
    gap: 3px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 850;
  }

  .mobile-tabbar button svg {
    width: 18px;
    height: 18px;
  }

  .mobile-tabbar button.active {
    background: rgba(201, 168, 76, 0.18);
    color: #f7c948;
  }

  .panel {
    padding: 14px;
  }

  .panel-head {
    gap: 10px;
    margin-bottom: 10px;
  }

  .panel-head h2 {
    font-size: 18px;
  }

  .chart-panel .line-chart {
    min-height: 210px;
  }

  .chart-panel.compact .pie-card {
    min-height: 150px;
  }

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

  .report-table-wrap,
  .table-wrap {
    max-height: 58svh;
    min-height: auto;
    overflow: auto;
  }

  .table-wrap table {
    min-width: 760px;
  }

  .table-wrap .panel-head + table th,
  .report-table-wrap .panel-head + table th {
    top: 54px;
  }

  .chart-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .chart-row strong {
    text-align: left;
  }

  .drill-table summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .drill-table summary span {
    margin-left: 30px;
  }
}

/* ─── Login Page (lp-*) ─────────────────────────────────────────────── */

.lp-wrap {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", Inter, "Segoe UI", Arial, sans-serif;
}

/* Navbar */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #003c46;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.lp-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lp-brand-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e6a817, #c98a00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.lp-brand-box-sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 11px;
}

.lp-brand-name {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.3px;
}

.lp-brand-name b {
  color: #e6a817;
  font-weight: 800;
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.lp-nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.lp-nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.lp-nav-cta {
  background: linear-gradient(135deg, #e6a817, #c98a00);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.lp-nav-cta:hover {
  opacity: 0.9;
}

/* Hero */
.lp-hero {
  background: linear-gradient(160deg, #edf8f9 0%, #f8fdfd 40%, #fffef6 100%);
  padding: 80px 0 96px;
}

.lp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.lp-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #00808e;
  margin-bottom: 18px;
}

.lp-h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  color: #002a30;
  margin: 0 0 22px;
  letter-spacing: -1px;
}

.lp-h1 em {
  font-style: italic;
  color: #00808e;
}

.lp-hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: #3a5c62;
  max-width: 520px;
  margin: 0 0 28px;
}

.lp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.lp-hero-badges span {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 128, 142, 0.1);
  color: #00808e;
  border: 1px solid rgba(0, 128, 142, 0.2);
}

.lp-stats {
  display: flex;
  gap: 32px;
}

.lp-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-stat-n {
  font-size: 24px;
  font-weight: 800;
  color: #002a30;
  letter-spacing: -0.5px;
}

.lp-stat-l {
  font-size: 12px;
  color: #5a7a82;
  font-weight: 500;
}

/* Sign-in card */
.lp-hero-card-wrap {
  display: flex;
  flex-direction: column;
}

.lp-card {
  background: #07131a;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 40, 50, 0.25), 0 0 0 1px rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.lp-card-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #e6a817 30%, #f0c050 60%, transparent 100%);
}

.lp-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.lp-card-head strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.lp-card-head span {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  margin-top: 2px;
}

.lp-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
  margin-bottom: -4px;
}

.lp-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s;
  outline: none;
}

.lp-input:focus {
  border-color: rgba(230,168,23,0.5);
  background: rgba(255,255,255,0.1);
}

.lp-btn-primary {
  margin-top: 4px;
  background: linear-gradient(135deg, #e6a817, #c98a00);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px;
  border-radius: 9px;
  border: 0;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.lp-btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.lp-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
}

.lp-divider::before,
.lp-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.lp-divider span {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.lp-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lp-demo-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  padding: 9px 10px;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: left;
}

.lp-demo-btn:hover {
  background: rgba(230,168,23,0.12);
  border-color: rgba(230,168,23,0.3);
  color: #e6a817;
}

/* Features section */
.lp-features {
  background: #f4f8f9;
  padding: 96px 0;
}

.lp-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.lp-section-head {
  text-align: center;
  margin-bottom: 56px;
}

.lp-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #00808e;
  background: rgba(0,128,142,0.1);
  border: 1px solid rgba(0,128,142,0.2);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.lp-tag-light {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.lp-h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 38px;
  font-weight: 800;
  color: #002a30;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.lp-h2-light {
  color: #fff;
}

.lp-section-sub {
  font-size: 16px;
  color: #5a7a82;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.lp-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.lp-feat {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #dde8ea;
  transition: box-shadow 0.2s, transform 0.2s;
}

.lp-feat:hover {
  box-shadow: 0 8px 28px rgba(0,72,82,0.1);
  transform: translateY(-2px);
}

.lp-feat-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,128,142,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #00808e;
}

.lp-feat-ico svg {
  width: 20px;
  height: 20px;
}

.lp-feat-t {
  font-size: 14px;
  font-weight: 700;
  color: #002a30;
  margin-bottom: 6px;
}

.lp-feat-d {
  font-size: 13px;
  color: #5a7a82;
  line-height: 1.55;
}

/* Finance section */
.lp-finance {
  background: #003c46;
  padding: 96px 0;
}

.lp-finance-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: center;
}

.lp-finance-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 480px;
}

.lp-finance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-finance-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.lp-finance-list li::before {
  content: "✓";
  color: #e6a817;
  font-weight: 800;
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}

.lp-finance-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
}

.lp-fc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.lp-fc-amount {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.lp-fc-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.lp-fc-bar {
  height: 100%;
  background: linear-gradient(90deg, #00808e, #e6a817);
  border-radius: 999px;
}

.lp-fc-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.lp-fc-row-hi {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}

.lp-fc-row-hi span:last-child {
  color: #4dd9a0;
}

/* Integrations */
.lp-integrations {
  background: #fff;
  padding: 96px 0;
}

.lp-int-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.lp-int {
  border: 1px solid #dde8ea;
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow 0.2s;
}

.lp-int:hover {
  box-shadow: 0 6px 20px rgba(0,72,82,0.08);
}

.lp-int-icon {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}

.lp-int-name {
  font-size: 15px;
  font-weight: 700;
  color: #002a30;
  margin-bottom: 6px;
}

.lp-int-desc {
  font-size: 13px;
  color: #5a7a82;
  line-height: 1.5;
}

/* Support + Demo split */
.lp-support {
  background: #f4f8f9;
  padding: 0;
}

.lp-support-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
}

.lp-support-left {
  background: #003c46;
  padding: 64px 56px;
}

.lp-support-right {
  background: #fff;
  padding: 64px 56px;
}

.lp-support-h {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}

.lp-support-h-dark {
  color: #002a30;
}

.lp-support-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 28px;
  line-height: 1.55;
}

.lp-support-sub-dark {
  color: #5a7a82;
}

.lp-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.lp-contact-icon {
  font-size: 18px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-demo-accounts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-demo-pill {
  background: #f4f8f9;
  border: 1px solid #dde8ea;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.lp-demo-pill:hover {
  background: #edf6f7;
  border-color: #00808e;
  box-shadow: 0 0 0 3px rgba(0,128,142,0.08);
}

.lp-dp-role {
  font-size: 13px;
  font-weight: 700;
  color: #002a30;
}

.lp-dp-name {
  font-size: 12px;
  color: #5a7a82;
}

/* Footer */
.lp-footer {
  background: #002830;
  padding: 32px 0;
}

.lp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.lp-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-left: auto;
  letter-spacing: 0.3px;
}

.lp-footer-links {
  display: flex;
  gap: 20px;
}

.lp-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.lp-footer-links a:hover {
  color: rgba(255,255,255,0.8);
}

/* Responsive */
@media (max-width: 1024px) {
  .lp-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .lp-h1 {
    font-size: 40px;
  }

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

  .lp-finance-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .lp-support-inner {
    grid-template-columns: 1fr;
  }

  .lp-footer-inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .lp-footer-copy {
    margin-left: 0;
    order: 3;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .lp-nav-links {
    display: none;
  }

  .lp-hero {
    padding: 48px 0 64px;
  }

  .lp-h1 {
    font-size: 32px;
  }

  .lp-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .lp-feat-grid {
    grid-template-columns: 1fr;
  }

  .lp-int-grid {
    grid-template-columns: 1fr;
  }

  .lp-support-left,
  .lp-support-right {
    padding: 40px 24px;
  }

  .lp-hero-inner {
    padding: 0 20px;
  }

  .lp-section-inner {
    padding: 0 20px;
  }
}
