@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,700&display=swap');

:root {
  --ink: #0b1f3a;
  --ink-soft: #1a3358;
  --paper: #f7f4ef;
  --paper-2: #efeae2;
  --line: rgba(11, 31, 58, 0.12);
  --accent: #1e4d8c;
  --accent-dark: #163a6b;
  --gold: #b8922e;
  --ok: #1f7a4d;
  --warn: #b45309;
  --err: #b91c1c;
  --muted: #5c6b7a;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(11, 31, 58, 0.12);
  --radius: 14px;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(30, 77, 140, 0.10), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(184, 146, 46, 0.10), transparent 50%),
    linear-gradient(180deg, #fbf9f6 0%, var(--paper) 40%, #f3efe8 100%);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; max-width: 100%; }

/* Top bar */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}
.topbar a { color: #fff; }
.topbar .muted { opacity: 0.7; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(251, 249, 246, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  flex: 0 0 auto;
  height: 52px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 3px 4px;
  border: 1px solid var(--line);
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.1;
  white-space: nowrap;
}
.brand-divider {
  display: block;
  width: 36px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(184, 146, 46, 0.85));
}
.brand-org {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  line-height: 1.3;
  max-width: 15rem;
}

.nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1 1 auto;
}
.nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
}
.nav a:hover,
.nav a.active {
  background: rgba(30, 77, 140, 0.10);
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary,
a.btn-primary,
a.btn-primary:visited,
.nav a.btn-primary,
.nav a.btn-primary:visited,
.nav a.btn-primary:hover,
.nav a.btn-primary:active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(180deg, #245a9e 0%, var(--accent) 100%);
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(30, 77, 140, 0.28);
}
.btn-primary:hover,
a.btn-primary:hover,
.nav a.btn-primary:hover {
  background: var(--accent-dark);
  color: #ffffff !important;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-dark,
a.btn-dark,
a.btn-dark:visited,
.nav a.btn-dark,
.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
  background: var(--ink);
  color: #ffffff !important;
}
.btn-dark:hover,
a.btn-dark:hover {
  background: #071526;
  color: #ffffff !important;
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-danger,
a.btn-danger,
.btn-danger:hover {
  background: var(--err);
  color: #ffffff !important;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(78vh, 680px);
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(11,31,58,0.25) 0%, rgba(11,31,58,0.78) 55%, rgba(11,31,58,0.92) 100%),
    url('/images/bg1.jpeg') center/cover no-repeat;
}
.hero-inner {
  padding: 5rem 0 3.5rem;
  animation: rise 0.8s ease both;
}
.hero .eyebrow {
  display: inline-block;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 14ch;
  margin-bottom: 0.85rem;
}
.hero p {
  max-width: 38ch;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  margin: 0 0 1.5rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.section {
  padding: 3.5rem 0;
}
.section-head {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}
.section-head p { color: var(--muted); margin: 0; }

.panel {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fade-in 0.6s ease both;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(30, 77, 140, 0.12);
  color: var(--accent);
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.ad-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}
.ad-item {
  margin: 0;
  flex: 0 0 auto;
  scroll-snap-align: start;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ad-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.ad-rail img,
.ad-item img {
  width: 280px;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Forms */
.form-page { padding: 2.5rem 0 4rem; }
.form-shell {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  animation: rise 0.5s ease both;
}
.form-shell.narrow { max-width: 440px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(30, 77, 140, 0.28);
  border-color: var(--accent);
}
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }
.fieldset {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin: 0.5rem 0 1rem;
}
.fieldset legend {
  padding: 0 0.4rem;
  font-weight: 600;
  color: var(--accent);
}

/* Flash */
.flash {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.flash-success { background: #e8f7ef; color: var(--ok); }
.flash-error { background: #fde8e8; color: var(--err); }
.flash-info { background: #eef3ff; color: var(--ink-soft); }

/* Tables — scroll stays inside the box, not the whole page */
.table-wrap {
  width: 100%;
  max-width: 100%;
  max-height: min(62vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.table-wrap--short { max-height: min(40vh, 320px); }
.table-wrap--tall { max-height: min(70vh, 720px); }
.table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(11, 31, 58, 0.28);
  border-radius: 999px;
}
.table-wrap::-webkit-scrollbar-track { background: rgba(11, 31, 58, 0.06); }
table.data {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.data thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8f6f2;
  box-shadow: inset 0 -1px 0 var(--line);
}
table.data th,
table.data td {
  text-align: left;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
table.data td:nth-child(3),
table.data td:nth-child(5) {
  white-space: normal;
  max-width: 220px;
  word-break: break-word;
}
table.data th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
table.data tr:hover td { background: rgba(11, 31, 58, 0.03); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-pending { background: #fff7ed; color: var(--warn); }
.badge-active { background: #ecfdf5; color: var(--ok); }
.badge-inactive { background: #f3f4f6; color: #6b7280; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.stat .label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stat .value {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-top: 0.25rem;
}

.doc-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.doc-thumbs a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.doc-thumbs img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.doc-thumbs span {
  display: block;
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.page-hero {
  padding: 2.5rem 0 1rem;
}
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.page-hero p { color: var(--muted); max-width: 42rem; }

.dash-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 0 3rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.dash-layout > * { min-width: 0; max-width: 100%; }
.side-nav {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  height: fit-content;
  position: sticky;
  top: 90px;
}
.side-nav a {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}
.side-nav a:hover,
.side-nav a.active {
  background: rgba(30, 77, 140, 0.10);
  color: var(--accent);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gallery-item {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.gallery-item figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 16, 32, 0.88);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: min(960px, 100%);
  max-height: 90vh;
  animation: rise 0.25s ease both;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  background: #0b1220;
}
.lightbox-close {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.lightbox-close:hover { background: var(--paper); }
.lightbox-caption {
  margin-top: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
body.lightbox-open { overflow: hidden; }

.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer h4 {
  color: #fff;
  font-family: var(--font-display);
  margin: 0 0 0.85rem;
}
.footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0.75;
}
.bank-box {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.9rem;
}
.bank-box p { margin: 0.25rem 0; }

@media (max-width: 900px) {
  .grid-3, .stat-grid, .footer-grid, .dash-layout, .gallery-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.75rem;
  }
  .nav.open { display: flex; }
  .brand-logo { height: 44px; max-width: 120px; }
  .brand-org { max-width: 11rem; }
  .brand-name { white-space: normal; }
  .side-nav { position: static; display: flex; gap: 0.35rem; overflow-x: auto; }
  .side-nav a { white-space: nowrap; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Apply form — clearer sections */
.form-shell--apply { max-width: 860px; }
.form-intro { margin-bottom: 1.5rem; }
.form-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.form-lead {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
  max-width: 42rem;
}
.form-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.form-steps li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(30, 77, 140, 0.08);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}
.form-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.1rem 1.25rem;
  margin-bottom: 1.1rem;
  background: rgba(255, 255, 255, 0.65);
}
.form-section-head {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.form-section-head h2 {
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}
.form-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.req { color: var(--err); font-weight: 700; }
.terms-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 1rem;
  overflow: hidden;
}
.terms-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  border: none;
  background: rgba(30, 77, 140, 0.05);
  padding: 0.85rem 1rem;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
}
.terms-toggle:hover { background: rgba(30, 77, 140, 0.09); }
.terms-toggle-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.terms-toggle-hint {
  color: var(--muted);
  font-size: 0.8rem;
  flex: 1 1 auto;
}
.terms-toggle-icon {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--accent);
}
.terms-panel.is-open .terms-toggle-icon { transform: none; }
.terms-box {
  max-height: 240px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding: 0.9rem 1rem;
  overscroll-behavior: contain;
}
.terms-box[hidden] { display: none !important; }
.terms-box h3 {
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}
.terms-box ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.terms-box li { margin-bottom: 0.45rem; }
.terms-agree {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(30, 77, 140, 0.2);
  background: rgba(30, 77, 140, 0.05);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}
.terms-agree input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.form-actions .btn { min-width: 200px; }

/* Mobile verify + OTP bubble */
.mobile-verify-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}
.mobile-verify-row input { flex: 1; min-width: 0; }
.mobile-verify-row .btn { flex: 0 0 auto; white-space: nowrap; }
.mobile-verify-row .btn.is-hidden,
[data-otp-send].is-hidden {
  display: none !important;
}
.mobile-verified-chip {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 1rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--ok);
  border: 1px solid rgba(31, 122, 77, 0.25);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.mobile-verified-chip.is-visible {
  display: inline-flex !important;
}
.mobile-verify-row input.is-locked,
.mobile-verify-row input:read-only {
  background: #f3faf6;
  border-color: rgba(31, 122, 77, 0.35);
  color: var(--ink);
  pointer-events: none;
  caret-color: transparent;
}
.hint-success {
  color: var(--ok) !important;
  font-weight: 600;
}
.otp-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 16, 32, 0.55);
  backdrop-filter: blur(4px);
}
.otp-modal.is-open { display: flex; }
.otp-bubble {
  position: relative;
  width: min(380px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.15rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: rise 0.25s ease both;
}
.otp-bubble h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}
.otp-bubble label { margin-top: 0.75rem; }
.otp-bubble input {
  width: 100%;
  letter-spacing: 0.2em;
  font-size: 1.15rem;
  text-align: center;
}
.otp-bubble-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}
.otp-bubble-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
button.btn-primary:disabled,
button[data-apply-submit]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-error-bubble {
  border-top: 4px solid var(--err);
}
.form-error-message {
  margin: 0.35rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}
.form-error-actions {
  justify-content: flex-end;
  width: 100%;
}

.register-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 16, 32, 0.72);
  backdrop-filter: blur(6px);
}
.register-loader.is-open { display: flex; }
.register-loader-card {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem 1.4rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: rise 0.25s ease both;
}
.register-loader-card h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.25rem;
}
.register-loader-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.register-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(30, 77, 140, 0.18);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(31, 122, 77, 0.12);
  color: var(--ok);
  font-size: 1.7rem;
  font-weight: 700;
}
.success-appno {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(30, 77, 140, 0.08);
  color: var(--ink);
}
.success-actions {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
