@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");
:root,
html[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg2: #111827;
  --card: #1a2035;
  --card2: #1f2847;
  --acc: #3b82f6;
  --accL: #60a5fa;
  --accG: rgba(59, 130, 246, 0.3);
  --t1: #f1f5f9;
  --t2: #94a3b8;
  --t3: #64748b;
  --brd: #1e293b;
  --brd2: #334155;
  --danger: #ef4444;
  --home-bg-grad-a: rgba(99, 102, 241, 0.15);
  --home-bg-grad-b: rgba(59, 130, 246, 0.12);
  --home-bg-from: #0a0e1a;
  --home-bg-to: #0d1224;
  --nav-bg: rgba(15, 23, 42, 0.88);
  --nav-bg-scrolled: rgba(15, 23, 42, 0.94);
  --nav-border: rgba(99, 102, 241, 0.4);
  --hero-text-sub: #94a3b8;
  --hero-stats-label: #64748b;
  --card-bg-from: rgba(30, 41, 59, 0.7);
  --card-bg-to: rgba(15, 23, 42, 0.7);
  --card-border: rgba(99, 102, 241, 0.18);
  --card-text: #94a3b8;
  --card-text-strong: #fff;
}
html[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #f1f5f9;
  --acc: #4f46e5;
  --accL: #6366f1;
  --accG: rgba(79, 70, 229, 0.25);
  --t1: #0f172a;
  --t2: #475569;
  --t3: #94a3b8;
  --brd: #e2e8f0;
  --brd2: #cbd5e1;
  --danger: #dc2626;
  --home-bg-grad-a: rgba(99, 102, 241, 0.08);
  --home-bg-grad-b: rgba(59, 130, 246, 0.06);
  --home-bg-from: #f1f5f9;
  --home-bg-to: #e2e8f0;
  --nav-bg: rgba(255, 255, 255, 0.86);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.96);
  --nav-border: rgba(99, 102, 241, 0.3);
  --hero-text-sub: #475569;
  --hero-stats-label: #64748b;
  --card-bg-from: rgba(255, 255, 255, 0.9);
  --card-bg-to: rgba(248, 250, 252, 0.9);
  --card-border: rgba(99, 102, 241, 0.18);
  --card-text: #475569;
  --card-text-strong: #0f172a;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg2);
}
::-webkit-scrollbar-thumb {
  background: var(--brd2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--acc);
}
.header {
  background: linear-gradient(135deg, var(--bg2), var(--card));
  border-bottom: 1px solid var(--brd);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  gap: 16px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-brand-link {
  cursor: pointer;
  border-radius: 10px;
  padding: 4px 8px;
  margin: -4px -8px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.header-brand-link:hover {
  background: rgba(99, 102, 241, 0.1);
}
.header-brand-link:active {
  transform: scale(0.97);
}
.logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bionexus-logo {
  display: block;
  mix-blend-mode: lighten;
  filter: contrast(1.08) saturate(1.1);
}
.bionexus-logo-mark {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  transform: scale(2.1);
}
.bionexus-logo-hero {
  width: 420px;
  height: auto;
  max-width: 90%;
  object-fit: contain;
  filter: contrast(1.05) saturate(1.15) drop-shadow(0 30px 80px rgba(139, 92, 246, 0.55));
  animation: homeFloat 5s ease-in-out infinite;
}
.header h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--t1), var(--accL));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-sub {
  font-size: 11px;
  color: var(--t3);
}
.nav-tabs {
  display: flex;
  gap: 3px;
  background: var(--bg);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--brd);
  flex-wrap: wrap;
}
.nav-tab {
  padding: 8px 14px;
  border: none;
  background: 0;
  color: var(--t2);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 7px;
  transition: 0.3s;
  white-space: nowrap;
}
.nav-tab:hover {
  color: var(--t1);
  background: var(--card);
}
.nav-tab.active {
  background: var(--acc);
  color: #fff;
  box-shadow: 0 2px 10px var(--accG);
}
.app {
  display: flex;
  height: calc(100vh - 65px);
  overflow: hidden;
}
.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--card);
  border-right: 1px solid var(--brd);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sb-head {
  padding: 12px;
  border-bottom: 1px solid var(--brd);
}
.sb-head h2 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--brd);
  border-radius: 6px;
  padding: 5px 8px;
}
.search-box:focus-within {
  border-color: var(--acc);
}
.search-box input {
  background: 0;
  border: 0;
  outline: 0;
  color: var(--t1);
  font-size: 12px;
  font-family: inherit;
  width: 100%;
}
.search-box input::placeholder {
  color: var(--t3);
}
.sb-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}
.bone-group {
  margin-bottom: 1px;
}
.group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  cursor: pointer;
  transition: 0.15s;
  user-select: none;
}
.group-header:hover {
  background: var(--card2);
}
.group-arrow {
  font-size: 9px;
  color: var(--t3);
  transition: transform 0.2s;
  width: 12px;
  text-align: center;
}
.bone-group.open .group-arrow {
  transform: rotate(90deg);
}
.group-icon {
  font-size: 14px;
}
.group-name {
  font-size: 12px;
  font-weight: 600;
  flex: 1;
}
.group-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}
.bone-group.open .group-list {
  max-height: 800px;
}
.group-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--accL);
  padding: 6px 12px 2px 28px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bone-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 28px;
  cursor: pointer;
  transition: 0.15s;
  border-left: 2px solid transparent;
}
.bone-item:hover {
  background: var(--card2);
}
.bone-item.selected {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: var(--acc);
}
.bone-item.search-match {
  background: rgba(59, 130, 246, 0.15);
  border-left-color: var(--accL);
  border-left-width: 3px;
}
.bone-item.search-match .bone-label-text {
  color: var(--accL);
  font-weight: 600;
}
.bone-item.search-match .focus-btn {
  opacity: 1;
}
.bone-label-text {
  font-size: 12px;
  color: var(--t2);
  flex: 1;
}
.bone-item.selected .bone-label-text {
  color: var(--accL);
  font-weight: 500;
}
.search-count {
  font-size: 10px;
  color: var(--accL);
  padding: 4px 12px;
  font-weight: 600;
  display: none;
}
.search-count.visible {
  display: block;
}
.focus-btn {
  background: 0;
  border: 0;
  color: var(--t3);
  font-size: 14px;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: 0.15s;
  opacity: 0;
}
.bone-item:hover .focus-btn {
  opacity: 1;
}
.focus-btn:hover {
  color: var(--acc);
  background: rgba(59, 130, 246, 0.15);
}
.sb-foot {
  padding: 8px 12px;
  border-top: 1px solid var(--brd);
  text-align: center;
  font-size: 10px;
  color: var(--t3);
}
.sb-foot span {
  color: var(--acc);
  font-weight: 700;
  font-size: 12px;
}
.component-item {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--brd);
  margin: 4px 8px;
  cursor: pointer;
  transition: 0.2s;
}
.component-item:hover {
  background: var(--card2);
  border-color: var(--brd2);
}
.component-item.active {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--acc);
}
.component-item h5 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}
.component-item.active h5 {
  color: var(--accL);
}
.component-item p {
  font-size: 10px;
  color: var(--t3);
  line-height: 1.4;
}
.comp-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--acc);
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  margin-right: 6px;
}
.viewer {
  flex: 1;
  position: relative;
  background: radial-gradient(ellipse at center, #1a2332, #0d1117 70%, #080c12);
  overflow: hidden;
}
#canvas3d {
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
}
.view-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--brd2);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.view-label .vl-title {
  font-size: 9px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.view-label .vl-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--accL);
  margin-top: 2px;
}
.vctrls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}
.vbtn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--brd2);
  background: var(--bg2);
  color: var(--t1);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.vbtn:hover {
  background: var(--acc);
  border-color: var(--acc);
}
#tooltip {
  position: fixed;
  background: rgba(20, 20, 40, 0.92);
  color: var(--t1);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  z-index: 200;
  border: 1px solid var(--acc);
  backdrop-filter: blur(8px);
  display: none;
  white-space: nowrap;
}
.bone-name-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  pointer-events: none;
  text-align: left;
  opacity: 0;
  transform: scale(0.92);
  transform-origin: top left;
  transition:
    opacity 0.18s,
    transform 0.18s;
  max-width: 320px;
  will-change: transform, opacity;
}
.bone-name-overlay.visible {
  opacity: 1;
  transform: scale(1);
}
.bone-name-overlay .bno-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 0.95));
  padding: 7px 14px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  display: inline-block;
  line-height: 1.3;
  box-shadow:
    0 8px 24px rgba(220, 38, 38, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.bone-name-overlay .bno-cat {
  font-size: 11px;
  color: #fecaca;
  margin-top: 4px;
  padding: 3px 9px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  display: inline-block;
  backdrop-filter: blur(4px);
}
.info-panel {
  width: 300px;
  min-width: 300px;
  background: var(--card);
  border-left: 1px solid var(--brd);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    min-width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.32s;
}
.info-panel.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  border-left-color: transparent;
}
.info-panel.collapsed .ip-head,
.info-panel.collapsed .ip-body {
  opacity: 0;
  transition: opacity 0.15s;
}
.ip-head {
  padding: 14px;
  border-bottom: 1px solid var(--brd);
}
.ip-head h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accL);
}
.ip-body {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
}
.ip-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 250px;
  text-align: center;
  color: var(--t3);
}
.ip-ph .ph-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.ip-ph img.ph-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  opacity: 0.7;
}
.ip-ph p {
  font-size: 12px;
  line-height: 1.6;
}
.info-section {
  margin-bottom: 14px;
}
.info-section h4 {
  font-size: 10px;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--brd);
}
.info-section p {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.6;
}
.info-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 5px;
  font-size: 11px;
  color: var(--accL);
  margin: 2px 3px 2px 0;
}
.zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.zoom-overlay.active {
  display: flex;
}
.zoom-content {
  background: var(--card);
  border: 1px solid var(--brd2);
  border-radius: 16px;
  padding: 30px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow: auto;
  position: relative;
  text-align: center;
}
.zoom-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--brd2);
  background: var(--bg2);
  color: var(--t1);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.zoom-close:hover {
  background: var(--danger);
  border-color: var(--danger);
}
.zoom-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.zoom-sub {
  color: var(--accL);
  font-size: 13px;
  margin-bottom: 16px;
}
.zoom-desc {
  text-align: left;
  color: var(--t2);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 16px;
  padding: 14px;
  background: var(--bg2);
  border-radius: 8px;
}
.load-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.5s;
  flex-direction: column;
  gap: 12px;
}
.load-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--brd);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.load-text {
  font-size: 13px;
  color: var(--t2);
}
.load-bar {
  width: 200px;
  height: 4px;
  background: var(--brd);
  border-radius: 2px;
  overflow: hidden;
}
.load-fill {
  height: 100%;
  background: var(--acc);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s;
}
.load-error {
  color: var(--danger);
  font-size: 12px;
  max-width: 400px;
  text-align: center;
  line-height: 1.6;
  display: none;
}
.quiz-panel {
  position: absolute;
  bottom: 18px;
  left: 18px;
  width: 340px;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(99, 102, 241, 0.15) inset;
  backdrop-filter: blur(12px);
  z-index: 30;
  font-family: "Inter", sans-serif;
  overflow: hidden;
  transition:
    height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s,
    border-color 0.2s;
  will-change: transform;
}
.quiz-panel.dragging {
  transition: none !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(99, 102, 241, 0.4) inset;
}
.quiz-panel.collapsed {
  height: 48px;
}
.quiz-panel.collapsed .quiz-body {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: grab;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.12), transparent);
  user-select: none;
  touch-action: none;
}
.quiz-header:hover {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), transparent);
}
.quiz-header.dragging {
  cursor: grabbing;
  opacity: 0.85;
}
.quiz-drag-hint {
  font-size: 11px;
  color: #64748b;
  margin-left: 4px;
  letter-spacing: 1px;
}
.quiz-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quiz-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.6));
}
.quiz-title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.4px;
}
.quiz-fold {
  background: 0;
  border: 0;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.3s;
  padding: 4px 8px;
}
.quiz-panel.collapsed .quiz-fold {
  transform: rotate(180deg);
}
.quiz-body {
  padding: 16px;
  transition: all 0.3s;
}
.quiz-stage h3 {
  font-size: 14px;
  color: #f1f5f9;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.4;
}
.quiz-stage p {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.55;
  margin-bottom: 12px;
}
.quiz-intro-icon {
  font-size: 34px;
  text-align: center;
  margin-bottom: 8px;
  animation: quizFloat 2.4s ease-in-out infinite;
}
@keyframes quizFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.quiz-diff-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.quiz-diff {
  flex: 1;
  padding: 7px 4px;
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 7px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}
.quiz-diff:hover {
  background: rgba(71, 85, 105, 0.7);
  border-color: rgba(99, 102, 241, 0.5);
}
.quiz-diff.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: #a78bfa;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.quiz-start-btn {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 0;
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: 0.2s;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.quiz-start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}
.quiz-start-btn:active {
  transform: translateY(0);
}
.quiz-meta {
  margin-bottom: 14px;
}
.quiz-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.quiz-progress-info b {
  color: #e2e8f0;
}
.quiz-score-pill {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 3px 9px;
  border-radius: 10px;
  color: #a78bfa !important;
}
.quiz-score-pill b {
  color: #fff !important;
  font-size: 12px;
}
.quiz-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(51, 65, 85, 0.6);
  border-radius: 3px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  border-radius: 3px;
  width: 10%;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}
.quiz-q-text {
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 14px;
  line-height: 1.5;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}
.quiz-opt {
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.85);
  border: 1.5px solid rgba(71, 85, 105, 0.6);
  border-radius: 9px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.18s;
  font-family: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quiz-opt:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.9);
  border-color: #6366f1;
  transform: translateX(2px);
}
.quiz-opt:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.quiz-opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #a78bfa;
  flex-shrink: 0;
}
.quiz-opt.correct {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
  border-color: #10b981;
  color: #fff;
  animation: quizCorrect 0.5s;
}
.quiz-opt.correct .quiz-opt-letter {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}
.quiz-opt.wrong {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.2));
  border-color: #ef4444;
  color: #fff;
  animation: quizWrong 0.5s;
}
.quiz-opt.wrong .quiz-opt-letter {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
@keyframes quizCorrect {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes quizWrong {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.quiz-feedback {
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 8px;
  font-weight: 500;
}
.quiz-feedback.fb-correct {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}
.quiz-feedback.fb-wrong {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.quiz-skip-btn {
  padding: 7px 14px;
  background: 0;
  border: 1px solid rgba(71, 85, 105, 0.6);
  border-radius: 7px;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}
.quiz-skip-btn:hover {
  background: rgba(71, 85, 105, 0.4);
  color: #e2e8f0;
}
.quiz-next-btn {
  padding: 7px 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 0;
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
  transition: 0.2s;
  margin-left: auto;
}
.quiz-next-btn:hover {
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.quiz-end-badge {
  font-size: 64px;
  text-align: center;
  margin-bottom: 8px;
  animation: quizBadgeIn 0.8s cubic-bezier(0.4, 1.6, 0.6, 1);
  filter: drop-shadow(0 6px 18px rgba(251, 191, 36, 0.5));
}
@keyframes quizBadgeIn {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
.quiz-final-score {
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.quiz-final-score span {
  font-size: 24px;
  color: #64748b;
  -webkit-text-fill-color: #64748b;
}
.quiz-end-msg {
  text-align: center;
  color: #cbd5e1;
  font-size: 12px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.quiz-time {
  text-align: center;
  color: #64748b;
  font-size: 11px;
  margin-bottom: 12px;
}
.home-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.12), transparent 50%),
    linear-gradient(180deg, #0a0e1a 0%, #0d1224 100%);
  overflow-y: auto;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  color: #e2e8f0;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
.home-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 40px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 0;
  border-bottom: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transform: none;
  width: auto;
  max-width: 100vw;
  margin-left: auto;
  margin-right: auto;
  transition:
    padding 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    gap 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    background 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-radius 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    max-width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    top 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: padding, background, border-radius, max-width, top;
}
.home-nav.scrolled {
  top: 14px;
  left: 0;
  right: 0;
  transform: none;
  margin-left: auto;
  margin-right: auto;
  max-width: min(940px, calc(100vw - 24px));
  padding: 8px 10px 8px 22px;
  gap: 18px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 999px;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(99, 102, 241, 0.18) inset;
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}
.home-brand:hover {
  opacity: 0.85;
}
.home-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 9px;
  filter: drop-shadow(0 4px 16px rgba(99, 102, 241, 0.5));
}
.home-brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}
.home-nav-center {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.home-nav.scrolled .home-nav-center {
  flex: 0 0 auto;
}
.home-nav-center a {
  padding: 9px 18px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px;
  letter-spacing: 0.2px;
}
.home-nav-center a:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.14);
}
.home-nav-center a.active {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}
.home-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.home-login-btn {
  padding: 10px 22px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: 0.2s;
}
.home-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.55);
}
.home-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 120px 60px 80px;
  min-height: 100vh;
}
.home-hero-inner {
  position: relative;
  z-index: 5;
}
.home-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.home-hero-badge span {
  color: #a78bfa;
  font-weight: 600;
}
.home-hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 24px;
}
.home-hero-grad {
  background: linear-gradient(135deg, #6366f1, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 36px;
  max-width: 560px;
}
.home-hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.home-cta-primary {
  padding: 15px 30px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.home-cta-primary span {
  transition: transform 0.2s;
}
.home-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(99, 102, 241, 0.6);
}
.home-cta-primary:hover span {
  transform: translateX(4px);
}
.home-cta-secondary {
  padding: 15px 30px;
  background: rgba(51, 65, 85, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
  transition: 0.2s;
  backdrop-filter: blur(8px);
}
.home-cta-secondary:hover {
  background: rgba(71, 85, 105, 0.55);
  border-color: rgba(99, 102, 241, 0.55);
  transform: translateY(-2px);
}
.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 560px;
  padding-top: 32px;
  border-top: 1px solid rgba(99, 102, 241, 0.15);
}
.home-hero-stats div {
  display: flex;
  flex-direction: column;
}
.home-hero-stats b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.home-hero-stats span {
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.home-hero-visual {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.home-hero-visual .solar-system {
  transform: translateX(40px);
}
@keyframes homeFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-12px);
  }
}
.solar-system {
  position: relative;
  width: 540px;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.solar-sun {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 230px;
  height: auto;
  z-index: 8;
  animation: homeFloat 6s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.4))
    drop-shadow(0 14px 36px rgba(99, 102, 241, 0.28)) contrast(1.08) saturate(1.15);
  opacity: 0;
  transition: opacity 0.35s;
}
.solar-sun.cleaned {
  opacity: 1;
}
.solar-system:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.3),
    rgba(99, 102, 241, 0.12) 45%,
    transparent 75%
  );
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: sunPulse 4s ease-in-out infinite;
}
@keyframes sunPulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(165, 180, 252, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-1 {
  width: 280px;
  height: 280px;
}
.orbit-2 {
  width: 330px;
  height: 330px;
  border-color: rgba(244, 114, 182, 0.18);
}
.orbit-3 {
  width: 380px;
  height: 380px;
  border-color: rgba(99, 102, 241, 0.18);
}
.orbit-4 {
  width: 430px;
  height: 430px;
  border-color: rgba(167, 139, 250, 0.2);
}
.orbit-5 {
  width: 480px;
  height: 480px;
  border-color: rgba(96, 165, 250, 0.16);
}
.orbit-6 {
  width: 540px;
  height: 540px;
  border-color: rgba(16, 185, 129, 0.14);
}
.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -19px 0 0 -19px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.18),
    rgba(99, 102, 241, 0.12)
  );
  border: 1px solid rgba(165, 180, 252, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transform: translate(0, -140px);
  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(6px);
  overflow: hidden;
  font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  will-change: transform;
}
.system-icon {
  font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}
.planet-img {
  padding: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.2),
    rgba(236, 72, 153, 0.18)
  );
  border-color: rgba(244, 114, 182, 0.45);
}
.planet-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transform: scale(1.25);
}
.home-systems {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 60px 40px;
}
.home-systems-sub {
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.65;
  max-width: 680px;
  margin: -28px auto 36px;
}
.home-systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.system-card {
  position: relative;
  padding: 26px;
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 16px;
  transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.system-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(99, 102, 241, 0.1), transparent);
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
}
.system-card.ready {
  cursor: pointer;
}
.system-card.ready:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 14px 38px rgba(99, 102, 241, 0.3);
}
.system-card.ready:hover:before {
  opacity: 1;
}
.system-card.upcoming {
  cursor: not-allowed;
  opacity: 0.86;
}
.system-card.upcoming:hover {
  border-color: rgba(239, 68, 68, 0.35);
}
.system-card.planned {
  cursor: not-allowed;
  opacity: 0.7;
}
.system-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.system-icon-img {
  padding: 0;
}
.system-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transform: scale(1.18);
}
.system-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.system-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 14px;
}
.system-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge-ready {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.badge-soon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.badge-planned {
  background: rgba(99, 102, 241, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.home-features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 60px;
}
.home-section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.8px;
}
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.home-feat-card {
  padding: 32px;
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 18px;
  transition: 0.3s;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.home-feat-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(99, 102, 241, 0.08), transparent);
  opacity: 0;
  transition: 0.3s;
}
.home-feat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 36px rgba(99, 102, 241, 0.2);
}
.home-feat-card:hover:before {
  opacity: 1;
}
.home-feat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.home-feat-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  font-family: "Space Grotesk", sans-serif;
}
.home-feat-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
}
.home-learn {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 60px 80px;
}
.home-learn-sub {
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
  max-width: 680px;
  margin: -28px auto 36px;
}
.home-learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.home-learn-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.home-learn-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(99, 102, 241, 0.1), transparent);
  opacity: 0;
  transition: 0.3s;
}
.home-learn-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 14px 38px rgba(99, 102, 241, 0.25);
}
.home-learn-card:hover:before {
  opacity: 1;
}
.home-learn-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.home-learn-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.home-learn-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 18px;
  flex: 1;
}
.home-learn-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.2px;
  transition: gap 0.2s;
}
.home-learn-card:hover .home-learn-btn {
  color: #c4b5fd;
  gap: 10px;
}
.home-learn-hint {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #64748b;
  letter-spacing: 0.2px;
}
.home-learn-hint code {
  background: rgba(99, 102, 241, 0.12);
  padding: 2px 8px;
  border-radius: 5px;
  color: #a78bfa;
  font-family: "Space Grotesk", monospace;
  font-size: 12px;
}
.home-cta-section {
  padding: 60px;
  max-width: 1280px;
  margin: 0 auto;
}
.home-cta-box {
  padding: 60px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.15),
    rgba(139, 92, 246, 0.1),
    rgba(236, 72, 153, 0.08)
  );
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 24px;
  text-align: center;
  backdrop-filter: blur(12px);
}
.home-cta-box h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.home-cta-box p {
  font-size: 16px;
  color: #94a3b8;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.home-cta-box .home-hero-cta {
  justify-content: center;
  margin-bottom: 0;
}
.home-footer {
  padding: 40px 60px;
  border-top: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  max-width: 1280px;
  margin: 0 auto;
}
.home-credit {
  letter-spacing: 1px;
}
@media (max-width: 900px) {
  .home-nav {
    padding: 12px 18px;
    gap: 12px;
  }
  .home-nav.scrolled {
    padding: 7px 8px 7px 16px;
  }
  .home-nav-center {
    display: none;
  }
  .home-learn {
    padding: 40px 24px 60px;
  }
  .home-learn-grid {
    grid-template-columns: 1fr;
  }
  .home-systems {
    padding: 40px 24px;
  }
  .home-systems-grid {
    grid-template-columns: 1fr;
  }
  .home-hero {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    text-align: center;
  }
  .home-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .home-hero-title {
    font-size: 42px;
  }
  .home-hero-visual {
    height: 380px;
    order: -1;
    overflow: hidden;
    justify-content: center;
  }
  .home-hero-visual .solar-system {
    transform: scale(0.4);
    transform-origin: center;
  }
  .home-hero-cta {
    justify-content: center;
  }
  .home-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 auto;
  }
  .home-features {
    padding: 60px 24px;
  }
  .home-section-title {
    font-size: 30px;
  }
  .home-features-grid {
    grid-template-columns: 1fr;
  }
  .home-cta-box {
    padding: 36px 24px;
  }
  .home-cta-box h2 {
    font-size: 26px;
  }
}
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  animation: loginFadeIn 0.25s;
}
.login-modal.active {
  display: flex;
}
@keyframes loginFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.login-card {
  width: 380px;
  max-width: 90vw;
  background: linear-gradient(155deg, #0f172a, #1e1b4b);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  animation: loginSlideIn 0.35s cubic-bezier(0.4, 1.4, 0.6, 1);
}
@keyframes loginSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(51, 65, 85, 0.5);
  border: 0;
  color: #cbd5e1;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.login-close:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}
.login-tabs {
  display: flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.login-tab {
  flex: 1;
  padding: 9px;
  background: 0;
  border: 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 7px;
  transition: 0.2s;
  font-family: inherit;
}
.login-tab.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.login-form h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 700;
}
.login-form label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}
.login-form label:first-of-type {
  margin-top: 0;
}
.login-form input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 9px;
  color: #e2e8f0;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: 0.2s;
}
.login-form input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.login-error {
  color: #fca5a5;
  font-size: 12px;
  margin-top: 10px;
  min-height: 16px;
}
.login-submit {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: 0.2s;
}
.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}
.login-guest {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: #64748b;
}
.login-guest a {
  color: #a78bfa;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}
.chatbox-widget {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 5500;
  font-family: "Inter", sans-serif;
}
.chatbox-toggle {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 8px 32px rgba(99, 102, 241, 0.5),
    0 0 0 4px rgba(99, 102, 241, 0.15);
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chatbox-toggle:hover {
  transform: scale(1.06);
}
.chatbox-toggle.active {
  background: #ef4444;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.5);
}
.chatbox-toggle-icon {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.chatbox-toggle-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.5);
  animation: chatPulse 2s ease-out infinite;
}
@keyframes chatPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
.chatbox-toggle.active .chatbox-toggle-pulse {
  display: none;
}
.chatbox-panel {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 36px);
  height: 520px;
  max-height: 75vh;
  background: linear-gradient(155deg, #0f172a, #1e1b4b);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
  overflow: hidden;
}
.chatbox-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chatbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.18), transparent);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}
.chatbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
}
.chatbox-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
.chatbox-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
}
.chatbox-status {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.chatbox-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: chatDotPulse 2s infinite;
}
@keyframes chatDotPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.chatbox-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(51, 65, 85, 0.4);
  border: 0;
  color: #cbd5e1;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.chatbox-close:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}
.chatbox-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #475569 transparent;
}
.chatbox-messages::-webkit-scrollbar {
  width: 5px;
}
.chatbox-messages::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 3px;
}
.chat-msg {
  display: flex;
  animation: chatMsgIn 0.3s ease-out;
}
.chat-msg.chat-user {
  justify-content: flex-end;
}
@keyframes chatMsgIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-bubble {
  max-width: 80%;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
}
.chat-bot .chat-bubble {
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}
.chat-bubble p {
  margin: 0 0 7px 0;
}
.chat-bubble p:last-child {
  margin-bottom: 0;
}
.chat-bubble ul {
  margin: 3px 0 7px 0;
  padding-left: 18px;
}
.chat-bubble ul:last-child {
  margin-bottom: 0;
}
.chat-bubble li {
  margin: 0;
  padding: 1px 0;
  line-height: 1.45;
}
.chat-bubble code {
  background: rgba(99, 102, 241, 0.18);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.chat-bubble pre {
  background: rgba(15, 23, 42, 0.6);
  padding: 8px 10px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 12px;
  margin: 6px 0;
  white-space: pre-wrap;
}
.chat-bubble b {
  color: #c7d2fe;
}
html[data-theme="light"] .chat-bubble b {
  color: #4338ca;
}
.chat-user .chat-bubble {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.chat-bubble i {
  color: #a78bfa;
  font-style: italic;
  cursor: pointer;
}
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 9px 14px;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  background: #a78bfa;
  border-radius: 50%;
  animation: chatTyping 1.4s infinite;
}
.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes chatTyping {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
.chatbox-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(99, 102, 241, 0.18);
  background: rgba(15, 23, 42, 0.4);
}
.chatbox-input-row input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  color: #e2e8f0;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: 0.2s;
}
.chatbox-input-row input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.chatbox-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  flex-shrink: 0;
}
.chatbox-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 99px;
  font-size: 12px;
  color: #a78bfa;
  cursor: pointer;
}
.user-badge-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
body.mode-skeleton .quiz-panel,
body.mode-skeleton .quiz-backdrop {
  display: none !important;
}
body.mode-quiz .sidebar,
body.mode-quiz .info-panel,
body.mode-quiz .nav-tabs,
body.mode-quiz .view-label,
body.mode-quiz .vctrls,
body.mode-quiz .bone-name-overlay,
body.mode-quiz .header-right .admin-btn,
body.mode-quiz #cur-label,
body.mode-quiz .header-sub {
  display: none !important;
}
body.mode-quiz .app {
  height: calc(100vh - 65px);
}
body.mode-quiz .viewer {
  flex: 1;
}
body.mode-quiz #bnoName,
body.mode-quiz #bnoCat {
  display: none;
}
body.mode-quiz #tooltip {
  display: none !important;
}
body.mode-quiz .chatbox-widget {
  display: none !important;
}
body.mode-quiz .app {
  display: flex;
  position: relative;
}
body.mode-quiz .viewer {
  flex: 1;
  margin-left: 420px;
}
body.mode-quiz .quiz-panel {
  position: fixed;
  top: 65px;
  left: 0;
  bottom: 0;
  right: auto;
  width: 420px;
  max-width: 100vw;
  transform: none;
  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.97), rgba(30, 27, 75, 0.95));
  box-shadow:
    6px 0 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(99, 102, 241, 0.12) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: quizSlideIn 0.45s cubic-bezier(0.4, 1, 0.4, 1);
  z-index: 50;
}
body.mode-quiz .quiz-panel.collapsed {
  height: auto;
}
body.mode-quiz .quiz-header {
  cursor: default;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(139, 92, 246, 0.15));
  border-bottom: 1px solid rgba(99, 102, 241, 0.25);
  flex: 0 0 auto;
}
body.mode-quiz .quiz-header:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(139, 92, 246, 0.15));
}
body.mode-quiz .quiz-drag-hint {
  display: none;
}
body.mode-quiz .quiz-body {
  padding: 22px 26px 26px;
  flex: 1;
  overflow-y: auto;
}
body.mode-quiz .quiz-fold {
  display: none;
}
body.mode-quiz .quiz-title {
  font-size: 14px;
}
body.mode-quiz .quiz-stage h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
body.mode-quiz .quiz-stage p {
  font-size: 13px;
}
body.mode-quiz .quiz-q-text {
  font-size: 15px;
  margin-bottom: 18px;
}
body.mode-quiz .quiz-opt {
  padding: 13px 16px;
  font-size: 13.5px;
}
body.mode-quiz .quiz-diff-row {
  margin-bottom: 18px;
}
body.mode-quiz .quiz-final-score {
  font-size: 54px;
}
body.mode-quiz .quiz-final-score span {
  font-size: 30px;
}
body.mode-quiz .quiz-backdrop {
  display: none !important;
}
@keyframes quizSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 900px) {
  body.mode-quiz .quiz-panel {
    width: 100%;
    height: auto;
    max-height: 55vh;
    top: 65px;
    bottom: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.35);
  }
  body.mode-quiz .viewer {
    margin-left: 0;
    margin-top: 55vh;
  }
}
.quiz-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.quiz-exit {
  background: 0;
  border: 0;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 6px;
  transition: 0.18s;
  display: none;
  font-family: inherit;
  line-height: 1;
}
.quiz-exit:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}
body.mode-quiz .quiz-exit {
  display: inline-block;
}
.quiz-backdrop {
  display: none;
}
.home-feat-clickable {
  cursor: pointer;
}
.home-feat-clickable:hover .home-feat-cta {
  color: #c4b5fd;
  gap: 10px;
}
.home-feat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.2px;
  transition:
    gap 0.2s,
    color 0.2s;
}
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}
.chat-chip {
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 99px;
  color: #c4b5fd;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: 0.18s;
  white-space: nowrap;
}
.chat-chip:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}
@media (max-width: 1100px) {
  .info-panel {
    display: none;
  }
  .sidebar {
    width: 220px;
    min-width: 220px;
  }
  .quiz-panel {
    width: 300px;
  }
}
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .header {
    padding: 8px 12px;
  }
  .nav-tabs {
    gap: 2px;
  }
  .nav-tab {
    padding: 6px 10px;
    font-size: 11px;
  }
}
.lang-switch {
  display: inline-flex;
  gap: 0;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  padding: 2px;
  backdrop-filter: blur(8px);
}
.lang-btn {
  padding: 5px 10px;
  background: 0;
  border: 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.5px;
  transition: 0.18s;
}
.lang-btn:hover {
  color: #e2e8f0;
}
.lang-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-btn,
.user-btn {
  padding: 7px 12px;
  background: rgba(51, 65, 85, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.18s;
}
.admin-btn:hover,
.user-btn:hover {
  background: rgba(71, 85, 105, 0.7);
  border-color: rgba(99, 102, 241, 0.5);
}
.user-avatar {
  font-size: 13px;
}
.home-nav-right .lang-switch {
  margin: 0 2px;
}
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 6500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  display: flex;
  animation: loginFadeIn 0.25s;
}
.admin-card {
  width: 520px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(155deg, #0f172a, #1e1b4b);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}
.admin-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(51, 65, 85, 0.55);
  border: 0;
  color: #cbd5e1;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.admin-close:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}
.admin-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
  padding-right: 30px;
}
.admin-sub {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 18px;
}
.admin-auth label,
.admin-fields label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin: 12px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.admin-auth input,
.admin-fields input,
.admin-fields textarea,
.admin-bone-pick select {
  width: 100%;
  padding: 10px 13px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: 0.18s;
}
.admin-auth input:focus,
.admin-fields input:focus,
.admin-fields textarea:focus,
.admin-bone-pick select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.admin-fields textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.5;
}
.admin-auth button,
.admin-actions button {
  padding: 10px 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
  margin-top: 14px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.admin-auth button:hover,
.admin-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5);
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.admin-actions .admin-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.admin-bone-pick {
  margin-bottom: 6px;
}
.admin-bone-pick label {
  display: block;
  font-size: 11px;
  color: #a78bfa;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.admin-err {
  color: #fca5a5;
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 99px;
  padding: 4px;
  cursor: pointer;
  font-family: inherit;
}
.theme-toggle button {
  width: 30px;
  height: 30px;
  border: 0;
  background: 0;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
  transition: 0.18s;
}
.theme-toggle button.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}
html[data-theme="light"] .home-overlay {
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.12), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.08), transparent 50%),
    linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #1e293b;
}
html[data-theme="light"] .home-nav {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(99, 102, 241, 0.18);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .home-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .home-brand-text {
  background: linear-gradient(135deg, #1e293b, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .home-nav-center a {
  color: #475569;
}
html[data-theme="light"] .home-nav-center a:hover {
  color: #1e293b;
  background: rgba(99, 102, 241, 0.1);
}
html[data-theme="light"] .home-hero-title {
  color: #0f172a;
}
html[data-theme="light"] .home-hero-sub {
  color: #475569;
}
html[data-theme="light"] .home-hero-stats b {
  background: linear-gradient(135deg, #1e293b, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .home-hero-stats span {
  color: #64748b;
}
html[data-theme="light"] .home-hero-stats {
  border-top-color: rgba(99, 102, 241, 0.18);
}
html[data-theme="light"] .home-hero-badge {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  color: #475569;
}
html[data-theme="light"] .home-hero-badge span {
  color: #6366f1;
}
html[data-theme="light"] .home-cta-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(99, 102, 241, 0.3);
  color: #1e293b;
}
html[data-theme="light"] .home-cta-secondary:hover {
  background: #fff;
  border-color: rgba(99, 102, 241, 0.5);
}
html[data-theme="light"] .home-section-title {
  color: #0f172a;
}
html[data-theme="light"] .home-systems-sub,
html[data-theme="light"] .home-learn-sub {
  color: #475569;
}
html[data-theme="light"] .system-card,
html[data-theme="light"] .home-feat-card,
html[data-theme="light"] .home-learn-card {
  background: linear-gradient(155deg, #ffffff, #f8fafc);
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .system-card:hover,
html[data-theme="light"] .home-feat-card:hover,
html[data-theme="light"] .home-learn-card:hover {
  box-shadow: 0 14px 38px rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
}
html[data-theme="light"] .system-card h3,
html[data-theme="light"] .home-feat-card h3,
html[data-theme="light"] .home-learn-card h3 {
  color: #0f172a;
}
html[data-theme="light"] .system-card p,
html[data-theme="light"] .home-feat-card p,
html[data-theme="light"] .home-learn-card p {
  color: #475569;
}
html[data-theme="light"] .badge-planned {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.3);
}
html[data-theme="light"] .home-cta-box {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08),
    rgba(139, 92, 246, 0.06),
    rgba(236, 72, 153, 0.04)
  );
  border-color: rgba(99, 102, 241, 0.25);
}
html[data-theme="light"] .home-cta-box h2 {
  color: #0f172a;
}
html[data-theme="light"] .home-cta-box p {
  color: #475569;
}
html[data-theme="light"] .home-footer {
  color: #64748b;
  border-top-color: rgba(99, 102, 241, 0.18);
}
html[data-theme="light"] .home-learn-hint {
  color: #94a3b8;
}
html[data-theme="light"] .home-learn-hint code {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}
html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(99, 102, 241, 0.25);
}
html[data-theme="light"] .theme-toggle button {
  color: #64748b;
}
html[data-theme="light"] .lang-switch {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(99, 102, 241, 0.25);
}
html[data-theme="light"] .lang-btn {
  color: #475569;
}
html[data-theme="light"] .home-feat-cta,
html[data-theme="light"] .home-learn-btn {
  color: #6366f1;
}
html[data-theme="light"] .header {
  background: linear-gradient(135deg, #fff, #f8fafc);
  border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .header h1 {
  background: linear-gradient(135deg, #0f172a, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .header-sub {
  color: #64748b;
}
html[data-theme="light"] .nav-tabs {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
html[data-theme="light"] .nav-tab {
  color: #475569;
}
html[data-theme="light"] .nav-tab:hover {
  background: #fff;
  color: #0f172a;
}
html[data-theme="light"] .sidebar,
html[data-theme="light"] .info-panel {
  background: #fff;
  border-color: #e2e8f0;
}
html[data-theme="light"] .sb-head,
html[data-theme="light"] .ip-head {
  border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .sb-head h2,
html[data-theme="light"] .ip-head h3 {
  color: #0f172a;
}
html[data-theme="light"] .search-box {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
html[data-theme="light"] .search-box input {
  color: #1e293b;
}
html[data-theme="light"] .sb-foot {
  border-top-color: #e2e8f0;
  color: #64748b;
}
html[data-theme="light"] .group-header:hover,
html[data-theme="light"] .bone-item:hover {
  background: #f1f5f9;
}
html[data-theme="light"] .bone-label-text {
  color: #475569;
}
html[data-theme="light"] .ip-body,
html[data-theme="light"] .ip-ph p {
  color: #475569;
}
html[data-theme="light"] .info-section p {
  color: #475569;
}
html[data-theme="light"] .info-section h4 {
  color: #64748b;
  border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .vbtn {
  background: #fff;
  border-color: #e2e8f0;
  color: #1e293b;
}
html[data-theme="light"] .view-label {
  background: rgba(255, 255, 255, 0.92);
  border-color: #e2e8f0;
}
html[data-theme="light"] .view-label .vl-title {
  color: #64748b;
}
html[data-theme="light"] .viewer {
  background: radial-gradient(ellipse at center, #f8fafc, #e2e8f0 70%, #cbd5e1);
}
html[data-theme="light"] .chatbox-panel,
html[data-theme="light"] .login-card,
html[data-theme="light"] .admin-card {
  background: linear-gradient(155deg, #fff, #f8fafc);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}
html[data-theme="light"] .chatbox-title {
  color: #0f172a;
}
html[data-theme="light"] .chatbox-status,
html[data-theme="light"] .chat-bot .chat-bubble {
  color: #1e293b;
}
html[data-theme="light"] .chat-bot .chat-bubble {
  background: #f1f5f9;
  border-color: rgba(99, 102, 241, 0.15);
}
html[data-theme="light"] .chatbox-input-row input {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .chatbox-input-row {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}
html[data-theme="light"] .login-form h3,
html[data-theme="light"] .admin-card h2 {
  color: #0f172a;
}
html[data-theme="light"] .login-form input,
html[data-theme="light"] .admin-auth input,
html[data-theme="light"] .admin-fields input,
html[data-theme="light"] .admin-fields textarea,
html[data-theme="light"] .admin-bone-pick select {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .login-tabs {
  background: #f1f5f9;
}
html[data-theme="light"] .login-tab {
  color: #475569;
}

.auth-page {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: linear-gradient(180deg, #0a0e1a 0%, #0d1224 100%);
  display: none;
  overflow-y: auto;
  font-family: "Inter", sans-serif;
  color: #e2e8f0;
  animation: authIn 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.auth-page.active {
  display: block;
}
@keyframes authIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-back {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #cbd5e1;
  padding: 9px 16px;
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  transition: 0.2s;
}
.auth-back:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateX(-2px);
}
.auth-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}
.auth-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  overflow: hidden;
}
.auth-art-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.28), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.18), transparent 55%),
    linear-gradient(160deg, #1e1b4b, #0f172a 60%);
  z-index: 0;
}
.auth-art-bg:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  animation: authPulse 6s ease-in-out infinite;
}
@keyframes authPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
.auth-art-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.auth-brand-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  overflow: hidden;
  filter: drop-shadow(0 4px 16px rgba(99, 102, 241, 0.55));
}
.auth-brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-art-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 18px;
}
.auth-art-sub {
  font-size: 16px;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 34px;
}
.auth-art-points {
  list-style: none;
  margin-bottom: 38px;
}
.auth-art-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 0;
  font-size: 14px;
  color: #e2e8f0;
}
.auth-point-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.auth-art-quote {
  padding: 18px 22px;
  background: rgba(15, 23, 42, 0.55);
  border-left: 3px solid #a78bfa;
  border-radius: 0 14px 14px 0;
  backdrop-filter: blur(8px);
}
.auth-art-quote p {
  font-size: 14px;
  line-height: 1.55;
  color: #e2e8f0;
  font-style: italic;
  margin-bottom: 6px;
}
.auth-art-quote span {
  font-size: 12px;
  color: #a78bfa;
  font-weight: 600;
}
.auth-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 70px;
  position: relative;
  background: linear-gradient(180deg, #0a0e1a 0%, #0d1224 100%);
}
.auth-pane-top {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.auth-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 36px;
  max-width: 380px;
  position: relative;
}
.auth-tab {
  flex: 1;
  padding: 11px 16px;
  background: 0;
  border: 0;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.25s;
  font-family: inherit;
  position: relative;
  z-index: 1;
}
.auth-tab.active {
  color: #fff;
}
.auth-tab-ind {
  position: absolute;
  top: 5px;
  bottom: 5px;
  width: calc(50% - 5px);
  left: 5px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 0;
}
.auth-tabs[data-active="register"] .auth-tab-ind {
  transform: translateX(100%);
}
.auth-form {
  max-width: 420px;
  animation: authFormIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes authFormIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-h {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.auth-sub {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 28px;
  line-height: 1.55;
}
.auth-field {
  position: relative;
  margin-bottom: 18px;
}
.auth-field label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
}
.auth-field input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  border-radius: 11px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: 0.22s;
}
.auth-field input:focus {
  border-color: #6366f1;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.auth-field input::placeholder {
  color: #475569;
}
.auth-field-pass {
  position: relative;
}
.auth-toggle-pass {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: 0;
  border: 0;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.18s;
}
.auth-toggle-pass:hover {
  color: #a78bfa;
  background: rgba(99, 102, 241, 0.1);
}
.auth-error {
  color: #fca5a5;
  font-size: 13px;
  min-height: 18px;
  margin-top: -6px;
  margin-bottom: 14px;
  padding-left: 2px;
}
.auth-submit {
  width: 100%;
  padding: 14px 22px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
  transition: 0.22s;
  margin-bottom: 18px;
}
.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(99, 102, 241, 0.6);
}
.auth-submit:active {
  transform: translateY(0);
}
.auth-arrow {
  transition: transform 0.2s;
}
.auth-submit:hover .auth-arrow {
  transform: translateX(4px);
}
.auth-divider {
  position: relative;
  text-align: center;
  margin: 18px 0;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.auth-divider:before,
.auth-divider:after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: rgba(99, 102, 241, 0.18);
}
.auth-divider:before {
  left: 0;
}
.auth-divider:after {
  right: 0;
}
.auth-secondary {
  width: 100%;
  padding: 13px 22px;
  background: rgba(51, 65, 85, 0.4);
  border: 1.5px solid rgba(99, 102, 241, 0.18);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}
.auth-secondary:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}
.auth-fineprint {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
}
html[data-theme="light"] .auth-page {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #0f172a;
}
html[data-theme="light"] .auth-pane {
  background: linear-gradient(180deg, #fff, #f8fafc);
}
html[data-theme="light"] .auth-back {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(99, 102, 241, 0.2);
  color: #0f172a;
}
html[data-theme="light"] .auth-h {
  color: #0f172a;
}
html[data-theme="light"] .auth-sub {
  color: #475569;
}
html[data-theme="light"] .auth-field input {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .auth-field input:focus {
  background: #fff;
  border-color: #6366f1;
}
html[data-theme="light"] .auth-tabs {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
html[data-theme="light"] .auth-tab {
  color: #475569;
}
html[data-theme="light"] .auth-secondary {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
}
html[data-theme="light"] .auth-art-bg {
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.14), transparent 55%),
    linear-gradient(160deg, #4c1d95, #1e1b4b 60%);
}
@media (max-width: 900px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .auth-art {
    display: none;
  }
  .auth-pane {
    padding: 80px 32px 40px;
  }
}

.user-menu {
  position: relative;
  display: inline-flex;
}
.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 99px;
  cursor: pointer;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: 0.18s;
}
.user-menu-trigger:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.55);
  transform: translateY(-1px);
}
.user-menu-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.45);
}
.user-menu-caret {
  font-size: 10px;
  color: #a78bfa;
  transition: transform 0.2s;
}
.user-menu.open .user-menu-caret {
  transform: rotate(180deg);
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: linear-gradient(155deg, #0f172a, #1e1b4b);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 14px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(99, 102, 241, 0.18) inset;
  padding: 6px;
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 200;
}
.user-menu.open .user-menu-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 14px;
  background: 0;
  border: 0;
  cursor: pointer;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  border-radius: 9px;
  transition:
    background 0.15s,
    color 0.15s;
}
.user-menu-item:hover {
  background: rgba(99, 102, 241, 0.16);
  color: #fff;
}
.user-menu-ic {
  font-size: 16px;
  width: 20px;
  text-align: center;
  opacity: 0.85;
}
.user-menu-divider {
  height: 1px;
  background: rgba(99, 102, 241, 0.2);
  margin: 5px 4px;
}
.user-menu-logout {
  color: #fca5a5;
}
.user-menu-logout:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}
html[data-theme="light"] .user-menu-trigger {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(99, 102, 241, 0.28);
  color: #0f172a;
}
html[data-theme="light"] .user-menu-trigger:hover {
  background: #fff;
}
html[data-theme="light"] .user-menu-dropdown {
  background: linear-gradient(155deg, #fff, #f8fafc);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}
html[data-theme="light"] .user-menu-item {
  color: #1e293b;
}
html[data-theme="light"] .user-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}
html[data-theme="light"] .user-menu-divider {
  background: #e2e8f0;
}

.profile-page {
  position: fixed;
  inset: 0;
  z-index: 5800;
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.14), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.1), transparent 50%),
    linear-gradient(180deg, #0a0e1a 0%, #0d1224 100%);
  overflow-y: auto;
  font-family: "Inter", sans-serif;
  color: #e2e8f0;
  display: none;
  animation: profileFadeIn 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.profile-page.active {
  display: block;
}
@keyframes profileFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.profile-back {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #cbd5e1;
  padding: 9px 16px;
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  transition: 0.2s;
}
.profile-back:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateX(-2px);
}
.profile-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 90px 50px 0;
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 32px 0 28px;
}
.profile-avatar-big {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  box-shadow:
    0 14px 36px rgba(99, 102, 241, 0.45),
    0 0 0 4px rgba(255, 255, 255, 0.06) inset;
  flex-shrink: 0;
}
.profile-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.profile-email {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 4px;
}
.profile-tagline {
  font-size: 12px;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.profile-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 0;
}
.profile-tab {
  padding: 14px 22px;
  background: 0;
  border: 0;
  color: #94a3b8;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: 0.2s;
}
.profile-tab:hover {
  color: #e2e8f0;
}
.profile-tab.active {
  color: #a78bfa;
  border-bottom-color: #a78bfa;
}
.profile-tab-ic {
  font-size: 16px;
}
.profile-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 50px 80px;
  min-height: 50vh;
}
.profile-section {
  display: none;
  animation: profileSectionIn 0.25s ease;
}
.profile-section.active {
  display: block;
}
@keyframes profileSectionIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.profile-section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 700;
}
.profile-placeholder {
  padding: 48px 32px;
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.5));
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: 14px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
}
html[data-theme="light"] .profile-page {
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.1), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.06), transparent 50%),
    linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #0f172a;
}
html[data-theme="light"] .profile-back {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 102, 241, 0.25);
  color: #0f172a;
}
html[data-theme="light"] .profile-name {
  color: #0f172a;
}
html[data-theme="light"] .profile-email {
  color: #475569;
}
html[data-theme="light"] .profile-tab {
  color: #64748b;
}
html[data-theme="light"] .profile-tab:hover {
  color: #0f172a;
}
html[data-theme="light"] .profile-tab.active {
  color: #6366f1;
  border-bottom-color: #6366f1;
}
html[data-theme="light"] .profile-tabs {
  border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .profile-section h2 {
  color: #0f172a;
}
html[data-theme="light"] .profile-placeholder {
  background: #fff;
  border-color: #e2e8f0;
  color: #64748b;
}
@media (max-width: 700px) {
  .profile-header,
  .profile-body {
    padding-left: 24px;
    padding-right: 24px;
  }
  .profile-hero {
    flex-direction: column;
    text-align: center;
  }
  .profile-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

.profile-tabs-top {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  display: inline-flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 99px;
  padding: 5px;
  backdrop-filter: blur(12px);
}
.profile-tabs-top .profile-tab {
  padding: 9px 22px;
  border-radius: 99px;
  margin: 0;
  border-bottom: 0 !important;
  color: #94a3b8;
}
.profile-tabs-top .profile-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-bottom: 0;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.profile-header {
  display: none;
}
.profile-body {
  padding: 96px 50px 80px;
}

.profile-section {
  max-width: 1080px;
  margin: 0 auto;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 0 36px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.18);
  margin-bottom: 30px;
}
.profile-avatar-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.profile-avatar-wrap:hover {
  transform: scale(1.03);
}
.profile-avatar-big {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 54px;
  font-weight: 700;
  color: #fff;
  box-shadow:
    0 14px 36px rgba(99, 102, 241, 0.4),
    0 0 0 4px rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.profile-avatar-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-edit {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow:
    0 4px 12px rgba(99, 102, 241, 0.5),
    0 0 0 3px var(--bg);
  opacity: 0;
  transition: opacity 0.2s;
}
.profile-avatar-wrap:hover .profile-avatar-edit {
  opacity: 1;
}
.profile-hero-info {
  flex: 1;
  min-width: 0;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.profile-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--t1);
  margin: 0;
  letter-spacing: -1px;
  line-height: 1.1;
}
.profile-name-edit {
  background: 0;
  border: 0;
  color: var(--t3);
  font-size: 18px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: 0.18s;
}
.profile-name-edit:hover {
  background: rgba(99, 102, 241, 0.14);
  color: var(--accL);
}
.profile-name-edit-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.profile-name-edit-row input {
  padding: 9px 14px;
  background: var(--bg);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 9px;
  color: var(--t1);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  min-width: 220px;
  font-weight: 600;
}
.profile-name-edit-row input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.profile-name-save {
  padding: 9px 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.profile-name-cancel {
  padding: 9px 16px;
  background: rgba(71, 85, 105, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  color: var(--t1);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.profile-level-block {
  max-width: 540px;
}
.profile-level-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-family: "Space Grotesk", sans-serif;
}
.profile-level-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--t2);
  letter-spacing: 1.5px;
}
.profile-level-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--t1);
}
.profile-level-pct {
  margin-left: auto;
  font-size: 13px;
  color: var(--t2);
  font-weight: 600;
}
.profile-level-crown {
  font-size: 20px;
  filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.5));
}
.profile-level-bar {
  width: 100%;
  height: 11px;
  background: rgba(71, 85, 105, 0.45);
  border-radius: 99px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) inset;
}
.profile-level-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f97316, #ef4444);
  border-radius: 99px;
  transition: width 0.5s ease;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.55);
}
.profile-level-xp {
  font-size: 12px;
  color: var(--t2);
  text-align: right;
  margin-top: 6px;
}

.profile-badges-wrap {
  padding: 8px 0;
}
.profile-badges-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.profile-badges-ic {
  font-size: 28px;
  filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.5));
}
.profile-badges-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: 1.2px;
  margin: 0;
  flex-shrink: 0;
}
.profile-badges-count {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--t2);
  font-size: 13px;
}
.profile-badges-count b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fbbf24;
}

.profile-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.badge-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.65));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 14px;
  transition: 0.22s;
  position: relative;
  overflow: hidden;
}
.badge-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--badge-glow, #6366f1), transparent);
}
.badge-card.locked {
  opacity: 0.4;
  filter: grayscale(0.8);
}
.badge-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}
.badge-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(135deg, var(--badge-c1, #fbbf24), var(--badge-c2, #b45309));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}
.badge-info {
  flex: 1;
  min-width: 0;
}
.badge-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}
.badge-sub {
  font-size: 11.5px;
  color: var(--t2);
  margin-bottom: 3px;
  line-height: 1.3;
}
.badge-lvl {
  font-size: 10.5px;
  color: var(--t3);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.badge-card.locked .badge-name {
  color: var(--t3);
}

.settings-block {
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 26px;
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.55));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 14px;
}
.settings-block-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--t2);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.settings-row {
  margin-bottom: 14px;
}
.settings-row label {
  display: block;
  font-size: 12px;
  color: var(--t2);
  margin-bottom: 6px;
  font-weight: 600;
}
.settings-readonly {
  padding: 11px 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px dashed rgba(99, 102, 241, 0.22);
  border-radius: 9px;
  color: var(--t1);
  font-size: 14px;
  font-family: "Inter", sans-serif;
}
.settings-row input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 9px;
  color: var(--t1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: 0.18s;
}
.settings-row input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.settings-msg {
  font-size: 13px;
  min-height: 18px;
  margin: 8px 0 4px;
  padding-left: 2px;
}
.settings-msg.ok {
  color: #6ee7b7;
}
.settings-msg.err {
  color: #fca5a5;
}
.settings-save-btn {
  padding: 11px 22px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: 0.2s;
  margin-top: 6px;
}
.settings-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}

.settings-theme-pill {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.settings-theme-opt {
  padding: 9px 18px;
  background: 0;
  border: 0;
  color: var(--t2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 7px;
  transition: 0.2s;
}
.settings-theme-opt:hover {
  color: var(--t1);
}
.settings-theme-opt.active {
  background: var(--t1);
  color: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.settings-custom-block {
  padding: 16px 0 0;
  border-top: 1px solid rgba(99, 102, 241, 0.15);
  margin-top: 8px;
}
.custom-color-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.custom-color-row label {
  font-size: 13px;
  color: var(--t1);
  font-weight: 600;
  min-width: 160px;
  margin: 0;
}
.custom-color-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
}
.custom-swatch {
  width: 38px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3) inset;
}
.custom-color-inputs input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 7px;
  color: var(--t1);
  font-family: "Space Grotesk", monospace;
  font-size: 13px;
  outline: none;
  letter-spacing: 0.5px;
}
.custom-color-inputs input:focus {
  border-color: #6366f1;
}
.settings-custom-reset {
  padding: 8px 16px;
  background: rgba(71, 85, 105, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 7px;
  color: var(--t1);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  font-family: inherit;
}
.settings-custom-reset:hover {
  background: rgba(71, 85, 105, 0.6);
}

.color-picker-popover {
  position: fixed;
  width: 240px;
  background: #1e293b;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
  z-index: 6700;
  font-family: "Inter", sans-serif;
}
.cp-area {
  position: relative;
  width: 100%;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  cursor: crosshair;
  background:
    linear-gradient(to bottom, transparent 0%, #000 100%),
    linear-gradient(to right, #fff 0%, var(--cp-hue, #f00) 100%);
  background-blend-mode: multiply;
}
.cp-sat {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent, #000),
    linear-gradient(to right, #fff, var(--cp-hue, #f00));
  background-blend-mode: multiply;
}
.cp-cursor {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.cp-hue-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 8px;
}
.cp-eyedrop {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--t2);
  cursor: pointer;
}
.cp-preview {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.cp-hue {
  position: relative;
  flex: 1;
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  cursor: pointer;
}
.cp-hue-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f00;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.cp-rgb-row {
  display: flex;
  gap: 6px;
}
.cp-rgb-cell {
  flex: 1;
  text-align: center;
}
.cp-rgb-cell input {
  width: 100%;
  padding: 6px 4px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  color: #fff;
  font-family: "Space Grotesk", monospace;
  font-size: 13px;
  text-align: center;
  outline: none;
}
.cp-rgb-cell label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
}

html[data-theme="light"] .profile-tabs-top {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 102, 241, 0.2);
}
html[data-theme="light"] .settings-block {
  background: #fff;
  border-color: #e2e8f0;
}
html[data-theme="light"] .settings-readonly {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .settings-theme-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
html[data-theme="light"] .settings-theme-opt.active {
  background: #0f172a;
  color: #fff;
}
html[data-theme="light"] .badge-card {
  background: linear-gradient(155deg, #fff, #f8fafc);
  border-color: #e2e8f0;
}

@media (max-width: 900px) {
  .profile-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-hero {
    flex-direction: column;
    text-align: center;
  }
  .profile-name {
    font-size: 30px;
  }
}
@media (max-width: 600px) {
  .profile-badges-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #f1f5f9;
  --acc: #4f46e5;
  --accL: #6366f1;
  --accG: rgba(79, 70, 229, 0.25);
  --t1: #0f172a;
  --t2: #475569;
  --t3: #94a3b8;
  --brd: #e2e8f0;
  --brd2: #cbd5e1;
  --danger: #dc2626;
}
html[data-theme="light"] body {
  background: #f8fafc;
  color: #0f172a;
}
html[data-theme="light"] .home-hero-title,
html[data-theme="light"] .home-section-title,
html[data-theme="light"] .home-cta-box h2 {
  color: #0f172a;
}
html[data-theme="light"] .home-hero-stats span {
  color: #64748b;
}
html[data-theme="light"] .home-hero-stats b {
  background: linear-gradient(135deg, #1e293b, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-theme="light"] .home-brand-text {
  background: linear-gradient(135deg, #1e293b, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-theme="light"] .home-nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .home-nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .home-nav-center a {
  color: #475569;
}
html[data-theme="light"] .home-nav-center a:hover {
  color: #0f172a;
  background: rgba(99, 102, 241, 0.08);
}
html[data-theme="light"] .home-hero-badge {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  color: #475569;
}
html[data-theme="light"] .home-hero-badge span {
  color: #6366f1;
}
html[data-theme="light"] .home-hero-sub {
  color: #475569;
}
html[data-theme="light"] .home-cta-secondary {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 102, 241, 0.3);
  color: #1e293b;
}
html[data-theme="light"] .home-cta-secondary:hover {
  background: #fff;
  border-color: rgba(99, 102, 241, 0.5);
}
html[data-theme="light"] .home-overlay {
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.12), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.08), transparent 50%),
    linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #1e293b;
}
html[data-theme="light"] .home-systems-sub,
html[data-theme="light"] .home-learn-sub {
  color: #475569;
}
html[data-theme="light"] .system-card,
html[data-theme="light"] .home-feat-card,
html[data-theme="light"] .home-learn-card {
  background: linear-gradient(155deg, #ffffff, #f8fafc);
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .system-card:hover,
html[data-theme="light"] .home-feat-card:hover,
html[data-theme="light"] .home-learn-card:hover {
  box-shadow: 0 14px 38px rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
}
html[data-theme="light"] .system-card h3,
html[data-theme="light"] .home-feat-card h3,
html[data-theme="light"] .home-learn-card h3 {
  color: #0f172a;
}
html[data-theme="light"] .system-card p,
html[data-theme="light"] .home-feat-card p,
html[data-theme="light"] .home-learn-card p {
  color: #475569;
}
html[data-theme="light"] .badge-planned {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.3);
}
html[data-theme="light"] .home-cta-box {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08),
    rgba(139, 92, 246, 0.06),
    rgba(236, 72, 153, 0.04)
  );
  border-color: rgba(99, 102, 241, 0.25);
}
html[data-theme="light"] .home-cta-box p {
  color: #475569;
}
html[data-theme="light"] .home-footer {
  color: #64748b;
  border-top-color: rgba(99, 102, 241, 0.18);
}
html[data-theme="light"] .home-learn-hint {
  color: #94a3b8;
}
html[data-theme="light"] .home-learn-hint code {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}
html[data-theme="light"] .home-feat-cta,
html[data-theme="light"] .home-learn-btn {
  color: #4f46e5;
}
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .lang-switch {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 102, 241, 0.25);
}
html[data-theme="light"] .theme-toggle button,
html[data-theme="light"] .lang-btn {
  color: #475569;
}
html[data-theme="light"] .theme-btn.active,
html[data-theme="light"] .lang-btn.active {
  color: #fff;
}
html[data-theme="light"] .home-orbit-1,
html[data-theme="light"] .home-orbit-2,
html[data-theme="light"] .home-orbit-3,
html[data-theme="light"] .orbit {
  border-color: rgba(99, 102, 241, 0.22) !important;
}
html[data-theme="light"] .solar-system:before {
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.18),
    rgba(99, 102, 241, 0.08) 45%,
    transparent 75%
  ) !important;
}
html[data-theme="light"] .planet {
  background: radial-gradient(
    circle at 30% 30%,
    rgba(99, 102, 241, 0.12),
    rgba(255, 255, 255, 0.4)
  );
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}
html[data-theme="light"] .header {
  background: linear-gradient(135deg, #fff, #f8fafc);
  border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .header h1 {
  background: linear-gradient(135deg, #0f172a, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-theme="light"] .header-sub {
  color: #64748b;
}
html[data-theme="light"] .nav-tabs {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
html[data-theme="light"] .nav-tab {
  color: #475569;
}
html[data-theme="light"] .nav-tab:hover {
  background: #fff;
  color: #0f172a;
}
html[data-theme="light"] .nav-tab.active {
  background: #4f46e5;
  color: #fff;
}
html[data-theme="light"] .sidebar,
html[data-theme="light"] .info-panel {
  background: #fff;
  border-color: #e2e8f0;
}
html[data-theme="light"] .sb-head,
html[data-theme="light"] .ip-head {
  border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .sb-head h2,
html[data-theme="light"] .ip-head h3 {
  color: #0f172a;
}
html[data-theme="light"] .search-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}
html[data-theme="light"] .search-box input {
  color: #0f172a;
}
html[data-theme="light"] .search-box input::placeholder {
  color: #94a3b8;
}
html[data-theme="light"] .sb-foot {
  border-top-color: #e2e8f0;
  color: #64748b;
}
html[data-theme="light"] .group-header:hover,
html[data-theme="light"] .bone-item:hover {
  background: #f1f5f9;
}
html[data-theme="light"] .bone-item.selected {
  background: rgba(79, 70, 229, 0.08);
  border-left-color: #4f46e5;
}
html[data-theme="light"] .bone-label-text {
  color: #475569;
}
html[data-theme="light"] .bone-item.selected .bone-label-text {
  color: #4f46e5;
}
html[data-theme="light"] .ip-body,
html[data-theme="light"] .ip-ph p {
  color: #475569;
}
html[data-theme="light"] .info-section p {
  color: #475569;
}
html[data-theme="light"] .info-section h4 {
  color: #64748b;
  border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .info-tag {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.25);
  color: #4f46e5;
}
html[data-theme="light"] .vbtn {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .vbtn:hover {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}
html[data-theme="light"] .view-label {
  background: rgba(255, 255, 255, 0.92);
  border-color: #e2e8f0;
}
html[data-theme="light"] .view-label .vl-title {
  color: #64748b;
}
html[data-theme="light"] .view-label .vl-name {
  color: #4f46e5;
}
html[data-theme="light"] .viewer {
  background: radial-gradient(ellipse at center, #f8fafc, #e2e8f0 70%, #cbd5e1);
}
html[data-theme="light"] .chatbox-panel {
  background: linear-gradient(155deg, #fff, #f8fafc);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}
html[data-theme="light"] .chatbox-header {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), transparent);
  border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .chatbox-title {
  color: #0f172a;
}
html[data-theme="light"] .chatbox-status {
  color: #64748b;
}
html[data-theme="light"] .chatbox-close {
  background: #f1f5f9;
  color: #475569;
}
html[data-theme="light"] .chatbox-close:hover {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
}
html[data-theme="light"] .chatbox-messages {
  scrollbar-color: #cbd5e1 transparent;
}
html[data-theme="light"] .chat-bot .chat-bubble {
  background: #f1f5f9;
  border-color: rgba(99, 102, 241, 0.15);
  color: #0f172a;
}
html[data-theme="light"] .chatbox-input-row {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}
html[data-theme="light"] .chatbox-input-row input {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .chat-chip {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.3);
}
html[data-theme="light"] .auth-page {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #0f172a;
}
html[data-theme="light"] .auth-pane {
  background: linear-gradient(180deg, #fff, #f8fafc);
}
html[data-theme="light"] .auth-back {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 102, 241, 0.2);
  color: #0f172a;
}
html[data-theme="light"] .auth-h,
html[data-theme="light"] .login-form h3,
html[data-theme="light"] .admin-card h2 {
  color: #0f172a;
}
html[data-theme="light"] .auth-sub {
  color: #475569;
}
html[data-theme="light"] .auth-field input,
html[data-theme="light"] .login-form input,
html[data-theme="light"] .admin-auth input,
html[data-theme="light"] .admin-fields input,
html[data-theme="light"] .admin-fields textarea,
html[data-theme="light"] .admin-bone-pick select {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .auth-field input:focus,
html[data-theme="light"] .login-form input:focus {
  background: #fff;
  border-color: #6366f1;
}
html[data-theme="light"] .auth-tabs,
html[data-theme="light"] .login-tabs {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
html[data-theme="light"] .auth-tab,
html[data-theme="light"] .login-tab {
  color: #475569;
}
html[data-theme="light"] .auth-secondary {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .auth-art-bg {
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.14), transparent 55%),
    linear-gradient(160deg, #4c1d95, #1e1b4b 60%);
}
html[data-theme="light"] .user-menu-trigger {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 102, 241, 0.28);
  color: #0f172a;
}
html[data-theme="light"] .user-menu-dropdown {
  background: linear-gradient(155deg, #fff, #f8fafc);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}
html[data-theme="light"] .user-menu-item {
  color: #0f172a;
}
html[data-theme="light"] .user-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}
html[data-theme="light"] .user-menu-divider {
  background: #e2e8f0;
}
html[data-theme="light"] .profile-page {
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.1), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.06), transparent 50%),
    linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #0f172a;
}
html[data-theme="light"] .profile-tabs-top {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(99, 102, 241, 0.22);
}
html[data-theme="light"] .profile-back {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 102, 241, 0.25);
  color: #0f172a;
}
html[data-theme="light"] .profile-name {
  color: #0f172a;
}
html[data-theme="light"] .profile-tab {
  color: #64748b;
}
html[data-theme="light"] .profile-tab:hover {
  color: #0f172a;
}
html[data-theme="light"] .profile-tab.active {
  color: #fff;
}
html[data-theme="light"] .profile-badges-title {
  color: #0f172a;
}
html[data-theme="light"] .badge-card {
  background: linear-gradient(155deg, #fff, #f8fafc);
  border-color: #e2e8f0;
}
html[data-theme="light"] .badge-name {
  color: #0f172a;
}
html[data-theme="light"] .badge-sub {
  color: #475569;
}
html[data-theme="light"] .badge-lvl {
  color: #64748b;
}
html[data-theme="light"] .badge-card.locked .badge-name {
  color: #94a3b8;
}
html[data-theme="light"] .settings-block {
  background: #fff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .settings-block-title {
  color: #64748b;
}
html[data-theme="light"] .settings-readonly {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .settings-row input {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .settings-row input:focus {
  background: #fff;
  border-color: #6366f1;
}
html[data-theme="light"] .settings-theme-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
html[data-theme="light"] .settings-theme-opt {
  color: #475569;
}
html[data-theme="light"] .settings-theme-opt.active {
  background: #0f172a;
  color: #fff;
}
html[data-theme="light"] .settings-custom-block {
  border-top-color: #e2e8f0;
}
html[data-theme="light"] .custom-color-row label {
  color: #0f172a;
}
html[data-theme="light"] .custom-color-inputs input {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .custom-swatch {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1) inset;
}
html[data-theme="light"] .settings-custom-reset {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .color-picker-popover {
  background: #fff;
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.25);
}
html[data-theme="light"] .cp-rgb-cell input {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .cp-rgb-cell label {
  color: #64748b;
}
html[data-theme="light"] .cp-eyedrop {
  color: #475569;
}
html[data-theme="light"] .admin-modal {
  background: rgba(15, 23, 42, 0.45);
}
html[data-theme="light"] .admin-card {
  background: linear-gradient(155deg, #fff, #f8fafc);
  border-color: rgba(99, 102, 241, 0.3);
}
html[data-theme="light"] .admin-card h2 {
  color: #0f172a;
}
html[data-theme="light"] .admin-sub {
  color: #475569;
}
html[data-theme="light"] .admin-auth label,
html[data-theme="light"] .admin-fields label {
  color: #475569;
}
html[data-theme="light"] .admin-close {
  background: #f1f5f9;
  color: #475569;
}
html[data-theme="light"] .admin-bone-pick label {
  color: #4f46e5;
}
html[data-theme="light"] .quiz-panel {
  background: linear-gradient(155deg, #fff, #f8fafc);
  border-color: rgba(99, 102, 241, 0.4);
}
html[data-theme="light"] .quiz-title {
  color: #0f172a;
}
html[data-theme="light"] .quiz-stage h3 {
  color: #0f172a;
}
html[data-theme="light"] .quiz-stage p {
  color: #475569;
}
html[data-theme="light"] .quiz-progress-info {
  color: #475569;
}
html[data-theme="light"] .quiz-progress-info b {
  color: #0f172a;
}
html[data-theme="light"] .quiz-progress-bar {
  background: #e2e8f0;
}
html[data-theme="light"] .quiz-q-text {
  color: #0f172a;
}
html[data-theme="light"] .quiz-opt {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .quiz-opt:hover:not(:disabled) {
  background: #fff;
  border-color: #6366f1;
}
html[data-theme="light"] .quiz-end-msg {
  color: #475569;
}
html[data-theme="light"] .quiz-time {
  color: #64748b;
}
html[data-theme="light"] .quiz-diff {
  background: rgba(241, 245, 249, 0.8);
  border-color: #e2e8f0;
  color: #475569;
}
html[data-theme="light"] .quiz-diff:hover {
  background: #fff;
}
html[data-theme="light"] .quiz-skip-btn {
  border-color: #e2e8f0;
  color: #64748b;
}
html[data-theme="light"] .quiz-skip-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
html[data-theme="light"] body.mode-quiz .quiz-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border-right-color: #e2e8f0;
  box-shadow: 6px 0 32px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] body.mode-quiz .quiz-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.06));
  border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .bone-name-overlay .bno-cat {
  background: rgba(248, 250, 252, 0.95);
  color: #7f1d1d;
}
html[data-theme="light"] .quiz-exit {
  color: #64748b;
}
html[data-theme="light"] .quiz-exit:hover {
  background: rgba(220, 38, 38, 0.18);
  color: #dc2626;
}

.auth-page {
  display: none;
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.1), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.06), transparent 50%), #0a0a12;
}
.auth-card-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
.auth-card-new {
  width: 100%;
  max-width: 460px;
  background: #15151c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 36px 38px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.auth-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.auth-card-logo-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  filter: drop-shadow(0 3px 10px rgba(139, 92, 246, 0.4));
}
.auth-card-logo-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 21px;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
}
.auth-card-h {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.auth-card-sub {
  font-size: 14px;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 28px;
}
.auth-field-new {
  margin-bottom: 18px;
}
.auth-field-new label {
  display: block;
  font-size: 13px;
  color: #e5e7eb;
  margin-bottom: 8px;
  font-weight: 600;
}
.auth-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-forgot {
  font-size: 12.5px;
  color: #a78bfa;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s;
}
.auth-forgot:hover {
  color: #c4b5fd;
}
.auth-field-new input {
  width: 100%;
  padding: 13px 16px;
  background: #1f1f28;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: 0.22s;
}
.auth-field-new input::placeholder {
  color: #6b7280;
}
.auth-field-new input:focus {
  border-color: #a78bfa;
  background: #23232e;
}
.auth-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}
.auth-checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 0 10px;
  cursor: pointer;
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.5;
}
.auth-checkbox-line input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #a78bfa;
  flex-shrink: 0;
}
.auth-checkbox-line .auth-link {
  color: #a78bfa;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.auth-checkbox-line .auth-link:hover {
  color: #c4b5fd;
  text-decoration: underline;
}
.auth-captcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: #1f1f28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  margin: 8px 0 12px;
  cursor: pointer;
  font-size: 13px;
  color: #e5e7eb;
}
.auth-captcha-box:has(input:checked) {
  border-color: rgba(167, 139, 250, 0.4);
}
.auth-captcha-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #a78bfa;
  flex-shrink: 0;
}
.auth-captcha-text {
  flex: 1;
  font-weight: 500;
}
.auth-captcha-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #9ca3af;
  text-align: right;
  line-height: 1.3;
}
.auth-captcha-brand b {
  color: #e5e7eb;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.auth-captcha-brand small {
  font-size: 8.5px;
  color: #6b7280;
}
.auth-captcha-logo {
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.auth-error {
  color: #fca5a5;
  font-size: 13px;
  min-height: 18px;
  margin: 8px 0 6px;
  padding-left: 2px;
}
.auth-submit-new {
  width: 100%;
  padding: 14px 22px;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  border: 0;
  border-radius: 9px;
  color: #0a0a12;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.22s;
  margin-top: 6px;
}
.auth-submit-new:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.auth-submit-new:active {
  transform: translateY(0);
}
.auth-submit-new:disabled {
  cursor: not-allowed;
  filter: saturate(0.4);
  background: #5b4d8a;
  color: #a09bbf;
}
.auth-spin {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: #0a0a12;
  border-radius: 50%;
  animation: authSpin 0.8s linear infinite;
  display: inline-block;
}
@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}
.auth-switch-line {
  text-align: center;
  margin-top: 18px;
  font-size: 13.5px;
  color: #9ca3af;
}
.auth-switch-line a {
  color: #a78bfa;
  cursor: pointer;
  font-weight: 600;
  margin-left: 4px;
}
.auth-switch-line a:hover {
  color: #c4b5fd;
  text-decoration: underline;
}
.auth-divider-new {
  position: relative;
  text-align: center;
  margin: 20px 0 16px;
  color: #6b7280;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.auth-divider-new:before,
.auth-divider-new:after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}
.auth-divider-new:before {
  left: 0;
}
.auth-divider-new:after {
  right: 0;
}
.auth-secondary-new {
  width: 100%;
  padding: 12px 22px;
  background: #1f1f28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}
.auth-secondary-new:hover {
  background: #28283a;
  border-color: rgba(255, 255, 255, 0.15);
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 7000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: authIn 0.22s ease;
}
.terms-card {
  width: 560px;
  max-width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  background: #15151c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}
.terms-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 0;
  color: #9ca3af;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}
.terms-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
}
.terms-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 14px;
}
.terms-body {
  font-size: 13.5px;
  line-height: 1.7;
  color: #d1d5db;
}
.terms-body p {
  margin-bottom: 12px;
}
.terms-body h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 8px;
}

html[data-theme="light"] .auth-page {
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(236, 72, 153, 0.05), transparent 50%), #f8fafc;
}
html[data-theme="light"] .auth-card-new {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}
html[data-theme="light"] .auth-card-h {
  color: #0f172a;
}
html[data-theme="light"] .auth-card-sub {
  color: #64748b;
}
html[data-theme="light"] .auth-field-new label {
  color: #1e293b;
}
html[data-theme="light"] .auth-field-new input {
  background: #f1f5f9;
  border-color: #e5e7eb;
  color: #0f172a;
}
html[data-theme="light"] .auth-field-new input:focus {
  background: #fff;
  border-color: #7c3aed;
}
html[data-theme="light"] .auth-field-new input::placeholder {
  color: #94a3b8;
}
html[data-theme="light"] .auth-hint {
  color: #94a3b8;
}
html[data-theme="light"] .auth-checkbox-line {
  color: #475569;
}
html[data-theme="light"] .auth-captcha-box {
  background: #f1f5f9;
  border-color: #e5e7eb;
  color: #1e293b;
}
html[data-theme="light"] .auth-captcha-brand b {
  color: #0f172a;
}
html[data-theme="light"] .auth-secondary-new {
  background: #f1f5f9;
  border-color: #e5e7eb;
  color: #0f172a;
}
html[data-theme="light"] .auth-secondary-new:hover {
  background: #fff;
}
html[data-theme="light"] .auth-divider-new:before,
html[data-theme="light"] .auth-divider-new:after {
  background: #e5e7eb;
}
html[data-theme="light"] .auth-switch-line {
  color: #475569;
}
html[data-theme="light"] .terms-card {
  background: #fff;
  border-color: #e5e7eb;
}
html[data-theme="light"] .terms-card h2 {
  color: #0f172a;
}
html[data-theme="light"] .terms-body {
  color: #475569;
}
html[data-theme="light"] .terms-body h3 {
  color: #0f172a;
}

@media (max-width: 540px) {
  .auth-card-new {
    padding: 28px 24px;
  }
  .auth-card-h {
    font-size: 24px;
  }
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  font-size: 22px;
  font-weight: 900;
  box-shadow:
    0 6px 18px rgba(16, 185, 129, 0.45),
    0 0 0 4px rgba(16, 185, 129, 0.15);
  -webkit-text-fill-color: #fff;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
}
.home-stat-verified b {
  display: flex;
  align-items: center;
  font-size: 0 !important;
  -webkit-text-fill-color: initial !important;
  background: none !important;
}

.home-reviews {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 60px 40px;
}
.reviews-head {
  text-align: center;
  margin-bottom: 30px;
}
.home-reviews-sub {
  font-size: 15px;
  color: #94a3b8;
  max-width: 620px;
  margin: -20px auto 8px;
  line-height: 1.6;
}
html[data-theme="light"] .home-reviews-sub {
  color: #475569;
}

.reviews-stats {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}
.reviews-avg {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 36px;
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.55));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
}
.reviews-avg-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}
.reviews-avg-stars {
  display: flex;
  gap: 3px;
  font-size: 22px;
  color: #fbbf24;
  letter-spacing: 1px;
}
.reviews-avg-count {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
html[data-theme="light"] .reviews-avg {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .reviews-avg-num {
  color: #0f172a;
}
html[data-theme="light"] .reviews-avg-count {
  color: #64748b;
}

.reviews-form-wrap {
  max-width: 720px;
  margin: 0 auto 40px;
}
.reviews-form {
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.55));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  padding: 24px;
}
.reviews-form-locked {
  text-align: center;
  padding: 24px 12px;
}
.reviews-lock-ic {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
  opacity: 0.7;
}
.reviews-form-locked p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 14px;
}
.reviews-cta {
  padding: 10px 22px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 0;
  border-radius: 9px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: 0.2s;
}
.reviews-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}
.reviews-form-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.reviews-form-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.reviews-form-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.reviews-form-rating {
  display: flex;
  gap: 4px;
  font-size: 22px;
  color: #475569;
  cursor: pointer;
  letter-spacing: 1px;
  user-select: none;
}
.reviews-form-rating .rev-star {
  transition:
    color 0.15s,
    transform 0.15s;
}
.reviews-form-rating .rev-star:hover {
  transform: scale(1.15);
}
.reviews-form-rating .rev-star.active {
  color: #fbbf24;
}
.reviews-form textarea {
  width: 100%;
  min-height: 90px;
  padding: 13px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 9px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  line-height: 1.5;
  transition: 0.18s;
}
.reviews-form textarea:focus {
  border-color: #6366f1;
  background: rgba(15, 23, 42, 0.9);
}
.reviews-form textarea::placeholder {
  color: #64748b;
}
.reviews-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 10px;
}
.reviews-form-char {
  font-size: 12px;
  color: #64748b;
}
.reviews-submit {
  padding: 10px 22px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 0;
  border-radius: 9px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: 0.2s;
}
.reviews-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}
.reviews-submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background: #475569;
  box-shadow: none;
}
.reviews-form-msg {
  font-size: 13px;
  min-height: 18px;
  margin-top: 8px;
}
.reviews-form-msg.ok {
  color: #6ee7b7;
}
.reviews-form-msg.err {
  color: #fca5a5;
}
html[data-theme="light"] .reviews-form {
  background: #fff;
  border-color: #e5e7eb;
}
html[data-theme="light"] .reviews-form-locked p {
  color: #475569;
}
html[data-theme="light"] .reviews-form-name {
  color: #0f172a;
}
html[data-theme="light"] .reviews-form textarea {
  background: #f8fafc;
  border-color: #e5e7eb;
  color: #0f172a;
}
html[data-theme="light"] .reviews-form textarea:focus {
  background: #fff;
}
html[data-theme="light"] .reviews-form textarea::placeholder {
  color: #94a3b8;
}
html[data-theme="light"] .reviews-form-rating {
  color: #cbd5e1;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.review-card {
  padding: 20px 22px;
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.55));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 14px;
  animation: revIn 0.35s ease;
}
@keyframes revIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.review-meta {
  flex: 1;
  min-width: 0;
}
.review-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 3px;
}
.review-date {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.3px;
}
.review-stars {
  font-size: 14px;
  color: #fbbf24;
  letter-spacing: 1.5px;
  line-height: 1;
}
.review-text {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.review-delete {
  background: 0;
  border: 0;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 5px;
  transition: 0.18s;
  margin-left: auto;
}
.review-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}
html[data-theme="light"] .review-card {
  background: #fff;
  border-color: #e5e7eb;
}
html[data-theme="light"] .review-name {
  color: #0f172a;
}
html[data-theme="light"] .review-date {
  color: #64748b;
}
html[data-theme="light"] .review-text {
  color: #475569;
}
html[data-theme="light"] .review-delete {
  color: #94a3b8;
}
html[data-theme="light"] .review-delete:hover {
  background: #fef2f2;
  color: #dc2626;
}

.reviews-empty {
  text-align: center;
  padding: 36px;
  color: #94a3b8;
  font-size: 14px;
  font-style: italic;
}
html[data-theme="light"] .reviews-empty {
  color: #94a3b8;
}

@media (max-width: 780px) {
  .home-reviews {
    padding: 50px 24px;
  }
  .reviews-list {
    grid-template-columns: 1fr;
  }
}

.quiz-timer-wrap {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
}
.quiz-timer-track {
  flex: 1;
  height: 8px;
  background: rgba(71, 85, 105, 0.5);
  border-radius: 99px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) inset;
}
.quiz-timer-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #22d3ee);
  border-radius: 99px;
  transition:
    width 0.1s linear,
    background 0.3s;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.quiz-timer-bar.warning {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}
.quiz-timer-bar.danger {
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
  animation: timerPulse 0.5s ease-in-out infinite;
}
@keyframes timerPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.quiz-timer-txt {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  min-width: 36px;
  text-align: right;
  letter-spacing: 0.4px;
}
html[data-theme="light"] .quiz-timer-track {
  background: #e2e8f0;
}
html[data-theme="light"] .quiz-timer-txt {
  color: #475569;
}

.settings-block-sub {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 14px;
  margin-top: -8px;
}
html[data-theme="light"] .settings-block-sub {
  color: #475569;
}

.quiz-modes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 4px;
}
.quiz-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: 0.2s;
  color: var(--t1, #e2e8f0);
}
.quiz-mode-card:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: #a78bfa;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.18);
}
.quiz-mode-icon {
  font-size: 30px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.18));
  border-radius: 11px;
  filter: drop-shadow(0 2px 6px rgba(99, 102, 241, 0.3));
}
.quiz-mode-info {
  flex: 1;
  min-width: 0;
}
.quiz-mode-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}
.quiz-mode-sub {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.45;
}
.quiz-back-pick {
  background: 0;
  border: 0;
  color: #94a3b8;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.18s;
}
.quiz-back-pick:hover {
  color: #fff;
}
html[data-theme="light"] .quiz-mode-card {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] .quiz-mode-card:hover {
  background: #fff;
  border-color: #a78bfa;
}
html[data-theme="light"] .quiz-mode-title {
  color: #0f172a;
}
html[data-theme="light"] .quiz-mode-sub {
  color: #475569;
}
html[data-theme="light"] .quiz-back-pick {
  color: #64748b;
}
html[data-theme="light"] .quiz-back-pick:hover {
  color: #0f172a;
}

.reset-pass-modal {
  position: fixed;
  inset: 0;
  z-index: 7500;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: authIn 0.3s ease;
}
.reset-pass-card {
  width: 100%;
  max-width: 440px;
  background: #15151c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 34px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.reset-pass-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.reset-pass-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.reset-pass-logo span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.reset-pass-card h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 26px;
  color: #fff;
  text-align: center;
  margin-bottom: 6px;
  font-weight: 800;
}
.reset-pass-card p {
  font-size: 13.5px;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 22px;
}
html[data-theme="light"] .reset-pass-modal {
  background: rgba(15, 23, 42, 0.5);
}
html[data-theme="light"] .reset-pass-card {
  background: #fff;
  border-color: #e5e7eb;
}
html[data-theme="light"] .reset-pass-card h2 {
  color: #0f172a;
}
html[data-theme="light"] .reset-pass-card p {
  color: #64748b;
}
.forgot-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 0;
  color: #9ca3af;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s;
}
.forgot-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
}
.reset-pass-card {
  position: relative;
}
html[data-theme="light"] .forgot-close {
  background: #f1f5f9;
  color: #475569;
}
html[data-theme="light"] .forgot-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

html[data-theme="custom"] body,
html[data-theme="custom"] .home-overlay {
  background: var(--bg) !important;
  color: var(--t1);
}
html[data-theme="custom"] .home-nav {
  background: var(--bg);
}
html[data-theme="custom"] .home-nav.scrolled {
  background: var(--bg);
}
html[data-theme="custom"] .header {
  background: var(--bg);
}
html[data-theme="custom"] .sidebar,
html[data-theme="custom"] .info-panel {
  background: var(--card);
}
html[data-theme="custom"] .home-feat-card,
html[data-theme="custom"] .system-card,
html[data-theme="custom"] .home-learn-card,
html[data-theme="custom"] .settings-block,
html[data-theme="custom"] .review-card,
html[data-theme="custom"] .reviews-avg,
html[data-theme="custom"] .reviews-form,
html[data-theme="custom"] .badge-card {
  background: var(--card);
}
html[data-theme="custom"] .home-hero-title,
html[data-theme="custom"] .home-section-title,
html[data-theme="custom"] h1,
html[data-theme="custom"] h2,
html[data-theme="custom"] h3,
html[data-theme="custom"] .profile-name,
html[data-theme="custom"] .settings-block-title,
html[data-theme="custom"] .badge-name {
  color: var(--t1);
}
html[data-theme="custom"] .home-hero-sub,
html[data-theme="custom"] .home-systems-sub,
html[data-theme="custom"] .home-feat-card p,
html[data-theme="custom"] .system-card p,
html[data-theme="custom"] .home-learn-card p,
html[data-theme="custom"] .badge-sub {
  color: var(--t2);
}
html[data-theme="custom"] .home-cta-primary {
  background: var(--acc);
  color: #fff;
}
html[data-theme="custom"] .auth-card-new,
html[data-theme="custom"] .reset-pass-card,
html[data-theme="custom"] .terms-card {
  background: var(--card);
  color: var(--t1);
}
html[data-theme="custom"] .auth-field-new input,
html[data-theme="custom"] .settings-row input,
html[data-theme="custom"] .reviews-form textarea {
  background: var(--bg);
  color: var(--t1);
}
html[data-theme="custom"] body.mode-quiz .quiz-panel {
  background: var(--card);
}

@media (max-width: 900px) {
  .home-nav {
    padding: 10px 14px;
    gap: 8px;
  }
  .home-nav-center {
    display: none;
  }
  .home-brand-text {
    font-size: 18px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 96px 20px 40px;
    text-align: center;
  }
  .home-hero-inner {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  .home-hero-title {
    font-size: 38px;
  }
  .home-hero-sub {
    font-size: 14.5px;
    max-width: 100%;
  }
  .home-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding-top: 18px;
  }
  .home-hero-stats b {
    font-size: 22px;
  }
  .home-hero-cta {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  .home-hero-cta button {
    width: 100%;
  }
  .home-hero-visual {
    height: 320px;
    order: -1;
    overflow: hidden;
  }
  .home-hero-visual .solar-system {
    transform: translateX(0) scale(0.4);
    transform-origin: center;
  }
  .home-section-title {
    font-size: 26px;
  }
  .home-systems-grid,
  .home-features-grid,
  .home-learn-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .home-systems,
  .home-features,
  .home-learn,
  .home-cta-section,
  .home-reviews {
    padding: 36px 16px;
  }
  .home-cta-box {
    padding: 30px 22px;
  }
  .home-cta-box h2 {
    font-size: 22px;
  }
  .home-cta-box p {
    font-size: 14px;
  }
  .home-footer {
    padding: 24px 16px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .reviews-list {
    grid-template-columns: 1fr;
  }
  .reviews-avg {
    padding: 18px 24px;
  }
  .reviews-avg-num {
    font-size: 38px;
  }
  .reviews-form {
    padding: 18px;
  }
  .auth-page {
    padding: 0;
  }
  .auth-card-wrap {
    padding: 18px 12px;
    min-height: 100vh;
  }
  .auth-card-new {
    padding: 24px 20px;
    border-radius: 12px;
    max-width: 100%;
  }
  .auth-card-h {
    font-size: 22px;
  }
  .auth-card-sub {
    font-size: 13px;
  }
  .auth-back {
    top: 12px;
    left: 12px;
    padding: 7px 12px;
    font-size: 12px;
  }
  .reset-pass-card {
    padding: 24px 20px;
  }
  .reset-pass-card h2 {
    font-size: 22px;
  }
  .profile-tabs-top {
    top: 10px;
    padding: 4px;
  }
  .profile-tabs-top .profile-tab {
    padding: 7px 14px;
    font-size: 12px;
  }
  .profile-body {
    padding: 90px 16px 40px;
  }
  .profile-hero {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 14px 0 24px;
  }
  .profile-avatar-wrap,
  .profile-avatar-big {
    width: 96px;
    height: 96px;
    font-size: 38px;
  }
  .profile-name {
    font-size: 24px;
  }
  .profile-name-row {
    justify-content: center;
    flex-wrap: wrap;
  }
  .profile-level-block {
    max-width: 100%;
  }
  .profile-badges-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .profile-badges-title {
    font-size: 18px;
  }
  .settings-block {
    padding: 18px;
    margin-bottom: 18px;
  }
  .settings-block-title {
    font-size: 13px;
  }
  .settings-theme-pill {
    flex-wrap: wrap;
    width: 100%;
  }
  .settings-theme-opt {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
    font-size: 12px;
  }
  .custom-color-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .custom-color-row label {
    min-width: 0;
  }
  .custom-color-inputs {
    width: 100%;
  }
  .header {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .header h1 {
    font-size: 15px;
  }
  .header-sub {
    font-size: 10px;
  }
  .logo-icon {
    width: 34px;
    height: 34px;
  }
  .nav-tabs {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 3px;
    gap: 2px;
  }
  .nav-tab {
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  .header-right {
    margin-left: auto;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    z-index: 200;
    transition: left 0.3s;
    border-right: 1px solid var(--brd);
  }
  .sidebar.open {
    left: 0;
  }
  .info-panel {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    z-index: 200;
    transition: right 0.3s;
    border-left: 1px solid var(--brd);
  }
  .info-panel.show-mobile {
    right: 0;
  }
  .viewer {
    margin: 0;
    width: 100%;
  }
  .quiz-panel {
    width: calc(100% - 24px);
    left: 12px;
    right: auto;
    max-width: 380px;
  }
  body.mode-quiz .quiz-panel {
    width: 100%;
    left: 0;
    top: auto;
    bottom: 0;
    height: 50vh;
    border-right: 0;
    border-top: 1px solid rgba(99, 102, 241, 0.4);
  }
  body.mode-quiz .viewer {
    margin-left: 0;
    margin-bottom: 50vh;
  }
  .bone-name-overlay {
    max-width: 240px;
  }
  .bone-name-overlay .bno-name {
    font-size: 15px;
    padding: 6px 12px;
  }
  .chatbox-panel {
    width: calc(100vw - 24px);
    right: 12px;
    left: 12px;
    height: 70vh;
  }
  .chatbox-widget {
    right: 12px;
    bottom: 12px;
  }
  .chatbox-toggle {
    width: 54px;
    height: 54px;
  }
  .terms-card {
    padding: 22px 18px;
    max-height: 88vh;
  }
  .user-menu-dropdown {
    right: -8px;
    min-width: 180px;
  }
  .quiz-modes {
    gap: 8px;
  }
  .quiz-mode-card {
    padding: 12px;
  }
  .quiz-mode-icon {
    font-size: 24px;
    width: 42px;
    height: 42px;
  }
  .quiz-mode-title {
    font-size: 13px;
  }
  .quiz-mode-sub {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .home-hero-title {
    font-size: 30px;
  }
  .home-hero-stats {
    grid-template-columns: 1fr;
  }
  .home-cta-primary,
  .home-cta-secondary {
    padding: 13px 20px;
    font-size: 14px;
  }
  .auth-card-logo-text {
    font-size: 18px;
  }
  .verified-badge {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .profile-name {
    font-size: 20px;
  }
  .badge-card {
    padding: 14px;
  }
  .badge-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
  .badge-name {
    font-size: 13px;
  }
  .reviews-avg-num {
    font-size: 32px;
  }
  .review-card {
    padding: 16px 18px;
  }
  .home-feat-card,
  .system-card,
  .home-learn-card {
    padding: 22px 18px;
  }
  .home-feat-icon,
  .system-icon,
  .home-learn-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}

.quiz-mode-duel .quiz-mode-icon {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.28), rgba(168, 85, 247, 0.2));
}
.quiz-mode-duel:hover {
  border-color: #ec4899;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.25);
}

.duel-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.duel-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  border-radius: 11px;
  color: var(--t1);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  text-align: left;
}
.duel-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.18);
  border-color: #a78bfa;
  transform: translateX(3px);
}
.duel-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.duel-btn.true {
  border-color: rgba(16, 185, 129, 0.35);
}
.duel-btn.true:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
}
.duel-btn.false {
  border-color: rgba(239, 68, 68, 0.35);
}
.duel-btn.false:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
}
.duel-btn.correct {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.2));
  border-color: #10b981;
  color: #fff;
  animation: quizCorrect 0.5s;
}
.duel-btn.wrong {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.2));
  border-color: #ef4444;
  color: #fff;
  animation: quizWrong 0.5s;
}
.duel-icon {
  font-size: 24px;
  width: 34px;
  text-align: center;
}
.duel-statement {
  padding: 16px 18px;
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid #a78bfa;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: var(--t1);
  line-height: 1.55;
  margin-bottom: 14px;
  font-style: italic;
}
.duel-ai-says {
  font-size: 11px;
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.duel-ai-says:before {
  content: "🤖";
  font-size: 14px;
}
.duel-explain {
  padding: 11px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--t1);
  margin-top: 8px;
}
html[data-theme="light"] .duel-btn {
  background: #f8fafc;
  color: #0f172a;
}
html[data-theme="light"] .duel-statement {
  background: #f1f5f9;
}
html[data-theme="light"] .duel-explain {
  background: #f1f5f9;
  color: #1e293b;
}

.home-daily {
  max-width: 1280px;
  margin: -40px auto 20px;
  padding: 0 60px;
  position: relative;
  z-index: 5;
}
.daily-wrap {
  display: flex;
  justify-content: center;
}
.daily-card {
  width: 100%;
  max-width: 720px;
  background: linear-gradient(
    155deg,
    rgba(99, 102, 241, 0.18),
    rgba(236, 72, 153, 0.12),
    rgba(245, 158, 11, 0.08)
  );
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow:
    0 10px 32px rgba(245, 158, 11, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(12px);
}
.daily-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.daily-flame {
  font-size: 34px;
  filter: drop-shadow(0 4px 12px rgba(251, 146, 60, 0.5));
  animation: flameFlicker 1.4s ease-in-out infinite;
}
@keyframes flameFlicker {
  0%,
  100% {
    transform: scale(1) rotate(-2deg);
  }
  50% {
    transform: scale(1.05) rotate(2deg);
  }
}
.daily-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: 0.3px;
}
.daily-streak {
  font-size: 12.5px;
  color: var(--t2);
  font-weight: 600;
  margin-top: 2px;
}
.daily-streak b {
  color: #f59e0b;
  font-size: 14px;
  font-family: "Space Grotesk", sans-serif;
}
.daily-status {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
}
.daily-status.pending {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.daily-status.done {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.daily-body {
  padding: 8px 0 14px;
}
.daily-task {
  font-size: 15px;
  color: var(--t1);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
}
.daily-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.daily-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 99px;
  overflow: hidden;
}
.daily-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 99px;
  transition: width 0.4s;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
  width: 0%;
}
.daily-progress-txt {
  font-size: 11.5px;
  color: var(--t2);
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}
.daily-reward {
  font-size: 12.5px;
  color: var(--t2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.daily-reward b {
  color: #f59e0b;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
}
.daily-reward-ic {
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.4));
}
.daily-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid rgba(99, 102, 241, 0.15);
}
.daily-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
}
.daily-cal-day.today {
  outline: 2px solid #a78bfa;
  outline-offset: 1px;
  color: var(--t1);
}
.daily-cal-day.done {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}
.daily-cal-day.done:after {
  content: "✓";
  position: absolute;
  font-size: 9px;
  opacity: 0.8;
}
.daily-cal-day.streak-bonus {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
}
.daily-cal-day.streak-bonus:after {
  content: "🔥";
  font-size: 11px;
}
html[data-theme="light"] .daily-card {
  background: linear-gradient(
    155deg,
    rgba(99, 102, 241, 0.08),
    rgba(236, 72, 153, 0.05),
    rgba(245, 158, 11, 0.04)
  );
  border-color: rgba(245, 158, 11, 0.35);
}
html[data-theme="light"] .daily-cal-day {
  background: #f1f5f9;
}

@media (max-width: 768px) {
  .home-daily {
    padding: 0 16px;
    margin-top: 0;
  }
  .daily-card {
    padding: 18px 18px;
  }
  .daily-head {
    flex-wrap: wrap;
  }
  .daily-status {
    order: 3;
    width: 100%;
    margin-left: 0;
    text-align: center;
    margin-top: 4px;
  }
  .daily-flame {
    font-size: 28px;
  }
  .daily-title {
    font-size: 16px;
  }
  .daily-cal-day {
    font-size: 10px;
  }
}

html[data-theme="custom"] .chatbox-panel {
  background: var(--card);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--t1);
}
html[data-theme="custom"] .chatbox-header {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), transparent);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
html[data-theme="custom"] .chatbox-title,
html[data-theme="custom"] .chatbox-status {
  color: var(--t1);
}
html[data-theme="custom"] .chatbox-messages {
  background: var(--card);
}
html[data-theme="custom"] .chat-bot .chat-bubble {
  background: var(--bg);
  color: var(--t1);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="custom"] .chatbox-input-row {
  background: var(--bg);
  border-top-color: rgba(255, 255, 255, 0.06);
}
html[data-theme="custom"] .chatbox-input-row input {
  background: var(--card);
  color: var(--t1);
  border-color: rgba(255, 255, 255, 0.1);
}
html[data-theme="custom"] .chatbox-input-row input::placeholder {
  color: var(--t3);
}
html[data-theme="custom"] .chat-chip {
  background: rgba(255, 255, 255, 0.06);
  color: var(--t1);
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="custom"] .chatbox-toggle {
  background: linear-gradient(135deg, var(--acc), #8b5cf6);
}

.system-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  padding: 0;
}
.system-icon-img {
  padding: 0 !important;
}
.system-icon-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: none !important;
  display: block;
}

.planet {
  font-size: 22px;
}
.planet-img {
  padding: 0;
}
.planet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  display: block;
}

@media (max-width: 768px) {
  .system-icon {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}
.end-badge-card {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}
.end-badge-hex {
  width: 88px;
  height: 88px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  filter: drop-shadow(0 6px 18px rgba(99, 102, 241, 0.55));
  animation: quizBadgeIn 0.8s cubic-bezier(0.4, 1.6, 0.6, 1);
}
.end-badge-name {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.6px;
}

.chatbox-toggle {
  padding: 0;
  overflow: visible;
}
.chatbox-toggle-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
}
.chatbox-toggle-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.home-learn-cover {
  padding: 0;
  overflow: hidden;
  width: 64px;
  height: 84px;
  border-radius: 6px;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  background: #15151c;
}
.home-learn-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-learn-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.sidebar {
  transition:
    width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    min-width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.32s,
    opacity 0.25s;
}
.sidebar.collapsed {
  width: 0 !important;
  min-width: 0 !important;
  border-right-color: transparent;
  opacity: 0;
  pointer-events: none;
}
.sidebar.collapsed * {
  visibility: hidden;
}

.daily-cal-day.done {
  color: transparent;
}
.daily-cal-day.done:before {
  content: "";
  display: none;
}
.daily-cal-day.done:after {
  content: "✓";
  position: absolute;
  font-size: 14px;
  color: #fff;
  opacity: 1;
  font-weight: 700;
}
.daily-cal-day.streak-bonus {
  color: transparent;
}
.daily-cal-day.streak-bonus:after {
  content: "🔥";
  font-size: 14px;
}

.solar-sun {
  filter: drop-shadow(0 0 28px rgba(139, 92, 246, 0.55))
    drop-shadow(0 14px 36px rgba(99, 102, 241, 0.35)) !important;
}

.system-icon-img img,
.planet-img img {
  transition: transform 0.2s;
}
.system-icon-img img[src*="bone.png"],
.planet-img img[src*="bone.png"] {
  object-fit: contain !important;
  transform: scale(0.8) !important;
}
.system-icon-img img[src*="muscle.png"],
.planet-img img[src*="muscle.png"] {
  object-fit: contain !important;
  transform: scale(0.85) !important;
}
.system-icon-img img[src*="brain.png"],
.planet-img img[src*="brain.png"] {
  object-fit: contain !important;
  transform: scale(1.05) !important;
}
.system-icon-img img[src*="heart.png"],
.planet-img img[src*="heart.png"] {
  object-fit: contain !important;
  transform: scale(1) !important;
}
.system-icon-img img[src*="stomach.png"],
.planet-img img[src*="stomach.png"] {
  object-fit: contain !important;
  transform: scale(1) !important;
}
.system-icon-img img[src*="lungs.png"],
.planet-img img[src*="lungs.png"] {
  object-fit: contain !important;
  transform: scale(1) !important;
}

.vctrls-left {
  left: 12px !important;
  right: auto !important;
  top: 78px !important;
}

.logo-icon {
  width: 68px !important;
  height: 44px !important;
  overflow: visible !important;
}
.bionexus-logo-mark {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(1.18) !important;
  padding: 0 !important;
}
.home-logo-mark {
  width: 54px !important;
  height: 38px !important;
  border-radius: 8px;
  overflow: visible !important;
  padding: 0 !important;
}
.home-logo-mark img.bionexus-logo-mark {
  transform: scale(1.18) !important;
}
.auth-card-logo-mark {
  width: 80px !important;
  height: 56px !important;
  overflow: visible !important;
}
.auth-card-logo-mark img.bionexus-logo-mark {
  transform: scale(1.18) !important;
}

.chatbox-toggle-icon {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0;
}
.chatbox-toggle-icon svg {
  width: 32px !important;
  height: 32px !important;
  display: block !important;
}
.chatbox-toggle-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
  transform: none !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.system-icon-img img[src*="bone.png"],
.planet-img img[src*="bone.png"] {
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(1.7) !important;
  width: 100% !important;
  height: 100% !important;
}
.system-icon-img img[src*="muscle.png"],
.planet-img img[src*="muscle.png"] {
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(1.5) !important;
  width: 100% !important;
  height: 100% !important;
}

.logo-icon {
  width: 96px !important;
  height: 60px !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.logo-icon img.bionexus-logo-mark {
  transform: scale(1.45) !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
.home-logo-mark {
  width: 78px !important;
  height: 54px !important;
  overflow: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px;
  padding: 0 !important;
}
.home-logo-mark img.bionexus-logo-mark {
  transform: scale(1.4) !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
.auth-card-logo-mark {
  width: 120px !important;
  height: 80px !important;
  overflow: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.auth-card-logo-mark img.bionexus-logo-mark {
  transform: scale(1.4) !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.home-hero-stats {
  align-items: flex-start;
}
.home-hero-stats > div {
  min-height: 62px;
  justify-content: flex-start;
}
.home-hero-stats b {
  min-height: 34px;
  display: flex !important;
  align-items: center !important;
}
.home-stat-verified b {
  min-height: 34px !important;
  align-items: center !important;
}
.verified-badge {
  width: 30px !important;
  height: 30px !important;
  font-size: 16px !important;
  box-shadow:
    0 4px 12px rgba(16, 185, 129, 0.45),
    0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}
.home-hero-stats > div > span {
  margin-top: 6px !important;
}
.system-icon-img img[src*="brain.png"],
.planet-img img[src*="brain.png"] {
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(0.95) !important;
}
.system-icon-img img[src*="heart.png"],
.planet-img img[src*="heart.png"] {
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(0.95) !important;
}
.system-icon-img img[src*="stomach.png"],
.planet-img img[src*="stomach.png"] {
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(0.95) !important;
}
.system-icon-img img[src*="lungs.png"],
.planet-img img[src*="lungs.png"] {
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(0.95) !important;
}

.user-menu-ic-img {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px !important;
  height: 20px !important;
  font-size: 0 !important;
  opacity: 0.9;
}
.user-menu-ic-img img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: invert(85%) sepia(20%) saturate(800%) hue-rotate(210deg) brightness(105%);
}
html[data-theme="light"] .user-menu-ic-img img {
  filter: invert(20%) sepia(30%) saturate(800%) hue-rotate(210deg) brightness(95%);
}

.chatbox-avatar {
  padding: 0;
  overflow: hidden;
}
.chatbox-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .chatbox-widget {
    right: 14px !important;
    left: auto !important;
    bottom: 14px !important;
    display: block;
    pointer-events: auto;
    padding: 0;
  }
  .chatbox-panel {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 14px !important;
    transform: translateX(-50%) translateY(20px) scale(0.95) !important;
    transform-origin: bottom center !important;
    width: calc(100vw - 24px) !important;
    max-width: 420px !important;
    height: 78vh !important;
    max-height: 78vh !important;
  }
  .chatbox-panel.active {
    transform: translateX(-50%) translateY(0) scale(1) !important;
  }

  .home-nav.scrolled {
    max-width: calc(100vw - 16px) !important;
    padding: 6px 10px !important;
    gap: 8px !important;
  }
  .home-nav.scrolled .home-brand-text {
    display: none !important;
  }
  .home-nav.scrolled .home-logo-mark {
    width: 42px !important;
    height: 30px !important;
  }
  .home-nav-right {
    gap: 6px !important;
    flex-shrink: 0;
  }
  .user-menu-trigger {
    padding: 4px 8px !important;
    max-width: 140px;
  }
  .user-menu-name {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
  }
  .home-login-btn {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
  .lang-switch {
    transform: scale(0.85);
    transform-origin: right center;
  }

  .home-hero {
    padding-top: 90px !important;
  }
  .home-hero-inner {
    padding: 0 16px !important;
  }
  .home-hero-title {
    font-size: 34px !important;
    line-height: 1.1 !important;
  }
  .home-hero-sub {
    font-size: 14px !important;
  }
  .home-hero-badge {
    font-size: 11px !important;
    padding: 6px 12px !important;
  }

  .home-hero-visual {
    transform: scale(0.78);
    transform-origin: center top;
    margin-top: -30px;
  }

  .home-hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 18px !important;
  }
  .home-hero-stats b {
    font-size: 22px !important;
    min-height: 26px !important;
  }
  .home-hero-stats span {
    font-size: 10px !important;
  }
  .verified-badge {
    width: 26px !important;
    height: 26px !important;
    font-size: 14px !important;
  }

  .home-hero-cta {
    flex-direction: column !important;
    width: 100%;
  }
  .home-cta-primary,
  .home-cta-secondary {
    width: 100% !important;
    justify-content: center;
  }

  #viewer {
    touch-action: none;
  }

  .view-label {
    padding: 6px 10px !important;
    top: 8px !important;
    left: 8px !important;
  }
  .view-label .vl-title {
    font-size: 8px !important;
  }
  .view-label .vl-name {
    font-size: 12px !important;
  }
  .vctrls-left {
    top: 62px !important;
    left: 8px !important;
  }
  .vctrls {
    top: 8px !important;
    right: 8px !important;
  }
  .vbtn {
    width: 38px !important;
    height: 38px !important;
    font-size: 16px !important;
  }

  .daily-card {
    padding: 18px !important;
  }
  .daily-title {
    font-size: 16px !important;
  }
  .daily-task {
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .home-hero-title {
    font-size: 28px !important;
  }
  .home-hero-sub {
    font-size: 13px !important;
  }
  .home-nav {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .home-brand-text {
    font-size: 18px !important;
  }
  .home-logo-mark {
    width: 64px !important;
    height: 44px !important;
  }
  .home-nav-right {
    gap: 4px !important;
  }
  .home-login-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  .home-hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px 14px !important;
  }
  .home-hero-stats b {
    font-size: 18px !important;
  }
  .user-menu-avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
  }
  .home-hero-visual {
    transform: scale(0.6);
    margin-top: -60px;
  }

  .lang-switch {
    transform: scale(0.75);
    transform-origin: right center;
  }
}

.system-icon-img img[src*="heart.png"],
.planet-img img[src*="heart.png"] {
  transform: scale(0.9) !important;
}

@media (hover: none) and (pointer: coarse) {
  #viewer,
  #viewer canvas,
  #canvas3d {
    touch-action: none !important;
  }

  .system-card:hover,
  .bone-item:hover {
    transform: none;
  }
}

.chatbox-toggle-icon {
  background: #fff !important;
  border: 3px solid transparent !important;
  background-clip: padding-box !important;
  position: relative !important;
}
.chatbox-toggle-icon::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.chatbox-toggle-icon img {
  position: relative;
  z-index: 0;
}
.chatbox-avatar img {
  position: relative;
  z-index: 0;
}

.chatbox-avatar {
  background: #fff !important;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.chatbox-avatar::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.chatbox-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.home-feat-icon-img {
  padding: 0 !important;
  overflow: hidden;
  position: relative;
}
.home-feat-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transform: scale(0.85);
}
.home-feat-icon-img img[src*="feat-search.png"] {
  transform: scale(0.7) rotate(-12deg);
}
.home-feat-icon-img img[src*="feat-minigame.png"] {
  transform: scale(0.95);
}
.home-feat-icon-img img[src*="feat-skull.png"] {
  transform: scale(0.95);
}
.home-feat-icon-img img[src*="feat-curio.png"] {
  transform: scale(0.9);
}
.home-feat-icon-img img[src*="feat-learn.png"] {
  transform: scale(0.9);
}
.home-feat-icon-img img[src*="feat-ai.png"] {
  transform: scale(0.88);
}

.home-feat-icon-white {
  background: #ffffff !important;
  position: relative;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  padding: 0 !important;
}
.home-feat-icon-white img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}
.home-feat-icon-white img[src*="feat-skull.png"] {
  transform: scale(1.15) !important;
  object-position: center 48% !important;
}
.home-feat-icon-white img[src*="feat-minigame.png"] {
  transform: scale(1.05) !important;
  object-fit: contain !important;
  object-position: center !important;
}
.home-feat-icon-white img[src*="feat-ai.png"] {
  transform: scale(1.25) !important;
  object-position: center 50% !important;
}

.profile-tab-ic-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 0;
  vertical-align: middle;
}
.profile-tab-ic-img img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  filter: invert(100%) brightness(110%);
}
.profile-tab.active .profile-tab-ic-img img {
  filter: invert(100%) brightness(120%);
}
html[data-theme="light"] .profile-tab-ic-img img {
  filter: invert(20%) sepia(15%) saturate(600%) hue-rotate(210deg);
}
html[data-theme="light"] .profile-tab.active .profile-tab-ic-img img {
  filter: invert(100%) brightness(115%);
}

@media (max-width: 768px) {
  .chatbox-widget {
    bottom: auto !important;
    top: auto !important;
    right: 14px !important;
    left: auto !important;
    display: block !important;
    padding: 0 !important;
    pointer-events: auto !important;
    position: fixed !important;
  }
  .chatbox-widget {
    bottom: 14px !important;
  }
  .chatbox-toggle {
    width: 48px !important;
    height: 48px !important;
    box-shadow:
      0 4px 16px rgba(99, 102, 241, 0.55),
      0 0 0 3px rgba(99, 102, 241, 0.18) !important;
  }
  .chatbox-toggle-icon {
    width: 48px !important;
    height: 48px !important;
  }
  .chatbox-widget > .chatbox-toggle {
    margin-left: 0 !important;
  }
  .home-hero-cta {
    position: relative;
    z-index: 10;
  }
  .home-cta-primary,
  .home-cta-secondary {
    position: relative;
    z-index: 11;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
  .home-hero {
    padding-bottom: 90px !important;
  }
  .home-hero-inner {
    padding-bottom: 80px !important;
  }
}

@media (max-width: 480px) {
  .chatbox-toggle {
    width: 44px !important;
    height: 44px !important;
  }
  .chatbox-toggle-icon {
    width: 44px !important;
    height: 44px !important;
  }
  .chatbox-widget {
    right: 10px !important;
    bottom: 10px !important;
  }
}

@media (max-width: 900px) {
  .home-hero-inner {
    position: relative;
    z-index: 50 !important;
    pointer-events: auto !important;
  }
  .home-hero-cta {
    position: relative;
    z-index: 51 !important;
    pointer-events: auto !important;
  }
  .home-cta-primary,
  .home-cta-secondary,
  .home-login-btn,
  .home-feat-card,
  .home-feat-clickable,
  .system-card {
    pointer-events: auto !important;
    touch-action: manipulation;
    position: relative;
    z-index: 1;
  }
  .home-hero-visual {
    pointer-events: none !important;
    z-index: 1 !important;
  }
  .home-hero-visual * {
    pointer-events: none !important;
  }
  .solar-system,
  .solar-system * {
    pointer-events: none !important;
  }
  .home-overlay {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .chatbox-widget {
    right: 14px !important;
    bottom: 14px !important;
    width: auto !important;
    left: auto !important;
    top: auto !important;
  }
  .chatbox-toggle {
    position: relative;
    z-index: 5510;
  }
  .chatbox-panel.active {
    z-index: 5520;
  }

  .home-hero-cta {
    flex-direction: column !important;
    width: 100%;
    align-items: stretch;
  }
  .home-cta-primary,
  .home-cta-secondary {
    width: auto !important;
    max-width: calc(100vw - 110px);
    margin: 0 auto;
  }
  .home-hero-inner {
    padding-right: 0 !important;
  }
}

.home-cta-primary,
.home-cta-secondary,
.home-login-btn {
  -webkit-tap-highlight-color: rgba(99, 102, 241, 0.3);
  user-select: none;
  -webkit-user-select: none;
}

@media (hover: none) {
  .home-cta-primary:hover,
  .home-cta-secondary:hover,
  .home-feat-card:hover,
  .system-card:hover {
    transform: none;
  }
  .home-cta-primary:hover span,
  .home-cta-secondary:hover span {
    transform: none;
  }
}

@media (max-width: 900px) {
  .home-hero-visual {
    height: 300px !important;
  }
  .solar-system {
    pointer-events: none !important;
  }
  .orbit {
    pointer-events: none !important;
  }
  .planet {
    pointer-events: none !important;
  }
}

button,
a,
[role="button"],
.system-card,
.home-feat-clickable,
.home-cta-primary,
.home-cta-secondary,
.home-login-btn,
.chatbox-toggle,
.user-menu-trigger,
.user-menu-item,
.profile-tab {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(99, 102, 241, 0.25);
  touch-action: manipulation;
}

button {
  user-select: none;
  -webkit-user-select: none;
}

.auth-captcha-real {
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  margin: 6px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-captcha-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 600;
}
.auth-captcha-logo {
  font-size: 16px;
  filter: drop-shadow(0 1px 2px rgba(99, 102, 241, 0.4));
}
.auth-captcha-title {
  flex: 1;
}
.auth-captcha-refresh {
  background: transparent;
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: 0.18s;
  padding: 0;
}
.auth-captcha-refresh:hover {
  background: rgba(99, 102, 241, 0.18);
  transform: rotate(180deg);
}
.auth-captcha-challenge {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-captcha-q {
  flex: 1;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.18));
  border-radius: 10px;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid rgba(99, 102, 241, 0.3);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  font-style: italic;
  letter-spacing: 3px;
}
.auth-captcha-input {
  width: 90px;
  padding: 12px 10px !important;
  text-align: center;
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(99, 102, 241, 0.4) !important;
  border-radius: 10px !important;
  color: #fff !important;
  letter-spacing: 2px;
}
.auth-captcha-input:focus {
  outline: none;
  border-color: #a5b4fc !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}
.auth-captcha-input.ok {
  border-color: #10b981 !important;
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.08) !important;
}
.auth-captcha-input.bad {
  border-color: #ef4444 !important;
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.08) !important;
  animation: captchaShake 0.4s;
}
@keyframes captchaShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.auth-captcha-status {
  font-size: 12px;
  min-height: 16px;
  font-weight: 500;
}
.auth-captcha-status.ok {
  color: #34d399;
}
.auth-captcha-status.bad {
  color: #f87171;
}
.auth-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
}
html[data-theme="light"] .auth-captcha-real {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(99, 102, 241, 0.2);
}
html[data-theme="light"] .auth-captcha-q {
  color: #1e293b;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
}
html[data-theme="light"] .auth-captcha-input {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

.quiz-mode-icon-img {
  padding: 0 !important;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
}
.quiz-mode-icon-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transform: scale(0.85);
}
.quiz-mode-icon-img img[src*="bone.png"] {
  transform: scale(0.7) !important;
}
.quiz-mode-icon-img img[src*="quiz-books.png"] {
  transform: scale(0.95) !important;
}
.quiz-mode-icon-img img[src*="quiz-aiduel.png"] {
  transform: scale(0.92) !important;
}

@media (max-width: 900px) {
  .home-hero-visual {
    transform: none !important;
    margin-top: 0 !important;
    height: 340px !important;
    overflow: hidden !important;
  }
  .home-hero-visual .solar-system {
    transform: scale(0.6) !important;
    transform-origin: center center !important;
  }
}
@media (max-width: 480px) {
  .home-hero-visual {
    transform: none !important;
    margin-top: 0 !important;
    height: 300px !important;
  }
  .home-hero-visual .solar-system {
    transform: scale(0.52) !important;
    transform-origin: center center !important;
  }
}

@media (max-width: 900px) {
  body.mode-quiz .quiz-panel {
    position: fixed !important;
    top: 65px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - 65px) !important;
    max-height: none !important;
    border-bottom: 0 !important;
    display: flex;
    flex-direction: column;
  }
  body.mode-quiz .quiz-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 18px 24px !important;
  }
  body.mode-quiz .quiz-modes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  body.mode-quiz .quiz-mode-card {
    width: 100%;
    text-align: left;
  }
  body.mode-quiz .viewer {
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1 !important;
  }
  body.mode-quiz #canvas3d {
    visibility: hidden;
  }
  body.mode-quiz.qmode-visual #canvas3d {
    visibility: visible;
    width: 100% !important;
    height: 100% !important;
  }
  body.mode-quiz.qmode-visual .viewer {
    position: fixed !important;
    top: 65px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 48vh !important;
    width: 100% !important;
    height: auto !important;
    flex: none !important;
  }
  body.mode-quiz.qmode-visual .quiz-panel {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 48vh !important;
    max-height: 48vh !important;
    border-top: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 18px 18px 0 0 !important;
  }
  body.mode-quiz.qmode-knowledge .quiz-panel,
  body.mode-quiz.qmode-duel .quiz-panel {
    top: 65px !important;
    bottom: 0 !important;
    height: calc(100vh - 65px) !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 480px) {
  body.mode-quiz.qmode-visual .viewer {
    bottom: 55vh !important;
  }
  body.mode-quiz.qmode-visual .quiz-panel {
    height: 55vh !important;
    max-height: 55vh !important;
  }
}

img[data-clean-bg]:not(.cleaned) {
  opacity: 0 !important;
  transition: opacity 0.25s ease;
}
img[data-clean-bg].cleaned {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.app-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin-right: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 99px;
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.3px;
  transition: 0.18s;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.18);
  -webkit-tap-highlight-color: rgba(99, 102, 241, 0.25);
  touch-action: manipulation;
}
.app-back-btn:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  transform: translateX(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}
.app-back-arrow {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.18s;
}
.app-back-btn:hover .app-back-arrow {
  transform: translateX(-3px);
}
html[data-theme="light"] .app-back-btn {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.3);
}
html[data-theme="light"] .app-back-btn:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
@media (max-width: 768px) {
  .app-back-btn {
    padding: 6px 10px;
    font-size: 12px;
    margin-right: 8px;
  }
  .app-back-txt {
    display: none;
  }
  .app-back-btn {
    padding: 8px 12px;
  }
  .app-back-arrow {
    font-size: 18px;
  }
}
body.mode-quiz .app-back-btn {
  display: none;
}

@media (max-width: 900px) {
  body.mode-skeleton .vctrls-left,
  body.mode-skeleton .vctrls {
    display: none !important;
  }
  .vctrls-left {
    display: none !important;
  }
  .vctrls {
    display: none !important;
  }
}

body.mode-quiz .quiz-panel {
  top: 88px !important;
}
body.mode-quiz .app {
  height: calc(100vh - 88px) !important;
}
@media (max-width: 900px) {
  body.mode-quiz .quiz-panel {
    top: 74px !important;
  }
  body.mode-quiz .app {
    height: calc(100vh - 74px) !important;
  }
  body.mode-quiz.qmode-knowledge .quiz-panel,
  body.mode-quiz.qmode-duel .quiz-panel {
    top: 74px !important;
    height: calc(100vh - 74px) !important;
  }
  body.mode-quiz.qmode-visual .viewer {
    top: 74px !important;
  }
}
@media (max-width: 768px) {
  body.mode-quiz .quiz-panel {
    top: 62px !important;
  }
  body.mode-quiz .app {
    height: calc(100vh - 62px) !important;
  }
  body.mode-quiz.qmode-knowledge .quiz-panel,
  body.mode-quiz.qmode-duel .quiz-panel {
    top: 62px !important;
    height: calc(100vh - 62px) !important;
  }
  body.mode-quiz.qmode-visual .viewer {
    top: 62px !important;
  }
}

.app-muscular {
  display: none;
}
body.mode-muscular .app:not(.app-muscular) {
  display: none !important;
}
body.mode-muscular .app-muscular {
  display: flex !important;
}
body.mode-muscular #navTabs {
  display: none !important;
}
body.mode-muscular #navTabsMuscle {
  display: flex !important;
}
body.mode-skeleton #navTabsMuscle {
  display: none !important;
}
body.mode-cardio #navTabs,
body.mode-nervous #navTabs,
body.mode-respiratory #navTabs {
  display: none !important;
}
body.mode-cardio #navTabsMuscle,
body.mode-nervous #navTabsMuscle,
body.mode-respiratory #navTabsMuscle {
  display: none !important;
}
body.mode-cardio #navTabsExtra,
body.mode-nervous #navTabsExtra,
body.mode-respiratory #navTabsExtra {
  display: flex !important;
}
body:not(.mode-muscular) #appMuscular {
  display: none !important;
}
.system-badge.badge-beta {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
}
.muscle-tooltip {
  position: fixed;
  background: rgba(20, 20, 40, 0.92);
  color: var(--t1);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  z-index: 200;
  border: 1px solid var(--acc);
  backdrop-filter: blur(8px);
  display: none;
  white-space: nowrap;
}
#appMuscular .load-overlay {
  background: radial-gradient(ellipse at center, #1a2332, #0d1117 70%, #080c12);
}
#appMuscular .load-overlay .spinner {
  display: none;
}
#appMuscular .load-error {
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  padding: 18px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.app-muscular .sidebar,
.app-muscular .info-panel {
  transition:
    width 0.25s ease,
    min-width 0.25s ease,
    opacity 0.2s ease,
    margin 0.25s ease;
}
.app-muscular.mu-sb-hidden .sidebar {
  width: 0 !important;
  min-width: 0 !important;
  opacity: 0;
  margin-left: -1px;
  pointer-events: none;
  overflow: hidden;
}
.app-muscular.mu-ip-hidden .info-panel {
  width: 0 !important;
  min-width: 0 !important;
  opacity: 0;
  margin-right: -1px;
  pointer-events: none;
  overflow: hidden;
}
.app-muscular .vctrls-left {
  transition: left 0.25s ease;
}
.app-muscular.mu-sb-hidden .vctrls-left {
  left: 12px !important;
}

#mu-tooltip,
.muscle-tooltip {
  display: none !important;
  visibility: hidden !important;
}

.mu-load-splash {
  position: absolute;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.14), transparent 50%),
    linear-gradient(180deg, #0a0e1a 0%, #0d1224 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
  font-family: "Inter", system-ui, sans-serif;
}
.mu-load-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mu-splash-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: splashIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mu-splash-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(99, 102, 241, 0.08);
  box-shadow:
    0 16px 48px rgba(99, 102, 241, 0.35),
    0 0 0 1px rgba(99, 102, 241, 0.25) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashPulse 2.4s ease-in-out infinite;
}
.mu-splash-logo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: auto;
  filter: drop-shadow(0 6px 18px rgba(139, 92, 246, 0.4));
}
.mu-splash-brand {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 8px;
}
.mu-splash-tag {
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: -4px;
  text-align: center;
  max-width: 300px;
}
.mu-splash-bar {
  width: 240px;
  height: 3px;
  background: rgba(99, 102, 241, 0.18);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 18px;
  position: relative;
}
.mu-splash-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  border-radius: 99px;
  width: 0%;
  transition: width 0.3s ease;
}
#mu-viewer {
  background: radial-gradient(ellipse at center, #1a2332, #0d1117 70%, #080c12);
}

#mu-canvas3d {
  transition: opacity 0.5s ease;
  opacity: 0;
}
#mu-canvas3d.mu-revealed {
  opacity: 1;
}
.mu-load-splash {
  background: linear-gradient(180deg, #0a0e1a 0%, #0d1224 100%) !important;
}

.quiz-mode-icon-img {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  border-radius: 12px;
  padding: 6px !important;
  overflow: hidden !important;
  width: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.quiz-mode-icon-img img {
  background: transparent !important;
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}
.quiz-mode-icon-img img[src*="bone.png"] {
  transform: scale(0.72) !important;
}
.quiz-mode-icon-img img[src*="muscle.png"] {
  transform: scale(0.85) !important;
}

@media (max-width: 768px) {
  .chatbox-toggle,
  .chatbox-toggle-icon {
    border-radius: 50% !important;
    width: 54px !important;
    height: 54px !important;
    aspect-ratio: 1/1 !important;
    overflow: hidden !important;
  }
  .chatbox-toggle-icon img {
    border-radius: 50% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .chatbox-toggle-icon::before {
    border-radius: 50% !important;
  }
}

.app-extra {
  display: none;
  width: 100vw;
  height: calc(100vh - 65px);
  position: relative;
}
body.mode-cardio .app-cardio,
body.mode-nervous .app-nervous,
body.mode-respiratory .app-respiratory {
  display: flex !important;
}
body.mode-cardio .app:not(.app-extra),
body.mode-nervous .app:not(.app-extra),
body.mode-respiratory .app:not(.app-extra) {
  display: none !important;
}
body:not(.mode-cardio) #appCardio,
body:not(.mode-nervous) #appNervous,
body:not(.mode-respiratory) #appRespiratory {
  display: none !important;
}
.app-extra .viewer {
  flex: 1;
  position: relative;
  overflow: hidden;
}
#appCardio .viewer {
  background: radial-gradient(ellipse at center, #2a1015, #1a0a0f 60%, #0a050a);
}
#appNervous .viewer {
  background: radial-gradient(ellipse at center, #2a1c0a, #1a1208 60%, #0a0805);
}
#appRespiratory .viewer {
  background: radial-gradient(ellipse at center, #1a1a2e, #10101e 60%, #080814);
}
#cardio-canvas3d,
#nervous-canvas3d,
#resp-canvas3d {
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
  transition: opacity 0.5s ease;
  opacity: 0;
}
#cardio-canvas3d.extra-revealed,
#nervous-canvas3d.extra-revealed,
#resp-canvas3d.extra-revealed {
  opacity: 1;
}
.extra-load-splash {
  background: linear-gradient(180deg, #0a0e1a 0%, #0d1224 100%) !important;
}
.extra-load-splash.hidden {
  opacity: 0;
  pointer-events: none;
}

.notebook-modal,
.notebook-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 7800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  padding: 20px;
  animation: nbFadeIn 0.3s ease;
}
@keyframes nbFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.notebook-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}
.notebook-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  background: linear-gradient(160deg, #0f172a, #1e1b4b);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}
.notebook-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(245, 158, 11, 0.12));
}
.notebook-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.notebook-icon {
  font-size: 26px;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.5));
}
.notebook-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.notebook-count {
  font-size: 12px;
  color: #94a3b8;
  background: rgba(99, 102, 241, 0.18);
  padding: 4px 10px;
  border-radius: 99px;
}
.notebook-close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s;
}
.notebook-close:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #fff;
}
.notebook-toolbar {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(15, 23, 42, 0.45);
}
.notebook-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.notebook-search-ic {
  position: absolute;
  left: 12px;
  color: #64748b;
  font-size: 14px;
  pointer-events: none;
}
.notebook-search-wrap input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 13px;
  font-family: inherit;
}
.notebook-search-wrap input:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.notebook-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nb-filter {
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.18s;
}
.nb-filter:hover {
  background: rgba(99, 102, 241, 0.16);
  color: #cbd5e1;
}
.nb-filter.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.35);
}
.notebook-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.nb-tag-filter {
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.18);
  color: #64748b;
  font-size: 11px;
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
}
.nb-tag-filter.active {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
.notebook-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  position: relative;
}
.notebook-empty {
  text-align: center;
  padding: 50px 20px;
  color: #64748b;
}
.notebook-empty-icon {
  font-size: 54px;
  margin-bottom: 14px;
  opacity: 0.6;
}
.notebook-empty h3 {
  font-family: "Space Grotesk", sans-serif;
  color: #cbd5e1;
  font-size: 20px;
  margin: 0 0 10px;
}
.notebook-empty p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto 20px;
}
.notebook-add-first {
  padding: 11px 22px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}
.notebook-add-first:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.5);
}
.notebook-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.nb-card {
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-left: 3px solid #6366f1;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: 0.22s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.nb-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
}
.nb-card.color-red {
  border-left-color: #ef4444;
}
.nb-card.color-orange {
  border-left-color: #f97316;
}
.nb-card.color-yellow {
  border-left-color: #eab308;
}
.nb-card.color-green {
  border-left-color: #22c55e;
}
.nb-card.color-blue {
  border-left-color: #3b82f6;
}
.nb-card.color-purple {
  border-left-color: #a855f7;
}
.nb-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 6px;
}
.nb-card-title {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}
.nb-card-star {
  font-size: 14px;
  flex-shrink: 0;
}
.nb-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 11px;
  color: #94a3b8;
}
.nb-card-cat {
  padding: 2px 8px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 99px;
  font-weight: 600;
  color: #a5b4fc;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.nb-card-subject {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 12px;
}
.nb-card-content {
  font-size: 12.5px;
  line-height: 1.55;
  color: #94a3b8;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.nb-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(99, 102, 241, 0.12);
}
.nb-card-tag {
  padding: 2px 7px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-size: 10px;
  border-radius: 99px;
  font-weight: 500;
}
.nb-card-date {
  font-size: 10px;
  color: #475569;
  margin-top: 8px;
  letter-spacing: 0.3px;
}
.notebook-add-fab {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
  transition: 0.2s;
  font-family: inherit;
  line-height: 1;
  z-index: 2;
}
.notebook-add-fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.65);
}
.notebook-editor-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  background: linear-gradient(160deg, #0f172a, #1e1b4b);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}
.notebook-editor-head {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.18), transparent);
}
.notebook-editor-head h3 {
  font-family: "Space Grotesk", sans-serif;
  color: #fff;
  font-size: 18px;
  margin: 0;
  font-weight: 700;
}
.notebook-editor-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
}
.nb-label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.5px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  margin-top: 12px;
}
.notebook-editor-body .nb-label:first-child {
  margin-top: 0;
}
.notebook-editor-body input[type="text"],
.notebook-editor-body textarea,
.notebook-editor-body select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.notebook-editor-body input:focus,
.notebook-editor-body textarea:focus,
.notebook-editor-body select:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.nb-row {
  display: flex;
  gap: 12px;
}
.nb-field {
  display: flex;
  flex-direction: column;
}
.nb-color-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nb-color {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.18s;
  padding: 0;
}
.nb-color:hover {
  transform: scale(1.15);
}
.nb-color.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}
.nb-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
  margin-top: 14px;
  user-select: none;
}
.nb-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
  cursor: pointer;
}
.notebook-editor-footer {
  padding: 14px 22px;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(15, 23, 42, 0.5);
}
.nb-btn {
  padding: 10px 18px;
  border-radius: 9px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: 0.2s;
}
.nb-btn-secondary {
  background: rgba(99, 102, 241, 0.16);
  color: #cbd5e1;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.nb-btn-secondary:hover {
  background: rgba(99, 102, 241, 0.28);
}
.nb-btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.nb-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.5);
}
.nb-btn-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  margin-right: auto;
}
.nb-btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.nb-context-action {
  position: absolute;
  bottom: 74px;
  right: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
  border: 0;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
  animation: nbFadeIn 0.25s ease;
  transition: 0.18s;
}
.nb-context-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.6);
}
html[data-theme="light"] .notebook-card,
html[data-theme="light"] .notebook-editor-card {
  background: linear-gradient(160deg, #ffffff, #f8fafc);
  border-color: rgba(99, 102, 241, 0.3);
}
html[data-theme="light"] .notebook-head h2,
html[data-theme="light"] .notebook-editor-head h3 {
  color: #0f172a;
}
html[data-theme="light"] .nb-card {
  background: linear-gradient(155deg, #ffffff, #f8fafc);
  border-color: rgba(99, 102, 241, 0.18);
}
html[data-theme="light"] .nb-card-title {
  color: #0f172a;
}
html[data-theme="light"] .nb-card-content,
html[data-theme="light"] .nb-card-meta {
  color: #64748b;
}
html[data-theme="light"] .notebook-editor-body input,
html[data-theme="light"] .notebook-editor-body textarea,
html[data-theme="light"] .notebook-editor-body select,
html[data-theme="light"] .notebook-search-wrap input {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}
@media (max-width: 768px) {
  .notebook-card {
    max-height: 96vh;
  }
  .notebook-list {
    grid-template-columns: 1fr;
  }
  .notebook-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .nb-filter {
    flex-shrink: 0;
  }
  .notebook-modal,
  .notebook-editor-modal {
    padding: 0;
  }
}

.home-feat-icon-white img[src*="feat-notebook.png"] {
  transform: scale(1.1) !important;
  object-position: center !important;
}

.quiz-mode-icon-emoji {
  width: 56px !important;
  height: 56px !important;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.25),
    rgba(139, 92, 246, 0.15)
  ) !important;
  border: 1px solid rgba(99, 102, 241, 0.4) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

body:not(.mode-quiz) #quizPanel {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
body:not(.mode-quiz) #quizBackdrop {
  display: none !important;
}

.system-icon-img img[src*="feat-skull.png"] {
  transform: scale(0.9) !important;
  object-fit: contain !important;
  object-position: center 45% !important;
  width: 100% !important;
  height: 100% !important;
}

.home-learn-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 22px;
}
@media (min-width: 1100px) {
  .home-learn-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (max-width: 900px) {
  .home-learn-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 560px) {
  .home-learn-grid {
    grid-template-columns: 1fr !important;
  }
}
.home-learn-cover-barron {
  background: linear-gradient(160deg, #7f1d1d 0%, #991b1b 45%, #450a0a 100%) !important;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 5px 5px !important;
  text-align: center;
  position: relative;
  color: #fef3c7;
}
.home-learn-cover-barron::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(252, 211, 77, 0.45);
  border-radius: 3px;
  pointer-events: none;
}
.learn-cover-stamp {
  font-family: "Space Grotesk", sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fcd34d;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
  margin-top: 2px;
}
.learn-cover-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  color: #fef3c7;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.learn-cover-year {
  font-family: "Space Grotesk", sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: #fcd34d;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
