:root {
  --cp-navy: #06172d;
  --cp-navy-2: #092447;
  --cp-blue: #075bea;
  --cp-green: #13a463;
  --cp-gold: #f5b933;
  --cp-ink: #101828;
  --cp-muted: #667085;
  --cp-border: #d9e2ef;
  --cp-surface: #ffffff;
  --cp-bg: #f5f8fc;
  --cp-blue-dark: #0646b8;
  --cp-logo-secondary: #4f9cff;
  --cp-sidebar-font-size: .9rem;
  --cp-brand-title-size: 1.35rem;
  --cp-brand-subtitle-size: .56rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cp-bg);
  color: var(--cp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { text-decoration: none; }

.cp-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: clamp(210px, 16vw, 244px) minmax(0, 1fr);
}

.cp-sidebar {
  background: linear-gradient(180deg, var(--cp-navy) 0%, var(--cp-navy-2) 62%, var(--cp-navy) 100%);
  color: #fff;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.35vh, 16px);
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.28) transparent;
  font-size: var(--cp-sidebar-font-size);
}

.cp-sidebar::-webkit-scrollbar { width: 8px; }
.cp-sidebar::-webkit-scrollbar-track { background: transparent; }
.cp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.24);
  border-radius: 999px;
}

.cp-brand {
  display: flex;
  align-items: center;
  color: #fff;
  min-width: 0;
  margin-bottom: 4px;
}

.cp-brand-lockup {
  width: 186px;
  height: auto;
  display: block;
}

.cp-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #123b75, #061a34);
  border: 2px solid var(--cp-gold);
  border-radius: 14px;
  color: var(--cp-gold);
  font-weight: 900;
}

.cp-brand-mark-img {
  width: clamp(50px, 4.2vw, 56px);
  height: clamp(50px, 4.2vw, 56px);
  object-fit: contain;
  flex: 0 0 auto;
  background: transparent;
}

.cp-brand-copy {
  display: grid;
  width: min(196px, 100%);
  min-width: 0;
}

.cp-brand-title {
  font-family: Georgia, "Times New Roman", serif;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  font-size: var(--cp-brand-title-size);
  letter-spacing: .08em;
  line-height: .95;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,.16);
}

.cp-brand-cert { color: #fff; }

.cp-brand-pilot {
  color: var(--cp-logo-secondary);
}

.cp-brand-subtitle {
  display: block;
  color: #aeb7c4;
  width: 100%;
  font-size: var(--cp-brand-subtitle-size);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

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

.cp-nav a,
.cp-nav-form button,
.cp-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: clamp(8px, 1.05vh, 11px) 10px;
  color: #e8eef7;
  background: transparent;
  font-weight: 650;
  text-align: left;
}

.cp-nav-form {
  margin: 0;
}

.cp-nav-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: .94;
  flex: 0 0 auto;
}

.cp-nav a:hover,
.cp-nav-form button:hover,
.cp-nav button:hover,
.cp-nav .active {
  color: #fff;
  background: linear-gradient(90deg, var(--cp-blue-dark), var(--cp-blue));
}

.cp-nav-icon {
  width: 20px;
  display: inline-grid;
  place-items: center;
  font-size: 1.05rem;
}

.cp-sidebar-card {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: clamp(10px, 1.25vh, 14px);
  background: rgba(255,255,255,.05);
}

.cp-free-token-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(34px, clamp(38px, 3.2vw, 54px));
  gap: 8px;
  flex: 0 0 auto;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(7,91,234,.34), rgba(0,122,255,.16));
  border-color: rgba(38,132,255,.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.cp-free-token-art {
  width: 100%;
  max-width: 56px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  align-self: center;
  justify-self: end;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.22));
}

.cp-free-token-card .cp-panel-title,
.cp-free-token-card p {
  overflow-wrap: anywhere;
}

.cp-free-token-card .cp-button {
    min-width: 0;
    white-space: normal;
    line-height: 1.15;
  }

.cp-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.cp-notification-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cp-border);
}

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

.cp-notification-row.unread {
  background: rgba(13, 110, 253, .06);
  margin-inline: -12px;
  padding-inline: 12px;
  border-radius: 8px;
}

.cp-content-page {
  max-width: 900px;
  line-height: 1.72;
}

.cp-share-actions form {
  display: inline;
  margin: 0;
}

.cp-share-actions button.cp-share-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--cp-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cp-sidebar-profile {
  display: grid;
  gap: 12px;
  padding: 4px 4px 14px;
  color: #fff;
}

.cp-sidebar-xp { background: rgba(255,255,255,.15); }
.cp-sidebar-xp span { background: linear-gradient(90deg, #49d581, #74f0a2); }

.cp-sidebar-help {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #fff;
}

.cp-sidebar-help a {
  color: #b9d0ff;
  font-size: .85rem;
}

.cp-wallet-amount {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 850;
}

.cp-coin {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #573b00;
  background: radial-gradient(circle at 35% 30%, #fff2a7, #f5b933 55%, #c77a00);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.16);
  font-size: .82rem;
  font-weight: 900;
}

.cp-icon-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 12px rgba(15, 32, 55, .12));
}

.cp-icon-img-lg {
  width: 74px;
  height: 74px;
}

.cp-icon-img-xl {
  width: 86px;
  height: 100px;
}

.cp-token-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(158, 102, 0, .22));
}

.cp-rank-hero-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(158, 102, 0, .2));
}

.cp-cert-seal {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.cp-avatar,
.cp-profile-photo-lg {
  object-fit: cover;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(245,185,51,.75);
}

.cp-avatar {
  width: 42px;
  height: 42px;
}

.cp-avatar-lg {
  width: 56px;
  height: 56px;
  box-shadow: 0 10px 18px rgba(0,0,0,.2);
}

.cp-profile-photo-lg {
  width: 96px;
  height: 96px;
}

.cp-main {
  min-width: 0;
  padding: 18px 24px;
  overflow-x: hidden;
}

.cp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 20px;
}

.cp-title {
  font-size: 1.7rem;
  font-weight: 850;
  margin: 0;
  letter-spacing: 0;
}

.cp-subtitle {
  color: var(--cp-muted);
  margin: 5px 0 0;
}

.cp-grid {
  display: grid;
  gap: 14px;
}

.cp-grid > *,
.cp-form-grid > *,
.cp-admin-form > *,
.cp-admin-choice-grid > * {
  min-width: 0;
}

.cp-grid-hero {
  grid-template-columns: minmax(0, 1.65fr) repeat(4, minmax(132px, .55fr));
}

.cp-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cp-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.cp-panel {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  padding: 15px;
  min-width: 0;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.cp-panel:hover {
  border-color: #c8d8ee;
  box-shadow: 0 18px 46px rgba(15, 32, 55, .07);
}

.cp-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cp-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.cp-hero {
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(31,107,255,.42), transparent 32%),
    linear-gradient(135deg, #06172d, #092447);
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, .8fr);
  gap: 20px;
  min-height: 178px;
}

.cp-kicker {
  color: var(--cp-muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cp-hero .cp-kicker { color: #9db6d8; }

.cp-hero-title {
  margin: 14px 0 12px;
  font-size: 1.45rem;
  font-weight: 900;
}

.cp-hero-exam-name {
  color: #d9e6f7;
  font-weight: 750;
  margin-top: -6px;
}

.cp-domain-strip {
  display: flex;
  gap: 5px;
  margin-top: 13px;
}

.cp-domain-strip span {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cp-green) var(--value, 0%), rgba(255,255,255,.18) 0);
}

.cp-progress {
  height: 8px;
  background: #e6ecf4;
  border-radius: 999px;
  overflow: hidden;
}

.cp-progress span {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: var(--bar, var(--cp-green));
}

.cp-hero .cp-progress { background: rgba(255,255,255,.16); }

.cp-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 750;
  white-space: nowrap;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.cp-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.cp-panel input,
.cp-panel textarea,
.cp-panel select {
  width: 100%;
  border: 1px solid var(--cp-border);
  border-radius: 7px;
  padding: 10px 12px;
}

.cp-panel input:focus,
.cp-panel textarea:focus,
.cp-panel select:focus {
  outline: 0;
  border-color: var(--cp-blue);
  box-shadow: 0 0 0 3px rgba(7,91,234,.12);
}

.cp-panel label {
  font-weight: 700;
  margin-bottom: 5px;
}

.cp-button-primary {
  color: #fff;
  background: var(--cp-blue);
  box-shadow: 0 8px 22px rgba(7,91,234,.22);
}

.cp-button-gold {
  color: #2f2100;
  background: linear-gradient(180deg, #ffe48a, #f5b933);
}

.cp-button-outline {
  color: var(--cp-blue);
  border-color: #9bbcff;
  background: #fff;
}

.cp-stat-value {
  font-size: 1.65rem;
  font-weight: 900;
  margin: 8px 0 4px;
}

.cp-ring {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 8px auto 6px;
  background: conic-gradient(var(--cp-green) var(--value, 0%), #e8eef5 0);
}

.cp-ring-inner {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 900;
}

.cp-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.cp-path-step {
  position: relative;
  text-align: center;
  color: var(--cp-muted);
}

.cp-path-dot {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 4px solid #d8e1ed;
  background: #fff;
  color: var(--cp-muted);
  font-weight: 900;
}

.cp-path-step.done .cp-path-dot { border-color: #77c15f; background: #77c15f; color: #fff; }
.cp-path-step.current .cp-path-dot { border-color: var(--cp-blue); color: var(--cp-blue); }

.cp-certification-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: start;
  min-height: 142px;
  padding: 10px 18px 2px;
}

.cp-certification-track-line {
  position: absolute;
  top: 60px;
  left: calc(12.5% + 18px);
  right: calc(12.5% + 18px);
  height: 3px;
  background: #dfe6ef;
  z-index: 0;
}

.cp-certification-track-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 66%;
  height: 100%;
  background: linear-gradient(90deg, #67b84e 0 52%, var(--cp-blue) 52% 100%);
}

.cp-certification-track-line span {
  position: absolute;
  left: 78%;
  width: 16%;
  height: 100%;
  border-top: 3px dashed #c8d2df;
}

.cp-certification-track-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 21px 58px auto auto;
  justify-items: center;
  gap: 5px;
  text-align: center;
  color: var(--cp-muted);
}

.cp-certification-track-step strong {
  grid-row: 3;
  color: var(--cp-ink);
}

.cp-certification-track-step .cp-small {
  grid-row: 4;
}

.cp-certification-track-dot {
  grid-row: 2;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 4px solid #d8e1ed;
  background: #fff;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(15, 32, 55, .12);
}

.cp-certification-track-dot img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.cp-certification-track-step.done .cp-certification-track-dot {
  color: #fff;
  background: linear-gradient(180deg, #78c65d, #52a33d);
  border-color: #9bd489;
}

.cp-certification-track-step.current .cp-certification-track-dot {
  border-color: var(--cp-blue);
  box-shadow: 0 0 0 4px #eaf2ff, 0 8px 20px rgba(7,91,234,.22);
}

.cp-certification-track-step.locked .cp-certification-track-dot {
  background: #f5f7fa;
  opacity: .75;
}

.cp-current-pill {
  grid-row: 1;
  min-height: 21px;
  padding: 3px 12px;
  border-radius: 999px;
  color: var(--cp-blue);
  background: #eaf2ff;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 850;
}

.cp-status-green { color: var(--cp-green); font-weight: 750; }
.cp-status-blue { color: var(--cp-blue); font-weight: 750; }

.cp-table {
  width: 100%;
  border-collapse: collapse;
}

.table {
  min-width: 760px;
}

.cp-main > .table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.cp-exam-table {
  table-layout: fixed;
}

.cp-exam-table th:nth-child(1),
.cp-exam-table td:nth-child(1) {
  width: 38%;
}

.cp-exam-table th:nth-child(2),
.cp-exam-table td:nth-child(2) {
  width: 18%;
}

.cp-exam-table th:nth-child(3),
.cp-exam-table td:nth-child(3) {
  width: 16%;
}

.cp-exam-table th:nth-child(4),
.cp-exam-table td:nth-child(4) {
  width: 28%;
}

.cp-exam-table th,
.cp-exam-table td {
  padding-inline: 6px;
}

.cp-exam-cell,
.cp-result-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cp-exam-cell > span,
.cp-result-title > div {
  min-width: 0;
}

.cp-exam-cell strong,
.cp-result-title strong {
  overflow-wrap: anywhere;
}

.cp-action-cell {
  text-align: right;
}

.cp-action-cell .cp-button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-inline: 6px;
  font-size: .86rem;
  line-height: 1.15;
  white-space: normal;
}

.cp-table th {
  color: var(--cp-muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 800;
  border-bottom: 1px solid var(--cp-border);
  padding: 10px 8px;
}

.cp-table td {
  border-bottom: 1px solid #edf2f7;
  padding: 12px 8px;
  vertical-align: middle;
}

.cp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .76rem;
  font-weight: 750;
}

.cp-badge-success { color: #027a48; background: #dcfae6; }
.cp-badge-danger { color: #b42318; background: #fee4e2; }
.cp-badge-warning { color: #b54708; background: #fef0c7; }
.cp-badge-muted { color: #344054; background: #eef2f7; }
.cp-badge-blue { color: #075bea; background: #e8f0ff; }

.cp-cert-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cp-certificate {
  min-height: 132px;
  border: 1px solid #d5b064;
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,249,231,.92)),
    repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(245,185,51,.08) 9px, transparent 16px);
  position: relative;
  overflow: hidden;
}

.cp-certificate-art {
  width: 100%;
  max-height: 106px;
  object-fit: contain;
  display: block;
  margin: -4px auto 10px;
  filter: drop-shadow(0 10px 18px rgba(15, 32, 55, .12));
}

.cp-certificate-art-full {
  max-height: 170px;
  margin-bottom: 14px;
}

.cp-certificate::after {
  content: "";
  position: absolute;
  inset: auto -20px -26px auto;
  width: 92px;
  height: 92px;
  background: radial-gradient(circle, rgba(245,185,51,.22), transparent 65%);
  z-index: 0;
}

.cp-certificate > * {
  position: relative;
  z-index: 1;
}

.cp-achievement-row,
.cp-result-row,
.cp-bundle {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid #edf2f7;
  padding: 11px 0;
}

.cp-achievement-main,
.cp-result-main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cp-achievement-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff4d6;
  color: #9a6700;
  font-weight: 900;
}

.cp-leader-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 70px 70px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
}

.cp-leader-row.you { background: #eaf2ff; }

.cp-rank-token {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: var(--cp-blue);
  font-weight: 900;
}

.cp-rank-token:has(.cp-rank-img) {
  background: transparent;
}

.cp-rank-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(15, 32, 55, .16));
}

.cp-bundles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cp-bundle {
  position: relative;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  overflow: visible;
}

.cp-bundle.featured {
  border-color: var(--cp-gold);
  box-shadow: 0 0 0 1px rgba(245,185,51,.25);
}

.cp-bundle-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
}

.cp-bundle-token-art {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(158, 102, 0, .18));
}

.cp-bundle .cp-stat-value {
  margin: 4px 0;
  line-height: 1;
}

.cp-bundle form {
  width: 100%;
  margin: 0;
}

.cp-bundle-detail {
  min-height: 34px;
  margin-bottom: 0;
}

.cp-bundle.featured .cp-badge-warning {
  align-self: center;
  margin: 0 0 -2px;
  min-height: 24px;
  padding: 4px 14px;
  color: #fff;
  background: linear-gradient(180deg, #f8b40a, #df9700);
  box-shadow: 0 4px 10px rgba(223,151,0,.25);
}

.cp-bundles-dashboard .cp-bundle {
  min-height: 190px;
}

.cp-bundles-dashboard {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.cp-bundles-store .cp-bundle {
  min-height: 230px;
}

.cp-bundle-store-art-wrap {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.cp-bundle-store-art {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 16px rgba(158, 102, 0, .18));
}

.cp-bundle.featured .cp-bundle-store-art-wrap {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(10, 39, 80, .18);
}

.cp-level-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.cp-level-card > div {
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbff;
}

.cp-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cp-metric-card {
  min-height: 118px;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 32, 55, .035);
}

.cp-metric-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 999px;
  background: #eef5ff;
  padding: 8px;
}

.cp-metric-card .cp-metric-icon[src*="token_matched.svg"] {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.cp-metric-text {
  display: grid;
  place-items: center;
  color: var(--cp-blue);
  font-weight: 900;
}

.cp-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.cp-filter-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid var(--cp-border);
  border-radius: 999px;
  color: #44546a;
  background: #fff;
  font-size: .78rem;
  font-weight: 750;
}

.cp-filter-pills span.active {
  color: #fff;
  border-color: var(--cp-blue);
  background: var(--cp-blue);
}

.cp-achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cp-achievement-card {
  min-height: 156px;
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.cp-achievement-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: #b68200;
  font-size: .82rem;
}

.cp-library-table {
  table-layout: fixed;
}

.cp-library-table th:nth-child(1), .cp-library-table td:nth-child(1) { width: 32%; }
.cp-library-table th:nth-child(2), .cp-library-table td:nth-child(2) { width: 13%; }
.cp-library-table th:nth-child(3), .cp-library-table td:nth-child(3) { width: 16%; }
.cp-library-table th:nth-child(4), .cp-library-table td:nth-child(4) { width: 11%; }
.cp-library-table th:nth-child(5), .cp-library-table td:nth-child(5) { width: 16%; }
.cp-library-table th:nth-child(6), .cp-library-table td:nth-child(6) { width: 12%; }

.cp-leaderboard-table tr.you {
  background: #eaf2ff;
}

.cp-task-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 11px;
  margin-bottom: 10px;
}

.cp-task-row > span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #8ea2bf;
  background: #eef5ff;
  font-weight: 900;
}

.cp-certification-hero {
  color: #fff;
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(circle at 86% 12%, rgba(31,107,255,.34), transparent 28%),
    linear-gradient(135deg, #06172d, #092447);
}

.cp-certification-hero h2 {
  margin: 10px 0;
  font-weight: 900;
}

.cp-certification-hero p {
  max-width: 680px;
  color: #d9e6f7;
}

.cp-certification-hero-badge {
  width: 92px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.25));
}

.cp-ring-lg {
  width: 126px;
  height: 126px;
  margin-block: 18px;
}

.cp-ring-lg .cp-ring-inner {
  width: 88px;
  height: 88px;
  font-size: 1.65rem;
}

.cp-callout {
  border: 1px solid #cfe1ff;
  border-radius: 8px;
  padding: 14px;
  color: #31577f;
  background: #eef6ff;
}

.cp-cert-list-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cp-certificate-compact {
  min-height: 186px;
  background: #fff;
}

.cp-certificate-compact h3 {
  font-size: 1rem;
  margin: 18px 0 4px;
}

.cp-cert-corner-seal {
  position: absolute;
  right: 14px;
  bottom: 14px;
}

.cp-next-cert-card,
.cp-empty-card {
  min-height: 166px;
  border: 1px dashed #b9c7da;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: var(--cp-muted);
  background: #fff;
}

.cp-next-cert-card span {
  display: block;
  font-size: .82rem;
}

.cp-link-button {
  border: 0;
  background: transparent;
  color: var(--cp-blue);
  font-size: .82rem;
  font-weight: 750;
}

.cp-profile-hero {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cp-field {
  display: grid;
  gap: 6px;
}

.cp-field-wide {
  grid-column: 1 / -1;
}

.cp-preferences-panel {
  max-width: 760px;
}

.cp-admin-form {
  display: grid;
  gap: 10px;
}

.cp-admin-form p,
.cp-admin-form label {
  margin-bottom: 0;
}

.cp-admin-form .helptext {
  display: block;
  color: var(--cp-muted);
  font-size: .78rem;
  margin-top: 4px;
}

.cp-admin-form input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

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

.cp-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cp-admin-list {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow: auto;
  margin-top: 16px;
}

.cp-admin-list a {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--cp-border);
  border-radius: 7px;
  color: var(--cp-ink);
  background: #fbfdff;
}

.cp-admin-list a span {
  color: var(--cp-muted);
  font-size: .82rem;
}

.cp-admin-section {
  display: grid;
  gap: 14px;
}

.cp-admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.cp-admin-section-head h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 850;
}

.cp-admin-section-head p {
  margin: 4px 0 0;
  color: var(--cp-muted);
}

.cp-report-table-wrap {
  overflow-x: auto;
}

.cp-report-table {
  min-width: 840px;
}

.cp-report-table th {
  white-space: nowrap;
}

.cp-report-progress {
  min-width: 120px;
}

.cp-report-card-list {
  display: grid;
  gap: 12px;
}

.cp-report-card {
  border: 1px solid var(--cp-border);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.cp-report-exam-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.cp-preference-list {
  display: grid;
}

.cp-preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 11px 0;
  border-bottom: 1px solid #edf2f7;
  cursor: pointer;
}

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

.cp-preference-row strong,
.cp-preference-row small {
  display: block;
}

.cp-preference-row strong {
  font-size: .98rem;
}

.cp-preference-row small {
  color: var(--cp-muted);
  margin-top: 2px;
}

.cp-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px !important;
  height: 1px;
  padding: 0 !important;
  margin: 0;
}

.cp-toggle-ui {
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: #cfd8e6;
  box-shadow: inset 0 0 0 1px rgba(15, 32, 55, .08);
  position: relative;
  transition: background .16s ease;
}

.cp-toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 32, 55, .2);
  transition: transform .16s ease;
}

.cp-toggle-input:checked + .cp-toggle-ui {
  background: var(--cp-blue);
}

.cp-toggle-input:checked + .cp-toggle-ui::after {
  transform: translateX(22px);
}

.cp-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cp-share-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--cp-blue);
  background: #eaf2ff;
  font-size: .78rem;
  font-weight: 800;
}

.cp-profile-avatar-xl {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 14px 36px rgba(15, 32, 55, .16);
}

.cp-avatar-initials {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #c99a68, #8f6946);
  font-size: 2.2rem;
  font-weight: 900;
}

.cp-token-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

.cp-token-dots span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--cp-gold);
}

.cp-bundles-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cp-muted { color: var(--cp-muted); }
.cp-small { font-size: .82rem; }
.cp-mt { margin-top: 14px; }

.cp-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cp-footer-links {
  display: inline-flex;
  gap: 18px;
}

/* Admin Console: tabbed/compact layout */
.cp-admin-tabs {
  gap: 6px;
}

.cp-admin-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: #536173;
  background: #f4f7fb;
  border: 1px solid #e1e8f2;
}

.cp-admin-tabs a:hover,
.cp-admin-tabs a.active {
  color: #fff;
  background: linear-gradient(90deg, var(--cp-blue-dark, #0646b8), var(--cp-blue, #075bea));
  border-color: transparent;
}

.cp-admin-section[hidden] {
  display: none !important;
}

.cp-admin-section {
  scroll-margin-top: 16px;
}

.cp-admin-section .cp-admin-section-head {
  margin-bottom: 10px;
}

.cp-admin-section .cp-admin-section-head h2 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.cp-admin-section .cp-admin-section-head p {
  font-size: .82rem;
  margin-bottom: 0;
  color: #6b7788;
}

.cp-admin-section .cp-grid {
  gap: 12px;
}

.cp-admin-section .cp-panel {
  padding: 14px;
  border-radius: 12px;
}

.cp-admin-section .cp-panel-title,
.cp-admin-section h3.cp-panel-title {
  font-size: .95rem;
}

.cp-admin-section .cp-panel-header {
  margin-bottom: 10px;
}

.cp-admin-section .cp-button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: .8rem;
  border-radius: 8px;
}

.cp-admin-form {
  display: grid;
  gap: 8px;
  font-size: .84rem;
}

.cp-admin-form p {
  margin-bottom: 8px;
}

.cp-admin-form label {
  font-size: .78rem;
  font-weight: 700;
  color: #465469;
  margin-bottom: 3px;
}

.cp-admin-form input,
.cp-admin-form select,
.cp-admin-form textarea {
  min-height: 34px;
  padding: 6px 8px;
  font-size: .84rem;
  border-radius: 7px;
}

.cp-admin-form textarea {
  min-height: 76px;
}

.cp-admin-form .helptext {
  display: block;
  font-size: .72rem;
  color: #7b8797;
  margin-top: 2px;
}

.cp-admin-list {
  gap: 6px;
  max-height: 230px;
  margin-top: 12px;
}

.cp-admin-list a {
  padding: 8px 10px;
  border-radius: 8px;
}

.cp-admin-list a strong {
  font-size: .84rem;
}

.cp-admin-list a span,
.cp-admin-section .cp-small {
  font-size: .74rem;
}

.cp-admin-choice-grid {
  gap: 8px;
}

.cp-admin-section .cp-table th {
  padding: 8px 6px;
  font-size: .68rem;
}

.cp-admin-section .cp-table td {
  padding: 9px 6px;
  font-size: .82rem;
}

@media (max-width: 1400px) {
  .cp-grid-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-hero {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .cp-shell { grid-template-columns: 1fr; }
  .cp-sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }
  .cp-grid-hero,
  .cp-grid-4,
  .cp-grid-3,
  .cp-grid-2,
  .cp-stats-grid,
  .cp-hero,
  .cp-bundles,
  .cp-bundles-four,
  .cp-cert-list,
  .cp-cert-list-wide,
  .cp-achievement-grid { grid-template-columns: 1fr; }
  .cp-path,
  .cp-certification-track,
  .cp-level-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-certification-track-line { display: none; }
  .cp-profile-hero,
  .cp-certification-hero { align-items: flex-start; flex-direction: column; }
  .cp-main { padding: 16px; }
  .cp-form-grid,
  .cp-admin-choice-grid { grid-template-columns: 1fr; }
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-height: 820px) and (min-width: 1101px) {
  .cp-sidebar {
    gap: 9px;
  }

  .cp-sidebar-card {
    padding: 10px;
  }

  .cp-free-token-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .cp-free-token-art {
    display: none;
  }

  .cp-free-token-card p {
    display: none;
  }

  .cp-free-token-card .cp-button {
    min-height: 30px;
    padding: 6px 8px;
    font-size: .78rem;
  }

  .cp-nav a,
  .cp-nav button {
    padding-block: 8px;
  }
}

@media (max-width: 560px) {
  .cp-topbar {
    flex-direction: column;
  }

  .cp-page-actions,
  .cp-page-actions .cp-button {
    width: 100%;
    justify-content: stretch;
  }

  .cp-preference-row {
    grid-template-columns: minmax(0, 1fr) 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
