/* EID design system: neutral surfaces, ink typography, a single saturated blue accent. */
:root {
  --primary-color: #1754ed;
  --primary-dark: #103ec0;
  --secondary-color: #1754ed;
  --accent-color: #1754ed;
  --text-primary: #161a22;
  --text-secondary: #626975;
  --bg-light: #f5f6f8;
  --bg-white: #fff;
  --line: #e1e4eb;
  --shadow-sm: 0 2px 5px #10182804;
  --shadow-md: 0 10px 28px #10182808;
  --shadow-lg: 0 18px 40px #1018280d;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: #fafbfc;
  color: var(--text-primary);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--primary-color);
  text-decoration: none;
}
a:hover {
  color: var(--primary-dark);
}
button,
input,
select,
textarea {
  font: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
p {
  color: var(--text-secondary);
}
h1 {
  font-size: 36px;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 21px;
}
h4 {
  font-size: 19px;
}
h5 {
  font-size: 17px;
}
.container {
  max-width: 1240px;
  padding-left: 28px;
  padding-right: 28px;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  background: #fff;
  padding: 12px;
  z-index: 1100;
}
.skip-link:focus {
  top: 8px;
}
:focus-visible {
  outline: 3px solid #7095ff;
  outline-offset: 4px;
}
.site-header {
  background: #fffffff2;
  position: relative;
  z-index: 1040;
  border-bottom: 1px solid var(--line);
}
.eid-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #161a22 !important;
}
.brand img {
  border-radius: 11px;
}
.brand > span {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.brand b {
  color: #1754ed;
}
.brand small {
  font-size: 12px;
  color: #747b87;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-left: 6px;
}
.eid-menu {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: auto;
}
.eid-menu > a,
.nav-dropdown summary {
  font-size: 14px;
  color: #626975;
  white-space: nowrap;
}
.eid-menu > a.active {
  color: #1754ed;
}
.eid-menu > a:hover {
  color: #161a22;
}
.eid-menu > a.nav-account {
  background: #161a22;
  color: white;
  padding: 10px 17px;
  border-radius: 8px;
}
.nav-logout {
  font-size: 12px !important;
}
.menu-toggle {
  display: none;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown summary {
  cursor: pointer;
  list-style: none;
}
.nav-dropdown summary::after {
  content: "⌄";
  margin-left: 7px;
}
.nav-dropdown-menu {
  position: absolute;
  top: 35px;
  left: -15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  min-width: 170px;
  box-shadow: var(--shadow-lg);
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  color: #333;
}
.nav-dropdown-menu a:hover {
  background: #eff3ff;
  border-radius: 6px;
}
.main-content {
  min-height: calc(100vh - 180px);
  padding: 44px 0 60px;
}
.page-index .main-content {
  padding: 0;
}
.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 12px;
  color: #707786;
}
.site-footer b {
  color: #333;
}
.site-footer a {
  color: #626975;
}
.message-stack {
  padding-top: 24px;
}
/* Homepage */
.home-wrap {
  padding-top: 38px;
}
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
  gap: 16px;
}
.hero-copy {
  padding: 67px 0 30px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 650;
  color: #747d8a;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
}
.signal-dot {
  width: 7px;
  height: 7px;
  background: #1754ed;
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-copy h1 {
  font-size: clamp(35px, 3.7vw, 54px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.06em;
  margin: 0 0 26px;
}
.hero-copy h1 span {
  color: #1754ed;
}
.hero-description {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-actions .btn {
  padding: 15px 20px;
}
.hero-actions .btn span {
  margin-left: 12px;
}
.text-action {
  color: #353c49;
  font-size: 13px;
}
.text-action span {
  margin-left: 10px;
}
.hero-footnote {
  font-size: 12px;
  color: #818794;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 60% 55%, #e2ebff, transparent 68%);
  isolation: isolate;
  min-width: 0;
}
.hero-art > img {
  width: 110%;
  height: auto;
  max-width: 620px;
  position: relative;
  z-index: 1;
  display: block;
}
.art-grid {
  position: absolute;
  inset: 40px 0 44px;
  background-image:
    linear-gradient(#7588aa0a 1px, transparent 1px),
    linear-gradient(90deg, #7588aa0a 1px, transparent 1px);
  background-size: 45px 45px;
  mask-image: radial-gradient(ellipse, black, transparent 73%);
}
.art-index {
  position: absolute;
  top: 24px;
  left: 34px;
  font-size: 10px;
  letter-spacing: 0.17em;
  color: #8e99ae;
}
.art-caption {
  position: absolute;
  bottom: 30px;
  left: 35px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #6a778d;
}
.art-cross {
  margin-left: auto;
  font-size: 22px;
  color: #8898b4;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px;
  gap: 16px;
}
.section-heading h2 {
  font-size: 25px;
  margin: 0;
}
.section-heading p {
  margin: 0;
  font-size: 13px;
}
.section-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 8px;
}
.services-section {
  padding: 42px 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 15px;
  color: var(--text-primary);
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.service-card:hover {
  border-color: #92aaf3;
  color: #161a22;
  box-shadow: 0 6px 18px #2545a809;
}
.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.service-top i {
  font-size: 22px;
  color: #1754ed;
}
.service-top > span {
  font-size: 11px;
  color: #9197a3;
  font-variant-numeric: tabular-nums;
}
.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 13px;
  line-height: 1.8;
  min-height: 46px;
  max-width: 280px;
}
.service-link {
  border-top: 1px solid #eff0f4;
  padding-top: 17px;
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 550;
}
.service-link b {
  font-size: 18px;
}
.journey-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  padding: 42px 0 56px;
  border-top: 1px solid var(--line);
}
.journey-section h2 {
  font-size: 26px;
}
.journey-section p {
  font-size: 13px;
}
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
}
.journey li {
  display: flex;
  gap: 24px;
  padding: 0 0 24px;
  position: relative;
}
.journey li > b {
  font-size: 12px;
  color: #1754ed;
  border: 1px solid #dce4fa;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: white;
}
.journey h3 {
  font-size: 15px;
  margin: 4px 0 6px;
}
.journey p {
  margin: 0;
}
/* Shared application chrome and controls */
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 32px;
  margin: 0 0 10px;
}
.page-heading p {
  font-size: 14px;
  margin: 0;
}
.page-heading .eyebrow {
  font-size: 10px;
  margin-bottom: 10px;
}
.page-heading-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.card {
  background: #fff;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: none;
}
.card:hover {
  transform: none !important;
  box-shadow: none !important;
}
.card-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 24px !important;
  border-radius: 0 !important;
}
.card-header.text-white {
  background: #fff !important;
  color: #161a22 !important;
  text-align: left !important;
}
.card-header .text-white-50 {
  color: #626975 !important;
}
.card-body {
  padding: 26px;
}
.main-content .container-fluid {
  max-width: 1240px;
  padding-left: 28px;
  padding-right: 28px;
}
.main-content > .container.py-5 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.card-header h2 {
  font-size: 27px;
}
.card-header h2 i {
  display: none;
}
.btn {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 550;
  padding: 11px 18px;
  box-shadow: none;
  transition:
    background 0.16s,
    border-color 0.16s;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 42px;
}
.btn:hover {
  transform: none !important;
}
.btn-primary,
.offer-btn {
  background: #1754ed;
  border: 1px solid #1754ed;
  color: white;
}
.btn-primary:hover {
  background: #103ec0;
  border-color: #103ec0;
}
.btn-secondary {
  background: #eef0f4;
  color: #333c4c;
  border: 1px solid #dfe3eb;
}
.btn-outline-primary {
  border: 1px solid #c7d4f8;
  color: #1754ed;
  background: white;
}
.btn-outline-primary:hover {
  background: #edf2ff;
  color: #1754ed;
  border-color: #1754ed;
}
.btn-outline-secondary {
  border: 1px solid #d8dde6;
  color: #4a5363;
  background: white;
}
.btn-outline-secondary:hover {
  background: #f1f3f7;
  color: #161a22;
}
.btn-lg {
  font-size: 15px;
  padding: 13px 20px;
}
.btn-sm {
  font-size: 12px;
  padding: 6px 10px;
  min-height: 32px;
}
.text-primary {
  color: #1754ed !important;
}
.text-muted {
  color: #626975 !important;
}
.bg-primary {
  background: #1754ed !important;
}
.bg-light {
  background: #f6f7fa !important;
}
.form-control,
.form-select {
  border: 1px solid #d7dce6;
  border-radius: 8px;
  min-height: 46px;
  color: #202631;
  font-size: 14px;
  background-color: white;
}
.form-control-lg,
.form-select-lg {
  font-size: 15px;
}
.form-control:focus,
.form-select:focus {
  border-color: #4474ee;
  box-shadow: 0 0 0 3px #1754ed16;
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #3d4552;
}
.form-text {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 7px;
}
.form-field {
  margin-bottom: 24px;
}
.field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.field-icon {
  color: #1754ed;
  background: #edf2ff;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.badge {
  font-weight: 550;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0;
  border-radius: 5px;
  padding: 4px 9px;
}
.badge.bg-success {
  background: #e5f5ed !important;
  color: #146c43;
}
.badge.bg-warning {
  background: #fff4d9 !important;
  color: #835d09;
}
.badge.bg-danger {
  background: #ffebea !important;
  color: #b23532;
}
.badge.bg-info {
  background: #e8f1ff !important;
  color: #2153a4;
}
.badge.bg-primary,
.badge.bg-light {
  background: #edf2ff !important;
  color: #1754ed !important;
}
.alert {
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
}
.alert-info {
  background: #eff4ff;
  color: #244ca0;
  border-color: #dce7ff;
}
.alert-success {
  background: #ecf8f1;
  color: #216c46;
  border-color: #d8efdf;
}
.alert-danger,
.alert-error {
  background: #fff1f0;
  color: #963a32;
  border-color: #f7ddda;
}
.alert-warning {
  background: #fff9e8;
  color: #886321;
  border-color: #f3e8c6;
}
.table-responsive {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.table {
  margin: 0;
  color: #323a48;
  font-size: 13px;
}
.table > :not(caption) > * > * {
  padding: 16px 14px;
  border-color: #edf0f4;
  vertical-align: middle;
}
.table thead th {
  background: #f7f8fa;
  color: #657083;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border-color: #e5e8ee;
}
.table-hover > tbody > tr:hover {
  --bs-table-accent-bg: #f8faff;
}
.table td .btn-group {
  gap: 5px;
}
.table td .btn-group > .btn {
  border-radius: 6px !important;
}
.modal-content {
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}
.modal-header,
.modal-footer {
  padding: 18px 24px;
  border-color: var(--line);
}
.modal-body {
  padding: 24px;
}
.stat-card {
  background: #f7f8fa;
  padding: 20px 8px;
  border: 1px solid #eaedf2;
  border-radius: 10px;
  height: 100%;
}
.stat-icon {
  display: none;
}
.stat-number {
  font-size: 26px;
  margin-bottom: 3px;
}
.progress {
  background: #e9edf5;
  border-radius: 8px;
}
.progress-bar {
  background: #1754ed;
}
.status-content h5 {
  font-size: 18px;
}
.info-item {
  padding: 12px 0;
  border-bottom: 1px solid #edf0f4;
}
.step-content h4 {
  font-size: 21px;
}
.step-content .card-body {
  padding: 32px !important;
}
.step-content i.fs-1 {
  background: #eaf0ff;
  padding: 18px;
  border-radius: 16px;
  margin-bottom: 20px !important;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.history-item:last-child {
  border: 0;
}
.history-icon {
  background: #f1f4fb;
  color: #1754ed;
  border-radius: 8px;
  padding: 12px;
}
.history-content {
  flex: 1;
  min-width: 0;
}
.history-title {
  font-size: 14px;
  font-weight: 600;
}
.history-meta {
  font-size: 12px;
  color: #78808f;
  margin-top: 4px;
}
.empty-state {
  text-align: center;
  border: 1px dashed #cfd8e9;
  padding: 45px 20px;
  border-radius: 14px;
  background: #f9fbff;
}
.empty-state > i {
  font-size: 36px;
  color: #7a9bed;
  margin-bottom: 18px;
}
.empty-state h3 {
  font-size: 21px;
}
.empty-state p {
  font-size: 14px;
}
.empty-state .btn {
  margin-top: 12px;
}
.form-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 26px;
  align-items: start;
}
.aside-note {
  background: #f3f6fd;
  border: 1px solid #e1e7f5;
  border-radius: 14px;
  padding: 26px;
}
.aside-note h3 {
  font-size: 16px;
  margin: 0 0 14px;
}
.aside-note p,
.aside-note li {
  font-size: 13px;
  color: #6b7485;
  line-height: 1.9;
}
.aside-note ul {
  padding-left: 17px;
  margin-bottom: 0;
}
.aside-note .note-divider {
  height: 1px;
  background: #dfe6f4;
  margin: 24px 0;
}
.steps-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #687487;
  margin-bottom: 24px;
}
.steps-inline span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.steps-inline b {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf0ff;
  color: #1754ed;
  font-size: 11px;
}
.steps-inline i {
  color: #b6bfce;
}
/* Personal center and identity collection */
.profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 26px;
}
.profile-summary {
  text-align: center;
  padding: 34px 24px;
}
.avatar-img,
.avatar-fallback {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: #edf2ff;
  color: #1754ed;
  font-size: 28px;
  display: grid;
  place-items: center;
}
.profile-summary h2 {
  font-size: 21px;
  word-break: break-word;
}
.profile-summary p {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.profile-summary .btn {
  width: 100%;
  margin-top: 18px;
}
.info-list {
  margin: 0;
}
.info-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info-list > div:last-child {
  border: 0;
}
.info-list dt {
  font-size: 12px;
  font-weight: 500;
  color: #788090;
}
.info-list dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.profile-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.profile-services a {
  display: flex;
  gap: 16px;
  padding: 21px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #202733;
}
.profile-services i {
  color: #1754ed;
  font-size: 20px;
  padding-top: 4px;
}
.profile-services h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.profile-services p {
  font-size: 12px;
  margin: 0;
}
.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.identity-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.identity-image {
  background: #f0f4fc;
  padding: 28px;
  min-height: 215px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.identity-image img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
}
.identity-body {
  padding: 24px;
}
.identity-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.identity-top h2 {
  font-size: 20px;
  margin: 0;
}
.identity-body p {
  font-size: 14px;
  margin: 12px 0;
}
.identity-meta {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 12px;
  color: #78808f;
}
.collection-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  padding: 20px;
  background: #f1f4fb;
  border-radius: 10px;
  font-size: 13px;
  color: #626e82;
}
.collection-note i {
  color: #1754ed;
  margin-top: 4px;
}
.offer-container {
  max-width: 560px;
  margin: 30px auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 45px;
  text-align: center;
}
.offer-container .logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 26px;
  background: url("../images/e-era-logo.png") center/contain no-repeat;
}
.offer-container h1 {
  font-size: 28px;
}
.offer-title {
  font-size: 16px;
  margin: 18px 0;
}
.welcome-text {
  font-size: 14px;
  line-height: 1.9;
}
.offer-btn {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
}
.accepted-btn {
  background: #e8f5ef;
  color: #226c48;
  border: 0;
}
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 1060;
}
.toast-container {
  z-index: 1090;
}
.spinner-border {
  vertical-align: middle;
}
.page-oauth_callback .main-content {
  display: grid;
  place-items: center;
}
.page-oauth_callback .main-content > .text-center {
  padding: 40px;
}
@media (min-width: 1500px) {
  .hero-copy h1 {
    font-size: 57px;
  }
}
@media (max-width: 1100px) {
  .brand small {
    display: none;
  }
  .eid-menu {
    gap: 17px;
  }
  .hero-copy h1 {
    font-size: 40px;
  }
  .hero-copy {
    padding-top: 62px;
  }
  .hero-art > img {
    width: 105%;
  }
  .form-layout {
    grid-template-columns: 1fr 290px;
  }
}
@media (max-width: 900px) {
  .eid-nav {
    min-height: 70px;
    flex-wrap: wrap;
    gap: 0;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 40px;
    height: 40px;
  }
  .eid-menu {
    display: none;
    width: 100%;
    margin: 0;
    padding: 18px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .eid-menu.is-open {
    display: flex;
  }
  .eid-menu > a,
  .nav-dropdown summary {
    padding: 9px 12px;
  }
  .nav-dropdown-menu {
    position: static;
    margin: 8px 0;
    box-shadow: none;
  }
  .home-hero {
    grid-template-columns: 1fr 1fr;
    min-height: 440px;
  }
  .hero-copy {
    padding-top: 45px;
  }
  .hero-copy h1 {
    font-size: 34px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-actions {
    gap: 14px;
  }
  .hero-actions .btn {
    font-size: 13px;
    padding: 12px;
  }
  .hero-art > img {
    width: 110%;
  }
  .hero-art .art-index {
    left: 20px;
  }
  .art-caption {
    left: 20px;
    bottom: 48px;
    font-size: 10px;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .aside-note {
    order: 2;
  }
  .profile-layout {
    grid-template-columns: 240px 1fr;
  }
  .service-card {
    padding: 22px;
  }
  .journey-section {
    gap: 30px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .site-footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .container,
  .main-content .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
  .main-content {
    padding-top: 28px;
  }
  .home-wrap {
    padding-top: 5px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0;
  }
  .hero-copy {
    padding: 38px 0 0;
  }
  .hero-copy h1 {
    font-size: 38px;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-footnote {
    margin-top: 22px;
  }
  .hero-art {
    height: 345px;
    margin-top: 14px;
  }
  .hero-art > img {
    width: 370px;
    max-width: 105%;
    height: auto;
    max-height: 375px;
    object-fit: contain;
  }
  .art-index {
    top: 14px;
  }
  .art-caption {
    bottom: 16px;
    left: 10px;
    right: 10px;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .services-section {
    padding: 32px 0;
  }
  .service-card {
    padding: 22px;
  }
  .service-top {
    margin-bottom: 16px;
  }
  .service-card p {
    min-height: 0;
    max-width: none;
  }
  .service-link {
    margin-top: 18px;
  }
  .journey-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0;
  }
  .journey-section .eyebrow {
    margin-bottom: 10px;
  }
  .journey-section h2 {
    font-size: 24px;
  }
  .profile-layout,
  .profile-services,
  .identity-grid {
    grid-template-columns: 1fr;
  }
  .profile-summary {
    padding: 26px;
  }
  .page-heading {
    flex-direction: column;
    gap: 18px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .card-body,
  .card-header {
    padding: 20px !important;
  }
  .card-header h2 {
    font-size: 24px;
  }
  .card-header > .d-flex {
    flex-wrap: wrap;
    gap: 14px;
  }
  .profile-services {
    margin-top: 18px;
  }
  .info-list > div {
    grid-template-columns: 86px 1fr;
    gap: 12px;
  }
  .history-item {
    flex-wrap: wrap;
  }
  .history-badge {
    margin-left: 50px;
  }
  .hero-actions .btn {
    font-size: 13px;
  }
  .site-footer {
    gap: 10px;
    font-size: 11px;
  }
  .site-footer span:nth-child(2) {
    display: none;
  }
  .offer-container {
    margin: 10px 20px;
    padding: 30px 22px;
  }
  .btn-group {
    flex-wrap: wrap;
  }
  .table-responsive .btn-group {
    flex-wrap: nowrap;
  }
  .identity-image {
    padding: 18px;
    min-height: 180px;
  }
  .desktop-break {
    display: none;
  }
  .aside-note {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .confetti-canvas {
    display: none;
  }
}

.offer-container .error-icon {
  font-size: 36px;
  color: #c75c44;
  margin-bottom: 22px;
}
.toast-container {
  position: fixed;
  right: 20px;
  top: 100px;
  max-width: calc(100vw - 40px);
}

.btn-info,
.btn-outline-info {
  background: #edf2ff;
  border-color: #c7d4f8;
  color: #1754ed;
}
.btn-info:hover,
.btn-outline-info:hover {
  background: #dfe8ff;
  border-color: #1754ed;
  color: #103ec0;
}
.table > :not(:first-child) {
  border-top: 1px solid var(--line);
}

.offer-container .logo {
  border-radius: 13px;
}
.offer-btn:disabled {
  cursor: default;
}
.review-workspace .table-responsive {
  overscroll-behavior-x: contain;
}

/* Indeterminate navigation feedback; no simulated completion percentage. */
.page-progress[hidden],
.page-loading-status[hidden] {
  display: none !important;
}
.page-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1200;
  overflow: hidden;
  background: #1754ed14;
  pointer-events: none;
}
.page-progress span {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 0 4px 4px 0;
  background: #1754ed;
  box-shadow: 0 0 10px #1754ed55;
  animation: page-travel 1.3s ease-in-out infinite;
}
.page-loading-status {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 40px);
  padding: 14px 18px;
  color: #252c39;
  background: #fff;
  border: 1px solid #dfe5f0;
  border-radius: 12px;
  box-shadow: 0 8px 30px #14223b16;
  font-size: 13px;
  pointer-events: none;
}
.page-loading-spinner,
.is-page-loading::after {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: page-spin 0.75s linear infinite;
}
.page-loading-spinner {
  flex-shrink: 0;
  color: #1754ed;
}
.is-page-loading {
  position: relative;
  cursor: progress;
}
.is-page-loading:not(.service-card):not(.brand) {
  color: transparent !important;
}
.is-page-loading:not(.service-card):not(.brand) > * {
  opacity: 0;
}
.is-page-loading::after {
  content: "";
  position: absolute;
  left: calc(50% - 8.5px);
  top: calc(50% - 8.5px);
  color: #1754ed;
}
.btn-primary.is-page-loading::after,
.btn-success.is-page-loading::after,
.nav-account.is-page-loading::after {
  color: #fff;
}
.service-card.is-page-loading {
  border-color: #1754ed;
  background: #f8faff;
}
.service-card.is-page-loading::after {
  top: 26px;
  left: auto;
  right: 26px;
}
.service-card.is-page-loading .service-top > span {
  visibility: hidden;
}
.brand.is-page-loading::after {
  display: none;
}
.brand.is-page-loading img {
  animation: page-breathe 1.2s ease-in-out infinite;
}
@keyframes page-travel {
  from {
    transform: translateX(-105%);
  }
  to {
    transform: translateX(370%);
  }
}
@keyframes page-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes page-breathe {
  50% {
    opacity: 0.5;
  }
}
@media (max-width: 640px) {
  .page-loading-status {
    left: 20px;
    right: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    justify-content: center;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-progress span {
    width: 100%;
    opacity: 0.6;
  }
  .page-loading-spinner,
  .is-page-loading::after {
    border-style: dotted;
    border-right-color: currentColor;
  }
}
/* Keep navigation destinations readable while their adjacent spinner runs. */
.eid-menu .is-page-loading:not(.nav-account),
.nav-dropdown-menu .is-page-loading {
  color: #1754ed !important;
}
.eid-menu .is-page-loading:not(.nav-account) > *,
.nav-dropdown-menu .is-page-loading > * {
  opacity: 1;
}
.eid-menu .is-page-loading:not(.nav-account)::after {
  left: auto;
  right: -16px;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-width: 1.5px;
}
.nav-dropdown-menu .is-page-loading::after {
  left: auto;
  right: 10px;
}
@media (max-width: 900px) {
  .eid-menu .is-page-loading:not(.nav-account)::after {
    right: 12px;
  }
}
