:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --text: #122236;
  --muted: #54647a;
  --primary: #0066cc;
  --primary-2: #00a3a3;
  --danger: #c62828;
  --success: #1b8f45;
  --shadow: 0 12px 30px rgba(18, 34, 54, 0.12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #e8f2ff 0%, #f5f8ff 45%, #f4fbfb 100%);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #d9e4f5;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.3px;
}

.site-header nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--muted);
  font-weight: 600;
}

.site-header nav a:hover {
  color: var(--primary);
}

.section {
  padding: 24px 0 46px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid #e3ebf8;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.btn-secondary {
  background: #eaf1fd;
  color: var(--primary);
}

.btn-small {
  padding: 8px 12px;
  font-size: 0.86rem;
  background: #eaf4ff;
  color: #0c4683;
  border-radius: 10px;
}

.form-wrap,
.auth-wrap {
  max-width: 860px;
}

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

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

label {
  font-weight: 600;
  display: grid;
  gap: 8px;
  color: #20334d;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8d6eb;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.auth-card {
  max-width: 420px;
}

.hint {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #e6eef8;
  vertical-align: top;
  text-align: left;
  font-size: 0.93rem;
}

th {
  color: #42597a;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge {
  display: inline-flex;
  background: #e9f5ff;
  color: #0f4d89;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.inline-form {
  display: grid;
  gap: 8px;
}

.alert {
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

.alert-success {
  background: #eaf9f0;
  color: var(--success);
  border: 1px solid #c8ecd6;
}

.alert-error {
  background: #ffecec;
  color: var(--danger);
  border: 1px solid #ffc8c8;
}

.site-footer {
  padding: 28px 0;
  color: #567;
  text-align: center;
}

/* Login page style (matching sample screenshot) */
.login-page {
  min-height: 100vh;
  background: #f7f8fb;
  position: relative;
  overflow-x: hidden;
}

.login-bg {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(87, 143, 200, 0.14) 0 8px, transparent 9px),
    radial-gradient(circle at 85% 30%, rgba(87, 143, 200, 0.12) 0 10px, transparent 11px),
    linear-gradient(125deg, rgba(120, 150, 190, 0.12) 1px, transparent 1px),
    linear-gradient(40deg, rgba(120, 150, 190, 0.10) 1px, transparent 1px);
  background-size: 320px 320px, 280px 280px, 180px 180px, 220px 220px;
  opacity: 0.55;
  pointer-events: none;
}

.login-shell {
  min-height: 100vh;
  width: min(1240px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
  position: relative;
  z-index: 1;
}

.login-left,
.login-right {
  padding: 34px 26px;
}

.login-left {
  text-align: center;
  border-right: 1px solid rgba(194, 205, 225, 0.5);
}

.logo-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: conic-gradient(from 120deg, #006ed9, #00b5ae, #ff9a1f, #006ed9);
  box-shadow: 0 12px 26px rgba(0, 64, 148, 0.25);
}

.brand-title {
  font-size: 3rem;
  line-height: 1;
  margin: 0;
  letter-spacing: 0.5px;
}

.brand-sub {
  color: #2d3f56;
  margin: 8px 0 34px;
  font-size: 0.95rem;
}

.powered {
  color: #607089;
  margin-bottom: 46px;
}

.powered strong {
  color: #2a8f43;
}

.signup-cta p {
  color: #5d6f86;
  margin-bottom: 12px;
}

.btn-teal {
  background: linear-gradient(135deg, #19bcbc, #1bcfa0);
  color: #fff;
  min-width: 180px;
}

.login-right h2 {
  margin: 0;
  text-align: center;
  font-size: 2rem;
  color: #273447;
}

.login-caption {
  margin: 8px 0 34px;
  text-align: center;
  color: #8a97a8;
}

.login-form {
  width: min(480px, 100%);
  margin: 0 auto;
}

.login-form label {
  margin-bottom: 6px;
  color: #308f8f;
  font-weight: 600;
}

.login-form input {
  margin-bottom: 16px;
  border: 0;
  border-radius: 999px;
  background: #a9acb8;
  color: #fff;
  padding: 12px 22px;
}

.login-form input::placeholder {
  color: #f2f2f5;
}

.login-form input:focus {
  box-shadow: 0 0 0 3px rgba(79, 149, 216, 0.25);
}

.login-meta {
  text-align: right;
  margin-bottom: 20px;
}

.login-meta a {
  color: #99a3b2;
  font-size: 0.9rem;
}

.btn-blue {
  background: linear-gradient(135deg, #2f89ff, #3d9be5);
  color: #fff;
  min-width: 176px;
  float: right;
}

.login-form::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 12px;
  }

  .btn,
  .btn-small {
    width: 100%;
  }

  .login-shell {
    grid-template-columns: 1fr;
    padding: 20px 0 40px;
    gap: 8px;
  }

  .login-left {
    border-right: 0;
    border-bottom: 1px solid rgba(194, 205, 225, 0.5);
  }

  .brand-title {
    font-size: 2.2rem;
  }

  .btn-blue {
    width: 100%;
    float: none;
  }
}

.hidden {
  display: none;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* Access page */
.access-page {
  min-height: 100vh;
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f4f7fc;
  color: #15263d;
  position: relative;
}

.access-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(45, 135, 232, 0.11), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(27, 197, 189, 0.13), transparent 45%),
    linear-gradient(135deg, #eef4ff, #f6f9ff 55%, #edf8f7);
}

.access-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.access-card {
  width: min(720px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d4e4fa;
  border-radius: 22px;
  padding: 28px;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(20, 53, 99, 0.15);
}

.access-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #178bcf;
}

.access-card h1 {
  margin: 4px 0 10px;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  color: #1e3150;
}

.access-sub {
  margin: 0 0 20px;
  color: #56708f;
}

.access-grid {
  display: grid;
  gap: 12px;
}

.access-btn {
  display: block;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #cfe0f8;
  background: #f6faff;
  color: #17355a;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.access-btn span {
  display: block;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.access-btn small {
  display: block;
  margin-top: 3px;
  color: #5a799d;
}

.access-btn:hover {
  transform: translateY(-2px);
  border-color: #8ac3ff;
  background: #edf6ff;
}

.access-btn-primary {
  border-color: #44a8ff;
  background: linear-gradient(135deg, #1f8dff, #1bc5bd);
  color: #fff;
}

.access-btn-primary small {
  color: #e8f7ff;
}

.access-bottom {
  margin-top: 16px;
}

.access-bottom a {
  color: #2b7fc9;
}

/* Professional dashboard */
.dashboard-pro {
  padding-top: 18px;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
  background: linear-gradient(120deg, #ffffff, #f2f8ff);
  border: 1px solid #d7e6fa;
}

.dash-kicker {
  margin: 0;
  color: #1686c6;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  font-weight: 800;
}

.dash-head h1 {
  margin: 8px 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.dash-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.kpi-card {
  border-radius: 16px;
  border: 1px solid #d6e5f8;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(17, 60, 116, 0.09);
}

.kpi-card p {
  margin: 0 0 6px;
  color: #5f7694;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-card h3 {
  margin: 0;
  font-size: 1.9rem;
  color: #14335a;
}

.table-pro {
  padding: 8px 10px;
  border: 1px solid #dbe8f8;
}

.table-pro table {
  min-width: 980px;
}

.table-pro td strong {
  display: block;
  margin-bottom: 2px;
}

.table-pro td small {
  display: block;
  color: #627a9b;
}

.badge.status-baru {
  background: #e9f3ff;
  color: #2468b8;
}

.badge.status-verifikasi {
  background: #e8f9f8;
  color: #0b7f88;
}

.badge.status-terjadwal {
  background: #eef6ff;
  color: #255f9f;
}

.badge.status-selesai {
  background: #e7fbf2;
  color: #188455;
}

.badge.status-ditolak {
  background: #ffe9e9;
  color: #b02a2a;
}

@media (max-width: 980px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .access-card {
    padding: 20px;
  }
}

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

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.list-clean li {
  padding: 10px 12px;
  border: 1px solid #d8e6f8;
  border-radius: 10px;
  background: #f7fbff;
}

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

.timeline-item {
  position: relative;
  padding: 10px 12px 10px 38px;
  border-radius: 10px;
  background: #f5f9ff;
  border: 1px solid #d7e7fa;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #9eb4d1;
}

.timeline-item.done::before {
  background: linear-gradient(135deg, #1f8dff, #1bc5bd);
}

.quick-actions {
  display: grid;
  gap: 10px;
}

@media (max-width: 900px) {
  .cards-2 {
    grid-template-columns: 1fr;
  }
}

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

.module-card h3 {
  margin: 0 0 4px;
}

.module-sub {
  margin: 0 0 12px;
  color: #607b99;
  font-size: 0.93rem;
}

.module-wide {
  grid-column: 1 / -1;
}

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

.chart-box {
  border: 1px solid #d8e8fa;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
}

.chart-card canvas {
  width: 100% !important;
}

.chart-box-wide {
  grid-column: 1 / -1;
}

.module-form {
  display: grid;
  gap: 10px;
}

.form-row {
  display: grid;
  gap: 7px;
}

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

.form-row label {
  font-size: 0.9rem;
  color: #365173;
}

.config-list {
  display: grid;
  gap: 8px;
}

.config-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d8e6f8;
  border-radius: 10px;
  background: #f7fbff;
}

.config-list span {
  color: #4f6c8f;
}

.config-list strong {
  color: #1f426e;
}

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

@media (max-width: 980px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

  .chart-box-wide {
    grid-column: auto;
  }

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

/* Role App Layout (reference-like) */
.role-app {
  margin: 0;
  background: #eef2f8;
  color: #22344d;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

.app-sidebar {
  background: #ffffff;
  border-right: 1px solid #e1e8f3;
  display: flex;
  flex-direction: column;
}

.side-brand {
  min-height: 74px;
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf6;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #1f3b5f;
}

.brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, #1f8dff, #1bc5bd, #ff9a1f, #1f8dff);
}

.side-menu {
  padding: 12px 10px 18px;
  overflow: auto;
  display: block;
}

.side-menu .group {
  margin: 16px 8px 8px;
  padding-top: 10px;
  border-top: 1px solid #edf2fa;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #7a8da9;
  font-weight: 800;
  text-align: left;
  display: block;
}

.side-link {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  color: #425b79;
  font-weight: 700;
  margin-bottom: 3px;
  font-size: 0.92rem;
  border: 1px solid transparent;
  white-space: normal;
  line-height: 1.35;
}

.side-link:hover,
.side-link.active {
  background: #eaf3ff;
  border-color: #d4e6ff;
  color: #1e71c1;
}

.app-sidebar .side-link + .side-link {
  margin-top: 2px;
}

.app-main {
  display: grid;
  grid-template-rows: 74px 1fr;
}

.app-topbar {
  background: #fff;
  border-bottom: 1px solid #e5edf8;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f1f7ff;
  color: #345a85;
  font-weight: 700;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #89c4ff, #88efdf);
  display: inline-grid;
  place-items: center;
  font-size: 0.82rem;
  color: #0d4a7e;
}

.app-content {
  padding: 18px 20px;
  max-width: 1280px;
}

.profile-card {
  background: #fff;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8ebfff, #8ce8d8);
  display: inline-grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f4b7e;
}

.profile-meta h3 {
  margin: 0;
}

.profile-meta p {
  margin: 2px 0;
  color: #6f8198;
  font-size: 0.92rem;
}

.block-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.info-block {
  background: #fff;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  padding: 16px;
}

.legend-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #607a9b;
  font-size: 0.9rem;
}

.legend-row b {
  color: #1a3f6c;
}

.chart-card {
  background: #fff;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  padding: 16px;
}

.admin-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.performance-card {
  background: linear-gradient(135deg, #0f2747, #174ea6 58%, #12a7b7);
  border-radius: 12px;
  color: #fff;
  padding: 18px;
  min-height: 210px;
  position: relative;
  overflow: hidden;
}

.performance-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12), transparent 28%);
  pointer-events: none;
}

.performance-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(8px);
}

.performance-head,
.performance-copy,
.performance-stats,
.performance-chart-wrap {
  position: relative;
  z-index: 1;
}

.performance-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.performance-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.performance-head h3 {
  margin: 0;
  color: #fff;
}

.performance-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.performance-copy {
  margin: 12px 0 14px;
  color: rgba(255, 255, 255, 0.82);
}

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

.performance-stats div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(6px);
}

.performance-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
}

.performance-stats strong {
  display: block;
  margin-top: 2px;
  font-size: 1.45rem;
}

.performance-chart-wrap {
  margin-top: 14px;
  padding: 10px 0 0;
}

.quota-card {
  background: #fff;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  padding: 16px;
}

.progress {
  height: 8px;
  background: #e8eef8;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 12px;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1f8dff, #1bc5bd);
}

.stat-inline {
  display: grid;
  gap: 8px;
}

.stat-inline div {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #e1ebf8;
  border-radius: 8px;
  background: #f8fbff;
}

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

.metric-tile {
  background: #fff;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  padding: 16px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #1f3553;
}

.muted {
  color: #6f829d;
}

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

  .app-sidebar {
    display: none;
  }

  .block-grid-2,
  .admin-hero,
  .metric-tiles {
    grid-template-columns: 1fr;
  }

  .app-topbar {
    justify-content: space-between;
    padding: 10px 14px;
    min-height: 64px;
  }

  .user-pill {
    font-size: 0.86rem;
  }
}

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --text: #12263f;
  --muted: #60738d;
  --primary: #174ea6;
  --primary-2: #12a7b7;
  --primary-3: #0f2747;
  --line: #d9e3f1;
  --shadow: 0 20px 50px rgba(15, 39, 71, 0.10);
  --radius: 20px;
}

body {
  background: linear-gradient(180deg, #f6f9fd 0%, #eef4fb 100%);
  color: var(--text);
}

main {
  min-height: calc(100vh - 140px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--primary-3);
}

.brand strong,
.side-brand strong {
  display: block;
  font-size: 0.98rem;
}

.brand small,
.side-brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: conic-gradient(from 125deg, #1c74e8, #14b8c2, #ff9d2f, #1c74e8);
  box-shadow: 0 14px 28px rgba(28, 116, 232, 0.24);
}

.public-nav {
  gap: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.main-nav a.is-active,
.main-nav a:hover {
  color: var(--primary);
}

.nav-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(23, 78, 166, 0.18);
}

.nav-toggle,
.sidebar-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span,
.sidebar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-3);
  margin: 5px 0;
  border-radius: 999px;
}

.hero-section,
.page-hero {
  padding: 56px 0 24px;
}

.page-hero-tight {
  padding-bottom: 6px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 10px;
  color: #1e7dcf;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2 {
  margin: 0;
  color: var(--primary-3);
  line-height: 1.08;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
  max-width: 12ch;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  max-width: 18ch;
}

.hero-lead {
  margin: 16px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions,
.form-submit-row,
.cta-band-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-mini-stats,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-mini-stats div,
.metric-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.hero-mini-stats strong,
.metric-card strong {
  display: block;
  font-size: 1.6rem;
  color: var(--primary-3);
}

.hero-mini-stats span,
.metric-card span,
.detail-grid span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-panel,
.content-card,
.table-card,
.info-card,
.feature-card,
.cta-band {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.hero-panel-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-3);
  font-weight: 800;
  margin-bottom: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.hero-stage,
.timeline,
.faq-list,
.quick-links {
  display: grid;
  gap: 12px;
}

.hero-stage-item,
.faq-item,
.note-box {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
}

.hero-stage-item strong,
.faq-item h3,
.note-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-3);
}

.hero-stage-item span,
.faq-item p,
.note-box p {
  color: var(--muted);
}

.hero-stage-item.current,
.timeline-item.done {
  background: linear-gradient(135deg, rgba(23, 78, 166, 0.08), rgba(18, 167, 183, 0.08));
}

.surface-soft {
  background: linear-gradient(180deg, rgba(18, 167, 183, 0.05), rgba(23, 78, 166, 0.03));
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  max-width: 18ch;
}

.compact-heading {
  margin-bottom: 16px;
}

.text-link {
  color: var(--primary);
  font-weight: 800;
}

.feature-grid,
.process-grid,
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.info-card,
.process-card,
.content-card,
.table-card,
.cta-band {
  padding: 22px;
}

.feature-card h3,
.info-card h3,
.process-card h3,
.content-card h2 {
  margin: 0 0 8px;
  color: var(--primary-3);
}

.feature-card p,
.info-card p,
.process-card p,
.content-card p {
  margin: 0;
  color: var(--muted);
}

.card-kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #1e7dcf;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.process-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(23, 78, 166, 0.1), rgba(18, 167, 183, 0.12));
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.form-shell {
  max-width: 1040px;
}

.portal-form {
  gap: 18px;
}

.form-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1e7dcf;
  padding-top: 6px;
}

.inline-upload-card {
  box-shadow: none;
}

.content-card,
.table-card {
  padding: 22px;
}

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

.detail-grid div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #f8fbff;
}

.detail-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--primary-3);
  font-size: 1rem;
}

.quick-links a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  color: var(--primary-3);
  font-weight: 700;
}

.timeline.compact {
  gap: 10px;
}

.timeline-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.role-section-gap {
  margin-top: 18px;
}

.status-form-grid {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 8px;
  align-items: center;
}

.side-brand {
  align-items: center;
}

.topbar-note {
  font-weight: 800;
  color: var(--primary);
}

.sidebar-toggle {
  margin-right: auto;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .cta-band,
  .admin-hero,
  .feature-grid,
  .process-grid,
  .listing-grid,
  .cards-2,
  .hero-mini-stats,
  .metric-grid,
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band {
    display: grid;
  }
}

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 4%;
    left: 4%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    box-shadow: 0 20px 50px rgba(15, 39, 71, 0.18);
  }

  .sidebar-toggle {
    display: inline-block;
  }

  .app-topbar {
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .hero-grid,
  .feature-grid,
  .process-grid,
  .listing-grid,
  .cards-2,
  .hero-mini-stats,
  .metric-grid,
  .detail-grid,
  .block-grid-2,
  .admin-hero,
  .metric-tiles,
  .kpi-grid,
  .admin-grid,
  .chart-grid,
  .form-grid,
  .status-form-grid {
    grid-template-columns: 1fr;
  }

  .hero-section,
  .page-hero {
    padding-top: 34px;
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: none;
  }

  .nav-wrap {
    min-height: 74px;
  }

  .login-left,
  .login-right,
  .feature-card,
  .info-card,
  .process-card,
  .content-card,
  .table-card,
  .cta-band,
  .hero-panel,
  .access-card {
    padding: 18px;
  }

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