:root {
  --rbm-bg-canvas: #F8FAFC;
  --rbm-bg-white: #FFFFFF;
  --rbm-sidebar-bg: #141417;
  --rbm-sidebar-bg-deep: #101013;
  --rbm-red: #D9232E;
  --rbm-red-dark: #991B1B;
  --rbm-red-hover: #B91C1C;
  --rbm-red-pastel: #FEF2F2;
  --rbm-yellow: #FACC15;
  --rbm-yellow-gold: #EAB308;
  --rbm-yellow-pastel: #FEFCE8;
  --rbm-amber-text: #D97706;
  --rbm-text-main: #0F172A;
  --rbm-text-body: #1E293B;
  --rbm-text-muted: #64748B;
  --rbm-border-subtle: #F1F5F9;
  --rbm-border-light: #E2E8F0;
  --rbm-green: #16A34A;
  --rbm-green-pastel: #ECFDF5;
  --rbm-radius-2xl: 22px;
  --rbm-radius-xl: 16px;
  --rbm-radius-lg: 12px;
  --rbm-shadow-sm: 0 2px 12px -2px rgba(15, 23, 42, 0.04), 0 1px 4px -1px rgba(15, 23, 42, 0.02);
  --rbm-shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --rbm-shadow-hero: 0 20px 40px -12px rgba(217, 35, 46, 0.28);
}

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

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--rbm-bg-canvas);
  color: var(--rbm-text-main);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--rbm-text-main);
  margin-top: 0;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* ==========================================================================
   APP SHELL & SLEEK DARK SIDEBAR (COMMAND CENTER STYLE)
   ========================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: 272px 1fr;
  min-height: 100dvh;
  transition: grid-template-columns 0.25s ease;
}

/* Distraction-Free CAT Exam Simulation Mode */
.app-shell.cat-exam-mode {
  grid-template-columns: 1fr;
}

.app-shell.cat-exam-mode .app-sidebar,
.app-shell.cat-exam-mode .top-header {
  display: none !important;
}

/* Desktop Collapsible Sidebar */
@media (min-width: 769px) {
  .app-shell.sidebar-collapsed {
    grid-template-columns: 0px 1fr;
  }

  .app-shell.sidebar-collapsed .app-sidebar {
    width: 0;
    min-width: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .app-shell.sidebar-collapsed .mobile-menu-btn {
    display: inline-flex;
  }
}

.app-sidebar {
  background: linear-gradient(180deg, #540B12 0%, #3D080D 55%, #270408 100%);
  color: #FFF1F2;
  display: flex;
  flex-direction: column;
  position: sticky;
  inset-block-start: 0;
  height: 100dvh;
  overflow-y: auto;
  z-index: 30;
  padding: 18px 14px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
}

.app-sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 16px;
}

.brand-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, #D9232E 0%, #F59E0B 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(217, 35, 46, 0.38);
  overflow: hidden;
}

.brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #FFFFFF;
  padding: 3px;
}

.brand-text-wrap {
  flex: 1;
  min-width: 0;
}

.brand-title {
  font-weight: 800;
  font-size: 15px;
  color: #FFFFFF;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 228, 230, 0.68);
  margin-top: 2px;
}

.sidebar-collapse-chip {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 228, 230, 0.8);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-collapse-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

/* Mode Switcher inside Dark Red Sidebar */
.sidebar-mode-switch {
  margin: 0 4px 14px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.mode-btn {
  border: none;
  background: transparent;
  color: rgba(255, 228, 230, 0.72);
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  color: #FFFFFF;
}

.mode-btn.active {
  background: linear-gradient(135deg, #EF4444 0%, #D9232E 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.42);
}

.sidebar-nav-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-section-label {
  padding: 14px 10px 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(253, 164, 175, 0.65);
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #FFE4E6;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-item-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* Active Menu Pill: Glowing Bright Red Gradient + Subtle Light Ring */
.nav-item-btn.active {
  background: linear-gradient(135deg, #EF4444 0%, #D9232E 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 22px -4px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.nav-item-btn.active .nav-icon-box {
  background: rgba(255, 255, 255, 0.18);
}

.nav-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-main-label {
  font-size: 13.5px;
  font-weight: 700;
  color: inherit;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-sub-label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 228, 230, 0.65);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item-btn.active .nav-sub-label {
  color: rgba(255, 255, 255, 0.82);
}

.nav-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.18);
  color: var(--rbm-yellow);
  border: 1px solid rgba(250, 204, 21, 0.3);
  flex-shrink: 0;
}

.nav-item-btn.active .nav-badge {
  background: var(--rbm-yellow);
  color: #141417;
  border-color: transparent;
}

/* Sidebar Bottom Integration Status & User Card */
.sidebar-bottom-area {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.integration-status-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
}

.integration-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #FFF1F2;
  margin-bottom: 10px;
}

.integration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255, 228, 230, 0.72);
  padding: 4px 0;
}

.integration-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.integration-pill.active {
  background: rgba(22, 163, 74, 0.18);
  color: #4ADE80;
  border-color: rgba(22, 163, 74, 0.3);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-user-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #270408;
  border: 2px solid var(--rbm-yellow);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 11px;
  color: rgba(255, 228, 230, 0.68);
}

.sidebar-user-chevron {
  font-size: 13px;
  color: rgba(255, 228, 230, 0.72);
  display: inline-flex;
  align-items: center;
}

/* Monochrome Modern SVG Icon Helper */
.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

.ui-icon svg {
  display: block;
}

/* ==========================================================================
   MAIN CONTENT AREA & SEAMLESS GREETING HEADER
   ========================================================================== */
.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--rbm-bg-canvas);
}

.top-header {
  background: transparent;
  padding: 26px 32px 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.greeting-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--rbm-text-main);
  margin: 0 0 5px 0;
  letter-spacing: -0.025em;
}

.greeting-highlight {
  background: linear-gradient(135deg, #D9232E 0%, #EA580C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.greeting-subtitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--rbm-text-muted);
  font-weight: 500;
}

.header-link-action {
  background: transparent;
  border: none;
  color: var(--rbm-red);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.header-link-action:hover {
  background: var(--rbm-red-pastel);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 7px;
  background: var(--rbm-bg-white);
  border: 1px solid var(--rbm-border-light);
  border-radius: 10px;
  padding: 8px 13px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--rbm-text-main);
  box-shadow: var(--rbm-shadow-sm);
  transition: all 0.15s ease;
}

.mobile-menu-btn:hover {
  background: var(--rbm-red-pastel);
  border-color: #FECACA;
  color: var(--rbm-red);
}

.page-container {
  padding: 16px 32px 40px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   HERO BANNER CARD (RED-TO-GOLD GRADIENT + GLASS PILL BUTTONS)
   ========================================================================== */
.hero-command-banner {
  background:
    radial-gradient(circle at 88% 20%, rgba(250, 204, 21, 0.42) 0%, transparent 45%),
    linear-gradient(110deg, #991B1B 0%, #D9232E 42%, #DC2626 72%, #EAB308 100%);
  border-radius: 24px;
  padding: 32px 36px;
  color: #FFFFFF;
  box-shadow: var(--rbm-shadow-hero);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: none;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.hero-headline {
  font-size: 34px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-dot {
  color: var(--rbm-yellow);
  font-size: 22px;
  line-height: 1;
}

.hero-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 680px;
  margin: 0 0 22px 0;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-glass-pill {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  border-radius: 9999px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-glass-pill:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

/* ==========================================================================
   BENTO GRID, SOFT CARDS & PASTEL KPI CARDS
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.col-span-12 { grid-column: span 12; }
.col-span-8  { grid-column: span 8; }
.col-span-7  { grid-column: span 7; }
.col-span-6  { grid-column: span 6; }
.col-span-5  { grid-column: span 5; }
.col-span-4  { grid-column: span 4; }
.col-span-3  { grid-column: span 3; }

/* Clean SaaS Card: No Black Borders, Rounded-2xl, Border-Slate-100, Soft Shadow */
.rbm-card,
.rbm-card.dark-border {
  background: var(--rbm-bg-white);
  border: 1px solid var(--rbm-border-subtle);
  border-radius: var(--rbm-radius-2xl);
  padding: 22px 24px;
  box-shadow: var(--rbm-shadow-sm);
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rbm-card:hover {
  box-shadow: var(--rbm-shadow-md);
}

/* Soft Header inside Cards (Replacing Old Black Header) */
.rbm-card-header-dark {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEFCE8 100%);
  color: var(--rbm-text-main);
  margin: -22px -24px 18px -24px;
  padding: 16px 24px;
  border-radius: 22px 22px 0 0;
  border-block-end: 1px solid var(--rbm-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rbm-card-header-dark h3,
.rbm-card-header-dark h4 {
  color: var(--rbm-text-main);
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
}

/* KPI Card Layout (Matching Command Center Screenshot) */
.kpi-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.kpi-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--rbm-text-muted);
  line-height: 1.35;
}

.kpi-icon-pastel {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.kpi-icon-pastel.red {
  background: #FEF2F2;
  color: #D9232E;
}

.kpi-icon-pastel.amber {
  background: #FEFCE8;
  color: #D97706;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--rbm-text-main);
  margin: 4px 0 10px;
  letter-spacing: -0.025em;
}

.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rbm-text-muted);
}

.kpi-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--rbm-text-muted);
  font-weight: 500;
}

.kpi-trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
}

.kpi-trend-pill.red {
  background: #FEF2F2;
  color: #D9232E;
}

.kpi-trend-pill.amber {
  background: #FEFCE8;
  color: #B45309;
}

.kpi-trend-pill.green {
  background: #ECFDF5;
  color: #15803D;
}

/* ==========================================================================
   BUTTONS & BADGES (SOFT ROUNDED SAAS AESTHETIC)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
  color: var(--rbm-text-main);
  background: var(--rbm-bg-white);
}

.btn-primary {
  background: linear-gradient(135deg, #D9232E 0%, #B91C1C 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(217, 35, 46, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 35, 46, 0.32);
}

.btn-yellow {
  background: var(--rbm-yellow);
  color: #141417;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.25);
}

.btn-yellow:hover {
  background: #FDE047;
  transform: translateY(-1px);
}

.btn-dark {
  background: #1E293B;
  color: #FFFFFF;
}

.btn-dark:hover {
  background: #0F172A;
}

.btn-outline {
  background: var(--rbm-bg-white);
  color: var(--rbm-text-body);
  border: 1px solid var(--rbm-border-light);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.btn-outline:hover {
  background: var(--rbm-bg-canvas);
  border-color: #CBD5E1;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 12px;
  border-radius: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.badge-red {
  background: #FEF2F2;
  color: #D9232E;
}

.badge-yellow {
  background: #FEFCE8;
  color: #B45309;
  border: 1px solid rgba(250, 204, 21, 0.45);
}

.badge-green {
  background: #ECFDF5;
  color: #15803D;
}

.badge-dark {
  background: #F1F5F9;
  color: #334155;
}

/* ==========================================================================
   CORE CAT ENGINE (CLEAN, BORDERLESS SAAS EXAM WORKSPACE)
   ========================================================================== */
.cat-workspace {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 22px;
  align-items: start;
}

.cat-top-bar {
  background: var(--rbm-bg-white);
  border: 1px solid var(--rbm-border-subtle);
  border-radius: var(--rbm-radius-2xl);
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--rbm-shadow-sm);
}

.cat-timer-boxes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-timer-unit {
  background: linear-gradient(135deg, #D9232E 0%, #991B1B 100%);
  color: #FFFFFF;
  min-width: 64px;
  padding: 9px 11px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(217, 35, 46, 0.25);
}

.cat-timer-unit .num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cat-timer-unit .lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
}

.cat-question-card {
  background: var(--rbm-bg-white);
  border: 1px solid var(--rbm-border-subtle);
  border-radius: var(--rbm-radius-2xl);
  overflow: hidden;
  box-shadow: var(--rbm-shadow-md);
}

.cat-question-header {
  background: #FFFFFF;
  border-block-end: 1px solid var(--rbm-border-subtle);
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.font-scale-controls {
  display: inline-flex;
  border: 1px solid var(--rbm-border-light);
  border-radius: 10px;
  overflow: hidden;
  background: var(--rbm-bg-canvas);
  padding: 2px;
}

.font-scale-btn {
  border: none;
  background: transparent;
  color: var(--rbm-text-muted);
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  transition: all 0.15s ease;
}

.font-scale-btn.active {
  background: var(--rbm-red);
  color: #FFFFFF;
}

.cat-question-body {
  padding: 28px 26px;
  color: var(--rbm-text-main);
}

.cat-question-body.font-sm { font-size: 14px; }
.cat-question-body.font-md { font-size: 16px; }
.cat-question-body.font-lg { font-size: 19px; }

.cat-stem img,
.cat-option-content img {
  max-width: 100%;
  height: auto !important;
  border-radius: 12px;
  margin: 10px 0;
}

.cat-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.cat-option-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--rbm-border-light);
  background: var(--rbm-bg-white);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  width: 100%;
  color: var(--rbm-text-main);
  font-family: inherit;
  font-size: inherit;
}

.cat-option-item:hover {
  border-color: #FDA4AF;
  background: #FFFBFB;
  transform: translateY(-1px);
  box-shadow: var(--rbm-shadow-sm);
}

.cat-option-item.selected {
  border-color: var(--rbm-red);
  background: var(--rbm-red-pastel);
  box-shadow: 0 4px 14px rgba(217, 35, 46, 0.08);
}

.cat-option-letter {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--rbm-bg-canvas);
  border: 1px solid var(--rbm-border-light);
  color: var(--rbm-text-main);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.cat-option-item.selected .cat-option-letter {
  background: var(--rbm-red);
  border-color: var(--rbm-red);
  color: #FFFFFF;
}

.cat-option-content p {
  margin: 0;
}

.cat-question-footer {
  padding: 18px 26px;
  background: var(--rbm-bg-canvas);
  border-block-start: 1px solid var(--rbm-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Matrix Navigation 1-110 */
.cat-matrix-panel {
  background: var(--rbm-bg-white);
  border: 1px solid var(--rbm-border-subtle);
  border-radius: var(--rbm-radius-2xl);
  padding: 20px;
  position: sticky;
  inset-block-start: 24px;
  box-shadow: var(--rbm-shadow-sm);
}

.cat-matrix-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px 2px;
  margin: 12px 0;
}

.matrix-num-btn {
  height: 36px;
  min-width: 0;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--rbm-border-light);
  background: var(--rbm-bg-canvas);
  color: var(--rbm-text-body);
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.15s ease;
}

.matrix-num-btn:hover {
  border-color: #94A3B8;
  background: #F1F5F9;
}

/* Hijau / Terisi (Sudah Dijawab) */
.matrix-num-btn.answered {
  background: var(--rbm-green);
  border-color: var(--rbm-green);
  color: #FFFFFF;
}

/* Kuning #FACC15 (Ragu-ragu) */
.matrix-num-btn.doubtful {
  background: var(--rbm-yellow) !important;
  border-color: var(--rbm-yellow-gold) !important;
  color: #141417 !important;
}

.matrix-num-btn.current {
  box-shadow: 0 0 0 3px rgba(217, 35, 46, 0.35);
  border-color: var(--rbm-red);
  transform: scale(1.06);
  z-index: 2;
}

.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--rbm-text-muted);
  padding-top: 12px;
  border-block-start: 1px solid var(--rbm-border-subtle);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

/* ==========================================================================
   RESPONSIVE DATA TABLES (Modern Web Guidance `responsive-table`)
   ========================================================================== */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(620px, 78vh);
  container-type: inline-size;
  border: 1px solid var(--rbm-border-subtle);
  border-radius: 16px;
  background: var(--rbm-bg-white);
}

.rbm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.rbm-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background: #F8FAFC;
  color: var(--rbm-text-muted);
}

.rbm-table th {
  padding: 13px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-block-end: 1px solid var(--rbm-border-light);
}

.rbm-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  background: var(--rbm-bg-white);
  color: var(--rbm-text-main);
  z-index: 1;
  text-transform: none;
  font-size: 13.5px;
  letter-spacing: normal;
}

.rbm-table td {
  padding: 14px 16px;
  border-block-end: 1px solid var(--rbm-border-subtle);
  color: var(--rbm-text-body);
  vertical-align: middle;
}

.rbm-table tbody tr:hover td,
.rbm-table tbody tr:hover th {
  background: #FFFBFB;
}

/* ==========================================================================
   TABBED INTERFACES (Modern Web Guidance `tabs`)
   ========================================================================== */
.rbm-tablist {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  border-block-end: 1px solid var(--rbm-border-light);
  margin-bottom: 22px;
  scrollbar-width: none;
}

.rbm-tab {
  flex: none;
  position: relative;
  border: none;
  background: transparent;
  color: var(--rbm-text-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 18px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.rbm-tab:hover {
  color: var(--rbm-text-main);
}

.rbm-tab[aria-selected="true"] {
  color: var(--rbm-red);
}

.rbm-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  border-block-end: 3px solid var(--rbm-red);
  border-radius: 3px 3px 0 0;
}

/* ==========================================================================
   NATIVE MODAL DIALOGS (Modern Web Guidance `dialog`)
   ========================================================================== */
dialog:modal {
  overscroll-behavior: contain;
  border: 1px solid var(--rbm-border-subtle);
  border-radius: 24px;
  padding: 0;
  max-width: min(960px, 95vw);
  width: 100%;
  background: var(--rbm-bg-white);
  color: var(--rbm-text-main);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22);
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.dialog-header {
  background: var(--rbm-bg-white);
  color: var(--rbm-text-main);
  padding: 20px 26px;
  border-block-end: 1px solid var(--rbm-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-header h2 {
  color: var(--rbm-text-main);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.dialog-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--rbm-border-light);
  background: var(--rbm-bg-canvas);
  color: var(--rbm-text-muted);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-close-btn:hover {
  background: var(--rbm-red-pastel);
  color: var(--rbm-red);
  border-color: #FECACA;
}

.dialog-body {
  padding: 24px 26px;
  max-height: 75vh;
  overflow-y: auto;
}

.dialog-footer {
  padding: 16px 26px;
  background: var(--rbm-bg-canvas);
  border-block-start: 1px solid var(--rbm-border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Form Controls */
.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--rbm-text-body);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--rbm-border-light);
  background: var(--rbm-bg-white);
  color: var(--rbm-text-main);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--rbm-red);
  box-shadow: 0 0 0 3px rgba(217, 35, 46, 0.1);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rbm-toast {
  background: #141417;
  color: #FFFFFF;
  border-inline-start: 4px solid var(--rbm-yellow);
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.25);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .cat-workspace {
    grid-template-columns: 1fr;
  }
  .col-span-8, .col-span-7, .col-span-6, .col-span-5, .col-span-4, .col-span-3 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    position: fixed;
    inset-inline-start: 0;
    inset-block-start: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.35);
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .top-header {
    padding: 18px 16px 8px;
  }
  .page-container {
    padding: 12px 16px 32px;
  }
  .hero-command-banner {
    padding: 24px 20px;
  }
  .hero-headline {
    font-size: 24px;
  }
}

/* ==========================================================================
   SKD SLIDE SCORE CARD (2 KOLOM: KIRI = TOTAL SKD, KANAN = 3 BARIS TWK/TIU/TKP)
   ========================================================================== */
.skd-slider-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.3fr);
  gap: 14px;
  align-items: stretch;
}

.skd-sub-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.skd-total-card {
  background: #FFFFFF;
  border: 1.5px solid #D9232E;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--rbm-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skd-total-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.skd-total-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rbm-text-muted);
}

.skd-total-number {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.05;
  color: #0F172A;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}

.skd-total-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.skd-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.skd-status-pill.pass {
  background: #DCFCE7;
  color: #15803D;
}

.skd-status-pill.fail {
  background: #FEE2E2;
  color: #B91C1C;
}

.skd-max-caption {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--rbm-text-muted);
}

.skd-slider-track-wrap {
  position: relative;
  margin-top: 18px;
  padding-top: 4px;
  padding-bottom: 2px;
}

.skd-slider-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #FEE2E2;
  overflow: visible;
}

.skd-slider-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #DC2626 0%, #B91C1C 100%);
  position: relative;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.skd-slider-thumb {
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 3.5px solid #B91C1C;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.35);
}

.skd-pg-tick {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #64748B;
  opacity: 0.65;
  pointer-events: none;
}

.skd-slider-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--rbm-text-muted);
}

.skd-sub-card {
  background: #FFFFFF;
  border: 1px solid var(--rbm-border-light);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--rbm-shadow-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.skd-sub-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.skd-sub-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.skd-sub-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.skd-sub-pill.twk { background: #2563EB; }
.skd-sub-pill.tiu { background: #059669; }
.skd-sub-pill.tkp { background: #D97706; }

.skd-sub-pg {
  font-size: 12px;
  font-weight: 700;
  color: var(--rbm-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.skd-sub-pg.pass { color: #059669; }
.skd-sub-pg.fail { color: #DC2626; }

.skd-sub-score {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
}

.skd-sub-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #F1F5F9;
}

.skd-sub-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.skd-sub-fill.twk { background: #2563EB; }
.skd-sub-fill.tiu { background: #059669; }
.skd-sub-fill.tkp { background: #D97706; }

.skd-sub-tick {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: #334155;
  opacity: 0.55;
}

@media (max-width: 768px) {
  .skd-slider-summary {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PEMBAHASAN 1-PER-1 LAYOUT + RIGHT NAVIGATOR
   ========================================================================== */
.pembahasan-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .pembahasan-layout {
    grid-template-columns: 1fr;
  }
}

.pembahasan-nav-btn {
  height: 34px;
  min-width: 0;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--rbm-border-light);
  background: #FFFFFF;
  color: var(--rbm-text-main);
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.pembahasan-nav-btn:hover {
  transform: translateY(-1px);
  border-color: var(--rbm-red);
}

.pembahasan-nav-btn.benar {
  background: #16A34A;
  color: #FFFFFF;
  border-color: #16A34A;
}

.pembahasan-nav-btn.parsial {
  background: var(--rbm-yellow);
  color: #141417;
  border-color: var(--rbm-yellow-gold);
}

.pembahasan-nav-btn.salah {
  background: #FEE2E2;
  color: #B91C1C;
  border-color: #FCA5A5;
}

.pembahasan-nav-btn.current {
  outline: 3px solid rgba(217, 35, 46, 0.3);
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--rbm-red);
}

/* ==========================================================================
   LEADERBOARD RANK 1, 2, 3 HOVER & MEDAL HIGHLIGHT
   ========================================================================== */
.rbm-table tbody tr.rank-row-1 {
  background: rgba(254, 249, 195, 0.45);
  transition: all 0.18s ease;
}

.rbm-table tbody tr.rank-row-1:hover {
  background: rgba(254, 240, 138, 0.72) !important;
  box-shadow: inset 4px 0 0 #EAB308;
}

.rbm-table tbody tr.rank-row-2 {
  background: rgba(241, 245, 249, 0.65);
  transition: all 0.18s ease;
}

.rbm-table tbody tr.rank-row-2:hover {
  background: rgba(226, 232, 240, 0.9) !important;
  box-shadow: inset 4px 0 0 #94A3B8;
}

.rbm-table tbody tr.rank-row-3 {
  background: rgba(255, 237, 213, 0.48);
  transition: all 0.18s ease;
}

.rbm-table tbody tr.rank-row-3:hover {
  background: rgba(254, 215, 170, 0.72) !important;
  box-shadow: inset 4px 0 0 #D97706;
}

.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.rank-medal.r1 { background: #FEF08A; color: #854D0E; }
.rank-medal.r2 { background: #E2E8F0; color: #334155; }
.rank-medal.r3 { background: #FED7AA; color: #9A3412; }

/* ==========================================================================
   ADMIN OVERVIEW: HORIZONTAL SLIDE BAR CHART BY GROUP
   ========================================================================== */
.group-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-bar-row {
  display: grid;
  grid-template-columns: 185px 1fr 90px;
  align-items: center;
  gap: 14px;
}

@media (max-width: 680px) {
  .group-bar-row {
    grid-template-columns: 120px 1fr 75px;
    gap: 8px;
  }
}

.group-bar-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--rbm-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-bar-track {
  height: 14px;
  border-radius: 999px;
  background: #F1F5F9;
  overflow: hidden;
}

.group-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #D9232E 0%, #EF4444 65%, #FACC15 100%);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.group-bar-count {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--rbm-text-body);
  text-align: right;
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   V2 AUTH SCREEN, ONLINE PULSE, WA BUTTON, FUNNEL PIPELINE & AI GENERATOR
   ========================================================================== */
.auth-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top left, #7F1D1D 0%, #3D080D 45%, #141417 100%);
}

.auth-container {
  width: 100%;
  max-width: 1020px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #FFFFFF;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.55);
}

.auth-brand-panel {
  background: linear-gradient(145deg, #D9232E 0%, #991B1B 58%, #B45309 100%);
  color: #FFFFFF;
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.auth-brand-panel.admin-portal-brand {
  background: linear-gradient(155deg, #1E1B24 0%, #540B12 58%, #991B1B 100%);
}

.auth-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-hero-title {
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.auth-hero-sub {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.auth-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-feature-pills span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.auth-form-panel {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #FFFFFF;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: #F1F5F9;
  border-radius: 14px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: var(--rbm-red);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.auth-alert {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.auth-alert.error {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.auth-alert.success {
  background: #ECFDF5;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.recaptcha-slot {
  min-height: 78px;
  display: flex;
  align-items: center;
}

/* Online Pulse Indicator */
.online-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: rbmPulse 1.8s infinite;
  vertical-align: middle;
}

.online-dot.exam {
  background: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
}

@keyframes rbmPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: 0.72; }
}

/* WhatsApp Personal Follow-up Button */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #16A34A;
  color: #FFFFFF !important;
  border: 1px solid #15803D;
  border-radius: 10px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.btn-wa:hover {
  background: #15803D;
  transform: translateY(-1px);
}

/* Per-Topic Mini Score Pills inside Tes Berlangsung */
.topic-score-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--rbm-border-light);
  background: #F8FAFC;
  color: #1E293B;
}

.topic-pill.pass {
  background: #ECFDF5;
  border-color: #86EFAC;
  color: #15803D;
}

.topic-pill.fail {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}

/* Funnel Pipeline Grid */
.funnel-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.funnel-stage-card {
  background: var(--rbm-bg-canvas);
  border: 1px solid var(--rbm-border-light);
  border-radius: 16px;
  padding: 16px;
  position: relative;
}

.funnel-stage-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--rbm-red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.funnel-stage-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--rbm-text-main);
  margin: 6px 0 4px;
}

.funnel-stage-sub {
  font-size: 12px;
  color: var(--rbm-text-muted);
}

@media (max-width: 900px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  .auth-brand-panel {
    padding: 28px 24px;
  }
  .funnel-pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ==========================================================================
   AVATARS (SIDEBAR, PROFIL PESERTA, DATABASE PESERTA ADMIN) & RICH SOAL EDITOR
   ========================================================================== */
.sidebar-avatar {
  overflow: hidden;
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D9232E 0%, #F59E0B 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

.user-avatar-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-lg {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D9232E 0%, #F59E0B 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid #FFFFFF;
  box-shadow: 0 10px 24px rgba(217, 35, 46, 0.22);
  flex-shrink: 0;
}

.profile-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rich-soal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: var(--rbm-bg-canvas);
  border: 1px solid var(--rbm-border-light);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.rich-soal-editor {
  min-height: 128px;
  max-height: 300px;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid var(--rbm-border-light);
  border-radius: 0 0 12px 12px;
  background: #FFFFFF;
  color: var(--rbm-text-main);
  font-size: 14px;
  line-height: 1.6;
  outline: none;
}

.rich-soal-editor:focus {
  border-color: var(--rbm-red);
  box-shadow: 0 0 0 3px rgba(217, 35, 46, 0.1);
}

.rich-soal-editor img {
  max-width: 100%;
  max-height: 260px;
  height: auto;
  border-radius: 10px;
  margin: 6px 0;
  display: block;
  border: 1px solid var(--rbm-border-light);
}

.rich-soal-editor:empty::before {
  content: attr(data-placeholder);
  color: #94A3B8;
  pointer-events: none;
}

.opt-rich-editor {
  min-height: 42px;
  max-height: 140px;
  overflow-y: auto;
  padding: 9px 12px;
  border: 1px solid var(--rbm-border-light);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--rbm-text-main);
  font-size: 13.5px;
  line-height: 1.45;
  outline: none;
}

.opt-rich-editor:focus {
  border-color: var(--rbm-red);
  box-shadow: 0 0 0 3px rgba(217, 35, 46, 0.08);
}

.opt-rich-editor img {
  max-width: 100%;
  max-height: 110px;
  height: auto;
  border-radius: 8px;
  margin: 4px 0;
  display: block;
}

/* Figural SVG Vector Images (AI Preview, Editor, CAT & Pembahasan) */
.figural-svg-img {
  max-width: 100%;
  height: auto !important;
  border-radius: 12px;
  border: 1px solid var(--rbm-border-light);
  background: #FFFFFF;
  display: block;
  margin: 8px 0;
}

.cat-stem img.figural-svg-img {
  max-width: min(640px, 100%);
}

.cat-option-content img.figural-svg-img {
  max-width: 150px;
  max-height: 150px;
  margin: 2px 0;
}

.ai-figural-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.ai-figural-opt-grid img.figural-svg-img {
  max-width: 130px;
  max-height: 130px;
  margin: 6px auto 0;
}

.svg-paste-drawer {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px dashed #FCA5A5;
  background: #FFFBFB;
}

.svg-paste-preview {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--rbm-border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}

.svg-paste-preview img {
  max-width: 100%;
  max-height: 220px;
  height: auto;
}

/* Admin Toggle Switch Slider (On/Off) */
.rbm-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.rbm-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.rbm-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.rbm-switch-slider {
  position: absolute;
  inset: 0;
  background: #CBD5E1;
  border-radius: 999px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.rbm-switch-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.28);
  transition: transform 0.2s ease;
}
.rbm-switch input:checked + .rbm-switch-slider {
  background: #16A34A;
}
.rbm-switch input:checked + .rbm-switch-slider::before {
  transform: translateX(20px);
}
.rbm-switch input:focus-visible + .rbm-switch-slider {
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.28);
}
.rbm-switch input:disabled + .rbm-switch-slider {
  opacity: 0.55;
  cursor: not-allowed;
}
.rbm-switch-label {
  font-size: 12px;
  font-weight: 700;
  min-width: 56px;
}
.rbm-switch-label.on {
  color: #15803D;
}
.rbm-switch-label.off {
  color: #64748B;
}
tr.rbm-paket-inactive > td:not(.rbm-keep-opacity) {
  opacity: 0.55;
}
tr.rbm-paket-inactive {
  background: #FAFAFB;
}
