/* ==========================================================================
   UJIAN ONLINE - BANK SOAL PENGUJI BILLET (150 SOAL)
   Style CSS: Desain Modern, Responsif Mobile-First, Bersih & Performa Tinggi
   Warna Dominan: Biru (#2563eb) & Putih (#ffffff)
   ========================================================================== */

:root {
  /* Palet Warna Biru & Putih */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;

  /* Indikator Status & Koreksi */
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --success-text: #065f46;
  --success-solid: #10b981;

  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;
  --danger-solid: #ef4444;

  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --warning-text: #92400e;
  --warning-solid: #f59e0b;

  /* Netral & Teks */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Layout & Ukuran */
  --max-width: 1060px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Bayangan Halus */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  /* Font Sistem Cepat & Dukungan Aksara Mandarin Lengkap */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Noto Sans SC", "Source Han Sans CN", SimHei, Helvetica, Arial, sans-serif;
  --font-family-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Noto Sans SC", "Source Han Sans CN", SimHei, sans-serif;
}

/* Reset Dasar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-family);
  background-color: #dbeafe;
  background-image: 
    radial-gradient(circle at 10% 12%, rgba(37, 99, 235, 0.22) 0px, transparent 48%),
    radial-gradient(circle at 90% 10%, rgba(99, 102, 241, 0.22) 0px, transparent 50%),
    radial-gradient(circle at 50% 35%, rgba(14, 165, 233, 0.18) 0px, transparent 55%),
    radial-gradient(circle at 92% 85%, rgba(37, 99, 235, 0.20) 0px, transparent 50%),
    radial-gradient(circle at 8% 85%, rgba(16, 185, 129, 0.16) 0px, transparent 48%),
    linear-gradient(180deg, #e8f2fc 0%, #dce9f8 40%, #d2e4f7 100%);
  background-attachment: fixed;
  color: var(--slate-800);
  line-height: 1.5;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* ==========================================================================
   HEADER APLIKASI (STICKY & RINGKAS UNTUK HP)
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(191, 219, 254, 0.85);
  box-shadow: 0 2px 10px -2px rgba(37, 99, 235, 0.07);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.brand-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--primary-700);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.70rem;
  font-weight: 500;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary-600);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-200);
}

.btn-header-finish {
  background-color: var(--primary-600);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-header-finish:hover {
  background-color: var(--primary-700);
}

/* USER DROPDOWN DI HEADER */
.user-menu-wrapper {
  position: relative;
}

.btn-user-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-50);
  border: 1px solid var(--primary-200);
  color: var(--primary-800);
  border-radius: var(--radius-full);
  padding: 4px 12px 4px 8px;
  font-family: inherit;
  font-size: 0.80rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 250px;
  text-align: left;
}

.btn-user-menu:hover {
  background-color: var(--primary-100);
  border-color: var(--primary-300);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.user-avatar-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-700);
  flex-shrink: 0;
}

.user-meta-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.18;
  min-width: 0;
  overflow: hidden;
}

.user-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-900);
}

.user-shift-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary-600);
  letter-spacing: 0.01em;
}

.user-caret {
  font-size: 0.72rem;
  color: var(--primary-600);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background-color: #ffffff;
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.18), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 210px;
  padding: 6px;
  z-index: 200;
  animation: fadeInDown 0.15s ease-out;
}

.user-dropdown-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
}

.user-dropdown-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-700);
  flex-shrink: 0;
}

.user-dropdown-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-dropdown-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neutral-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.user-dropdown-shift {
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--primary-600);
  margin-top: 2px;
  line-height: 1.2;
}

.user-dropdown-id {
  font-size: 0.67rem;
  color: var(--neutral-500);
  font-family: monospace;
  margin-top: 1px;
}

.user-dropdown-divider {
  height: 1px;
  background-color: var(--primary-100);
  margin: 4px 0;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-dropdown-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--danger-solid);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease;
}

.btn-dropdown-logout:hover {
  background-color: var(--danger-bg);
}

/* PROGRESS BAR ATAS */
.progress-bar-wrapper {
  width: 100%;
  height: 4px;
  background-color: var(--slate-200);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
  transition: width 0.3s ease;
}

/* ==========================================================================
   KONTEN UTAMA & CONTAINER
   ========================================================================== */
.app-main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 16px;
}

.view-section {
  display: block;
}

/* ==========================================================================
   VIEW LOGIN: HALAMAN MASUK KARYAWAN
   ========================================================================== */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(80vh - 120px);
  padding: 20px 10px;
}

.login-card {
  background-color: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-brand-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.login-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.90rem;
  color: var(--slate-600);
  line-height: 1.45;
}

.login-error-alert {
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  animation: shake 0.35s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.login-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.required-star {
  color: var(--danger-solid);
  margin-left: 2px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--slate-400);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--slate-900);
  background-color: var(--slate-50);
  transition: all 0.2s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-600);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  padding: 6px;
  color: var(--slate-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-toggle-password:hover {
  color: var(--primary-600);
  background-color: var(--primary-50);
}

.btn-login {
  margin-top: 8px;
}

.login-footer-info {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--slate-200);
  font-size: 0.78rem;
  color: var(--slate-500);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.login-footer-info .info-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-500);
  flex-shrink: 0;
}

/* ==========================================================================
   VIEW 0: HALAMAN AWAL (SAMBUTAN SIMULASI UJIAN)
   ========================================================================== */
.welcome-card {
  background-color: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: 0 10px 30px -4px rgba(37, 99, 235, 0.10), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  max-width: 780px;
  margin: 10px auto 24px;
}

.welcome-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.welcome-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.welcome-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-600);
  margin-bottom: 22px;
  line-height: 1.4;
}

.welcome-greeting-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f2fe 100%);
  border-left: 4px solid var(--primary-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.welcome-user-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.user-greeting-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-700);
  flex-shrink: 0;
}

.user-greeting-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.user-greeting-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-500);
  line-height: 1.2;
}

.user-greeting-name {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
  word-break: break-word;
}

.user-greeting-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.user-greeting-pill {
  display: inline-flex;
  align-items: center;
  background: var(--primary-50);
  color: var(--primary-800);
  border: 1px solid var(--primary-200);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  line-height: 1.3;
  white-space: nowrap;
}

.user-greeting-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #3730a3;
  border: 1px solid #c7d2fe;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  line-height: 1.3;
  white-space: nowrap;
}

.welcome-greeting-text {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--slate-800);
}

.welcome-instructions-box {
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  margin-bottom: 28px;
}

.instructions-heading {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instructions-heading svg {
  color: var(--primary-600);
}

.instructions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.instructions-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.inst-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--primary-600);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.inst-text {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--slate-700);
}

.btn-primary-large {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #ffffff;
  border: none;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
}

.btn-primary-large:hover {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -2px rgba(37, 99, 235, 0.45);
}

.btn-primary-large:active {
  transform: translateY(0);
}

/* ==========================================================================
   VIEW LEVEL SELECTION: PILIHAN LEVEL UJIAN
   ========================================================================== */
.levels-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-back-link svg {
  flex-shrink: 0;
}

.btn-back-link .btn-text-group {
  align-items: flex-start;
  text-align: left;
  line-height: 1.25;
}

.btn-back-link:hover {
  background-color: var(--slate-100);
  color: var(--primary-700);
  border-color: var(--primary-300);
}

.levels-header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-700);
  background-color: var(--primary-50);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-200);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.3;
}

.levels-title-wrap {
  text-align: center;
  margin-bottom: 26px;
}

.levels-main-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.levels-main-subtitle {
  font-size: 0.96rem;
  color: var(--slate-600);
}

.level-cards-grid,
.division-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}

.div-qmgp-icon {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.div-pending-icon {
  background-color: var(--slate-100);
  color: var(--slate-500);
  border: 1px solid var(--slate-300);
}

.level-card {
  background-color: #ffffff;
  border: 1.5px solid rgba(191, 219, 254, 0.85);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  cursor: pointer;
}

.level-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.16);
}

.level-card-available {
  border-color: var(--primary-300);
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.level-card-available:hover {
  border-color: var(--primary-600);
}

.level-card-pending {
  border-color: var(--slate-300);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.level-card-pending:hover {
  border-color: var(--slate-400);
}

.level-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.level-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.level-1-icon {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.level-2-icon {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.level-3-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

.level-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-available {
  background-color: var(--success-bg);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.status-pending {
  background-color: var(--slate-100);
  color: var(--slate-600);
  border: 1px solid var(--slate-300);
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
}

.level-card-content {
  flex: 1;
  margin-bottom: 20px;
}

.level-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-700);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.pending-tag {
  color: var(--slate-500);
}

.level-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.35;
  margin-bottom: 8px;
}

.level-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 14px;
}

.level-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--slate-200);
}

.level-meta-item {
  font-size: 0.8rem;
  color: var(--slate-700);
  font-weight: 600;
}

.item-pending {
  color: var(--slate-500);
  font-weight: 500;
}

.btn-level-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-level-start {
  background-color: var(--primary-600);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-level-start:hover {
  background-color: var(--primary-700);
}

.btn-level-pending {
  background-color: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
}

.btn-level-pending:hover {
  background-color: var(--slate-200);
  color: var(--slate-900);
}

.level-card-my-div {
  border-color: var(--primary-500);
  box-shadow: 0 6px 18px -2px rgba(37, 99, 235, 0.15);
  position: relative;
}

.level-card-locked {
  border-color: #fecaca;
  background: linear-gradient(180deg, #ffffff 0%, #fffbfb 100%);
  opacity: 0.95;
}

.level-card-locked:hover {
  border-color: #f87171;
}

.div-locked-icon {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.status-locked {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.badge-my-division {
  display: inline-block;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 0.70rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.badge-locked-division {
  display: inline-block;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 0.70rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.item-restricted {
  color: #b91c1c;
  font-weight: 600;
  font-size: 0.8rem;
}

.btn-level-locked {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1.5px dashed #f87171;
  cursor: pointer;
  box-shadow: none;
}

.btn-level-locked:hover {
  background-color: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
  transform: none;
}

/* ==========================================================================
   STYLE KHUSUS ROLE ADMINISTRATOR (AKSES SEMUA DIVISI)
   ========================================================================== */
.level-card-admin-access {
  border-color: #6366f1;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
  opacity: 1;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.level-card-admin-access:hover {
  border-color: #4f46e5;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.22);
  transform: translateY(-2px);
}

.div-admin-icon {
  background-color: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.status-admin {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-admin-division {
  display: inline-block;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fcd34d;
  font-size: 0.70rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.btn-level-admin {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-level-admin:hover {
  background: linear-gradient(135deg, #4338ca, #3730a3);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.user-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #fef3c7, #fde047);
  color: #854d0e;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  border: 1px solid #facc15;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

.access-denied-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
}

.denied-meta-pill {
  background: var(--primary-100);
  color: var(--primary-800);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   VIEW LEVEL 2 & 3: HALAMAN KHUSUS (BELUM TERSEDIA)
   ========================================================================== */
.unavailable-card {
  background-color: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.08);
  text-align: center;
  max-width: 600px;
  margin: 20px auto;
}

.unavailable-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: var(--primary-50);
  border: 2px solid var(--primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.unavailable-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 14px;
}

.unavailable-message {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-800);
  background-color: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.unavailable-subnote {
  font-size: 0.88rem;
  color: var(--slate-500);
  line-height: 1.5;
  margin-bottom: 26px;
}

.unavailable-actions {
  max-width: 320px;
  margin: 0 auto;
}

.btn-back-levels {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #ffffff;
  border: 1px solid var(--primary-300);
  color: var(--primary-700);
  padding: 5px 11px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-levels:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-500);
}

/* ==========================================================================
   BANK SOAL 1-5 BELUM TERSEDIA (ALERT & GRID)
   ========================================================================== */
.bank-soal-alert-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-left: 5px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.1);
}

.alert-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-card-text {
  flex: 1;
}

.alert-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.alert-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #78350f;
  margin: 0;
}

.bank-soal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.bank-soal-item {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bank-soal-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.08);
  border-color: var(--slate-300);
}

.bs-item-header {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.bs-badge-pending {
  display: inline-block;
  background-color: var(--slate-100);
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.bs-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.bs-item-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 6px;
}

.bs-item-desc {
  font-size: 0.82rem;
  color: var(--slate-500);
  line-height: 1.45;
  margin-bottom: 14px;
  flex: 1;
}

.bs-item-status {
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--slate-500);
  background-color: var(--slate-50);
  border: 1px dashed var(--slate-200);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  width: 100%;
}

/* ==========================================================================
   BILINGUAL CHINESE TRANSLATION STYLING (Aksara Mandarin 100% Terbaca & Jelas)
   ========================================================================== */
.login-title-zh,
.login-subtitle-zh,
.form-label-zh,
.badge-zh,
.welcome-title-zh,
.welcome-subtitle-zh,
.welcome-greeting-zh,
.heading-zh,
.inst-zh,
.btn-sub-zh,
.levels-main-title-zh,
.levels-main-subtitle-zh,
.level-tag-zh,
.level-name-zh,
.level-desc-zh,
.meta-item-zh,
.status-zh,
.alert-card-title-zh,
.alert-card-desc-zh,
.bs-item-name-zh,
.bs-item-desc-zh,
.info-zh {
  font-family: var(--font-family-zh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.login-title-zh {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-700);
  margin-top: 3px;
}

.login-subtitle-zh {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 2px;
}

.form-label-zh {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--slate-500);
  margin-top: 2px;
}

.badge-zh {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-600);
  margin-top: 1px;
}

.welcome-title-zh {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-700);
  margin-top: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.welcome-subtitle-zh {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-600);
  margin-top: 2px;
  margin-bottom: 20px;
}

.welcome-greeting-zh {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--slate-600);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(37, 99, 235, 0.2);
}

.heading-zh {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-500);
  margin-left: 6px;
}

.inst-zh {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--slate-500);
  margin-top: 3px;
}

.btn-text-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.inst-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-sub-zh {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.92;
  letter-spacing: 0.5px;
}

.levels-main-title-zh {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-700);
  margin-top: 4px;
}

.levels-main-subtitle-zh {
  font-size: 0.86rem;
  color: var(--slate-500);
  margin-top: 2px;
}

.level-tag-zh {
  font-size: 0.70rem;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 1px;
}

.level-name-zh {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-800);
  margin-top: 2px;
}

.level-desc-zh {
  font-size: 0.82rem;
  color: var(--slate-500);
  line-height: 1.45;
  margin-top: 4px;
}

.meta-item-zh {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--slate-500);
  margin-top: 1px;
}

.status-zh {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.88;
}

.alert-card-title-zh {
  font-size: 0.90rem;
  font-weight: 700;
  color: #b45309;
  margin-top: 2px;
}

.alert-card-desc-zh {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #92400e;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(245, 158, 11, 0.3);
}

.bs-item-name-zh {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-top: 1px;
}

.bs-item-desc-zh {
  font-size: 0.76rem;
  color: var(--slate-400);
  margin-top: 2px;
}

.info-zh {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--slate-500);
  margin-top: 2px;
}

/* SUB-BAR INFORMASI HALAMAN & PROGRES */
.page-info-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8fe 100%);
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.06);
}

.page-info-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(191, 219, 254, 0.7);
}

.page-info-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.page-info-global-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.page-info-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-page {
  background-color: var(--primary-600);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.text-soal-range {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-700);
  white-space: nowrap;
}

.text-answered-counter {
  font-size: 0.78rem;
  color: var(--slate-600);
  font-weight: 600;
  white-space: nowrap;
}

/* PETUNJUK KOREKSI CEPAT */
.hint-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #eef6ff 0%, #e0effe 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 18px;
  font-size: 0.84rem;
  color: var(--primary-800);
  line-height: 1.45;
  box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.05);
}

.hint-icon {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--primary-600);
}

/* ==========================================================================
   KARTU SOAL (QUESTION CARD)
   ========================================================================== */
.questions-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 26px;
}

.question-card {
  background-color: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 4px 16px -2px rgba(37, 99, 235, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.question-card:hover {
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.13), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  border-color: #93c5fd;
}

.question-card.answered-correct {
  border-color: var(--success-border);
}

.question-card.answered-wrong {
  border-color: var(--danger-border);
}

/* Header Kartu Soal */
.question-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--slate-100);
}

.q-number-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.q-badge-num {
  background-color: var(--slate-100);
  color: var(--primary-700);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
}

.q-badge-type {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.type-single {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
}

.type-multi {
  background-color: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.type-true-false {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
}

.q-badge-cat {
  font-size: 0.7rem;
  color: var(--slate-500);
  font-weight: 500;
  background-color: var(--slate-50);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Teks Pertanyaan */
/* Teks Pertanyaan (Bilingual: Indonesia & Mandarin) */
.question-text {
  margin-bottom: 16px;
  word-break: break-word;
}

.q-text-id {
  font-size: 1.01rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.5;
}

.q-text-zh {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--primary-700);
  line-height: 1.45;
  margin-top: 5px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  letter-spacing: 0.2px;
}

/* DAFTAR PILIHAN JAWABAN */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Item Pilihan Jawaban */
.option-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  min-height: 48px;
  background-color: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--slate-800);
  position: relative;
}

.option-btn:hover:not(:disabled) {
  background-color: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-800);
}

.option-btn:active:not(:disabled) {
  transform: scale(0.99);
}

/* Badge Huruf Pilihan (A, B, C, D) */
.opt-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--slate-100);
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s ease;
}

.option-btn:hover:not(:disabled) .opt-letter {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
  color: #ffffff;
}

/* Wadah Teks Pilihan Jawaban (Bilingual) */
.opt-text-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.opt-text-id {
  font-size: 0.92rem;
  line-height: 1.4;
  color: inherit;
  word-break: break-word;
}

.opt-text-zh {
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--slate-500);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  word-break: break-word;
}

/* Teks Pilihan Fallback */
.opt-text {
  flex: 1;
  line-height: 1.45;
  word-break: break-word;
}

/* Ikon Indikator di Kanan Pilihan */
.opt-status-icon {
  margin-left: auto;
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Kondisi Pilihan Terkunci / Dijawab */
.option-btn:disabled {
  cursor: default;
}

/* 1. Jawaban Pengguna Benar */
.option-btn.opt-user-correct {
  background-color: var(--success-bg) !important;
  border-color: var(--success-solid) !important;
  color: var(--success-text) !important;
  font-weight: 600;
}
.option-btn.opt-user-correct .opt-letter {
  background-color: var(--success-solid) !important;
  border-color: var(--success-solid) !important;
  color: #ffffff !important;
}
.option-btn.opt-user-correct .opt-status-icon {
  display: flex;
  color: var(--success-solid);
}

/* 2. Jawaban Pengguna Salah */
.option-btn.opt-user-wrong {
  background-color: var(--danger-bg) !important;
  border-color: var(--danger-solid) !important;
  color: var(--danger-text) !important;
  font-weight: 600;
}
.option-btn.opt-user-wrong .opt-letter {
  background-color: var(--danger-solid) !important;
  border-color: var(--danger-solid) !important;
  color: #ffffff !important;
}
.option-btn.opt-user-wrong .opt-status-icon {
  display: flex;
  color: var(--danger-solid);
}

/* 3. Kunci Jawaban yang Benar (Ditampilkan saat pengguna salah atau review) */
.option-btn.opt-target-correct {
  background-color: var(--success-bg) !important;
  border-color: var(--success-solid) !important;
  color: var(--success-text) !important;
  font-weight: 600;
}
.option-btn.opt-target-correct .opt-letter {
  background-color: var(--success-solid) !important;
  border-color: var(--success-solid) !important;
  color: #ffffff !important;
}
.option-btn.opt-target-correct .opt-status-icon {
  display: flex;
  color: var(--success-solid);
}

/* 4. Opsi Netral Lainnya Saat Terkunci */
.option-btn.opt-disabled-other {
  opacity: 0.65;
  background-color: var(--slate-50);
}

/* KHUSUS SOAL MULTI-CHOICE (多选题) */
.multi-action-box {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background-color: #faf5ff;
  border: 1px dashed #d8b4fe;
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

.multi-instruction {
  font-size: 0.8rem;
  color: #6b21a8;
  font-weight: 500;
}

.btn-lock-multi {
  background-color: #7e22ce;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-lock-multi:hover {
  background-color: #6b21a8;
}

.option-btn.opt-multi-selected {
  background-color: #f3e8ff;
  border-color: #a855f7;
  color: #581c87;
}
.option-btn.opt-multi-selected .opt-letter {
  background-color: #9333ea;
  border-color: #9333ea;
  color: #ffffff;
}

/* ==========================================================================
   KOTAK KOREKSI LANGSUNG (FEEDBACK BOX) TEPAT DI BAWAH PILIHAN
   ========================================================================== */
.correction-feedback-box {
  margin-top: 14px;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slide-down 0.25s ease-out;
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.feedback-correct {
  background-color: var(--success-bg);
  border: 1.5px solid var(--success-border);
}

.feedback-wrong {
  background-color: var(--danger-bg);
  border: 1.5px solid var(--danger-border);
}

.feedback-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feedback-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feedback-correct .feedback-icon {
  color: var(--success-solid);
}

.feedback-wrong .feedback-icon {
  color: var(--danger-solid);
}

.feedback-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.feedback-correct .feedback-title {
  color: var(--success-text);
}

.feedback-wrong .feedback-title {
  color: var(--danger-text);
}

.feedback-detail {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--slate-800);
}

.feedback-key-highlight {
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-block;
  margin-top: 2px;
}

.feedback-zh {
  color: var(--slate-600);
  font-size: 0.88em;
  font-weight: 500;
  margin-left: 3px;
}

.feedback-explanation {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  font-size: 0.84rem;
  color: var(--slate-700);
}

/* ==========================================================================
   NAVIGASI HALAMAN BAWAH (EXAM BOTTOM NAVIGATION)
   ========================================================================== */
.exam-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.10), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  position: sticky;
  bottom: 14px;
  z-index: 50;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-prev {
  background-color: #ffffff;
  color: var(--slate-700);
  border-color: var(--slate-300);
}

.btn-prev:hover:not(:disabled) {
  background-color: var(--slate-100);
  border-color: var(--slate-400);
}

.btn-prev:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-next {
  background-color: var(--primary-600);
  color: #ffffff;
}

.btn-next:hover {
  background-color: var(--primary-700);
}

.btn-finish {
  background-color: var(--success-solid);
  color: #ffffff;
}

.btn-finish:hover {
  background-color: #059669;
}

.nav-page-selector {
  flex: 1;
  max-width: 170px;
  display: flex;
  justify-content: center;
}

.select-page {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--slate-300);
  background-color: var(--slate-50);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-800);
  cursor: pointer;
  text-align: center;
  outline: none;
}

.select-page:focus {
  border-color: var(--primary-600);
  background-color: #ffffff;
}

/* ==========================================================================
   VIEW 2: HALAMAN HASIL UJIAN (RESULT VIEW)
   ========================================================================== */
.result-card {
  background-color: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.10), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  text-align: center;
  max-width: 680px;
  margin: 10px auto;
}

.result-badge-top {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--primary-50);
  border: 2px solid var(--primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.result-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.result-subtitle {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin-bottom: 20px;
}

.result-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin: 0 auto 20px auto;
  max-width: 440px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  text-align: left;
}

.result-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-700);
  flex-shrink: 0;
}

.result-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.result-user-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--neutral-800);
}

.result-user-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-700);
  margin-top: 2px;
}

.score-display-box {
  background: linear-gradient(135deg, var(--primary-50), #ffffff);
  border: 2px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.score-number {
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--primary-700);
  line-height: 1;
  margin-bottom: 4px;
}

.score-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-500);
  letter-spacing: 0.8px;
}

.score-percentage {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-800);
  margin-top: 6px;
}

/* GRID METRIK DETAIL */
.result-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 540px) {
  .result-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-card {
  padding: 14px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  background-color: var(--slate-50);
}

.metric-total {
  border-color: var(--primary-200);
  background-color: var(--primary-50);
}
.metric-total .metric-val { color: var(--primary-700); }

.metric-correct {
  border-color: var(--success-border);
  background-color: var(--success-bg);
}
.metric-correct .metric-val { color: var(--success-solid); }

.metric-wrong {
  border-color: var(--danger-border);
  background-color: var(--danger-bg);
}
.metric-wrong .metric-val { color: var(--danger-solid); }

.metric-unanswered {
  border-color: var(--warning-border);
  background-color: var(--warning-bg);
}
.metric-unanswered .metric-val { color: var(--warning-solid); }

.metric-val {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2px;
}

.metric-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--slate-600);
}

.result-formula-note {
  font-size: 0.76rem;
  color: var(--slate-500);
  margin-bottom: 24px;
  line-height: 1.4;
}

.result-formula-note code {
  background-color: var(--slate-100);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--primary-700);
  font-weight: 600;
}

/* TOMBOL AKSI HASIL */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-action-primary {
  background-color: var(--primary-600);
  color: #ffffff;
}

.btn-action-primary:hover {
  background-color: var(--primary-700);
}

.btn-action-secondary {
  background-color: #ffffff;
  color: var(--slate-700);
  border: 1.5px solid var(--slate-300);
}

.btn-action-secondary:hover {
  background-color: var(--slate-100);
}

.btn-action-tertiary {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border: 1.5px solid var(--primary-200);
}

.btn-action-tertiary:hover {
  background-color: var(--primary-100);
  border-color: var(--primary-300);
}

/* ==========================================================================
   VIEW 3: REVIEW / PEMBAHASAN SEMUA SOAL
   ========================================================================== */
.review-header-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.06);
}

.btn-back-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--primary-600);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}

.review-filter-group {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.btn-filter {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
  background-color: var(--slate-50);
  color: var(--slate-700);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-filter.active {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
  color: #ffffff;
}

.review-questions-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   MODAL DIALOG (KONFIRMASI & GRID NOMOR SOAL)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fade-in 0.2s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-card-large {
  max-width: 680px;
}

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

.modal-header-left {
  display: flex;
  flex-direction: column;
}

.modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.warning-icon {
  background-color: var(--warning-bg);
}

.danger-icon {
  background-color: var(--danger-bg);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900);
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 2px;
}

.btn-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0 4px;
}

.modal-body {
  font-size: 0.9rem;
  color: var(--slate-700);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-scrollable {
  overflow-y: auto;
  max-height: 55vh;
  padding-right: 4px;
}

.modal-stats-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  font-size: 0.85rem;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-modal {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-modal-cancel {
  background-color: var(--slate-100);
  color: var(--slate-700);
}

.btn-modal-confirm {
  background-color: var(--primary-600);
  color: #ffffff;
}

.btn-modal-confirm:hover {
  background-color: var(--primary-700);
}

.btn-modal-danger {
  background-color: var(--danger-solid);
  color: #ffffff;
}

/* LEGENDA STATUS GRID */
.grid-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--slate-600);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-correct { background-color: var(--success-solid); }
.legend-wrong { background-color: var(--danger-solid); }
.legend-unanswered { background-color: var(--slate-200); }
.legend-current { outline: 2px solid var(--primary-600); outline-offset: 1px; }

/* GRID TOMBOL NOMOR SOAL (1 - 150) */
.question-grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

@media (min-width: 480px) {
  .question-grid-container {
    grid-template-columns: repeat(10, 1fr);
  }
}

.btn-grid-q {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background-color: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-grid-q:hover {
  transform: translateY(-1px);
  border-color: var(--primary-600);
}

.btn-grid-q.q-status-correct {
  background-color: var(--success-solid);
  border-color: var(--success-solid);
  color: #ffffff;
}

.btn-grid-q.q-status-wrong {
  background-color: var(--danger-solid);
  border-color: var(--danger-solid);
  color: #ffffff;
}

.btn-grid-q.q-status-current {
  box-shadow: 0 0 0 2px var(--primary-600);
}

/* ==========================================================================
   LOADING SPINNER
   ========================================================================== */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  gap: 12px;
  color: var(--slate-500);
  font-size: 0.92rem;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--primary-100);
  border-top-color: var(--primary-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   OPTIMASI RESPONSIP KHUSUS HP (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 600px) {
  /* Sembunyikan status pill di header atas pada HP agar tidak menabrak logo */
  #header-status-pill {
    display: none !important;
  }

  .header-container {
    padding: 8px 12px;
    gap: 8px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .brand-icon svg {
    width: 18px;
    height: 18px;
  }

  .brand-title {
    font-size: 0.88rem;
    max-width: 130px;
  }

  .brand-subtitle {
    display: none !important;
  }

  .header-right {
    gap: 6px;
  }

  .btn-user-menu {
    padding: 3px 8px 3px 6px;
    gap: 6px;
    font-size: 0.74rem;
    max-width: 140px;
  }

  .user-avatar-icon {
    width: 24px;
    height: 24px;
  }

  .user-avatar-icon svg {
    width: 13px;
    height: 13px;
  }

  .user-name-text {
    max-width: 84px;
    font-size: 0.70rem;
  }

  .user-shift-text {
    max-width: 84px;
    font-size: 0.58rem;
  }

  .btn-icon {
    width: 32px;
    height: 32px;
  }

  .btn-icon svg {
    width: 17px;
    height: 17px;
  }

  .btn-header-finish {
    padding: 5px 10px;
    font-size: 0.74rem;
  }

  .levels-header-bar {
    gap: 8px;
    margin-bottom: 16px;
  }

  .btn-back-link {
    padding: 7px 11px;
    gap: 6px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .btn-back-link svg {
    width: 16px;
    height: 16px;
  }

  .btn-back-link .btn-sub-zh {
    font-size: 0.68rem;
  }

  .levels-header-badge {
    font-size: 0.72rem;
    padding: 5px 11px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .app-main {
    padding: 10px 10px 24px;
  }

  /* Sub-Bar Halaman */
  .page-info-bar {
    padding: 10px 12px;
    gap: 8px;
    margin-bottom: 12px;
  }

  .btn-back-levels {
    padding: 4px 10px;
    font-size: 0.74rem;
  }

  .page-info-global-progress {
    padding: 2px 8px;
    font-size: 0.70rem;
  }

  .badge-page {
    font-size: 0.70rem;
    padding: 2px 8px;
  }

  .text-soal-range {
    font-size: 0.76rem;
  }

  .text-answered-counter {
    font-size: 0.72rem;
  }

  /* Hint Card */
  .hint-card {
    padding: 10px 12px;
    font-size: 0.78rem;
    margin-bottom: 14px;
    gap: 8px;
  }

  .hint-icon svg {
    width: 16px;
    height: 16px;
  }

  /* Kartu Soal */
  .questions-container {
    gap: 14px;
    margin-bottom: 20px;
  }

  .question-card {
    padding: 14px 12px;
    border-radius: var(--radius-md);
  }

  .question-card-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    gap: 6px;
  }

  .q-badge-num {
    font-size: 0.76rem;
    padding: 2px 7px;
  }

  .q-badge-type {
    font-size: 0.68rem;
    padding: 2px 6px;
  }

  .q-badge-cat {
    font-size: 0.66rem;
    padding: 2px 6px;
    max-width: 140px;
  }

  .q-text-id {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .q-text-zh {
    font-size: 0.84rem;
    line-height: 1.4;
    margin-top: 4px;
  }

  .options-list {
    gap: 8px;
  }

  .option-btn {
    padding: 10px 10px;
    min-height: 44px;
    gap: 10px;
    border-radius: var(--radius-sm);
  }

  .opt-letter {
    width: 25px;
    height: 25px;
    font-size: 0.75rem;
  }

  .opt-text-id {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .opt-text-zh {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  /* Kotak Koreksi Feedback */
  .correction-feedback-box {
    padding: 11px 12px;
    margin-top: 10px;
    gap: 6px;
  }

  .feedback-title {
    font-size: 0.88rem;
  }

  .feedback-detail {
    font-size: 0.80rem;
    line-height: 1.4;
  }

  .feedback-explanation {
    font-size: 0.80rem;
    margin-top: 4px;
    padding-top: 4px;
  }

  /* Bottom Navigation */
  .exam-nav-bar {
    padding: 10px 12px;
    gap: 8px;
    border-radius: var(--radius-md);
    bottom: 10px;
  }

  .btn-nav {
    min-height: 40px;
    padding: 6px 12px;
    font-size: 0.80rem;
  }

  .select-page {
    font-size: 0.76rem;
    padding: 6px 6px;
  }

  /* Welcome & Cards */
  .welcome-card {
    padding: 22px 16px;
  }

  .welcome-title {
    font-size: 1.4rem;
  }

  .welcome-subtitle {
    font-size: 0.92rem;
  }

  .welcome-greeting-box {
    padding: 14px 14px;
    margin-bottom: 18px;
  }

  .welcome-user-tag {
    padding: 10px 12px;
    gap: 10px;
  }

  .user-greeting-icon {
    width: 36px;
    height: 36px;
  }

  .user-greeting-name {
    font-size: 0.96rem;
  }

  .user-greeting-pill,
  .user-greeting-admin-pill {
    font-size: 0.70rem;
    padding: 2px 8px;
  }

  .welcome-instructions-box {
    padding: 16px 14px;
    margin-bottom: 22px;
  }

  .btn-primary-large {
    font-size: 0.98rem;
    padding: 14px 18px;
  }

  .levels-main-title {
    font-size: 1.35rem;
  }

  .level-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .level-card {
    padding: 20px 16px;
  }

  .unavailable-card {
    padding: 28px 16px;
  }

  .unavailable-title {
    font-size: 1.25rem;
  }

  .bank-soal-alert-card {
    flex-direction: column;
    padding: 16px 14px;
    gap: 12px;
  }

  .bank-soal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .login-card {
    padding: 24px 18px;
  }

  .login-title {
    font-size: 1.22rem;
  }
}

@media (max-width: 380px) {
  .header-container {
    padding: 6px 8px;
    gap: 4px;
  }

  .brand-title {
    font-size: 0.80rem;
    max-width: 95px;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
  }

  .btn-user-menu {
    padding: 2px 6px 2px 4px;
    max-width: 110px;
    gap: 4px;
  }

  .user-avatar-icon {
    width: 20px;
    height: 20px;
  }

  .user-avatar-icon svg {
    width: 11px;
    height: 11px;
  }

  .user-name-text {
    max-width: 62px;
    font-size: 0.65rem;
  }

  .user-shift-text {
    max-width: 62px;
    font-size: 0.54rem;
  }

  .btn-icon {
    width: 28px;
    height: 28px;
  }

  .btn-header-finish {
    padding: 4px 8px;
    font-size: 0.70rem;
  }

  .btn-back-link {
    padding: 6px 9px;
    font-size: 0.71rem;
    gap: 5px;
  }

  .btn-back-link .btn-sub-zh {
    font-size: 0.63rem;
  }

  .levels-header-badge {
    font-size: 0.68rem;
    padding: 4px 9px;
  }
}

/* ==========================================================================
   PENYESUAIAN DESKTOP & LAYAR LEBAR (MIN-WIDTH: 768px & 1024px)
   ========================================================================== */
@media (min-width: 768px) {
  .app-main {
    padding: 24px 20px;
  }

  .question-card {
    padding: 26px 30px;
  }

  .question-text {
    font-size: 1.03rem;
  }

  .option-btn {
    padding: 13px 18px;
    font-size: 0.94rem;
  }

  .opt-letter {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .exam-nav-bar {
    padding: 14px 24px;
  }

  .btn-nav {
    padding: 10px 22px;
    font-size: 0.92rem;
  }

  .nav-page-selector {
    max-width: 200px;
  }
}

@media (min-width: 1024px) {
  .app-main {
    padding: 28px 20px;
  }

  .question-card {
    padding: 28px 34px;
  }

  .page-info-bar {
    padding: 14px 22px;
  }
}

/* ==========================================================================
   MENU UJIAN RESMI (90 MENIT REALTIME, TANPA KUNCI JAWABAN, KELUAR = SELESAI)
   ========================================================================== */
.exam-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #ffffff;
  border: 1px solid #1e40af;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.80rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}

.exam-timer-pill.timer-warning {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #92400e;
}

.exam-timer-pill.timer-critical {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border-color: #7f1d1d;
  animation: pulse-critical 1s infinite;
}

@keyframes pulse-critical {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.level-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.level-mode-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--slate-300);
  background-color: #ffffff;
  color: var(--slate-700);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.level-mode-tab .tab-zh {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 2px;
  font-family: var(--font-family-zh);
}

.level-mode-tab:hover {
  border-color: var(--primary-500);
  background-color: var(--primary-50);
  color: var(--primary-800);
}

.level-mode-tab.active {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  border-color: var(--primary-700);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.level-mode-tab.tab-exam-highlight.active {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border-color: #1e3a8a;
}

.exam-rules-summary-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
  border-left: 5px solid #1d4ed8;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 22px;
}

.exam-rules-summary-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-top: 2px;
}

.exam-rules-summary-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 6px;
}

.exam-rules-summary-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: #1e293b;
  line-height: 1.45;
}

.exam-rules-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.btn-quick-exam-level {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border: 1px solid #1e3a8a;
  border-radius: var(--radius-md);
  padding: 9px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

.btn-quick-exam-level:hover {
  background: linear-gradient(135deg, #1e293b 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(29, 78, 216, 0.28);
}

.btn-quick-exam-level .btn-sub-zh {
  font-size: 0.70rem;
  font-weight: 500;
  opacity: 0.88;
}

.level-card-dual-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-level-exam-mode {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border: 1px solid #1e3a8a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}

.btn-level-exam-mode:hover {
  background: linear-gradient(135deg, #1e293b 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.3);
}

/* BANNER COUNTDOWN REALTIME DI HALAMAN UJIAN */
.exam-realtime-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.exam-realtime-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 220px;
}

.exam-realtime-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fde68a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.exam-realtime-warning {
  font-size: 0.80rem;
  color: #e2e8f0;
  line-height: 1.4;
}

.exam-realtime-warning strong {
  color: #fca5a5;
}

.exam-realtime-timer-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: #ffffff;
}

.exam-realtime-timer-box.timer-warning {
  background-color: rgba(217, 119, 6, 0.35);
  border-color: #fbbf24;
  color: #fef3c7;
}

.exam-realtime-timer-box.timer-critical {
  background-color: rgba(220, 38, 38, 0.45);
  border-color: #f87171;
  color: #fee2e2;
  animation: pulse-critical 1s infinite;
}

.exam-timer-labels {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.exam-timer-caption {
  font-size: 0.68rem;
  opacity: 0.88;
  font-weight: 600;
}

.exam-timer-digits {
  font-size: 1.35rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

/* STYLE KARTU SOAL & OPSI DI MODE UJIAN (TANPA BOCORAN KUNCI) */
.question-card.answered-exam {
  border-color: var(--primary-500);
  background-color: #ffffff;
}

.option-btn.opt-exam-selected {
  background-color: var(--primary-50) !important;
  border-color: var(--primary-600) !important;
  color: var(--primary-900) !important;
  font-weight: 700;
}

.option-btn.opt-exam-selected .opt-letter {
  background-color: var(--primary-600) !important;
  border-color: var(--primary-600) !important;
  color: #ffffff !important;
}

.option-btn.opt-exam-selected .opt-status-icon {
  display: flex;
  color: var(--primary-600);
}

/* GRID NOMOR SOAL DI MODE UJIAN */
.legend-answered {
  background-color: var(--primary-600);
}

.btn-grid-q.q-status-answered {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
  color: #ffffff;
}

/* INFO TAMBAHAN DI HALAMAN HASIL MODE UJIAN */
.result-exam-session-alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
  border: 1px solid var(--primary-200);
  background-color: var(--primary-50);
  color: var(--slate-800);
}

.result-exam-confidential-box {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1.5px dashed #93c5fd;
  text-align: center;
}

/* ==========================================================================
   PENANDA KHUSUS 50 SOAL BARU PADA LEVEL 2 (ORANYE EMAS) & LEVEL 3 (UNGU)
   ========================================================================== */
.new-questions-indicator-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.new-questions-indicator-bar.indicator-level-2 {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fbbf24;
  border-left: 5px solid #d97706;
  color: #78350f;
}

.new-questions-indicator-bar.indicator-level-3 {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1.5px solid #c4b5fd;
  border-left: 5px solid #7c3aed;
  color: #4c1d95;
}

.new-questions-indicator-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.new-questions-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.indicator-level-2 .new-questions-pill-tag {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.indicator-level-3 .new-questions-pill-tag {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.new-questions-jump-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-jump-new-range {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  background-color: #ffffff;
}

.indicator-level-2 .btn-jump-new-range {
  border: 1px solid #f59e0b;
  color: #b45309;
}

.indicator-level-2 .btn-jump-new-range:hover {
  background-color: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.indicator-level-3 .btn-jump-new-range {
  border: 1px solid #a78bfa;
  color: #6d28d9;
}

.indicator-level-3 .btn-jump-new-range:hover {
  background-color: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

/* KARTU SOAL BARU LEVEL 2 (WARNA ORANYE EMAS / AMBER) */
.question-card.card-new-level-2 {
  border: 2px solid #f59e0b;
  border-left: 6px solid #d97706;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 95px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.10);
}

.question-card.card-new-level-2 .q-badge-num {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border-color: #b45309;
}

/* KARTU SOAL BARU LEVEL 3 (WARNA UNGU / VIOLET) */
.question-card.card-new-level-3 {
  border: 2px solid #8b5cf6;
  border-left: 6px solid #6d28d9;
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 95px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12);
}

.question-card.card-new-level-3 .q-badge-num {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #ffffff;
  border-color: #5b21b6;
}

/* BADGE LABEL SOAL BARU DI HEADER KARTU SOAL */
.q-badge-new-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.25px;
  white-space: nowrap;
}

.q-badge-new-l2 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: 1px solid #b45309;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.28);
}

.q-badge-new-l3 {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  border: 1px solid #5b21b6;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.28);
}

.q-badge-origin-l2 {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-weight: 700;
}

/* PENANDA DI PETA NOMOR SOAL (GRID MODAL) */
.legend-box.legend-new-question {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #7c3aed);
  border: none;
}

.btn-grid-q.q-grid-new-l2 {
  border: 2px solid #d97706;
  background-color: #fffbeb;
  color: #92400e;
  position: relative;
}

.btn-grid-q.q-grid-new-l3 {
  border: 2px solid #7c3aed;
  background-color: #f5f3ff;
  color: #5b21b6;
  position: relative;
}

.btn-grid-q.q-grid-new-l2::after,
.btn-grid-q.q-grid-new-l3::after {
  content: '★';
  position: absolute;
  top: -5px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 0.55rem;
  line-height: 14px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-grid-q.q-grid-new-l2::after {
  background-color: #d97706;
}

.btn-grid-q.q-grid-new-l3::after {
  background-color: #7c3aed;
}

.btn-filter.btn-filter-new {
  border-color: #f59e0b;
  color: #b45309;
  background-color: #fffbeb;
  font-weight: 700;
}

.btn-filter.btn-filter-new.active {
  background: linear-gradient(135deg, #d97706, #7c3aed);
  border-color: transparent;
  color: #ffffff;
}



