:root {
  --brand: #0f9f4a;
  --brand-dark: #0b7d39;
  --brand-deep: #075e2a;
  --accent: #f6b60b;
  --accent-2: #22c1a6;
  --text: #0f172a;
  --muted: #526071;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-2: rgba(248, 250, 252, 0.9);
  --border: rgba(148, 163, 184, 0.24);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-lg: 0 32px 70px rgba(8, 46, 29, 0.18);
  --shadow-md: 0 18px 38px rgba(15, 23, 42, 0.12);
  --shell-gap: clamp(14px, 2.3vw, 24px);
  --panel-padding: clamp(18px, 2.8vw, 32px);
  --sidebar-width: clamp(268px, 23vw, 320px);
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.dashboard-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(
      circle at 8% 6%,
      rgba(34, 193, 166, 0.2) 0%,
      transparent 52%
    ),
    radial-gradient(
      circle at 92% 12%,
      rgba(246, 182, 11, 0.18) 0%,
      transparent 46%
    ),
    linear-gradient(180deg, #f4fff8 0%, #f7f9fb 48%, #ffffff 100%);
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-deep);
}

.dashboard-shell {
  position: relative;
  min-height: 100vh;
  padding: var(--shell-gap);
  isolation: isolate;
  overflow: hidden;
}

.dashboard-shell::before,
.dashboard-shell::after {
  content: "";
  position: absolute;
  width: clamp(240px, 38vw, 540px);
  height: clamp(240px, 38vw, 540px);
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
}

.dashboard-shell::before {
  top: -140px;
  left: -160px;
  background: radial-gradient(
    circle,
    rgba(34, 193, 166, 0.62) 0%,
    transparent 66%
  );
}

.dashboard-shell::after {
  right: -180px;
  bottom: -120px;
  background: radial-gradient(
    circle,
    rgba(246, 182, 11, 0.46) 0%,
    transparent 66%
  );
}

.dashboard-shell > * {
  position: relative;
  z-index: 1;
}

.bg-logo {
  position: absolute;
  inset: 0;
  background-image: url("bpc.d8991ea9ad14.png");
  background-repeat: no-repeat;
  background-position: calc(var(--sidebar-width) + 22vw) 46%;
  background-size: min(52vmin, 420px);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0.95) grayscale(0.04);
  mix-blend-mode: multiply;
}

.bg-graphics {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.38;
  mix-blend-mode: multiply;
}

.orb-1 {
  width: clamp(180px, 24vw, 260px);
  height: clamp(180px, 24vw, 260px);
  top: 9%;
  left: 20%;
  background: radial-gradient(
    circle,
    rgba(34, 193, 166, 0.55) 0%,
    transparent 72%
  );
}

.orb-2 {
  width: clamp(180px, 22vw, 240px);
  height: clamp(180px, 22vw, 240px);
  top: 10%;
  right: 6%;
  background: radial-gradient(
    circle,
    rgba(246, 182, 11, 0.48) 0%,
    transparent 72%
  );
}

.orb-3 {
  width: clamp(220px, 30vw, 320px);
  height: clamp(220px, 30vw, 320px);
  bottom: 2%;
  left: 36%;
  background: radial-gradient(
    circle,
    rgba(15, 159, 74, 0.3) 0%,
    transparent 72%
  );
}

.bg-streak {
  position: absolute;
  width: min(56vw, 680px);
  height: 2px;
  top: 22%;
  left: 32%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(15, 159, 74, 0.34),
    rgba(34, 193, 166, 0.34),
    transparent
  );
  opacity: 0.58;
}

.bg-ring {
  position: absolute;
  width: clamp(240px, 34vw, 360px);
  height: clamp(240px, 34vw, 360px);
  right: -90px;
  top: 48%;
  border-radius: 50%;
  border: 1px solid rgba(15, 159, 74, 0.18);
  opacity: 0.62;
}

.vertical-nav {
  position: fixed;
  top: var(--shell-gap);
  left: var(--shell-gap);
  bottom: var(--shell-gap);
  width: var(--sidebar-width);
  max-height: calc(100vh - (var(--shell-gap) * 2));
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
  z-index: 5;
  transition: transform 220ms ease, opacity 220ms ease;
}

.vertical-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15, 159, 74, 0.12),
    rgba(246, 182, 11, 0.08)
  );
  opacity: 0.7;
  pointer-events: none;
}

.sidebar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 18px;
  height: 100%;
  padding: 22px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 159, 74, 0.36) transparent;
}

.sidebar-inner::-webkit-scrollbar {
  width: 8px;
}

.sidebar-inner::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-inner::-webkit-scrollbar-thumb {
  background: rgba(15, 159, 74, 0.36);
  border-radius: 999px;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.32);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition: opacity 180ms ease;
}

@supports (backdrop-filter: blur(4px)) {
  .sidebar-backdrop {
    backdrop-filter: blur(4px);
  }
}

body.sidebar-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-brand-mark {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  padding: 8px;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #eef8f1 72%);
  border: 4px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(8, 46, 29, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-brand-copy {
  min-width: 0;
}

.sidebar-brand-copy span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.sidebar-brand-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  color: var(--brand-dark);
}

.sidebar-intro {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--muted);
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.sidebar-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  padding: 0 4px;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: transparent !important;
}

.dashboard-nav .nav-item {
  margin: 0;
}

.dashboard-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 15px;
  border-radius: 18px;
  color: var(--text) !important;
  text-decoration: none;
  background: transparent;
  transition: transform 140ms ease, background 140ms ease,
    box-shadow 140ms ease, color 140ms ease;
}

.dashboard-nav .nav-link i {
  width: 18px;
  text-align: center;
  color: var(--brand-dark);
  font-size: 16px;
}

.dashboard-nav .nav-link .badge {
  margin-left: auto;
  min-width: 24px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-nav .nav-link:hover,
.dashboard-nav .nav-link.active {
  background: rgba(15, 159, 74, 0.1) !important;
  color: var(--brand-deep) !important;
  box-shadow: inset 0 0 0 1px rgba(15, 159, 74, 0.12);
  transform: translateY(-1px);
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0d8b40, #1ab36c);
  color: #fff;
  box-shadow: 0 18px 34px rgba(15, 159, 74, 0.24);
}

.sidebar-footer p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
}

.sidebar-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
}

.page-content {
  position: relative;
  min-height: calc(100vh - (var(--shell-gap) * 2));
  width: calc(100% - var(--sidebar-width) - var(--shell-gap));
  margin-left: calc(var(--sidebar-width) + var(--shell-gap));
  display: flex;
  flex-direction: column;
  gap: var(--shell-gap);
  transition: margin-left 220ms ease, width 220ms ease;
}

#sidebar.active {
  transform: translateX(calc(-100% - 18px));
  opacity: 0;
  pointer-events: none;
}

#content.active {
  width: 100%;
  margin-left: 0;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.topnav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

#sidebarCollapse {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #1dd17c);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15, 159, 74, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease,
    filter 140ms ease;
}

#sidebarCollapse:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(15, 159, 74, 0.28);
  filter: brightness(1.03);
}

#sidebarCollapse:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 159, 74, 0.18),
    0 14px 28px rgba(15, 159, 74, 0.22);
}

.topnav-copy {
  min-width: 0;
}

.topnav-copy .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(82, 96, 113, 0.86);
  margin-bottom: 4px;
}

.topnav-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.15;
  color: var(--brand-dark);
}

.topnav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.user-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.84);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.user-pill span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(82, 96, 113, 0.84);
}

.user-pill strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.topnav-icon,
.logout-link {
  min-height: 48px;
  border-radius: 16px;
  text-decoration: none;
}

.topnav-icon {
  position: relative;
  width: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.84);
  border: 1px solid var(--border);
  color: var(--brand-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.topnav-icon .badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 22px;
  padding: 4px 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.logout-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #0f2f2f, #1b4a4a);
  box-shadow: 0 12px 26px rgba(15, 47, 47, 0.22);
}

.dashboard-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.message-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-stack .alert {
  margin: 0;
  padding: 14px 18px;
  border: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.message-stack .alert-success {
  border-left: 4px solid var(--brand);
}

.message-stack .alert-danger {
  border-left: 4px solid #dc2626;
}

.dashboard-panel {
  position: relative;
  padding: var(--panel-padding);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  overflow-x: auto;
}

.dashboard-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 159, 74, 0.09),
    rgba(246, 182, 11, 0.06)
  );
  opacity: 0.6;
  pointer-events: none;
}

.dashboard-panel > * {
  position: relative;
  z-index: 1;
}

.dashboard-panel .container {
  max-width: 100%;
  padding: 0;
}

.dashboard-panel .row {
  row-gap: 16px;
}

.dashboard-panel .row > div {
  margin: 0;
}

.dashboard-panel hr {
  border: 0;
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(
    90deg,
    rgba(15, 159, 74, 0),
    rgba(15, 159, 74, 0.46),
    rgba(246, 182, 11, 0.4),
    rgba(15, 159, 74, 0)
  );
}

.dashboard-panel > b:first-child {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 700;
  color: var(--brand-dark);
}

.dashboard-panel h4,
.dashboard-panel .h4 {
  margin-top: 0;
  color: var(--brand-dark);
  font-family: var(--font-display);
  font-weight: 700;
}

.dashboard-panel p,
.dashboard-panel label,
.dashboard-panel td,
.dashboard-panel th,
.dashboard-panel small,
.dashboard-panel li,
.dashboard-panel span {
  color: inherit;
}

.dashboard-panel .text-success {
  color: var(--brand-dark) !important;
}

.dashboard-panel input[type="text"],
.dashboard-panel input[type="number"],
.dashboard-panel input[type="password"],
.dashboard-panel input[type="email"],
.dashboard-panel input[type="date"],
.dashboard-panel input[type="tel"],
.dashboard-panel input[type="file"],
.dashboard-panel textarea,
.dashboard-panel select,
.dashboard-panel .form-control,
.dashboard-panel .form-select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.92);
  color: var(--text);
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition: border-color 160ms ease, box-shadow 160ms ease,
    background 160ms ease;
}

.dashboard-panel textarea {
  min-height: 110px;
  resize: vertical;
}

.dashboard-panel input:focus,
.dashboard-panel textarea:focus,
.dashboard-panel select:focus,
.dashboard-panel .form-control:focus,
.dashboard-panel .form-select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 159, 74, 0.15);
}

.dashboard-panel input[readonly],
.dashboard-panel textarea[readonly] {
  background: rgba(241, 245, 249, 0.92);
}

.dashboard-panel .btn,
.dashboard-panel button[type="submit"],
.dashboard-panel button[type="button"],
.dashboard-panel button[type="reset"] {
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, box-shadow 140ms ease,
    filter 140ms ease;
}

.dashboard-panel .btn-primary,
.dashboard-panel .btn-success,
.dashboard-panel button[type="submit"] {
  background: linear-gradient(135deg, var(--brand), #1dd17c);
  box-shadow: 0 14px 28px rgba(15, 159, 74, 0.2);
}

.dashboard-panel .btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.18);
}

.dashboard-panel .btn:hover,
.dashboard-panel button[type="submit"]:hover,
.dashboard-panel button[type="button"]:hover,
.dashboard-panel button[type="reset"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.dashboard-panel .table,
.dashboard-panel table {
  width: 100%;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  overflow: hidden;
}

.dashboard-panel .table-responsive {
  border-radius: 18px;
}

.dashboard-panel thead th,
.dashboard-panel .bg-primary th,
.dashboard-panel tr.bg-primary th {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff !important;
  border: none;
}

.dashboard-panel td,
.dashboard-panel th {
  padding: 0.92rem 1rem;
  border-color: rgba(148, 163, 184, 0.18);
  vertical-align: middle;
}

.dashboard-panel tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.5);
}

.dashboard-panel .alert {
  border: none;
  border-radius: 16px;
}

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.profile-identity-card,
.profile-details-card {
  position: relative;
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.profile-identity-card::before,
.profile-details-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(15, 159, 74, 0.08),
    rgba(246, 182, 11, 0.05)
  );
  pointer-events: none;
}

.profile-identity-card > *,
.profile-details-card > * {
  position: relative;
  z-index: 1;
}

.profile-identity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar-shell {
  width: clamp(140px, 22vw, 190px);
  aspect-ratio: 1;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #eef8f1 72%);
  border: 5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(8, 46, 29, 0.16);
}

.profile-avatar-image,
.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.profile-avatar-image {
  object-fit: cover;
}

.profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--accent-2));
  color: #fff;
  font-size: clamp(38px, 5vw, 52px);
}

.profile-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(82, 96, 113, 0.88);
}

.profile-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.1;
  color: var(--brand-dark);
}

.profile-subtitle {
  margin: 12px 0 18px;
  max-width: 28ch;
  color: var(--muted);
  font-size: 14px;
}

.profile-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 159, 74, 0.1);
  color: var(--brand-deep);
  border: 1px solid rgba(15, 159, 74, 0.14);
  font-weight: 700;
}

.profile-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.profile-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), #1dd17c);
  box-shadow: 0 14px 28px rgba(15, 159, 74, 0.2);
  transition: transform 140ms ease, box-shadow 140ms ease,
    filter 140ms ease;
}

.profile-action-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(15, 159, 74, 0.26);
  filter: brightness(1.02);
}

.profile-action-btn-secondary {
  background: linear-gradient(135deg, #0f2f2f, #1b4a4a);
  box-shadow: 0 12px 26px rgba(15, 47, 47, 0.2);
}

.profile-action-btn-secondary:hover {
  box-shadow: 0 16px 30px rgba(15, 47, 47, 0.24);
}

.profile-details-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-details-header {
  margin-bottom: 18px;
}

.profile-details-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 30px);
  color: var(--brand-dark);
}

.profile-details-header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-detail-item {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.profile-detail-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(82, 96, 113, 0.84);
}

.profile-detail-value {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.cid-update-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cid-update-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.cid-update-info-card,
.cid-update-form-card {
  position: relative;
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.cid-update-info-card::before,
.cid-update-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(15, 159, 74, 0.08),
    rgba(246, 182, 11, 0.05)
  );
  pointer-events: none;
}

.cid-update-info-card > *,
.cid-update-form-card > * {
  position: relative;
  z-index: 1;
}

.cid-update-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cid-update-avatar-shell {
  margin: 18px 0;
}

.cid-update-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  color: var(--brand-dark);
}

.cid-update-copy {
  margin: 12px 0 0;
  max-width: 30ch;
  color: var(--muted);
  font-size: 14px;
}

.cid-update-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 159, 74, 0.1);
  color: var(--brand-deep);
  border: 1px solid rgba(15, 159, 74, 0.14);
  font-weight: 700;
}

.cid-update-summary {
  width: 100%;
  display: grid;
  gap: 14px;
}

.cid-update-form-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cid-update-form-header {
  margin-bottom: 18px;
}

.cid-update-form-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 30px);
  color: var(--brand-dark);
}

.cid-update-form-header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.cid-update-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cid-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cid-field-group label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(82, 96, 113, 0.9);
}

.cid-field-group small {
  color: var(--muted);
  font-size: 12px;
}

.cid-update-form input[type="number"]::-webkit-outer-spin-button,
.cid-update-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cid-update-form input[type="number"] {
  -moz-appearance: textfield;
}

.cid-update-form input[type="file"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cid-upload-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 159, 74, 0.34);
  background: rgba(248, 250, 252, 0.86);
  color: var(--brand-deep);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: border-color 140ms ease, transform 140ms ease,
    background 140ms ease, box-shadow 140ms ease;
}

.cid-upload-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 159, 74, 0.54);
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 159, 74, 0.12);
}

.cid-file-name {
  display: block;
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  word-break: break-word;
}

.cid-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  width: 100%;
}

.faq-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-page-header h3 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  color: var(--text);
}

.faq-page-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item,
.empty-state-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.faq-item {
  overflow: hidden;
}

.faq-item-title {
  margin: 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease;
}

.faq-question:hover {
  background: rgba(15, 159, 74, 0.05);
}

.faq-question:focus-visible {
  outline: 2px solid rgba(15, 159, 74, 0.32);
  outline-offset: -2px;
}

.faq-question-index {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(15, 159, 74, 0.16),
    rgba(246, 182, 11, 0.18)
  );
  color: var(--brand-deep);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.faq-question-text {
  flex: 1 1 auto;
  font-size: 16px;
  line-height: 1.5;
}

.faq-question-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 159, 74, 0.08);
  color: var(--brand-deep);
  transition: transform 160ms ease, background 160ms ease;
}

.faq-item.is-open .faq-question-icon {
  transform: rotate(180deg);
  background: rgba(15, 159, 74, 0.16);
}

.faq-answer-wrapper {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.faq-answer {
  padding: 0 22px 22px 86px;
  color: var(--muted);
}

.faq-answer > :first-child {
  margin-top: 18px;
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
  margin-bottom: 12px;
}

.faq-answer ul,
.faq-answer ol {
  padding-left: 20px;
}

.empty-state-card {
  padding: 28px 24px;
  text-align: center;
}

.empty-state-card h4 {
  margin: 0 0 8px;
  color: var(--text);
}

.empty-state-card p {
  margin: 0;
  color: var(--muted);
}

.dashboard-footer {
  position: relative;
  text-align: center;
  padding: 4px 18px 12px;
  color: #0f172a;
}

.dashboard-footer::before {
  content: "";
  display: block;
  width: min(520px, 76vw);
  height: 3px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.dashboard-footer p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

@media screen and (max-width: 1100px) {
  .topnav {
    border-radius: 28px;
  }

  .topnav {
    flex-direction: column;
    align-items: stretch;
  }

  .topnav-right {
    justify-content: flex-start;
  }

  .bg-logo {
    background-position: center 32%;
  }
}

@media screen and (max-width: 900px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .vertical-nav {
    width: min(88vw, 320px);
    transform: translateX(calc(-100% - 18px));
    opacity: 0;
    pointer-events: none;
  }

  #sidebar.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .page-content,
  #content.active {
    width: 100%;
    margin-left: 0;
  }

  .bg-logo {
    background-position: center 28%;
    background-size: min(62vmin, 320px);
  }

  .bg-streak {
    width: min(74vw, 420px);
    left: 12%;
    top: 18%;
  }

  .sidebar-inner {
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
}

@media screen and (max-width: 600px) {
  .dashboard-shell {
    padding: 12px;
  }

  .vertical-nav {
    top: 12px;
    left: 12px;
    bottom: 12px;
    width: min(calc(100vw - 24px), 320px);
    max-height: calc(100vh - 24px);
  }

  .topnav {
    padding: 16px;
  }

  .topnav-left {
    align-items: flex-start;
  }

  .topnav-right {
    width: 100%;
  }

  .user-pill,
  .logout-link {
    width: 100%;
  }

  .logout-link {
    justify-content: center;
  }

  .dashboard-panel {
    padding: 18px 16px;
  }

  .bg-ring {
    top: auto;
    bottom: 4%;
  }

  .faq-question {
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }

  .faq-question-index {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .faq-answer {
    padding: 0 16px 18px 16px;
  }

  .cid-update-layout,
  .profile-details-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 901px) {
  .sidebar-backdrop {
    display: none;
  }
}

@media screen and (max-width: 860px) {
  .cid-update-layout,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .cid-update-info-card,
  .cid-update-form-card,
  .profile-identity-card,
  .profile-details-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

