
html.cbti-active,
body.cbti-active {
  background: #070a13 !important;
  color: #f8fafc !important;
  margin: 0 !important;
  padding: 0 !important;
}
html.cbti-active body:before,
html.cbti-active body:after {
  display: none !important;
  content: none !important;
}
#cbti-app-root {
  position: relative !important;
  z-index: 99999 !important;
}

/* Instant full-screen isolation for CBTI pages */
html.cbti-active #app,
body.cbti-active #app,
html.cbti-active #header,
html.cbti-active header,
html.cbti-active .footer,
html.cbti-active .mobile-nav,
html.cbti-active .mu-appbar,
html.cbti-active #ai-coin-widget,
html.cbti-active #activity-chest-pill,
html.cbti-active #activity-chest-pop,
html.cbti-active #huf-user-fab {
  display: none !important;
}
/* ==========================================================================
   CBTI Theme 20261029-v1 — Cyber Dark Futuristic Theme for HCode OJ
   ========================================================================== */

:root {
  --cbti-bg-dark: #070a13;
  --cbti-bg-card: rgba(15, 23, 42, 0.78);
  --cbti-bg-card-hover: rgba(30, 41, 59, 0.88);
  --cbti-border: rgba(255, 255, 255, 0.1);
  --cbti-border-glow: rgba(99, 102, 241, 0.4);
  --cbti-primary: #6366f1;
  --cbti-primary-glow: rgba(99, 102, 241, 0.35);
  --cbti-accent: #00f2fe;
  --cbti-secondary: #a855f7;
  --cbti-success: #10b981;
  --cbti-warning: #f59e0b;
  --cbti-danger: #ef4444;
  --cbti-text-main: #f8fafc;
  --cbti-text-muted: #94a3b8;
  --cbti-text-sub: #cbd5e1;
  --cbti-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

#cbti-app-root {
  min-height: 100vh;
  background-color: var(--cbti-bg-dark);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--cbti-text-main);
  font-family: var(--cbti-font-family);
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
  z-index: 100;
}

#cbti-app-root *, #cbti-app-root *::before, #cbti-app-root *::after {
  box-sizing: inherit;
}

/* Background Cyber Grid */
#cbti-app-root .cbti-grid-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

/* Top Navigation Bar */
.cbti-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cbti-border);
}

.cbti-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cbti-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cbti-text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}
.cbti-back-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.cbti-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #a5b4fc, #c084fc, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
}

.cbti-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cbti-nav-btn {
  color: var(--cbti-text-sub);
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.cbti-nav-btn:hover, .cbti-nav-btn.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.cbti-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Main Container */
.cbti-content-wrap {
  position: relative;
  z-index: 10;
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

/* ==========================================================================
   Home / Landing Page
   ========================================================================== */
.cbti-hero {
  text-align: center;
  padding: 50px 20px 30px;
}

.cbti-hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cbti-hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #ffffff 20%, #c4b5fd 70%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.cbti-hero-slogan {
  font-size: 18px;
  color: var(--cbti-text-sub);
  margin: 0 auto 36px;
  max-width: 640px;
  line-height: 1.6;
}

.cbti-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.cbti-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  padding: 14px 34px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--cbti-primary-glow);
  transition: all 0.25s ease;
  text-decoration: none;
}
.cbti-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.55);
}

.cbti-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cbti-text-sub);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cbti-border);
  padding: 14px 26px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.cbti-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Feature Matrix Cards */
.cbti-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 50px;
}

.cbti-feat-card {
  background: var(--cbti-bg-card);
  border: 1px solid var(--cbti-border);
  backdrop-filter: blur(12px);
  padding: 22px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.25s;
}
.cbti-feat-card:hover {
  border-color: var(--cbti-border-glow);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cbti-feat-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.cbti-feat-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}

.cbti-feat-desc {
  font-size: 13px;
  color: var(--cbti-text-muted);
  line-height: 1.5;
}

/* Showcase Teaser Cards */
.cbti-showcase-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--cbti-text-sub);
}

.cbti-cards-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.cbti-cards-scroll::-webkit-scrollbar {
  height: 6px;
}
.cbti-cards-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.cbti-preview-card {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  background: var(--cbti-bg-card);
  border: 1px solid var(--cbti-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
}
.cbti-preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--p-color, #6366f1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.cbti-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--p-color, #6366f1);
}

.cbti-card-code {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  color: #fff;
  background: var(--p-color, #6366f1);
  margin-bottom: 6px;
}

.cbti-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.cbti-card-slogan {
  font-size: 12px;
  color: var(--cbti-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Quiz Test Page (/cbti/test)
   ========================================================================== */
.cbti-test-container {
  max-width: 760px;
  margin: 0 auto;
}

.cbti-test-header {
  margin-bottom: 24px;
}

.cbti-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.cbti-progress-counter {
  font-weight: 700;
  color: #fff;
}
.cbti-progress-counter span {
  color: var(--cbti-primary);
}

.cbti-progress-model {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.cbti-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.cbti-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #06b6d4);
  border-radius: 4px;
  transition: width 0.35s ease;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.cbti-question-card {
  background: var(--cbti-bg-card);
  border: 1px solid var(--cbti-border);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 36px 32px;
  margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: all 0.3s;
}

.cbti-q-number {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--cbti-accent);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.cbti-q-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 28px;
}

.cbti-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cbti-option-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.cbti-option-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateX(4px);
}
.cbti-option-card.selected {
  background: rgba(99, 102, 241, 0.22);
  border-color: #818cf8;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
}

.cbti-opt-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cbti-text-sub);
  transition: all 0.2s;
}
.cbti-option-card.selected .cbti-opt-badge {
  background: #6366f1;
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

.cbti-opt-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--cbti-text-sub);
  margin-top: 4px;
}
.cbti-option-card.selected .cbti-opt-text {
  color: #fff;
  font-weight: 500;
}

.cbti-test-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Toast Meme Modal */
.cbti-meme-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #6366f1;
  border-radius: 14px;
  padding: 16px 20px;
  color: #fff;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 2000;
  animation: cbtiSlideUp 0.3s ease;
}
@keyframes cbtiSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Result Page (/cbti/result)
   ========================================================================== */
.cbti-result-card {
  background: var(--cbti-bg-card);
  border: 1px solid var(--cbti-border);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.cbti-result-hero {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cbti-avatar-frame {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--p-color, #6366f1);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.cbti-hero-info {
  flex: 1;
  min-width: 260px;
}

.cbti-meta-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cbti-code-pill {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--p-color, #6366f1);
  color: #fff;
  letter-spacing: 1px;
}

.cbti-cat-pill {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--cbti-text-sub);
}

.cbti-match-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.cbti-hero-name {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
}

.cbti-hero-slogan-box {
  font-size: 16px;
  font-style: italic;
  color: var(--cbti-accent);
  background: rgba(0, 242, 254, 0.08);
  border-left: 3px solid var(--cbti-accent);
  padding: 10px 16px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 16px;
}

.cbti-hero-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--cbti-text-sub);
}

/* Sections */
.cbti-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cbti-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--cbti-primary);
  border-radius: 2px;
}

/* Radar & Dimensions Container */
.cbti-radar-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
}
@media (max-width: 800px) {
  .cbti-radar-layout {
    grid-template-columns: 1fr;
  }
}

.cbti-radar-box {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.cbti-dims-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cbti-dim-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.cbti-dim-item:hover, .cbti-dim-item.open {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
}

.cbti-dim-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.cbti-dim-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.cbti-dim-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #6366f1, #00f2fe);
}

.cbti-sub-drawer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cbti-sub-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--cbti-text-muted);
}

/* Pros / Cons / Advice Cards */
.cbti-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.cbti-card-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
}

.cbti-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.cbti-box-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cbti-text-sub);
  margin-bottom: 10px;
}
.cbti-box-item:last-child {
  margin-bottom: 0;
}

.cbti-advice-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.cbti-advice-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cbti-advice-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--cbti-text-sub);
  margin-bottom: 14px;
}

.cbti-egg-box {
  font-size: 13px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  padding: 10px 14px;
  border-radius: 10px;
}

/* Result Actions Bottom Bar */
.cbti-result-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 10px;
}

/* ==========================================================================
   Poster Modal & Preview
   ========================================================================== */
.cbti-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cbti-modal-card {
  background: #0f172a;
  border: 1px solid var(--cbti-border-glow);
  border-radius: 20px;
  padding: 28px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.cbti-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--cbti-text-muted);
  cursor: pointer;
}
.cbti-modal-close:hover {
  color: #fff;
}

.cbti-poster-img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 12px;
  margin: 16px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Gallery Page (/cbti/types)
   ========================================================================== */
.cbti-gallery-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cbti-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cbti-text-sub);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.cbti-filter-btn:hover, .cbti-filter-btn.active {
  background: var(--cbti-primary);
  color: #fff;
  border-color: var(--cbti-primary);
  box-shadow: 0 0 12px var(--cbti-primary-glow);
}

.cbti-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.cbti-gallery-card {
  background: var(--cbti-bg-card);
  border: 1px solid var(--cbti-border);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.cbti-gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--p-color, #6366f1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.cbti-hidden-tag {
  position: absolute;
  top: 10px;
  right: -24px;
  transform: rotate(45deg);
  background: #f59e0b;
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Reveal Animation */
.cbti-reveal-wrap {
  text-align: center;
  padding: 100px 20px;
}

.cbti-scanner-ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  border-radius: 50%;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: #6366f1;
  border-right-color: #00f2fe;
  animation: cbtiSpin 1s linear infinite;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}
@keyframes cbtiSpin {
  to { transform: rotate(360deg); }
}

.cbti-reveal-step {
  font-size: 18px;
  font-weight: 600;
  color: var(--cbti-accent);
  margin-bottom: 12px;
}


/* ==========================================================================
   Admin Dashboard Styles (/cbti/admin)
   ========================================================================== */
.cbti-admin-wrap {
  max-width: 1320px !important;
  margin: 0 auto;
  padding: 30px 24px 60px;
}

.cbti-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.cbti-admin-tag {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.cbti-admin-nav-btn {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
  font-weight: 700 !important;
}

.cbti-admin-nav-btn.active, .cbti-admin-nav-btn:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}

.cbti-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .cbti-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .cbti-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.cbti-kpi-card {
  background: var(--cbti-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--cbti-border);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cbti-kpi-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--cbti-text-muted);
  margin-bottom: 8px;
}

.cbti-kpi-val {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.cbti-kpi-sub {
  font-size: 12px;
  color: #64748b;
}

.cbti-admin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--cbti-bg-card);
  border: 1px solid var(--cbti-border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cbti-admin-filter-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}

.cbti-admin-input {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  min-width: 260px;
  outline: none;
  transition: all 0.2s;
}

.cbti-admin-input:focus {
  border-color: var(--cbti-primary);
  box-shadow: 0 0 0 2px var(--cbti-primary-glow);
}

.cbti-admin-select {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.cbti-admin-select option {
  background: #0f172a;
  color: #fff;
}

.cbti-table-container {
  background: var(--cbti-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--cbti-border);
  border-radius: 16px;
  overflow-x: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
}

.cbti-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.cbti-table th {
  background: rgba(30, 41, 59, 0.5);
  color: #94a3b8;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--cbti-border);
  white-space: nowrap;
}

.cbti-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.cbti-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.cbti-tbl-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #6366f1;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cbti-tbl-avatar svg {
  width: 100%;
  height: 100%;
}

.cbti-badge-student {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.cbti-badge-guest {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
}

.cbti-tag-equipped {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.cbti-personality-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid transparent;
}

.cbti-cat-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

.cbti-sim-track {
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.cbti-sim-fill {
  height: 100%;
  border-radius: 2px;
}

.cbti-dim-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 280px;
}

.cbti-dim-pill {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 6px;
  color: #cbd5e1;
  white-space: nowrap;
}

.cbti-btn-action {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  color: #cbd5e1;
  transition: all 0.2s;
}

.cbti-btn-view:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  color: #fff;
}

.cbti-btn-del {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.cbti-btn-del:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}

.cbti-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.cbti-page-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.cbti-page-btn:hover:not(:disabled) {
  border-color: var(--cbti-primary);
  color: #fff;
}
