﻿:root {
  --blue: #073d95;
  --blue-2: #0b4aad;
  --red: #e1182d;
  --gold: #f7b21a;
  --green: #16a163;
  --ink: #082b68;
  --muted: #7082a6;
  --line: #dbe7f8;
  --bg: #f3f7fe;
  --card: #ffffff;
  --shadow: 0 12px 28px rgba(26, 61, 117, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  overflow-y: auto;
  z-index: 10;
}

.sidebar-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #bad0f0;
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  align-items: center;
  justify-content: center;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 43, 104, 0.34);
  z-index: 1040;
  display: none;
}

.sidebar-backdrop.show {
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  min-height: 64px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 55% 45%, #fff 0 22%, transparent 23%),
    conic-gradient(var(--blue), var(--red), var(--gold), var(--blue));
  box-shadow: inset 0 0 0 6px #f3f7fe;
}

.brand strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  color: var(--blue);
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #12346d;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.nav a.active {
  background: var(--blue-2);
  color: #fff;
  box-shadow: 0 10px 18px rgba(7, 61, 149, 0.22);
}

.nav i {
  width: 20px;
  text-align: center;
  font-style: normal;
  font-size: 16px;
  line-height: 1;
}

.pill {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
}

.sidebar-tables {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}

.sidebar-tables-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.sidebar-tables-title i {
  font-size: 15px;
}

.table-group {
  padding-top: 10px;
  border-top: 1px solid #e4eefc;
}

.table-group:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.table-group + .table-group {
  margin-top: 10px;
}

.table-group strong {
  display: block;
  margin-bottom: 6px;
  color: #12346d;
  font-size: 12px;
}

.table-group ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.table-group li {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.3;
}

.assist {
  margin-top: 28px;
  background: var(--blue-2);
  color: #fff;
  border-radius: 10px;
  padding: 18px;
}

.assist h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.assist p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.app {
  margin-left: 240px;
  min-height: 100vh;
  width: calc(100vw - 240px);
}

.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
}

.place strong {
  display: block;
  font-size: 14px;
}

.place small {
  color: var(--muted);
  font-weight: 700;
}

.userbar {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
}

.userbar .notice {
  position: relative;
  color: var(--blue);
  font-size: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.userbar .notice:hover,
.userbar .notice[aria-expanded="true"] {
  background: #edf4ff;
  color: #0754bc;
}

.userbar .notice span {
  position: absolute;
  right: -3px;
  top: -6px;
}

.header-alert-menu {
  width: min(370px, calc(100vw - 24px));
  margin-top: 10px !important;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce6f3;
  border-radius: 15px;
  box-shadow: 0 18px 45px rgba(22, 54, 94, .17);
}

.header-alert-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  border-bottom: 1px solid #e8eef6;
  background: #fff;
}

.header-alert-heading strong,
.header-alert-heading small {
  display: block;
}

.header-alert-heading strong {
  color: #143f78;
  font-size: 14px;
}

.header-alert-heading small {
  margin-top: 2px;
  color: #7b8da5;
  font-size: 10px;
}

.header-alert-heading button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: #0b5fc6;
  font-size: 10px;
  font-weight: 800;
}

.header-alert-list {
  max-height: 390px;
  overflow-y: auto;
}

.header-alert-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #edf2f8;
  color: inherit;
  text-decoration: none;
}

.header-alert-item:hover {
  background: #f7faff;
}

.header-alert-item.unread {
  background: #eef6ff;
}

.header-alert-item.unread:hover {
  background: #e6f1ff;
}

.header-alert-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #dfeeff;
  color: #0b5fc6;
}

.header-alert-item strong,
.header-alert-item small,
.header-alert-item time {
  display: block;
}

.header-alert-item strong {
  color: #173f75;
  font-size: 11px;
}

.header-alert-item small {
  margin-top: 3px;
  color: #61758f;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.header-alert-item time {
  margin-top: 5px;
  color: #94a2b5;
  font-size: 9px;
  font-weight: 600;
}

.header-alert-empty {
  display: grid;
  gap: 7px;
  place-items: center;
  padding: 30px 18px;
  color: #8292a8;
  font-size: 11px;
}

.header-alert-empty i {
  font-size: 22px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7cfb7, #fff);
  border: 2px solid #d8e4f6;
}

.content {
  padding: 24px 24px 52px;
}

.shop-frame-card {
  overflow: hidden;
  min-height: calc(100vh - 170px);
}

.shop-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 170px);
  border: 0;
  background: #fff;
}

.page-head {
  margin-bottom: 18px;
}

.page-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  color: var(--blue);
}

.page-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.btn {
  border: 1px solid #bad0f0;
  background: #fff;
  color: var(--blue);
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.btn.primary {
  background: var(--blue-2);
  border-color: var(--blue-2);
  color: #fff;
  box-shadow: 0 9px 18px rgba(7, 61, 149, 0.2);
}

.stack {
  display: grid;
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 330px;
  padding: 30px 28px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 78% 48%,
      rgba(225, 24, 45, 0.15),
      transparent 17%
    ),
    linear-gradient(135deg, #fff, #f2f7ff);
}

.hero h2 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.04;
  color: var(--blue);
  max-width: 420px;
}

.hero p {
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}

.hero-actions {
  display: grid;
  gap: 12px;
  width: 190px;
  margin-top: 22px;
}

.sun {
  position: absolute;
  right: 116px;
  top: 24px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    var(--gold) 0 10deg,
    transparent 10deg 20deg
  );
}

.wave-blue,
.wave-red {
  position: absolute;
  right: -20px;
  bottom: 18px;
  width: 300px;
  height: 70px;
  border-radius: 80% 0 0 0;
  background: var(--blue-2);
  transform: rotate(-8deg);
}

.wave-red {
  bottom: 4px;
  height: 48px;
  background: var(--red);
}

.dot-red {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 68px;
  height: 68px;
  border-radius: 28px;
  background: var(--red);
}

.profile-page {
  align-items: flex-start;
}

.profile-page .card {
  border-radius: 14px;
}

.profile-page .profile-hero {
  min-height: 250px;
  padding: 26px 28px;
  background:
    radial-gradient(circle at 76% 26%, rgba(247, 178, 26, .2) 0 6%, transparent 7%),
    radial-gradient(circle at 86% 58%, rgba(225, 24, 45, .18) 0 11%, transparent 12%),
    linear-gradient(135deg, #fff, #f6faff);
}

.profile-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 24px;
}

.profile-hero-photo {
  width: 124px !important;
  height: 124px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #f7cfb7, #fff);
  background-size: cover;
  background-position: center;
  border: 1px solid #dce8f8;
  box-shadow: 0 10px 24px rgba(8, 43, 104, .12);
}

.profile-hero-main {
  min-width: 0;
}

.profile-page .hero h2 {
  margin: 0 0 8px;
  max-width: none;
  font-size: 38px;
  line-height: 1.03;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.profile-page .hero p {
  margin: 0 0 14px;
  max-width: none;
  color: #51658f;
  font-size: 16px;
}

.profile-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.profile-hero-facts small,
.profile-hero-facts strong {
  display: block;
}

.profile-hero-facts small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.profile-hero-facts strong {
  color: var(--blue);
  font-size: 14px;
  line-height: 1.25;
}

.profile-edit-button {
  align-self: start;
  justify-self: end;
  min-width: 142px;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  overflow: hidden;
}

.profile-tabs a {
  min-height: 46px;
  display: grid;
  place-items: center;
  color: var(--blue);
  text-decoration: none;
  text-align: center;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
  border-radius: 10px;
  padding: 8px;
}

.profile-tabs a.active {
  background: #edf5ff;
  box-shadow: inset 0 -3px 0 var(--blue-2);
}

.profile-page #profileForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-page #profileForm > .card {
  margin-bottom: 0 !important;
}

.profile-inline-summary,
.profile-page #profile-photo,
.profile-page #save-profile {
  grid-column: 1 / -1;
}

.profile-page .section,
.profile-page .side-card {
  padding: 20px;
}

.profile-page .section h3,
.profile-page .side-card h3 {
  font-size: 20px;
}

.profile-page .upload {
  min-height: 124px;
  margin-bottom: 0;
}

.profile-overview-body {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.completion-ring {
  --value: 0;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle, #fff 0 55%, transparent 56%),
    conic-gradient(var(--blue-2) calc(var(--value) * 1%), #e8f0fb 0);
}

.completion-ring strong,
.completion-ring small {
  display: block;
  grid-area: 1 / 1;
}

.completion-ring strong {
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  transform: translateY(-6px);
}

.completion-ring small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  transform: translateY(14px);
}

.overview-checks {
  display: grid;
  gap: 9px;
  color: #12346d;
  font-size: 13px;
  font-weight: 800;
}

.overview-checks div {
  display: flex;
  align-items: center;
  gap: 9px;
}

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

.quick-link-grid a {
  min-height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--blue);
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  padding: 8px;
}

.quick-link-grid a:hover {
  background: #f4f8ff;
}

.profile-summary-card p {
  color: #12346d;
  font-weight: 800;
  margin-bottom: 16px;
}

.profile-summary-card small,
.summary-list small,
.activity-list small {
  color: var(--muted);
  font-weight: 700;
}

.summary-list {
  display: grid;
  gap: 14px;
}

.summary-list div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.summary-list strong {
  color: var(--blue);
}

.verification-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.verification-chip-list span {
  border-radius: 99px;
  background: #e7f8ef;
  color: var(--green);
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
}

.activity-list {
  display: grid;
}

.activity-list div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.activity-list div:last-child {
  border-bottom: 0;
}

.activity-list i {
  color: var(--blue);
  font-size: 16px;
  margin-top: 2px;
}

.activity-list strong,
.activity-list small {
  display: block;
}

.activity-list strong {
  color: var(--blue);
  line-height: 1.25;
}

.profile-motto {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 26px;
  text-align: center;
}

.profile-motto::before,
.profile-motto::after {
  content: "";
  position: absolute;
  right: 58px;
  bottom: -18px;
  width: 360px;
  height: 50px;
  background: var(--blue-2);
  transform: skewX(-18deg);
}

.profile-motto::after {
  right: 12px;
  bottom: -28px;
  height: 34px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.motto-dot {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}

.profile-motto div {
  position: relative;
  z-index: 1;
}

.profile-motto strong,
.profile-motto small {
  display: block;
}

.profile-motto strong {
  color: var(--blue);
  font-size: 24px;
  line-height: 1.2;
}

.profile-motto small {
  color: var(--blue);
  font-weight: 800;
  margin-top: 4px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 14px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  min-height: 86px;
  background: #fff;
}

.step b {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e9f1ff;
  color: var(--blue);
  margin-bottom: 8px;
}

.step:first-child b {
  background: var(--blue);
  color: #fff;
}

.step strong {
  display: block;
  font-size: 13px;
}

.step small {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section h3 {
  margin: 0;
  color: var(--blue);
  font-size: 20px;
}

.tag {
  background: #eaf3ff;
  color: #4381db;
  border-radius: 99px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
}

.tag.green {
  background: #e7f8ef;
  color: var(--green);
}

.tag.gold {
  background: #fff4d9;
  color: #b27700;
}

label,
.field-label {
  display: grid;
  gap: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.section .row > label {
  flex: 0 0 auto;
  width: 50%;
}

.section .row > label.full,
.section .row > .upload {
  width: 100%;
}

.form-control,
.form-select,
input:not([type="hidden"]):not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bfd1ef;
  border-radius: 10px;
  padding: 11px 13px;
  color: #12346d;
  background: #fff;
  font: inherit;
  font-weight: 700;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 4px 10px rgba(26, 61, 117, 0.05);
}

textarea.form-control,
textarea {
  min-height: 88px;
  resize: vertical;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #9aaad0;
}

.select2-container {
  width: 100% !important;
  font: inherit;
}

.select2-container--default .select2-selection--single {
  min-height: 42px;
  border: 1px solid #bfd1ef;
  border-radius: 10px;
  display: flex;
  align-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 4px 10px rgba(26, 61, 117, 0.05);
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #12346d;
  font-weight: 700;
  line-height: 42px;
  padding-left: 13px;
  padding-right: 34px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #9aaad0;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 42px;
  right: 8px;
}

.select2-dropdown {
  border: 1px solid #bfd1ef;
  border-radius: 10px;
  overflow: hidden;
  color: #12346d;
  font-weight: 700;
}

.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--blue-2);
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 0.2rem rgba(11, 74, 173, 0.14);
}

.upload {
  border: 1px dashed #9dbbe9;
  border-radius: 14px;
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 18px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 16px;
  padding: 22px;
}

.upload strong {
  color: var(--blue);
  display: block;
  margin-bottom: 8px;
}

.checks {
  display: grid;
  gap: 12px;
  color: #12346d;
  font-weight: 800;
}

.checks label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #12346d;
  font-size: 14px;
}

.checks input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.side-card {
  padding: 18px;
}

.side-card h3 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 20px;
}

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

.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  min-height: 76px;
}

.metric small {
  color: var(--muted);
  font-weight: 800;
}

.metric strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
  margin-top: 4px;
}

.bar {
  height: 8px;
  border-radius: 99px;
  background: #e4edf9;
  margin-top: 14px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 27%;
  background: var(--blue);
  border-radius: inherit;
}

.doc-list,
.after-list {
  display: grid;
  gap: 13px;
}

.doc-list div,
.after-list div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 800;
  color: #12346d;
}

.checkdot,
.numdot {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 12px;
}

.numdot {
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.after-list small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 700;
}

.referred-members {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mini-head strong {
  color: var(--blue);
  font-size: 14px;
}

.referral-member-list {
  display: grid;
  gap: 10px;
}

.referral-member {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.referral-member .numdot {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
}

.referral-member p {
  margin: 0;
  min-width: 0;
}

.referral-member strong,
.referral-member small {
  display: block;
  overflow-wrap: anywhere;
}

.referral-member strong {
  color: #12346d;
  font-size: 13px;
  line-height: 1.25;
}

.referral-member small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-top: 3px;
}

.referral-member .tag {
  align-self: start;
  padding: 5px 8px;
}

.empty-state {
  border: 1px dashed #9dbbe9;
  border-radius: 10px;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  background: #f8fbff;
}

.desktop-file-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.desktop-file-inputs input {
  font-size: 12px;
  min-height: 42px;
}

.upload-field {
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  min-width: 0;
}

.upload-field span {
  min-height: 30px;
  display: flex;
  align-items: flex-end;
}

.digital-id-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d6e2f2;
  box-shadow: 0 12px 28px rgba(8, 43, 104, 0.14);
  color: var(--ink);
}

.digital-id-card::before {
  content: none;
}

.digital-id-head,
.digital-id-body,
.digital-id-referral {
  position: relative;
  z-index: 1;
}

.digital-id-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(180deg, #084fb0, #064293);
}

.digital-id-head img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.digital-id-head strong,
.digital-id-head small {
  display: block;
}

.digital-id-head strong {
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.22);
}

.digital-id-head small {
  opacity: 0.9;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  margin-top: 4px;
}

.digital-id-body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 55px;
  align-items: center;
  gap: 10px;
  padding: 18px 14px 12px;
  position: relative;
}

.digital-id-photo {
  width: 88px !important;
  height: 88px !important;
  border-radius: 8px !important;
  border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(8, 43, 104, 0.22);
}

.digital-id-info h4 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.digital-id-info p {
  margin: 0 0 0px;
  color: #12346d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.digital-id-referral {
  position: relative;
  z-index: 1;
  margin: 0 14px 14px;
  padding: 9px 10px;
  border: 1px dashed rgba(0, 68, 148, 0.3);
  border-radius: 8px;
  background: #f8fbff;
}

.digital-id-referral strong,
.digital-id-referral span {
  display: block;
}

.digital-id-referral strong {
  color: var(--blue);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 3px;
}

.digital-id-referral span {
  color: #12346d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.digital-id-qr-wrap {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(8, 43, 104, 0.08);
  position: absolute;
  top: 10px;
  right: 10px;
}

.digital-id-qr {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 0;
}

.digital-id-qr-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}
.sun_bg{
      position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
}
@media (max-width: 560px) {
  .digital-id-head {
    min-height: 74px;
    gap: 10px;
    padding: 12px;
  }

  .digital-id-head img {
    width: 42px;
    height: 42px;
  }

  .digital-id-head strong {
    font-size: 17px;
  }

  .digital-id-head small {
    font-size: 12px;
    margin-top: 3px;
  }

  .digital-id-body {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 12px 12px;
  }

  .digital-id-photo {
    width: 84px !important;
    height: 84px !important;
  }

  .digital-id-info h4 {
    font-size: 17px;
    margin-bottom: 6px;
  }

  .digital-id-info p {
    font-size: 11px;
  }

  .digital-id-qr-wrap {
    grid-column: 1 / -1;
    justify-self: start;
    width: 88px;
    height: 88px;
  }

  .digital-id-qr {
    width: 76px;
    height: 76px;
  }

  .digital-id-referral {
    margin: 0 12px 12px;
    padding: 9px 10px;
  }

  .digital-id-referral strong,
  .digital-id-referral span {
    font-size: 11px;
  }
}

        @media (max-width: 1320px) {
            .sidebar {
                width: 220px;
                padding-left: 14px;
    padding-right: 14px;
  }

  .brand strong {
    font-size: 23px;
  }

  .nav a {
    font-size: 13px;
    gap: 8px;
  }

  .app {
    margin-left: 220px;
    width: calc(100vw - 220px);
  }

  .topbar {
    padding: 0 22px;
  }

  .content {
    padding: 22px 20px 46px;
  }

  .page-head h1 {
    font-size: 28px;
  }

  .page-head p {
    font-size: 13px;
  }

  .hero {
    min-height: 300px;
    padding: 28px;
  }

  .hero h2 {
    font-size: 30px;
    max-width: 390px;
  }

  .hero p {
    max-width: 420px;
    font-size: 14px;
  }

            .hero-actions {
                grid-template-columns: 1fr 1fr;
                width: 360px;
            }

            .profile-hero-content {
                grid-template-columns: 112px minmax(0, 1fr) 132px;
                gap: 18px;
            }

            .profile-hero-photo {
                width: 112px !important;
                height: 112px !important;
            }

            .profile-page .hero h2 {
                font-size: 32px;
            }

            .profile-hero-facts {
                gap: 12px;
            }

            .sun {
                width: 58px;
                height: 58px;
    right: 92px;
  }

  .wave-blue,
  .wave-red {
    width: 250px;
  }

  .dot-red {
    right: 28px;
    bottom: 38px;
    width: 58px;
    height: 58px;
    border-radius: 22px;
  }

  .section h3,
  .side-card h3 {
    font-size: 18px;
  }

  .metric {
    padding: 9px;
  }

  .metric strong {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 170px;
    padding: 14px 10px;
  }

  .brand {
    gap: 8px;
    min-height: 52px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 10px;
  }

  .nav a {
    height: auto;
    min-height: 36px;
    padding: 8px;
    font-size: 12px;
  }

  .nav i {
    width: 16px;
    font-size: 11px;
  }

  .assist {
    padding: 12px;
  }

  .assist h3 {
    font-size: 14px;
  }

  .app {
    margin-left: 170px;
    width: calc(100vw - 170px);
  }

  .topbar {
    height: auto;
    min-height: 62px;
    padding: 10px 14px;
    align-items: flex-start;
    gap: 10px;
  }

  .place strong {
    font-size: 12px;
  }

  .userbar {
    gap: 8px;
    font-size: 12px;
  }

  .avatar {
    width: 32px;
    height: 32px;
  }

  .content {
    padding: 18px 14px 40px;
  }

  .page-head h1 {
    font-size: 24px;
  }

  .page-head .form-actions {
    justify-content: flex-start;
  }

  .btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 260px;
    padding: 22px;
  }

  .hero h2 {
    font-size: 25px;
    max-width: 100%;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    width: 190px;
  }

  .sun {
    right: 22px;
    top: 22px;
    width: 44px;
    height: 44px;
  }

  .wave-blue,
  .wave-red {
    width: 200px;
  }

  .dot-red {
    width: 48px;
    height: 48px;
  }

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

            .desktop-file-inputs,
            .summary-grid {
                grid-template-columns: 1fr;
            }

            .profile-tabs {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .profile-page #profileForm {
                grid-template-columns: 1fr;
            }

            .section .row > label {
                width: 100%;
            }
        }

@media (max-width: 991.98px) {
  .sidebar-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .sidebar {
    --bs-offcanvas-width: min(86vw, 320px);
    width: min(86vw, 320px);
    padding: 0 16px 22px;
    z-index: 1055;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .sidebar .offcanvas-header {
    padding: 16px 0 10px;
  }

  .sidebar .offcanvas-title {
    color: var(--blue);
    font-weight: 800;
  }

  .sidebar .brand {
    margin-top: 8px;
  }

            .app {
                margin-left: 0;
                width: 100vw;
            }

            .topbar {
                min-height: 66px;
            }

            .profile-hero-content {
                grid-template-columns: 86px minmax(0, 1fr);
                align-items: start;
            }

            .profile-hero-photo {
                width: 86px !important;
                height: 86px !important;
            }

            .profile-edit-button {
                grid-column: 1 / -1;
                justify-self: start;
            }

            .profile-hero-facts {
                grid-template-columns: 1fr;
            }

            .profile-overview-body {
                grid-template-columns: 1fr;
                justify-items: start;
            }

            .profile-motto {
                align-items: flex-start;
                text-align: left;
            }

            .profile-motto strong {
                font-size: 18px;
            }
        }
