/* Quantrex Academy ID + load mark — original, not a Marks clone */
.qx-load-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 46vh;
  gap: 16px;
  text-align: center;
  padding: 32px 16px;
}
.qx-load-orbit {
  position: relative;
  width: 72px;
  height: 72px;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qx-load-logo .qx-load-ring,
.qx-load-logo .qx-load-ring-2 {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #2563eb;
  border-right-color: #f59e0b;
  animation: qxLoadSpin 0.9s linear infinite;
  pointer-events: none;
}
.qx-load-logo .qx-load-ring-2 {
  inset: -18px;
  border-top-color: #7c3aed;
  border-right-color: #22c55e;
  animation-duration: 1.45s;
  animation-direction: reverse;
}
@keyframes qxLoadSpin { to { transform: rotate(360deg); } }
.qx-load-quote {
  max-width: 340px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #475569;
  font-style: italic;
}
html[data-theme="dark"] .qx-load-quote { color: #cbd5e1; }
.qx-load-orbit::before,
.qx-load-orbit::after {
  content: none !important;
  display: none !important;
}
.qx-load-orbit img,
.qx-load-orbit svg.qx-brand-q {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  object-fit: contain;
  border-radius: 14px;
  background: transparent !important;
  padding: 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  animation: none;
}
.qx-book-pt-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(7, 21, 38, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.qx-book-pt-card {
  width: min(420px, 92vw);
  background: var(--surface, #fff);
  color: var(--text, #0f172a);
  border-radius: 22px;
  padding: 28px 22px 20px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
html[data-theme="dark"] .qx-book-pt-card {
  background: #111827;
  color: #f8fafc;
}
.qx-book-pt-card h3 { margin: 12px 0 6px; font-size: 20px; }
.qx-book-pt-card p { margin: 0 0 16px; font-size: 13px; color: #64748b; font-weight: 600; }
html[data-theme="dark"] .qx-book-pt-card p { color: #cbd5e1; }
.qx-book-pt-card .qx-load-orbit { margin: 0 auto 4px; }
.qx-book-pt-practice,
.qx-book-pt-test,
.qx-book-pt-cancel {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 10px;
}
.qx-book-pt-practice { background: #2563eb; color: #fff; }
.qx-book-pt-test {
  background: linear-gradient(90deg, #f59e0b, #7c3aed);
  color: #fff;
}
.qx-book-pt-cancel { background: transparent; color: #64748b; font-weight: 700; }
.qx-load-logo p {
  font-weight: 800;
  font-size: 14px;
  color: var(--text, #0f172a);
  margin: 0;
}
.qx-load-logo small {
  color: var(--gray, #64748b);
  font-size: 12px;
  font-weight: 600;
}
@keyframes qxLoadSpin { to { transform: rotate(360deg); } }
@keyframes qxLoadPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
  50% { transform: scale(1.04); filter: drop-shadow(0 0 10px rgba(132,80,203,.4)); }
}

.qx-id-card {
  max-width: 520px;
  margin: 0 auto 22px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(132,80,203,.22), transparent 55%),
    linear-gradient(160deg, #10182c 0%, #1a2744 48%, #0f172a 100%);
  color: #f8fafc;
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .28);
  position: relative;
  overflow: hidden;
}
.qx-id-card::before {
  content: "QUANTREX ACADEMY";
  position: absolute;
  right: -8px;
  top: 18px;
  font-size: 11px;
  letter-spacing: .28em;
  font-weight: 800;
  opacity: .18;
  transform: rotate(90deg);
  transform-origin: top right;
}
.qx-id-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.qx-id-av {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(145deg, #8450CB, #1565C0);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(21,101,192,.35);
}
.qx-id-top h2 { margin: 0 0 4px; font-size: 20px; font-family: Kanit, Inter, sans-serif; }
.qx-id-top p { margin: 0; font-size: 12px; color: #cbd5e1; }
.qx-id-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 12px;
  margin-bottom: 14px;
}
.qx-id-meta span { color: #94a3b8; display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.qx-id-meta b { font-size: 13px; font-weight: 800; }
.qx-id-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 14px;
}
.qx-id-stats div {
  background: rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
.qx-id-stats strong { display: block; font-size: 16px; }
.qx-id-stats small { color: #94a3b8; font-size: 10px; font-weight: 700; }
.qx-id-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qx-id-actions .btn-primary,
.qx-id-actions .btn-soft,
.qx-id-actions a.btn-primary {
  text-decoration: none;
}
.qx-id-serial {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .12em;
  color: #a5b4fc;
  margin-top: 10px;
}

.qx-user-card.qx-id-mini {
  padding: 16px;
  border-radius: 18px;
}
.qx-id-mini .qx-id-mini-head {
  display: flex; gap: 10px; align-items: center; margin-bottom: 10px;
}
.qx-id-mini .qx-user-av { width: 40px; height: 40px; border-radius: 12px; font-size: 13px; }
.qx-id-pill {
  display: inline-block;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  margin: 2px 4px 2px 0;
}
html[data-theme="dark"] .qx-id-pill { background: #1e1b4b; color: #c7d2fe; }

.qx-student-desk h3,
.qx-course-box h3 {
  color: inherit;
}
.qx-desk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-top: 8px;
}
.qx-desk-grid span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}
.qx-desk-grid b {
  font-size: 13px;
  font-weight: 800;
  word-break: break-word;
}
html[data-theme="dark"] .qx-course-box {
  background: #111827;
  border-color: #334155;
  color: #f8fafc;
}
html[data-theme="dark"] .qx-desk-grid span,
html[data-theme="dark"] .qx-course-row span {
  color: #cbd5e1;
}
html[data-theme="light"] .qx-course-box {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
}
@media (max-width: 640px) {
  .qx-desk-grid { grid-template-columns: 1fr; }
  .qx-id-stats { grid-template-columns: repeat(2, 1fr); }
}

.qx-notif-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
}
html[data-theme="dark"] .qx-notif-tabs { border-color: #334155; }
.qx-notif-tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 10px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  color: #64748b;
}
.qx-notif-tabs button.on {
  color: #8450CB;
  box-shadow: inset 0 -2px 0 #8450CB;
}
.qx-notif-item[data-kind="activity"] strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  margin-right: 6px;
}
