
    :root{
      --ap-navy:#17206d;
      --ap-purple:#5b2aa8;
      --ap-purple-2:#7c3aed;
      --ap-pink:#ef168f;
      --ap-pink-dark:#d80f7c;
      --ap-soft:#f7f5ff;
      --ap-soft-2:#fff5fb;
      --ap-border:#ece8f6;
      --ap-text:#1d2350;
      --ap-muted:#747995;
      --ap-green:#20b779;
      --ap-orange:#f3a51c;
      --ap-blue:#2f7bdc;
      --ap-red:#e54868;
      --ap-shadow:0 14px 38px rgba(41,31,91,.08);
    }

    *{box-sizing:border-box}
    body{
      margin:0;
      color:var(--ap-text);
      background:
        radial-gradient(circle at 88% 8%, rgba(239,22,143,.045), transparent 22%),
        linear-gradient(180deg,#fff 0%,#fafbff 100%);
      font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    }

    a{text-decoration:none}

    .navbar{
      background:rgba(255,255,255,.98);
      backdrop-filter:blur(14px);
      border-bottom:1px solid #f0edf7;
      min-height:76px;
    }

    .navbar-brand{
      font-weight:900;
      font-size:1.85rem;
      color:var(--ap-navy)!important;
      letter-spacing:-1.2px;
      line-height:1;
    }
    .navbar-brand .pro{color:var(--ap-pink)}
    .brand-tagline{
      font-size:.57rem;
      letter-spacing:1.55px;
      color:#777c9b;
      margin-top:4px;
    }

    .nav-link{
      color:#282d66!important;
      font-weight:600;
      padding:.75rem 1rem!important;
    }
    .nav-link:hover,.nav-link.active{color:var(--ap-pink)!important}

    .btn-ap{
      background:linear-gradient(90deg,var(--ap-pink-dark),var(--ap-pink));
      color:#fff;
      border:none;
      border-radius:10px;
      font-weight:700;
      box-shadow:0 10px 22px rgba(239,22,143,.16);
    }
    .btn-ap:hover{color:#fff;transform:translateY(-1px)}

    .btn-outline-ap{
      color:var(--ap-purple);
      border:1.5px solid #8d66d8;
      background:#fff;
      border-radius:10px;
      font-weight:700;
    }

    .page-wrap{padding:26px 0 60px}

    .exam-banner{
      background:
        radial-gradient(circle at 90% 40%,rgba(239,22,143,.12),transparent 22%),
        linear-gradient(135deg,#fff 0%,#faf6ff 100%);
      border:1px solid #ece6f7;
      border-radius:22px;
      box-shadow:var(--ap-shadow);
      padding:22px 24px;
      margin-bottom:20px;
    }

    .exam-badge{
      display:inline-flex;
      gap:7px;
      align-items:center;
      background:#f1ebff;
      color:var(--ap-purple);
      border-radius:999px;
      padding:6px 10px;
      font-size:.74rem;
      font-weight:800;
      margin-bottom:8px;
    }

    .exam-title{
      font-size:1.75rem;
      font-weight:900;
      color:#171e55;
      margin:0 0 4px;
    }

    .exam-meta{
      color:#737994;
      font-size:.88rem;
      display:flex;
      flex-wrap:wrap;
      gap:16px;
    }

    .progress-track{
      height:8px;
      background:#ece9f5;
      border-radius:999px;
      overflow:hidden;
      margin-top:14px;
    }
    .progress-fill{
      width:20%;
      height:100%;
      background:linear-gradient(90deg,var(--ap-purple-2),var(--ap-pink));
      border-radius:999px;
      transition:.25s ease;
    }

    .subject-tabs{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      margin-bottom:18px;
    }

    .subject-tab{
      border:1px solid #e6e1ef;
      background:#fff;
      color:#4a5077;
      border-radius:10px;
      padding:9px 14px;
      font-size:.86rem;
      font-weight:800;
    }
    .subject-tab.active{
      color:#fff;
      border-color:transparent;
      background:linear-gradient(90deg,var(--ap-purple-2),var(--ap-pink));
      box-shadow:0 8px 18px rgba(124,58,237,.15);
    }

    .question-card,.sidebar-card{
      background:#fff;
      border:1px solid var(--ap-border);
      border-radius:20px;
      box-shadow:0 12px 32px rgba(41,31,91,.055);
    }

    .question-card{
      padding:28px;
      min-height:590px;
      display:flex;
      flex-direction:column;
    }

    .q-top{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:16px;
      margin-bottom:18px;
      padding-bottom:16px;
      border-bottom:1px solid #f0edf6;
    }

    .q-number{
      font-size:.82rem;
      font-weight:800;
      color:#767c98;
      text-transform:uppercase;
      letter-spacing:.4px;
    }

    .mark-badge{
      border:1px solid #eadcf7;
      color:var(--ap-purple);
      background:#faf7ff;
      border-radius:999px;
      padding:7px 10px;
      font-size:.77rem;
      font-weight:800;
    }

    .question-text{
      font-size:1.45rem;
      line-height:1.45;
      font-weight:900;
      color:#171e55;
      margin-bottom:22px;
    }

    .question-visual{
      background:#fbf9ff;
      border:1px dashed #e2daf1;
      border-radius:14px;
      padding:18px;
      text-align:center;
      color:#555b7d;
      margin-bottom:20px;
      font-size:1.12rem;
      font-weight:800;
    }

    .option-list{
      display:grid;
      gap:12px;
    }

    .answer-option{
      border:1px solid #e5e1ed;
      border-radius:13px;
      padding:15px 16px;
      display:flex;
      align-items:center;
      gap:13px;
      cursor:pointer;
      transition:.18s ease;
      background:#fff;
    }

    .answer-option:hover{
      border-color:#cfb3e8;
      background:#fcf9ff;
    }

    .answer-option.selected{
      border-color:var(--ap-pink);
      background:#fff5fb;
      box-shadow:0 0 0 3px rgba(239,22,143,.05);
    }

    .option-letter{
      width:34px;height:34px;
      border-radius:10px;
      display:grid;place-items:center;
      flex:0 0 34px;
      background:#f1eef7;
      color:#535a7f;
      font-weight:900;
    }

    .answer-option.selected .option-letter{
      background:linear-gradient(135deg,var(--ap-pink),var(--ap-purple-2));
      color:#fff;
    }

    .option-text{
      color:#303663;
      font-weight:700;
      font-size:.96rem;
    }

    .question-actions{
      margin-top:auto;
      padding-top:28px;
      display:flex;
      gap:10px;
      justify-content:space-between;
      flex-wrap:wrap;
    }

    .question-actions .btn{
      min-height:46px;
      border-radius:10px;
      font-weight:800;
    }

    .action-left,.action-right{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
    }

    .sidebar-card{
      padding:20px;
      margin-bottom:18px;
    }

    .timer-box{
      text-align:center;
      background:linear-gradient(145deg,#fbf7ff,#fff5fb);
      border:1px solid #eadff4;
      border-radius:16px;
      padding:18px;
    }

    .timer-label{
      color:#777d98;
      font-size:.78rem;
      font-weight:800;
      text-transform:uppercase;
      letter-spacing:.6px;
    }

    .timer{
      font-size:2.15rem;
      line-height:1;
      font-weight:900;
      color:#1c245f;
      margin:8px 0 4px;
    }

    .timer-sub{
      font-size:.79rem;
      color:#8a8fa8;
    }

    .sidebar-title{
      font-size:1rem;
      font-weight:900;
      color:#242b65;
      margin-bottom:13px;
    }

    .navigator{
      display:grid;
      grid-template-columns:repeat(5,1fr);
      gap:8px;
    }

    .q-nav{
      height:38px;
      border-radius:10px;
      border:1px solid #e5e1ed;
      background:#fff;
      color:#59607f;
      font-weight:900;
      font-size:.84rem;
      transition:.15s ease;
    }

    .q-nav:hover{border-color:#cdb7e5}
    .q-nav.current{
      border-color:var(--ap-pink);
      color:#fff;
      background:linear-gradient(135deg,var(--ap-pink),var(--ap-purple-2));
    }
    .q-nav.answered{
      border-color:#cdeede;
      background:#eaf9f1;
      color:#17835a;
    }
    .q-nav.review{
      border-color:#f7df9d;
      background:#fff7df;
      color:#b17b00;
    }

    .legend{
      margin-top:14px;
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:8px 12px;
      font-size:.77rem;
      color:#707590;
    }

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

    .legend-dot{
      width:11px;height:11px;border-radius:3px;
      border:1px solid #ddd7e8;
      background:#fff;
    }
    .legend-dot.current{background:var(--ap-pink);border-color:var(--ap-pink)}
    .legend-dot.answered{background:#eaf9f1;border-color:#bfe9d4}
    .legend-dot.review{background:#fff4ce;border-color:#f2d77f}
    .legend-dot.unanswered{background:#fff;border-color:#dcd7e8}

    .summary-list{
      display:grid;
      gap:9px;
      margin:0;
      padding:0;
      list-style:none;
    }

    .summary-list li{
      display:flex;
      justify-content:space-between;
      gap:10px;
      color:#737995;
      font-size:.86rem;
    }

    .summary-list strong{
      color:#2f356d;
    }

    .exam-note{
      border:1px solid #eee5f7;
      background:#faf7ff;
      border-radius:14px;
      padding:13px 14px;
      display:flex;
      gap:10px;
      align-items:flex-start;
      color:#6e738e;
      font-size:.82rem;
      line-height:1.45;
    }

    .exam-note i{color:var(--ap-purple)}

    .finish-btn{
      width:100%;
      min-height:48px;
      border-radius:10px;
      font-weight:800;
      background:#fff;
      color:var(--ap-red);
      border:1.5px solid #f2a9b8;
    }

    footer{
      background:linear-gradient(135deg,#17205f,#2d1c75);
      color:#fff;
      padding:48px 0 24px;
      margin-top:55px;
    }
    footer .brand-title{
      font-size:1.65rem;
      font-weight:900;
    }
    footer .brand-title span{color:#ff2f9f}
    footer p,footer a{color:#d3d5e8;font-size:.88rem}
    footer a:hover{color:#fff}
    footer h6{font-weight:800;margin-bottom:14px}
    .social a{
      width:36px;height:36px;border-radius:50%;
      background:#fff;color:#273072;
      display:inline-grid;place-items:center;margin-right:7px;
    }
    .footer-bottom{
      border-top:1px solid rgba(255,255,255,.12);
      margin-top:28px;
      padding-top:18px;
      color:#bec2df;
      font-size:.8rem;
    }

    @media(max-width:991.98px){
      .question-card{min-height:auto}
      .sidebar-card{margin-top:0}
    }

    @media(max-width:767.98px){
      .navbar-brand{font-size:1.5rem}
      .page-wrap{padding-top:18px}
      .exam-banner{padding:18px}
      .exam-title{font-size:1.4rem}
      .question-card{padding:20px}
      .question-text{font-size:1.2rem}
      .navigator{grid-template-columns:repeat(5,1fr)}
      .question-actions{flex-direction:column}
      .action-left,.action-right{width:100%}
      .action-left .btn,.action-right .btn{flex:1}
    }
  

/* Extracted inline styles */
.inline-exam-1{font-size:1.85rem;color:#6c2fb6}
.inline-exam-2{color:#252b67}
.q-nav.unanswered {
  background: #fff;
  color: #475569;
  border-color: #e2e8f0;
}

.q-nav.answered {
  background: #dcfce7;
  color: #047857;
  border-color: #86efac;
}

.q-nav.review {
  background: #fef3c7;
  color: #92400e;
  border-color: #facc15;
}

.q-nav.answered-review {
  background: linear-gradient(135deg, #22c55e, #facc15);
  color: #102a1b;
  border-color: transparent;
}

.q-nav.current {
  background: linear-gradient(135deg, #e4148a, #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(228, 20, 138, .28);
}

.exam-refresh-alert {
  position: fixed;
  top: 92px;
  right: 24px;
  z-index: 9999;
  width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  box-shadow: 0 18px 45px rgba(124, 45, 18, .18);
  color: #7c2d12;
}

.exam-refresh-alert strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 4px;
}

.exam-refresh-alert span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  padding-right: 22px;
}

.exam-refresh-alert button {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: #9a3412;
  cursor: pointer;
}
.timer-danger {
  color: #dc2626 !important;
  animation: timerPulse 1s infinite;
}

@keyframes timerPulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.exam-time-over-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.exam-time-over-box {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .35);
}

.exam-time-over-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.exam-time-over-box h2 {
  font-size: 30px;
  font-weight: 900;
  color: #111831;
  margin-bottom: 10px;
}

.exam-time-over-box p {
  font-size: 16px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 20px;
}