:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --ink: #12233f;
  --ink-2: #1d3257;
  --text: #3c4557;
  --muted: #697181;
  --line: #e7e3d9;
  --brand: #1f6f5f;
  --brand-2: #0e5b4d;
  --brand-tint: #e5f2ee;
  --accent: #e8a13b;
  --accent-2: #c9801f;
  --accent-tint: #f9ecd2;
  --danger: #c2412e;
  --danger-tint: #fbeae6;
  --shadow-sm: 0 1px 2px rgba(18, 35, 63, .06), 0 2px 10px rgba(18, 35, 63, .06);
  --shadow-md: 0 8px 28px rgba(18, 35, 63, .12);
  --shadow-lg: 0 22px 56px rgba(18, 35, 63, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img,
svg {
  display: block;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.container--wide {
  width: min(1400px, 100% - 48px);
}

.section {
  padding: 84px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.25;
}

.section-sub {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid rgba(232, 161, 59, .5);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 111, 95, .28);
}

.btn-primary:hover {
  background: var(--brand-2);
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(232, 161, 59, .32);
}

.btn-accent:hover {
  background: #d8942f;
}

.btn-ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .18);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand-tint);
}

.btn-block {
  width: 100%;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 244, 239, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--ink-2) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 111, 95, .3);
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}

.brand-name small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: background .18s ease, color .18s ease;
}

.nav-link:hover {
  background: #ece9df;
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 78% -10%, rgba(31, 111, 95, .55), transparent 60%),
    radial-gradient(700px 420px at 10% 110%, rgba(232, 161, 59, .28), transparent 60%),
    linear-gradient(150deg, #0d1c36 0%, #12233f 45%, #143a33 100%);
  color: #fff;
  padding: 96px 0 84px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .4;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 13px;
  font-weight: 600;
  color: #f7dfae;
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.02em;
}

.hero-title .accent {
  color: #f2b45c;
}

.hero-sub {
  margin-top: 20px;
  max-width: 560px;
  font-size: 17px;
  color: rgba(255, 255, 255, .82);
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
}

.visual-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

.visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.visual-dots {
  display: flex;
  gap: 6px;
}

.visual-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
}

.visual-lock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #f2b45c;
}

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

.visual-pill {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
}

.visual-pill .vp-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(242, 180, 92, .18);
  color: #f2b45c;
}

.visual-pill strong {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.visual-pill span {
  font-size: 11px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.4;
}

.visual-bar {
  margin-top: 20px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.visual-bar i {
  display: block;
  height: 100%;
  width: 68%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #f2b45c);
}

.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.stat {
  text-align: center;
}

.stat-num {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

.stat-label {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, .68);
}

/* ---------- Modules ---------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.module-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: #cfd8c9;
  box-shadow: var(--shadow-md);
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 18px;
}

.module-card:nth-child(3n + 2) .module-icon {
  background: var(--accent-tint);
  color: var(--accent-2);
}

.module-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.module-desc {
  margin-top: 7px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Security ---------- */
.security {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

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

.security-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
}

.security-card .module-icon {
  background: var(--accent-tint);
  color: var(--accent-2);
}

.security-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.security-card p {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-copy h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.25;
}

.why-copy > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}

.why-list {
  margin-top: 26px;
  display: grid;
  gap: 14px;
  list-style: none;
}

.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}

.check-item .check {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.why-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #0d1c36, #143a33);
  padding: 34px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.why-panel h3 {
  font-size: 20px;
  font-weight: 800;
}

.why-panel p {
  margin-top: 10px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
}

.panel-rows {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
}

.panel-row span {
  font-size: 14px;
  color: rgba(255, 255, 255, .86);
}

.panel-row b {
  font-size: 13px;
  color: #f2b45c;
  font-weight: 700;
}

/* ---------- CTA ---------- */
.cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-inner::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(232, 161, 59, .22);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.cta-sub {
  margin-top: 10px;
  color: rgba(255, 255, 255, .8);
  max-width: 520px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0d1c36;
  color: rgba(255, 255, 255, .72);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  transition: color .18s ease;
}

.footer-links a:hover {
  color: #f2b45c;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Auth (login) ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
  background:
    radial-gradient(760px 420px at 85% -10%, rgba(31, 111, 95, .5), transparent 60%),
    radial-gradient(640px 400px at 5% 110%, rgba(232, 161, 59, .25), transparent 60%),
    linear-gradient(150deg, #0d1c36, #143a33);
}

.auth-shell {
  width: min(440px, 100% - 40px);
}

.auth-shell--wide {
  width: min(540px, 100% - 40px);
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-lg);
}

.auth-head {
  text-align: center;
  margin-bottom: 28px;
}

.auth-head .brand {
  justify-content: center;
}

.auth-head .brand-name {
  color: var(--ink);
}

.auth-title {
  margin-top: 18px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}

.auth-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.auth-alert {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 18px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.auth-alert-error {
  background: var(--danger-tint);
  color: #9a2f1f;
  border: 1px solid #f0c9c0;
}

.auth-alert-success {
  background: var(--brand-tint);
  color: var(--brand-2);
  border: 1px solid #c4e2d7;
}

.field {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid #d6d2c8;
  background: #fbfaf7;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(31, 111, 95, .12);
  background: #fff;
}

.input-group {
  position: relative;
}

.input-group .input {
  padding-right: 48px;
}

.input-action {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.input-action:hover {
  background: #efece3;
  color: var(--ink);
}

.field-error {
  margin-top: 6px;
  font-size: 13px;
  color: var(--danger);
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
}

.captcha-box {
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-tint), var(--accent-tint));
  border: 1px dashed var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  user-select: none;
}

.captcha-box:hover {
  background: linear-gradient(135deg, #d6ebe3, #f4e2bd);
}

.captcha-box .icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 22px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.form-row a {
  font-size: 14px;
  color: var(--brand);
  font-weight: 600;
}

.form-row a:hover {
  color: var(--brand-2);
}

.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.auth-foot a {
  color: var(--brand);
  font-weight: 600;
}

.auth-back {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.auth-back a {
  color: rgba(255, 255, 255, .78);
}

.auth-back a:hover {
  color: #f2b45c;
}

/* ---------- Dashboard ---------- */
.app {
  min-height: 100vh;
  background: var(--bg);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.app-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 0 24px;
  box-sizing: border-box;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fbfaf7;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--ink-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.user-meta {
  line-height: 1.2;
}

.user-meta b {
  display: block;
  font-size: 13px;
  color: var(--ink);
}

.user-meta span {
  font-size: 11px;
  color: var(--muted);
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-logout:hover {
  background: var(--danger-tint);
  color: var(--danger);
  border-color: #f0c9c0;
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-quiet:hover {
  background: var(--brand-tint);
  color: var(--brand-2);
  border-color: #c4e2d7;
}

.app-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

.app-sidebar {
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 20px 14px;
}

.menu {
  list-style: none;
  display: grid;
  gap: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: background .16s ease, color .16s ease;
}

.menu-item:hover {
  background: #f0ede4;
  color: var(--ink);
}

.menu-item.active {
  background: var(--brand-tint);
  color: var(--brand-2);
}

.menu-item .icon {
  width: 20px;
  height: 20px;
}

.menu-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.app-main {
  padding: 32px;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}

.page-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.panel {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.panel-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}

.module-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: #fbfaf7;
}

.tile .module-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  margin-bottom: 14px;
}

.tile h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.tile p {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}

.tile .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  background: var(--accent-tint);
  padding: 3px 10px;
  border-radius: 999px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.admin-tab {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background .16s ease, color .16s ease;
}

.admin-tab:hover {
  color: var(--ink);
}

.admin-tab.active {
  background: var(--brand-tint);
  color: var(--brand-2);
  border-color: #c4e2d7;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.grid-2--list {
  grid-template-columns: minmax(0, 1fr) 320px;
}

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

  .grid-2--list > .form-card {
    max-width: 560px;
  }
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table th {
  background: #fbfaf7;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 13px;
}

.data-table tbody tr:hover td {
  background: #faf9f5;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ecebe6;
  color: var(--muted);
  white-space: nowrap;
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.table-actions form {
  margin: 0;
}

.table-actions .btn {
  padding: 6px 14px;
  font-size: 13px;
}

.tag--green {
  background: var(--brand-tint);
  color: var(--brand-2);
}

.tag--gray {
  background: #ecebe6;
  color: var(--muted);
}

.tag--red {
  background: var(--danger-tint);
  color: var(--danger);
}

/* ---------- Error pages ---------- */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 96px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.error-title {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

.error-sub {
  margin-top: 10px;
  color: var(--muted);
  max-width: 440px;
}

.error-page .btn {
  margin-top: 26px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .module-grid,
  .security-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

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

  .app-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

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

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

  .module-tiles {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 64px 0;
  }

  .cta-inner {
    padding: 40px 28px;
  }

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

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

/* ---------- Fixed asset voucher ---------- */
.voucher-slip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 44px;
  max-width: 860px;
  margin: 20px auto;
  box-shadow: var(--shadow-sm);
}

.voucher-head {
  text-align: center;
  margin-bottom: 26px;
}

.voucher-head h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 2px;
}

.voucher-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.voucher-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.voucher-table th,
.voucher-table td {
  border: 1px solid #d9d6ce;
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

.voucher-table th {
  width: 130px;
  background: #fbfaf7;
  color: var(--ink-2);
  font-weight: 700;
  white-space: nowrap;
}

.voucher-sign {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  color: var(--ink-2);
  font-size: 14px;
}

.voucher-note {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

@media print {
  .no-print {
    display: none !important;
  }

  .voucher-page {
    background: #fff;
  }

  .voucher-page .app-main {
    padding: 0;
  }

  .voucher-slip {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
  }
}

/* ---------- Document flow ---------- */
.signature-canvas {
  width: 100%;
  height: 160px;
  border: 1px solid #d6d2c8;
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

.signature-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.signature-hint {
  font-size: 12px;
  color: var(--muted);
}

.signature-preview {
  max-width: 260px;
  max-height: 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.signature-preview--small {
  max-width: 120px;
  max-height: 80px;
}

.checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #fbfaf7;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

.doc-content {
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.doc-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 24px;
  font-size: 14px;
  color: var(--ink-2);
}

.doc-meta b {
  color: var(--ink);
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.attachment-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #fbfaf7;
}

.attachment-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}

.attachment-name {
  font-size: 13px;
  color: var(--ink);
  margin-top: 8px;
  word-break: break-all;
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stats-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: #fbfaf7;
}

.stats-card b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-2);
}

.stats-card span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.read-bar {
  height: 8px;
  min-width: 120px;
  background: #ecebe6;
  border-radius: 999px;
  overflow: hidden;
}

.read-bar > span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

