body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.08), transparent 24%);
}

header.bg-white {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
}

.home-shell {
  position: relative;
  overflow: hidden;
}

.hero-panel {
  position: relative;
  padding: 2rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at top right, rgba(110, 168, 254, 0.28), transparent 22rem),
    radial-gradient(circle at bottom left, rgba(96, 165, 250, 0.18), transparent 24rem),
    linear-gradient(135deg, #071a3d 0%, #0b2c6f 42%, #123f9a 100%);
  color: #fff;
  box-shadow: 0 2rem 4rem rgba(8, 24, 64, 0.2);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-display {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-top: 1.25rem;
}

.hero-copy {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.28rem;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions .btn-light {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: #0b2c6f;
  box-shadow: 0 0.8rem 1.75rem rgba(255, 255, 255, 0.14);
}

.hero-actions .btn-light:hover,
.hero-actions .btn-light:focus {
  background: #fff;
  color: #082559;
}

.hero-panel .hero-pill {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: none;
}

.hero-panel .hero-metrics {
  margin-top: 1.5rem;
}

.hero-panel .metric-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.hero-panel .metric-card strong,
.hero-panel .metric-card span {
  color: #fff;
}

.hero-panel .metric-card span {
  color: rgba(255, 255, 255, 0.78);
}

.showcase-card {
  position: relative;
  padding: 1rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 1.5rem 3rem rgba(6, 24, 61, 0.22);
}

.showcase-image-wrap {
  overflow: hidden;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.showcase-image {
  width: 100%;
  display: block;
  border-radius: 1.2rem;
}

.showcase-badge {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
}

.showcase-intro {
  color: #64748b;
}

.showcase-list {
  display: grid;
  gap: 0.9rem;
}

.showcase-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.showcase-item p {
  color: #64748b;
  font-size: 0.95rem;
}

.showcase-icon {
  width: 2.8rem;
  height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(59, 130, 246, 0.06));
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.showcase-flow {
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.showcase-flow-title {
  margin-bottom: 0.7rem;
  font-weight: 700;
  color: #0f172a;
}

.showcase-flow ol {
  color: #475569;
}

.home-section {
  position: relative;
}

.home-trust-section {
  margin-top: 0.5rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-card {
  padding: 1.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 1rem 2.2rem rgba(15, 23, 42, 0.05);
}

.process-card p {
  color: #475569;
  font-weight: 500;
}

.process-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: #0b2c6f;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.navbar {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.navbar-brand {
  letter-spacing: 0.01em;
}

.nav-lang-select {
  min-width: 8.75rem;
  border-radius: 0.85rem;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::before {
  width: 24rem;
  height: 24rem;
  top: -9rem;
  right: -7rem;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0) 70%);
}

.hero-section::after {
  width: 18rem;
  height: 18rem;
  bottom: -8rem;
  left: -5rem;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0) 72%);
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.hero-section .display-5 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.metric-card {
  padding: 1rem 1rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.06);
}

.metric-card strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1;
}

.metric-card span {
  display: block;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 110, 253, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 0.5rem 1.25rem rgba(37, 99, 235, 0.08);
}

.hero-card,
.feature-box,
.info-card,
.card-display {
  border-radius: 1rem;
}

.hero-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.08);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.feature-box,
.info-card {
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  background-color: #fff;
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.04);
}

.feature-box {
  position: relative;
  overflow: hidden;
}

.section-heading {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-box::after {
  content: "";
  position: absolute;
  inset: auto auto -1.5rem -1.5rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0));
}

.feature-box h3 {
  margin-bottom: 0.75rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(59, 130, 246, 0.06));
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.card.border-0.shadow-sm {
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.06) !important;
}

.auth-card {
  border-radius: 1.5rem;
}

.auth-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.45rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
}

.auth-switch-btn {
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  color: #475569;
  font-weight: 700;
  transition: all 0.2s ease;
}

.auth-switch-btn.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 0.8rem 1.75rem rgba(37, 99, 235, 0.2);
}

.auth-panel.d-none {
  display: none !important;
}

.form-control,
.form-select,
.btn {
  border-radius: 0.9rem;
}

.file-picker {
  min-height: 3rem;
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d7dee8;
  border-radius: 0.9rem;
  background: #fff;
  cursor: pointer;
}

.file-picker-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-right: 1px solid #d7dee8;
  background: #f8fafc;
  color: #0f172a;
  white-space: nowrap;
}

.file-picker-name {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0.72rem 1rem;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-picker:hover,
.file-picker:focus-within {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 0.24rem rgba(37, 99, 235, 0.12);
}

.form-control,
.form-select {
  border-color: #d7dee8;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 0.24rem rgba(37, 99, 235, 0.12);
}

.form-control,
.form-select {
  min-height: 3rem;
}

.btn {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.btn-sm {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.btn-lg {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.btn-primary {
  border: none;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 0.8rem 1.75rem rgba(37, 99, 235, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-success {
  border: none;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 0.8rem 1.75rem rgba(22, 163, 74, 0.24);
}

.btn-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 0.8rem 1.75rem rgba(15, 23, 42, 0.2);
}

.btn-outline-secondary,
.btn-outline-primary {
  border-width: 1px;
}

#alertBox {
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.05);
  margin-bottom: 0;
}

#alertWrap {
  position: fixed;
  top: calc(var(--app-header-height, 72px) + 0.6rem);
  left: 50%;
  z-index: 1045;
  width: min(calc(100% - 2rem), 1200px);
  padding-top: 0 !important;
  transform: translateX(-50%);
  pointer-events: none;
}

#alertWrap #alertBox {
  pointer-events: auto;
}

.app-view.d-none {
  display: none !important;
}

.info-list {
  display: grid;
  gap: 0.75rem;
}

.info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #e9ecef;
}

.info-list > div span {
  color: #6c757d;
}

.info-list > div strong {
  text-align: right;
  word-break: break-word;
}

.info-list-lg > div {
  align-items: start;
}

.profile-details-toggle {
  display: none;
  flex: 0 0 auto;
}

.user-profile-details {
  display: block;
}

.status-panel {
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #fdfefe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.status-badge-wrap {
  margin-bottom: 0.75rem;
}

.status-panel strong {
  font-weight: 700;
}

.dashboard-action-panel {
  position: relative;
}

.mobile-disclaimer-bar {
  position: relative;
}

.disclaimer-box {
  padding: 1rem 1.1rem;
  border: 1px solid #dbe7ff;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}

.disclaimer-box p:last-child {
  line-height: 1.7;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem;
  border: 1px solid #dfe6ee;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  text-align: center;
}

.progress-step span {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9ecef;
  color: #495057;
  font-weight: 700;
}

.progress-step small {
  color: #6c757d;
  font-weight: 600;
}

.progress-step.is-complete {
  border-color: #198754;
  background: #f2fbf6;
}

.progress-step.is-complete span,
.progress-step.is-active span {
  background: #198754;
  color: #fff;
}

.progress-step.is-active {
  border-color: #198754;
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.1);
}

.progress-step.is-error {
  border-color: #dc3545;
  background: #fff5f5;
}

.progress-step.is-error span {
  background: #dc3545;
  color: #fff;
}

.progress-step.is-clickable {
  cursor: pointer;
}

.progress-step.is-clickable:hover,
.progress-step.is-clickable:focus-visible {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
  outline: none;
}

.upload-preview {
  min-height: 3rem;
}

.upload-preview .empty-upload {
  display: inline-flex;
  padding: 0.75rem 1rem;
  border: 1px dashed #ced4da;
  border-radius: 0.75rem;
  color: #6c757d;
  background: #fff;
  font-size: 0.95rem;
}

.upload-preview img {
  max-width: 100%;
  max-height: 220px;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.25rem;
  box-shadow: 0 0.9rem 1.8rem rgba(15, 23, 42, 0.08);
}

#photoPreview {
  width: min(100%, 10rem);
}

#photoPreview .empty-upload,
#photoPreview img {
  width: 100%;
  aspect-ratio: 35 / 49;
}

#photoPreview .empty-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#photoPreview img {
  max-height: none;
  object-fit: cover;
}

.upload-preview .file-box {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.9rem 1.8rem rgba(15, 23, 42, 0.05);
}

.signature-pad {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  display: block;
  border: 2px dashed #cfd8e3;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 1)),
    #fff;
  touch-action: none;
}

.card-display {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.18) !important;
}

.card-display::before,
.card-display::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.card-display::before {
  width: 20rem;
  height: 20rem;
  top: -8rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.card-display::after {
  width: 18rem;
  height: 18rem;
  bottom: -7rem;
  left: -7rem;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.24), rgba(125, 211, 252, 0));
}

.card-display .card-body {
  position: relative;
  z-index: 1;
}

.card-display .text-secondary {
  color: rgba(255, 255, 255, 0.75) !important;
}

.card-display .info-list > div {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.card-display .info-list > div span {
  color: rgba(255, 255, 255, 0.75);
}

.card-display .info-list > div strong,
.card-display .info-list > div strong a {
  word-break: break-all;
}

.card-media-box {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

footer {
  background: rgba(255, 255, 255, 0.92) !important;
}

.disclaimer-modal {
  border: 0;
  border-radius: 1.35rem;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.16);
}

.disclaimer-copy p {
  margin-bottom: 1rem;
  color: #475569;
  line-height: 1.8;
}

.disclaimer-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.85rem;
    padding: 0.9rem;
    border: 1px solid #e9ecef;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 1rem 2.4rem rgba(15, 23, 42, 0.08);
  }

  .navbar-nav {
    align-items: stretch !important;
    gap: 0.45rem;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link,
  .navbar-nav .btn {
    width: 100%;
    justify-content: center;
  }

  .navbar-nav .nav-link {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  #view-dashboard {
    padding-bottom: 12rem !important;
  }

  .hero-panel {
    padding: 1.3rem;
    border-radius: 1.5rem;
  }

  .hero-display {
    margin-top: 1rem;
    font-size: 2.2rem;
  }

  .hero-copy {
    font-size: 1.12rem;
    line-height: 1.75;
  }

  .showcase-card {
    padding: 1.15rem;
    border-radius: 1.35rem;
  }

  .showcase-item,
  .process-card {
    padding: 1rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  main.pb-5 {
    padding-bottom: 3.5rem !important;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .hero-section .display-5 {
    font-size: 2.15rem;
    line-height: 1.12;
    margin-bottom: 1rem !important;
  }

  .hero-section .lead {
    font-size: 1rem;
    margin-bottom: 1rem !important;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-card .card-body,
  .card.border-0.shadow-sm .card-body {
    padding: 1.25rem !important;
  }

  .feature-box,
  .info-card {
    padding: 1.15rem;
  }

  .status-panel,
  .disclaimer-box {
    padding: 1rem;
  }

  .progress-header {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .profile-details-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .user-profile-details {
    display: none;
  }

  .user-profile-details.is-open {
    display: block;
  }

  .dashboard-action-panel {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 1035;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem !important;
    margin-top: 0 !important;
    padding: 0;
  }

  .dashboard-action-panel .btn {
    min-width: 0;
    margin: 0;
  }

  .mobile-disclaimer-bar {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 3.7rem);
    z-index: 1035;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    padding: 0.62rem 0.8rem;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(10px);
  }

  .mobile-disclaimer-bar .form-check-input {
    float: none;
    margin: 0.14rem 0 0;
    flex: 0 0 auto;
  }

  .mobile-disclaimer-bar .form-check-label {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .progress-step {
    padding: 0.9rem 0.7rem;
  }

  .card-media-box {
    min-height: 220px;
  }
}

@media (max-width: 575.98px) {
  #view-dashboard {
    padding-bottom: 12.5rem !important;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .home-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    margin-bottom: 1.15rem;
  }

  .hero-copy {
    font-size: 1.22rem;
    line-height: 1.8;
  }

  .showcase-item {
    grid-template-columns: 1fr;
  }

  .navbar > .d-flex.align-items-center.gap-2.ms-auto {
    gap: 0.4rem !important;
  }

  .nav-lang-select {
    min-width: 6.4rem;
    max-width: 6.4rem;
    min-height: 2.45rem;
    padding: 0.35rem 1.9rem 0.35rem 0.65rem;
    font-size: 0.8rem;
  }

  .navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .progress-header .btn {
    width: 100%;
  }

  .dashboard-action-panel {
    left: 0.85rem;
    right: 0.85rem;
    gap: 0.5rem !important;
  }

  .dashboard-action-panel .btn {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    font-size: 0.95rem;
  }

  .mobile-disclaimer-bar {
    left: 0.85rem;
    right: 0.85rem;
    bottom: calc(max(0.85rem, env(safe-area-inset-bottom)) + 3.55rem);
    padding: 0.58rem 0.75rem;
  }

  .navbar-brand {
    max-width: calc(100% - 10.4rem);
    font-size: 1rem;
    line-height: 1.3;
    white-space: normal;
  }

  .navbar-toggler {
    padding: 0.35rem 0.5rem;
    font-size: 1rem;
  }

  .hero-section {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  .hero-section .display-5 {
    font-size: 1.95rem;
  }

  .hero-card,
  .feature-box,
  .info-card,
  .card-display,
  .status-panel,
  .disclaimer-box,
  .signature-pad,
  #alertBox {
    border-radius: 1.1rem;
  }

  .hero-pills {
    gap: 0.5rem;
  }

  .section-heading {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .hero-pill {
    padding: 0.4rem 0.72rem;
    font-size: 0.82rem;
  }

  .progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .info-list > div {
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0.85rem;
  }

  .info-list > div strong {
    text-align: left;
  }

  .input-group {
    display: grid;
    gap: 0.65rem;
  }

  .input-group > .form-control,
  .input-group > .btn {
    width: 100%;
    border-radius: 0.9rem !important;
  }

  .d-flex.justify-content-between.align-items-center.mb-2 {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem;
  }

  .d-flex.justify-content-between.align-items-center.mb-2 .d-flex.gap-2 {
    width: 100%;
  }

  .d-flex.justify-content-between.align-items-center.mb-2 .d-flex.gap-2 .btn {
    flex: 1 1 0;
  }

  .upload-preview img,
  .card-media-box img {
    border-radius: 0.9rem;
  }

  .upload-preview .file-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .signature-pad {
    height: 200px;
  }

  footer {
    padding-top: 1.1rem !important;
    padding-bottom: 1.1rem !important;
  }
}

@media (max-width: 399.98px) {
  .nav-lang-select {
    min-width: 5.9rem;
    max-width: 5.9rem;
    padding-right: 1.7rem;
    font-size: 0.76rem;
  }

  .navbar-brand {
    max-width: calc(100% - 9.75rem);
    font-size: 0.95rem;
  }

  .progress-steps {
    grid-template-columns: 1fr;
  }

  .hero-section .display-5 {
    font-size: 1.8rem;
  }
}
