:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #eef4ff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dbeafe;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --nexid-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 52%, #7c3aed 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28rem),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.1), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.app-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 72px;
  border-bottom: 1px solid rgba(219, 234, 254, 0.65);
  background: rgba(255, 255, 255, 0.76) !important;
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.app-navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.app-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: #0f172a;
  text-decoration: none;
}

.brand-logo-img {
  display: block;
  width: auto;
  height: 46px;
  max-width: min(260px, 54vw);
  object-fit: contain;
}

.hero-brand-logo {
  display: block;
  width: min(360px, 80vw);
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.card-logo-img {
  display: block;
  width: min(180px, 58%);
  height: auto;
  object-fit: contain;
}

.footer-logo-img,
.auth-brand img,
.auth-page-logo,
.qr-page-logo,
.dashboard-brand-logo {
  display: block;
  width: min(280px, 82vw);
  height: auto;
  object-fit: contain;
}

.qr-page-logo,
.dashboard-brand-logo {
  width: min(240px, 78vw);
}

.auth-brand {
  display: flex;
  justify-content: center;
}

.auth-page-logo {
  margin-right: auto;
  margin-left: auto;
}

.dashboard-brand-panel {
  max-width: 720px;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--nexid-gradient);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.brand-mark .bi-shield-check {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #4f46e5;
  font-size: 0.68rem;
}

.brand-lockup strong {
  color: #2563eb;
}

.navbar-nav {
  align-items: center;
  gap: 0.25rem;
}

.app-navbar .nav-link {
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  min-height: 44px;
  padding: 0.62rem 0.9rem;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

.navbar-links {
  display: flex;
  flex-basis: auto;
  flex-grow: 1;
  align-items: center;
}

.nav-icon {
  display: none;
}

.hero-card,
.auth-card,
.type-card {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 15px 40px rgba(29, 78, 216, 0.08);
  background: #fff;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}
 
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
}

.feature-list li {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.btn-primary {
  background: var(--nexid-gradient);
  border-color: transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 54%, #6d28d9 100%);
  border-color: transparent;
}

.card-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.4rem;
}

.progress {
  height: 10px;
  border-radius: 999px;
}

.qr-visual {
  border: 2px dashed var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: #f8fbff;
}

.qr-card-title {
  color: #0f172a;
  font-size: 1.55rem;
  font-weight: 800;
}

.qr-card-subtitle {
  color: #475569;
}

.qr-card-panel {
  overflow: hidden;
}

.qr-image-wrap {
  display: inline-flex;
  padding: 1rem;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.qr-image-wrap img {
  width: min(280px, 74vw);
}

.qr-link-box {
  max-width: 100%;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.qr-link-label {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.qr-link-box a {
  display: block;
  overflow-wrap: anywhere;
  color: #2563eb;
  font-size: 0.92rem;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.qr-identity-page {
  min-height: calc(100vh - 120px);
  padding: clamp(1rem, 3vw, 2.5rem) 0 3rem;
  color: #172033;
}

.qr-identity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.qr-identity-logo {
  width: min(220px, 64vw);
  height: auto;
  margin-bottom: 0.45rem;
}

.qr-identity-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.6rem, 3.4vw, 2.65rem);
  font-weight: 900;
}

.qr-identity-head p {
  margin: 0.25rem 0 0;
  color: #64748b;
  font-weight: 600;
}

.qr-outline-btn,
.premium-secondary {
  border: 1px solid #c7d8ff;
  background: #ffffff;
  color: #3154c9;
  font-weight: 800;
}

.qr-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

.premium-qr-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 2.5vw, 1.55rem);
  border: 1px solid #cfe1ff;
  border-radius: 1.45rem;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 32%),
    #ffffff;
  box-shadow: 0 24px 60px rgba(30, 64, 175, 0.12);
}

.premium-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.premium-card-top img {
  width: 132px;
  height: auto;
}

.premium-card-top span,
.premium-user-row strong,
.emergency-top span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  background: #eef4ff;
  color: #3154c9;
  font-size: 0.74rem;
  font-weight: 900;
}

.emergency-qr .premium-card-top span,
.emergency-qr .premium-user-row strong,
.emergency-top span {
  background: #fff1f5;
  color: #be185d;
}

.premium-card-label {
  margin-top: 0.8rem;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.premium-user-row,
.emergency-person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1rem 0;
}

.premium-avatar {
  display: inline-flex;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-weight: 900;
}

.premium-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-user-row h2,
.emergency-person h1 {
  margin: 0;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 900;
}

.premium-user-row p,
.emergency-person p {
  margin: 0.1rem 0 0.35rem;
  color: #64748b;
  font-weight: 700;
}

.premium-qr-stage {
  position: relative;
  margin: 1.1rem auto 0.85rem;
  padding: 1.05rem;
  border-radius: 1.65rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.16));
}

.emergency-qr .premium-qr-stage {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(190, 24, 93, 0.15));
}

.premium-qr-stage::before {
  content: "";
  position: absolute;
  inset: 0.42rem;
  border: 1px solid rgba(124, 58, 237, 0.38);
  border-radius: 1.35rem;
  pointer-events: none;
}

.premium-qr-shell {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: clamp(0.7rem, 2vw, 1rem);
  border: 1px solid #dbe8ff;
  border-radius: 1.35rem;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
}

.qr-corner {
  position: absolute;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border-color: #2563eb;
  pointer-events: none;
}

.emergency-qr .qr-corner {
  border-color: #be185d;
}

.qr-corner-tl {
  top: 0.4rem;
  left: 0.4rem;
  border-top: 3px solid;
  border-left: 3px solid;
  border-top-left-radius: 0.8rem;
}

.qr-corner-tr {
  top: 0.4rem;
  right: 0.4rem;
  border-top: 3px solid;
  border-right: 3px solid;
  border-top-right-radius: 0.8rem;
}

.qr-corner-bl {
  bottom: 0.4rem;
  left: 0.4rem;
  border-bottom: 3px solid;
  border-left: 3px solid;
  border-bottom-left-radius: 0.8rem;
}

.qr-corner-br {
  right: 0.4rem;
  bottom: 0.4rem;
  border-right: 3px solid;
  border-bottom: 3px solid;
  border-bottom-right-radius: 0.8rem;
}

.scan-line {
  position: absolute;
  z-index: 2;
  right: 22%;
  left: 22%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #60a5fa, #a78bfa, transparent);
  pointer-events: none;
}

.scan-line-top {
  top: 0.82rem;
}

.scan-line-bottom {
  bottom: 0.82rem;
}

.premium-qr-shell {
  display: flex;
  justify-content: center;
}

.premium-qr-shell img {
  display: block;
  width: min(290px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-card-lines {
  display: grid;
  gap: 0.28rem;
  margin: 0.35rem 0 0.9rem;
  text-align: center;
}

.qr-card-lines span {
  padding-top: 0.45rem;
  border-top: 1px solid rgba(124, 58, 237, 0.38);
  color: #1d4ed8;
  font-size: 0.86rem;
  font-weight: 950;
}

.qr-card-lines strong {
  color: #64748b;
  font-size: 0.69rem;
  font-weight: 900;
}

.qr-card-lines em {
  color: #3154c9;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
}

.emergency-qr .qr-card-lines em {
  color: #be185d;
}

.premium-qr-card h3 {
  margin: 0.5rem 0 0.25rem;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 900;
}

.premium-scan-text {
  margin: 0;
  color: #64748b;
  font-weight: 650;
}

.premium-info-list {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
  color: #334155;
  font-weight: 750;
}

.premium-info-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.premium-info-list i {
  color: #2563eb;
}

.premium-link-box {
  margin: 0.95rem 0;
}

.premium-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.premium-actions .btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 0.8rem;
  font-size: 0.9rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.premium-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.premium-primary {
  border: 0;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-weight: 900;
}

.copy-link-btn.copied {
  color: #166534;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.emergency-public-page {
  padding: clamp(1rem, 4vw, 2.5rem) 0 3rem;
}

.emergency-profile-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.7rem);
  border: 1px solid #cfe1ff;
  border-radius: 1.45rem;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(30, 64, 175, 0.12);
}

.emergency-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.emergency-top img {
  width: 175px;
}

.emergency-call-panel {
  margin: 1.2rem 0;
  padding: 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(124, 58, 237, 0.09));
}

.emergency-call-panel h2 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 900;
}

.emergency-call-btn {
  min-height: 52px;
  border-radius: 0.85rem;
}

.emergency-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.emergency-detail-grid article {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}

.emergency-detail-grid h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  font-weight: 900;
}

.emergency-detail-grid p {
  margin: 0.35rem 0;
  color: #475569;
}

@media (max-width: 991.98px) {
  .qr-card-grid,
  .emergency-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .qr-identity-head,
  .premium-card-top,
  .emergency-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .premium-actions {
    grid-template-columns: 1fr;
  }

  .premium-qr-card {
    border-radius: 1.1rem;
  }
}

@media print {
  .app-navbar,
  .qr-identity-head,
  .alert,
  .premium-actions,
  .qr-link-box,
  .premium-info-list,
  .premium-scan-text {
    display: none !important;
  }

  body {
    background: #ffffff !important;
  }

  body[data-print-card] .premium-qr-card {
    display: none !important;
  }

  body[data-print-card="emergency-qr-card"] #emergency-qr-card,
  body[data-print-card="profile-qr-card"] #profile-qr-card {
    display: block !important;
  }

  .container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .qr-card-grid {
    display: block;
  }

  .premium-qr-card {
    width: 720px;
    min-height: 0;
    margin: 0 auto !important;
    padding: 42px !important;
    border: 2px solid #c7d8ff;
    border-radius: 28px;
    background: #ffffff !important;
    box-shadow: none;
    text-align: center;
  }

  .premium-card-top,
  .premium-user-row {
    justify-content: center;
  }

  .premium-card-top {
    margin-bottom: 20px;
  }

  .premium-card-top img {
    width: 210px;
  }

  .premium-card-top span,
  .premium-user-row .premium-avatar,
  .premium-user-row p,
  .premium-user-row strong,
  .premium-card-label {
    display: none !important;
  }

  .premium-user-row {
    margin: 0 0 22px;
  }

  .premium-user-row h2 {
    font-size: 26px;
  }

  .premium-qr-stage {
    max-width: 520px;
    margin: 0 auto 18px;
    padding: 18px;
    border: 2px solid #7c3aed;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12)) !important;
  }

  .premium-qr-shell {
    max-width: 430px;
    padding: 14px;
  }

  .premium-qr-shell img {
    width: 400px;
  }

  .qr-card-lines {
    margin-top: 14px;
  }

  .qr-card-lines span {
    font-size: 18px;
  }

  .qr-card-lines strong,
  .qr-card-lines em {
    font-size: 12px;
  }

  .premium-qr-card h3 {
    display: none;
  }
}

.profile-page-head {
  padding: 1rem 0.25rem 0.25rem;
}

.mobile-menu-btn,
.profile-bell-btn {
  display: none;
}

.profile-kicker {
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-title {
  color: #111827;
  font-size: 1.55rem;
  font-weight: 800;
}

.profile-subtitle,
.profile-contact {
  color: #64748b;
}

.profile-logout,
.section-edit-btn {
  border-radius: 999px;
  font-weight: 600;
}

.profile-summary-card,
.profile-section-card {
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.profile-summary-card .card-body,
.profile-section-card .card-body {
  padding: 16px;
}

.profile-summary-card {
  color: #ffffff;
  background:
    linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a78bfa 100%),
    #4f46e5;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  object-fit: cover;
}

.profile-avatar-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.45rem;
}

.profile-name {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
}

.profile-status {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.completion-panel {
  padding: 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.18);
}

.completion-value {
  color: #ffffff;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.profile-progress,
.section-progress {
  height: 9px;
  background: rgba(226, 232, 240, 0.9);
}

.profile-progress .progress-bar,
.section-progress .progress-bar {
  background: linear-gradient(90deg, #22c55e, #06b6d4, #6366f1);
}

.profile-section-card {
  min-height: 260px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.section-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.section-headline {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
}

.profile-fab {
  display: none;
}

.summary-card-wrap {
  position: relative;
  height: 100%;
}

.summary-section-card {
  display: grid;
  grid-template-columns: 1fr auto 22px;
  align-items: center;
  gap: 12px;
  min-height: 118px;
  height: 100%;
  padding: 22px 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: #162033;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.summary-section-card:hover {
  color: #162033;
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.summary-section-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.summary-section-value {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  color: #2563eb;
  white-space: nowrap;
}

.summary-section-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef4ff;
  color: #2563eb;
  font-weight: 800;
}

.summary-visibility-form {
  position: absolute;
  right: 16px;
  bottom: 12px;
  margin: 0;
}

.section-detail-head {
  margin-bottom: 18px;
}

.section-back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.section-detail-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-detail-score {
  min-width: 74px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef4ff;
  color: #2563eb;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
}

.section-detail-panel,
.section-edit-panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.section-detail-panel {
  padding: 24px;
}

.section-edit-panel {
  padding: 20px;
}

.section-detail-content {
  display: grid;
  gap: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-row span {
  color: #64748b;
  font-weight: 700;
}

.detail-row strong {
  color: #162033;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-row-block {
  grid-template-columns: 1fr;
  gap: 8px;
}

.detail-list-item {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-list-item:last-child {
  border-bottom: 0;
}

.detail-list-item strong {
  color: #162033;
}

.detail-list-item span {
  color: #64748b;
}

.detail-download-link {
  width: fit-content;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.detail-delete-btn {
  width: fit-content;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 8px;
  background: #fff5f5;
  color: #b91c1c;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 800;
}

.resume-builder-note {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 8px;
  background: #f8fbff;
  color: #475569;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.resume-preview {
  display: grid;
  gap: 18px;
  color: #162033;
}

.resume-preview-head {
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(37, 99, 235, 0.16);
}

.resume-preview-head h4 {
  margin: 0 0 4px;
  font-size: 1.65rem;
  font-weight: 850;
}

.resume-preview-head p {
  margin: 0 0 8px;
  color: #2563eb;
  font-weight: 800;
}

.resume-preview-head div {
  color: #64748b;
  font-weight: 650;
}

.resume-preview-section {
  display: grid;
  gap: 6px;
}

.resume-preview-section h5,
.public-resume-section strong {
  margin: 0;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 850;
  text-transform: uppercase;
}

.resume-preview-section p,
.public-resume-section p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.resume-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.public-resume {
  display: grid;
  gap: 14px;
  color: #162033;
}

.public-resume-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.public-resume-head h4 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 850;
}

.public-resume-head p {
  margin: 0 0 6px;
  color: #2563eb;
  font-weight: 800;
}

.public-resume-head span {
  color: #64748b;
}

.section-detail-edit-btn {
  margin-top: 22px;
  min-width: 112px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  padding: 11px 20px;
  font-weight: 800;
}

.public-home {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(37, 99, 235, 0.12), transparent 26rem),
    radial-gradient(circle at 92% 4%, rgba(124, 58, 237, 0.1), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 44%, #f8fbff 100%);
}

.public-shell {
  margin: 0;
}

.public-shell .alert {
  max-width: 1200px;
  margin: 1rem auto;
}

.nexid-page {
  color: #0f172a;
}

.nexid-container {
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
}

.nexid-hero {
  position: relative;
  padding: 5.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(2rem, 5vw, 4.75rem);
  align-items: center;
}

.nexid-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #1d4ed8;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 1.05rem 0 1rem;
  font-size: clamp(3rem, 6vw, 5.9rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy em {
  display: inline-block;
  font-style: normal;
  background: var(--nexid-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 580px;
  margin: 0 0 0.55rem;
  color: #1e293b;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero-desc,
.section-heading p {
  color: #64748b;
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-desc {
  max-width: 560px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1.75rem;
}

.hero-benefits span,
.trust-grid span,
.security-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.hero-benefits i,
.trust-grid i,
.security-list i {
  color: #2563eb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.nexid-primary,
.nexid-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 850;
}

.nexid-primary {
  border: 0;
  background: var(--nexid-gradient);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nexid-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.28);
}

.nexid-secondary {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: #ffffff;
  color: #1d4ed8;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.hero-art-panel {
  position: absolute;
  inset: 0 -42px auto auto;
  width: min(88vw, 520px);
  border-radius: 32px;
  opacity: 0.16;
  overflow: hidden;
}

.hero-art-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.identity-card {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  padding: 1.25rem;
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.82)),
    #ffffff;
  box-shadow: 0 28px 80px rgba(30, 64, 175, 0.2);
  animation: cardFloat 5.8s ease-in-out infinite;
}

.id-card-top,
.id-card-profile,
.id-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.secure-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  font-size: 0.78rem;
  font-weight: 850;
}

.card-type-label,
.card-tagline {
  color: #4f46e5;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.card-type-label {
  margin-top: 0.8rem;
  text-transform: uppercase;
}

.card-tagline {
  margin-top: 0.85rem;
  color: #1d4ed8;
}

.id-card-profile {
  justify-content: flex-start;
  margin: 2rem 0 1.2rem;
}

.avatar {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 20px;
  background: var(--nexid-gradient);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.id-card-profile strong,
.id-card-profile span {
  display: block;
}

.id-card-profile span {
  color: #64748b;
  font-weight: 700;
}

.qr-sample {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  width: 210px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 1.2rem;
  padding: 1rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e2e8f0, 0 18px 36px rgba(15, 23, 42, 0.08);
}

.qr-sample span {
  border-radius: 3px;
  background: #e2e8f0;
}

.qr-sample span:nth-child(3n),
.qr-sample span:nth-child(4n+1),
.qr-sample span:nth-child(11),
.qr-sample span:nth-child(23),
.qr-sample span:nth-child(37) {
  background: #0f172a;
}

.id-card-meta {
  flex-wrap: wrap;
  justify-content: center;
}

.id-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 800;
}

.trust-strip {
  padding: 1.25rem 0 2rem;
}

.trust-strip h2,
.section-heading {
  text-align: center;
}

.trust-strip h2 {
  margin-bottom: 1rem;
  color: #334155;
  font-size: 1rem;
  font-weight: 850;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.trust-grid span {
  justify-content: center;
}

.nexid-section {
  padding: 5rem 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.section-heading h2,
.final-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.use-grid article {
  position: relative;
  min-height: 280px;
  padding: 1.35rem;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.use-grid article:hover {
  border-color: rgba(37, 99, 235, 0.26);
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.1);
}

.feature-icon,
.use-grid i {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: var(--nexid-gradient);
  color: #ffffff;
  font-size: 1.35rem;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.18);
}

.feature-card > span {
  display: block;
  margin-top: 1.15rem;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-card h3,
.timeline h3,
.use-grid h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.18rem;
  font-weight: 900;
}

.feature-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #1e293b;
}

.feature-card p,
.timeline p,
.use-grid p {
  color: #64748b;
  line-height: 1.65;
}

.feature-arrow {
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  color: #2563eb;
  font-size: 1.5rem;
}

.timeline-section {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.72), rgba(255, 255, 255, 0));
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 36px;
  right: 16%;
  left: 16%;
  height: 2px;
  background: linear-gradient(90deg, #bfdbfe, #c4b5fd);
}

.timeline article {
  position: relative;
  padding: 0 1rem;
  text-align: center;
}

.timeline span {
  display: inline-grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 8px solid #eff6ff;
  border-radius: 50%;
  background: var(--nexid-gradient);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.16);
}

.security-grid,
.preview-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.security-visual {
  display: grid;
  min-height: 380px;
  place-items: center;
  border-radius: 32px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.35), transparent 13rem),
    var(--nexid-gradient);
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(8rem, 18vw, 15rem);
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.2);
}

.brand-art-visual {
  padding: 1rem;
  background: #030712;
  overflow: hidden;
}

.brand-art-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: contain;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.security-list span {
  justify-content: flex-start;
  border-radius: 16px;
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.use-grid article {
  min-height: 245px;
}

.card-preview-section {
  background: #f8fbff;
}

.identity-card.large {
  width: min(100%, 520px);
  margin: 0 auto;
}

.large-qr {
  grid-template-columns: repeat(8, 1fr);
  width: 250px;
}

.final-cta {
  padding: 4rem 0;
  background: var(--nexid-gradient);
  color: #ffffff;
  text-align: center;
}

.final-cta p {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.nexid-primary.light {
  background: #ffffff;
  color: #1d4ed8;
}

.nexid-secondary.light {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nexid-footer {
  padding: 3.4rem 0 1.4rem;
  background: #07111f;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 2rem;
}

.nexid-footer h2 {
  font-weight: 900;
}

.nexid-footer p,
.nexid-footer small,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.nexid-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: flex-end;
}

.nexid-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 750;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.reveal {
  animation: revealUp 650ms ease both;
}

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

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

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

  .hero-copy {
    text-align: center;
  }

  .hero-brand-logo {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-lead,
  .hero-desc {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-benefits,
  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 460px;
  }

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

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

  .section-heading.text-start {
    text-align: center !important;
  }
}

@media (max-width: 767.98px) {
  .public-home {
    padding-bottom: 0;
  }

  .public-home .app-navbar {
    position: sticky;
    right: auto;
    bottom: auto;
    left: auto;
    min-height: 66px;
    padding: 0.35rem 0;
    border: 0;
    border-bottom: 1px solid rgba(219, 234, 254, 0.8);
    border-radius: 0;
    box-shadow: none;
  }

  .public-home .app-navbar .container-fluid {
    justify-content: space-between;
    padding: 0 1rem;
  }

  .public-home .app-navbar .navbar-brand {
    display: inline-flex;
  }

  .public-home .navbar-links {
    flex: initial;
  }

  .public-home .app-navbar .navbar-nav {
    align-items: stretch;
    padding: 0.75rem 0 0.4rem;
  }

  .public-home .app-navbar .nav-link {
    min-height: 44px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.65rem 0.8rem;
    color: #334155;
    font-size: 0.92rem;
    text-align: left;
  }

  .public-home .app-navbar .nav-item:first-child .nav-link {
    color: #334155;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 575.98px) {
  .nexid-container {
    width: min(100% - 32px, 480px);
  }

  .nexid-hero {
    padding: 3.2rem 0 2.4rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 11vw, 2.65rem);
  }

  .brand-logo-img {
    height: 36px;
    max-width: 218px;
  }

  .hero-brand-logo {
    width: min(300px, 86vw);
  }

  .hero-lead {
    font-size: 1.06rem;
  }

  .hero-benefits {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 390px;
  }

  .identity-card {
    padding: 1rem;
    border-radius: 22px;
  }

  .id-card-top {
    align-items: flex-start;
  }

  .id-card-top .brand-mark {
    width: 38px;
    height: 38px;
  }

  .card-logo-img {
    width: min(156px, 62%);
  }

  .qr-sample {
    width: 180px;
    gap: 4px;
    padding: 0.8rem;
  }

  .trust-grid,
  .feature-grid,
  .security-list {
    grid-template-columns: 1fr;
  }

  .nexid-section {
    padding: 3.5rem 0;
  }

  .feature-card,
  .use-grid article {
    min-height: auto;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .timeline::before {
    top: 30px;
    bottom: 30px;
    left: 36px;
    width: 2px;
    height: auto;
  }

  .timeline article {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0 1rem;
    padding: 0;
    text-align: left;
  }

  .timeline article h3 {
    align-self: end;
  }

  .timeline article p {
    grid-column: 2;
  }

  .security-visual {
    min-height: 250px;
    border-radius: 24px;
  }

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

  .nexid-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 575.98px) {
  .summary-section-card {
    min-height: 96px;
    padding: 18px 16px;
  }

  .summary-section-value {
    font-size: 1.3rem;
  }

  .section-detail-title-row {
    align-items: flex-start;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section-detail-panel,
  .section-edit-panel {
    padding: 18px;
  }
}

.section-icon {
  display: inline-flex;
  width: 2.45rem;
  height: 2.45rem;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-size: 1.15rem;
}

.profile-section-academic_information .section-icon,
.profile-section-resume .section-icon {
  background: #6c63ff;
}

.profile-section-skills .section-icon,
.profile-section-projects .section-icon {
  background: #f97316;
}

.profile-section-certificates .section-icon {
  background: #f59e0b;
}

.profile-section-company_information .section-icon,
.profile-section-work_experience .section-icon,
.profile-section-social_links .section-icon {
  background: #4f8cff;
}

.profile-section-grid > .col-lg-6:nth-child(6n+1) .profile-section-card {
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.profile-section-grid > .col-lg-6:nth-child(6n+2) .profile-section-card {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.profile-section-grid > .col-lg-6:nth-child(6n+3) .profile-section-card {
  background: linear-gradient(180deg, #ffffff 0%, #fdf2f8 100%);
}

.profile-section-grid > .col-lg-6:nth-child(6n+4) .profile-section-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.profile-section-grid > .col-lg-6:nth-child(6n+5) .profile-section-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
}

.profile-section-grid > .col-lg-6:nth-child(6n+6) .profile-section-card {
  background: linear-gradient(180deg, #ffffff 0%, #ecfeff 100%);
}

.profile-section-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.section-title {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.section-meta {
  display: inline-flex;
  padding: 0.24rem 0.56rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.72rem;
  font-weight: 800;
}

.profile-section-academic_information .section-meta,
.profile-section-resume .section-meta {
  background: #f3f0ff;
  color: #6c63ff;
}

.profile-section-skills .section-meta,
.profile-section-projects .section-meta {
  background: #fff7ed;
  color: #f97316;
}

.profile-section-certificates .section-meta {
  background: #fffbeb;
  color: #d97706;
}

.profile-section-social_links .section-meta {
  background: #eff6ff;
  color: #4f8cff;
}

.section-details {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.section-details strong {
  color: #0f172a;
}

.section-actions .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-edit-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f3f0ff;
  color: #6c63ff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.section-edit-btn:hover,
.section-edit-btn:focus {
  background: #6c63ff;
  color: #ffffff;
}

.field-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.field-row span {
  color: #64748b;
}

.field-row strong {
  max-width: 56%;
  overflow-wrap: anywhere;
  text-align: right;
}

.empty-card-text {
  color: #94a3b8;
  font-weight: 700;
}

.skill-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-chip {
  display: inline-flex;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #f97316;
  font-size: 0.78rem;
  font-weight: 800;
}

.skills-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.skills-summary-grid div,
.skill-display-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fbff;
}

.skills-summary-grid strong {
  color: #2563eb;
  font-size: 1.35rem;
  line-height: 1;
}

.skills-summary-grid span,
.skill-display-card span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.skill-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.skill-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.5rem 0.75rem;
}

.item-title {
  color: #0f172a;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.item-subtitle,
.section-footnote {
  color: #64748b;
  font-size: 0.82rem;
}

.mini-actions,
.resume-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.65rem;
  color: #6c63ff;
  font-weight: 800;
}

.section-bottom-action {
  width: 100%;
  margin-top: auto;
  padding: 0.7rem 0 0;
  border: 0;
  border-top: 1px solid #f1f5f9;
  background: transparent;
  color: #6c63ff;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
}

.profile-mobile-shell {
  max-width: 980px;
  margin: 0 auto;
}

.profile-summary-card .profile-contact,
.profile-summary-card .text-muted,
.profile-summary-card .small {
  color: rgba(255, 255, 255, 0.78) !important;
}

@media (max-width: 767.98px) {
  .app-navbar {
    position: fixed;
    right: 1rem;
    bottom: 0.8rem;
    left: 1rem;
    z-index: 1030;
    min-height: 64px;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
  }

  .app-navbar .container-fluid {
    justify-content: center;
    padding: 0;
  }

  .app-navbar .navbar-brand {
    display: none;
  }

  .navbar-links {
    display: block;
    flex: 1;
  }

  .app-navbar .navbar-nav {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin: 0 !important;
  }

  .app-navbar .nav-item {
    flex: 1;
  }

  .app-navbar .nav-link {
    display: flex;
    min-width: 64px;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.25rem 0.35rem;
    border-radius: 1rem;
    color: #94a3b8;
    font-size: 0.6rem;
    font-weight: 700;
    text-align: center;
  }

  .app-navbar .nav-item:first-child .nav-link {
    color: #ffffff;
    background: #6c63ff;
    box-shadow: 0 10px 22px rgba(108, 99, 255, 0.22);
  }

  .app-navbar .nav-link:hover,
  .app-navbar .nav-link:focus {
    color: #ffffff;
    background: #6c63ff;
  }

  .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    font-size: 1.16rem;
    line-height: 1;
  }

  .app-navbar .dropdown-menu {
    position: absolute;
    right: 0;
    bottom: 64px;
  }

  body {
    background:
      radial-gradient(circle at 16% 0%, rgba(99, 102, 241, 0.16), transparent 11rem),
      radial-gradient(circle at 100% 12%, rgba(16, 185, 129, 0.12), transparent 12rem),
      #f8fafc;
    padding-bottom: 5.8rem;
  }

  .container {
    max-width: 430px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .container.mt-4 {
    margin-top: 0.55rem !important;
  }

  .profile-mobile-shell {
    max-width: 390px;
  }

  .profile-page-head {
    position: relative;
    align-items: flex-start !important;
    gap: 0.8rem;
    min-height: 132px;
    padding: 0.65rem 0.15rem 0;
  }

  .mobile-menu-btn,
  .profile-bell-btn {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0.85rem;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
    text-decoration: none;
  }

  .profile-bell-btn {
    color: #ef4444;
    font-weight: 800;
  }

  .profile-kicker {
    margin-top: 3.1rem;
    color: #334155;
    font-size: 0.75rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .profile-title {
    color: #0f172a;
    font-size: 1.95rem;
    line-height: 1.05;
  }

  .profile-subtitle {
    max-width: 11rem;
    color: #64748b;
    font-size: 0.82rem;
  }

  .profile-page-head::after {
    content: "";
    position: absolute;
    right: 0.25rem;
    bottom: 0;
    width: 112px;
    height: 112px;
    border-radius: 2rem;
    background: linear-gradient(145deg, #4f8cff, #6c63ff);
    box-shadow: 0 18px 34px rgba(108, 99, 255, 0.22);
  }

  .profile-summary-card {
    margin-top: -0.2rem;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, #6c63ff 0%, #7c3aed 58%, #a78bfa 100%);
    box-shadow: 0 16px 34px rgba(108, 99, 255, 0.22);
  }

  .profile-summary-card .card-body {
    padding: 0.85rem;
  }

  .profile-summary-card .row {
    --bs-gutter-x: 0.65rem;
    --bs-gutter-y: 0.65rem;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 96px;
  }

  .profile-summary-card [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
  }

  .profile-avatar {
    width: 68px;
    height: 68px;
    border-width: 3px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
  }

  .profile-name {
    font-size: 0.95rem;
  }

  .profile-contact {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .profile-status {
    padding: 0.22rem 0.45rem;
    font-size: 0.58rem;
    white-space: nowrap;
    background: #dcfce7;
    color: #16a34a;
  }

  .completion-panel {
    padding: 0.45rem 0.55rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    background: transparent;
  }

  .completion-panel .small {
    font-size: 0.58rem;
    line-height: 1.15;
  }

  .completion-value {
    font-size: 1.75rem;
  }

  .profile-progress {
    height: 6px;
    margin-left: 0.55rem;
  }

  .profile-section-grid::before {
    content: "Profile Sections";
    display: block;
    width: 100%;
    padding: 0 0.2rem 0.1rem;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 800;
  }

  .profile-section-grid {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .profile-section-card {
    min-height: 210px;
    border-radius: 20px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  }

  .profile-section-card .card-body {
    position: relative;
    display: flex;
    min-height: 210px;
    flex-direction: column;
    padding: 1rem;
  }

  .section-card-header {
    margin-bottom: 0.65rem;
  }

  .section-headline {
    min-width: 0;
    gap: 0.55rem;
  }

  .section-icon {
    width: 2.1rem;
    height: 2.1rem;
    margin-bottom: 0;
    border-radius: 50%;
    font-size: 0.94rem;
  }

  .profile-section-grid > .col-lg-6:nth-child(6n+2) .section-icon {
    background: #6c63ff;
  }

  .profile-section-grid > .col-lg-6:nth-child(6n+3) .section-icon {
    background: #4f8cff;
  }

  .profile-section-grid > .col-lg-6:nth-child(6n+4) .section-icon {
    background: #f97316;
  }

  .profile-section-grid > .col-lg-6:nth-child(6n+5) .section-icon {
    background: #22c55e;
  }

  .profile-section-grid > .col-lg-6:nth-child(6n+6) .section-icon {
    background: #7c3aed;
  }

  .section-title {
    max-width: 5.4rem;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .section-actions {
    position: absolute;
    right: 0.85rem;
    top: 0.95rem;
    gap: 0.4rem !important;
  }

  .section-actions .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0;
    border-color: #cbd5e1;
  }

  .section-edit-btn {
    display: inline-flex;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .section-progress {
    height: 4px;
    margin-top: 0.35rem;
    margin-bottom: 0.65rem !important;
  }

  .section-meta {
    position: static;
    padding: 0.15rem 0.42rem;
    font-size: 0.56rem;
  }

  .profile-section-grid > .col-lg-6:nth-child(n+2) .section-meta {
    border-color: transparent;
  }

  .section-details {
    display: block;
    margin-bottom: 0.45rem !important;
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .field-row {
    display: block;
    padding: 0.16rem 0;
  }

  .field-row strong {
    display: block;
    max-width: 100%;
    text-align: left;
  }

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

  .skill-chip-list {
    gap: 0.25rem;
  }

  .skill-chip {
    padding: 0.2rem 0.38rem;
    font-size: 0.6rem;
  }

  .item-subtitle,
  .section-footnote,
  .empty-card-text {
    font-size: 0.68rem;
  }

  .mini-actions,
  .resume-actions {
    gap: 0.45rem;
    margin-top: 0.35rem;
    font-size: 0.7rem;
  }

  .section-bottom-action {
    padding-top: 0.5rem;
    font-size: 0.68rem;
  }

  .profile-fab {
    position: fixed;
    right: 50%;
    bottom: 2.9rem;
    z-index: 1040;
    display: inline-flex;
    width: 3.35rem;
    height: 3.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #6c63ff;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(108, 99, 255, 0.34);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transform: translateX(50%);
  }

  .qr-card-page {
    padding-top: 0.25rem !important;
  }

  .qr-card-shell {
    padding-right: 0;
    padding-left: 0;
  }

  .qr-card-panel {
    border: 0;
    border-radius: 1.35rem;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  }

  .qr-card-panel.p-4 {
    padding: 1rem !important;
  }

  .qr-card-header {
    margin-bottom: 1rem !important;
  }

  .qr-card-title {
    font-size: 1.18rem;
  }

  .qr-card-subtitle {
    max-width: 12rem;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .qr-back-btn {
    width: 3.3rem;
    height: 2.45rem;
    padding: 0;
    border-radius: 0.75rem;
    font-weight: 700;
  }

  .qr-visual {
    position: relative;
    border: 0;
    border-radius: 1.1rem;
    padding: 1rem;
    background:
      linear-gradient(145deg, rgba(79, 70, 229, 0.96), rgba(168, 85, 247, 0.78)),
      #7c3aed;
    box-shadow: 0 18px 36px rgba(124, 58, 237, 0.22);
  }

  .qr-visual::before {
    content: "Your QR-NexID";
    display: block;
    margin-bottom: 0.2rem;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 800;
  }

  .qr-visual::after {
    content: "Scan to view your profile";
    display: block;
    position: absolute;
    top: 2.65rem;
    right: 0;
    left: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    font-weight: 600;
  }

  .qr-image-wrap {
    margin-top: 2.1rem;
    padding: 0.65rem;
    border-radius: 0.8rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
  }

  .qr-image-wrap img {
    width: min(235px, 68vw);
  }

  .qr-link-box {
    margin-top: 0.9rem !important;
    padding: 0.6rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
  }

  .qr-link-label {
    color: #16a34a;
    font-size: 0.72rem;
  }

  .qr-link-box a {
    display: none;
  }

  .qr-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .qr-actions .btn {
    display: inline-flex;
    min-height: 4.9rem;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0.35rem;
    border: 0;
    border-radius: 1rem;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
  }

  .qr-actions .btn-primary {
    color: #4f46e5;
    background: #f5f3ff;
  }

  .qr-actions .btn-outline-primary {
    color: #16a34a;
    background: #ecfdf5;
  }

  .qr-actions .btn-outline-secondary {
    color: #f97316;
    background: #fff7ed;
  }
}

@media (max-width: 767.98px) {
  .public-home .app-navbar {
    position: sticky;
    top: 0;
    right: auto;
    bottom: auto;
    left: auto;
    min-height: 66px;
    padding: 0.35rem 0;
    border: 0;
    border-bottom: 1px solid rgba(219, 234, 254, 0.8);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: none;
  }

  .public-home .app-navbar .container-fluid {
    justify-content: space-between;
    padding: 0 1rem;
  }

  .public-home .app-navbar .navbar-brand {
    display: inline-flex;
  }

  .public-home .navbar-links {
    flex: initial;
  }

  .public-home .app-navbar .navbar-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0 0.4rem;
  }

  .public-home .app-navbar .nav-item {
    flex: initial;
  }

  .public-home .app-navbar .nav-link {
    min-width: 0;
    min-height: 44px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.65rem 0.8rem;
    color: #334155;
    font-size: 0.92rem;
    text-align: left;
  }

  .public-home .app-navbar .nav-item:first-child .nav-link {
    color: #334155;
    background: transparent;
    box-shadow: none;
  }

  .public-home .app-navbar .nav-link.btn-primary {
    justify-content: center;
    color: #ffffff;
    background: var(--nexid-gradient);
  }
}

.app-navbar .navbar-brand.brand-lockup {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  max-width: 280px;
  margin-right: 1rem;
  padding: 0;
}

.app-navbar .brand-logo-img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .app-navbar .navbar-brand.brand-lockup {
    max-width: 218px;
    margin-right: 0.5rem;
  }

  .app-navbar .brand-logo-img {
    height: 34px;
  }
}

@media (max-width: 767.98px) {
  .premium-qr-card .premium-qr-shell {
    margin-top: 1.1rem;
    padding: 0.8rem;
    border-radius: 1.15rem;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
  }

  .premium-qr-card .premium-qr-shell img {
    width: min(265px, 100%);
  }

  .premium-qr-card .premium-link-box {
    border-radius: 0.85rem;
    background: #ffffff;
  }

  .premium-qr-card .premium-link-box a {
    display: block;
    font-size: 0.78rem;
  }

  .premium-qr-card .premium-actions {
    display: grid;
  }

  .premium-qr-card .premium-actions .btn {
    min-height: 46px;
    padding: 0.65rem 0.75rem;
    border-radius: 0.8rem;
    font-size: 0.84rem;
  }
}
