/**
 * AHC Typing Test - Frontend Examination Stylesheet v2.0.0 (Mobile-Friendly & Theme-Isolated Edition)
 * Royal Judicial Emerald & Slate Theme — High-Clarity Assessment UI
 * Scoped strictly under .ahctt- and #ahctt- for 100% WordPress Theme Isolation
 */

@font-face {
  font-family: 'Kruti Dev 010';
  src: url('../fonts/krutidev010.ttf') format('truetype'),
       local('Kruti Dev 010'), local('KrutiDev010');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'KrutiDev010';
  src: url('../fonts/krutidev010.ttf') format('truetype'),
       local('Kruti Dev 010'), local('KrutiDev010');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================================================================
   KRUTI DEV 010 & HINDI FONT SPECIALIZED RULES
   ========================================================================= */
.ahctt-font-krutidev010,
.font-kruti,
[data-font="krutidev010"],
.ahctt-kruti,
.ahctt-kruti-text,
.ahctt-passage-box.ahctt-font-krutidev010,
.ahctt-passage-box.ahctt-font-krutidev010 .ahctt-word,
.ahctt-typing-area.ahctt-font-krutidev010,
.ahctt-typing-input.ahctt-font-krutidev010,
#ahctt-passage-display.ahctt-font-krutidev010,
#ahctt-passage-display.ahctt-font-krutidev010 .ahctt-word,
#ahctt-typing-input.ahctt-font-krutidev010,
#ahctt-review-passage.ahctt-font-krutidev010,
#ahctt-review-passage.ahctt-font-krutidev010 span,
#ahctt-review-typed.ahctt-font-krutidev010,
#ahctt-review-typed.ahctt-font-krutidev010 span,
.ahctt-review-box.ahctt-font-krutidev010,
.ahctt-review-box.ahctt-font-krutidev010 span,
select#ahctt-select-test.ahctt-font-krutidev010,
option.ahctt-font-krutidev010 {
  font-family: 'Kruti Dev 010', 'KrutiDev010', 'Kruti Dev', sans-serif !important;
  letter-spacing: 0.4px !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.ahctt-font-mangal,
.font-mangal,
[data-font="mangal"],
.ahctt-passage-box.ahctt-font-mangal,
.ahctt-passage-box.ahctt-font-mangal .ahctt-word,
.ahctt-typing-area.ahctt-font-mangal,
.ahctt-typing-input.ahctt-font-mangal,
#ahctt-passage-display.ahctt-font-mangal,
#ahctt-passage-display.ahctt-font-mangal .ahctt-word,
#ahctt-typing-input.ahctt-font-mangal,
#ahctt-review-passage.ahctt-font-mangal,
#ahctt-review-passage.ahctt-font-mangal span,
#ahctt-review-typed.ahctt-font-mangal,
#ahctt-review-typed.ahctt-font-mangal span {
  font-family: 'Mangal', 'Nirmala UI', 'Segoe UI', 'Devanagari Sangam MN', sans-serif !important;
}

/* =========================================================================
   1. ISOLATION & RESET (Prevents WordPress themes from scattering elements)
   ========================================================================= */
.ahctt-wrapper,
.ahctt-portal-wrapper,
.ahctt-modal-overlay {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: #0f172a !important;
  line-height: 1.6 !important;
  box-sizing: border-box !important;
  text-align: left !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  -webkit-font-smoothing: antialiased !important;
}

.ahctt-wrapper *,
.ahctt-wrapper *::before,
.ahctt-wrapper *::after,
.ahctt-modal-overlay *,
.ahctt-modal-overlay *::before,
.ahctt-modal-overlay *::after {
  box-sizing: border-box !important;
}

.ahctt-wrapper button,
.ahctt-modal-overlay button {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  text-decoration: none !important;
  border: 1px solid transparent;
}

.ahctt-wrapper table,
.ahctt-modal-overlay table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  background: transparent !important;
  font-variant-numeric: tabular-nums !important;
}

/* =========================================================================
   2. STRICT HIDDEN UTILITY
   ========================================================================= */
.ahctt-hidden,
.ahctt-wrapper .ahctt-hidden,
.ahctt-modal-overlay.ahctt-hidden,
#ahctt-leaderboard-modal.ahctt-hidden,
#ahctt-cancel-modal.ahctt-hidden,
#ahctt-submit-modal.ahctt-hidden,
div.ahctt-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =========================================================================
   3. GENERAL LAYOUT & REDESIGNED SETUP CARD
   ========================================================================= */
.ahctt-wrapper {
  width: 100% !important;
  max-width: 1060px !important;
  margin: 24px auto !important;
  padding: 0 14px !important;
}

.ahctt-setup-card {
  max-width: 1060px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 32px 36px !important;
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.07) !important;
}

.ahctt-header {
  background: linear-gradient(135deg, #062c22 0%, #064e3b 60%, #0f392e 100%) !important;
  border-radius: 12px !important;
  padding: 24px 28px !important;
  margin-bottom: 28px !important;
  text-align: left !important;
  border: 1px solid #047857 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  position: relative !important;
  overflow: hidden !important;
}

.ahctt-title {
  margin: 0 !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
}

.ahctt-subtitle {
  margin: 0 !important;
  font-size: 13.5px !important;
  color: #a7f3d0 !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

.ahctt-form-group {
  margin-bottom: 24px !important;
  width: 100% !important;
}

.ahctt-label {
  display: block !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  margin-bottom: 10px !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
}

.ahctt-m-0 {
  margin: 0 !important;
}

/* =========================================================================
   4. CANDIDATE NAME INPUT
   ========================================================================= */
.ahctt-name-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 10px !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.ahctt-name-badge-hint {
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.ahctt-name-input-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.ahctt-name-icon {
  position: absolute !important;
  left: 14px !important;
  pointer-events: none !important;
  font-size: 15px !important;
  opacity: 0.75 !important;
}

.ahctt-input-name {
  width: 100% !important;
  padding: 12px 16px 12px 42px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  outline: none !important;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ahctt-input-name:focus {
  background: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 0 0 3.5px rgba(5, 150, 105, 0.14) !important;
}

/* =========================================================================
   5. LAYER 1: LANGUAGE & FONT SELECTION (Segmented Tactile Controls)
   ========================================================================= */
.ahctt-btn-group {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  background: #f1f5f9 !important;
  padding: 6px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
}

.ahctt-btn-select {
  padding: 12px 20px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  color: #475569 !important;
  text-align: center !important;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
  line-height: 1.4 !important;
}

.ahctt-btn-select:hover {
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.6) !important;
}

.ahctt-btn-select.active {
  border-color: #047857 !important;
  background: #064e3b !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(6, 78, 59, 0.22) !important;
}

.ahctt-notice-info {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  padding: 10px 14px !important;
  margin-top: 10px !important;
  border-radius: 8px !important;
  color: #92400e !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

/* =========================================================================
   6. DATE CALENDAR FILTER STRIP
   ========================================================================= */
.ahctt-date-bar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 10px !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: 100% !important;
}

.ahctt-date-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ahctt-cal-icon {
  font-size: 16px !important;
}

.ahctt-date-toggle-btns {
  display: inline-flex !important;
  gap: 4px !important;
  align-items: center !important;
  background: #f1f5f9 !important;
  padding: 4px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
}

.ahctt-date-pill {
  background: transparent !important;
  border: none !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}

.ahctt-date-pill:hover {
  color: #0f172a !important;
}

.ahctt-date-pill.active {
  background: #ffffff !important;
  color: #064e3b !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.ahctt-date-picker-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  margin-bottom: 12px !important;
}

.ahctt-picker-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.ahctt-picker-label {
  font-size: 13px !important;
  color: #1e293b !important;
}

.ahctt-available-dates-dropdown {
  flex: 1 !important;
  min-width: 220px !important;
  padding: 9px 12px !important;
  font-size: 13.5px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

.ahctt-calendar-strip-container {
  overflow-x: auto !important;
  padding: 8px 2px 10px 2px !important;
  margin-bottom: 4px !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
}

.ahctt-calendar-strip {
  display: flex !important;
  gap: 10px !important;
  min-width: 100% !important;
  align-items: stretch !important;
}

.ahctt-cal-day-btn {
  position: relative !important;
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 16px !important;
  min-width: 96px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-align: center !important;
  line-height: 1.25 !important;
}

.ahctt-cal-day-btn:hover {
  border-color: #059669 !important;
  background: #f0fdf4 !important;
}

.ahctt-cal-day-btn.active {
  background: #ecfdf5 !important;
  border-color: #059669 !important;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15) !important;
}

.ahctt-cal-day-top {
  display: block !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 2px !important;
}

.ahctt-cal-day-btn.active .ahctt-cal-day-top {
  color: #047857 !important;
}

.ahctt-cal-day-num {
  display: block !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  font-variant-numeric: tabular-nums !important;
}

.ahctt-cal-day-btn.active .ahctt-cal-day-num {
  color: #064e3b !important;
}

.ahctt-cal-day-month {
  display: block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  margin-bottom: 5px !important;
}

.ahctt-cal-day-badge {
  display: block !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #475569 !important;
}

.ahctt-cal-day-btn.active .ahctt-cal-day-badge {
  color: #047857 !important;
}

.ahctt-cal-new-tag {
  position: absolute !important;
  top: -6px !important;
  right: -4px !important;
  background: #dc2626 !important;
  color: #ffffff !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 1.5px 6px !important;
  border-radius: 4px !important;
  border: 1.5px solid #ffffff !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

.ahctt-date-status-info {
  font-size: 12px !important;
  color: #64748b !important;
  margin-top: 4px !important;
}

/* =========================================================================
   7. LAYER 2: TEST SELECTION & LEADERBOARD BUTTON
   ========================================================================= */
.ahctt-test-header-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 10px !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
}

.ahctt-btn-view-leaderboard {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}

.ahctt-btn-view-leaderboard:hover {
  background: #d1fae5 !important;
  border-color: #6ee7b7 !important;
}

.ahctt-select {
  width: 100% !important;
  padding: 12px 16px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  outline: none !important;
  transition: all 0.15s !important;
  box-sizing: border-box !important;
}

.ahctt-select:focus {
  background-color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14) !important;
}

/* =========================================================================
   7.1 PASSAGE DIFFICULTY BADGES & INDICATOR (EASY, MODERATE, HARD)
   ========================================================================= */
.ahctt-difficulty-container {
  margin-top: 12px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  box-sizing: border-box !important;
}

.ahctt-diff-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.ahctt-diff-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  letter-spacing: 0.01em !important;
}

.ahctt-diff-pill-current {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.ahctt-diff-pill-current.ahctt-diff-easy strong {
  color: #047857 !important;
}

.ahctt-diff-pill-current.ahctt-diff-medium strong {
  color: #b45309 !important;
}

.ahctt-diff-pill-current.ahctt-diff-hard strong {
  color: #b91c1c !important;
}

.ahctt-diff-badges-group {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.ahctt-diff-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 14px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  border: 1.5px solid #cbd5e1 !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  background: #ffffff !important;
  color: #475569 !important;
  white-space: nowrap !important;
}

.ahctt-diff-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  background: currentColor !important;
}

.ahctt-diff-easy:hover {
  border-color: #10b981 !important;
  color: #047857 !important;
  background: #f0fdf4 !important;
}

.ahctt-diff-easy.active {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
}

.ahctt-diff-easy.active .ahctt-diff-dot {
  background: #ffffff !important;
}

.ahctt-diff-medium:hover {
  border-color: #f59e0b !important;
  color: #b45309 !important;
  background: #fffbeb !important;
}

.ahctt-diff-medium.active {
  background: #d97706 !important;
  color: #ffffff !important;
  border-color: #b45309 !important;
}

.ahctt-diff-medium.active .ahctt-diff-dot {
  background: #ffffff !important;
}

.ahctt-diff-hard:hover {
  border-color: #ef4444 !important;
  color: #b91c1c !important;
  background: #fef2f2 !important;
}

.ahctt-diff-hard.active {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #b91c1c !important;
}

.ahctt-diff-hard.active .ahctt-diff-dot {
  background: #ffffff !important;
}

.ahctt-diff-reset-btn {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  white-space: nowrap !important;
}

.ahctt-diff-reset-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.ahctt-diff-summary-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  border-top: 1px solid #e2e8f0 !important;
  padding-top: 10px !important;
  font-size: 12.5px !important;
  color: #64748b !important;
  font-variant-numeric: tabular-nums !important;
}

.ahctt-diff-summary-item strong {
  color: #0f172a !important;
}

/* =========================================================================
   8. BUTTONS
   ========================================================================= */
.ahctt-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 11px 22px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  text-align: center !important;
  border: 1px solid transparent !important;
  text-decoration: none !important;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}

.ahctt-btn-primary {
  background: #064e3b !important;
  color: #ffffff !important;
  border-color: #047857 !important;
}

.ahctt-btn-primary:hover {
  background: #047857 !important;
}

.ahctt-btn-secondary {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

.ahctt-btn-secondary:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.ahctt-btn-large {
  width: 100% !important;
  padding: 15px 24px !important;
  font-size: 16px !important;
  letter-spacing: 0.01em !important;
  border-radius: 10px !important;
}

/* =========================================================================
   9. MODALS & LEADERBOARD
   ========================================================================= */
.ahctt-modal-overlay:not(.ahctt-hidden) {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(4px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999999 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.ahctt-modal {
  background: #ffffff !important;
  border-radius: 16px !important;
  max-width: 480px !important;
  width: 100% !important;
  padding: 28px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25) !important;
  position: relative !important;
  box-sizing: border-box !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

.ahctt-modal-wide {
  max-width: 780px !important;
  width: 95% !important;
}

.ahctt-modal-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: 100% !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 14px !important;
  margin-bottom: 16px !important;
  gap: 12px !important;
}

.ahctt-modal-header-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.ahctt-modal-badge {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #047857 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.ahctt-modal-title {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.ahctt-modal-desc {
  font-size: 14px !important;
  color: #475569 !important;
  margin: 0 0 18px 0 !important;
  line-height: 1.55 !important;
}

.ahctt-modal-stats {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  font-size: 13.5px !important;
  margin-bottom: 18px !important;
  color: #334155 !important;
  font-variant-numeric: tabular-nums !important;
}

.ahctt-modal-close {
  background: #f1f5f9 !important;
  border: none !important;
  color: #475569 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  transition: background 0.15s, color 0.15s !important;
}

.ahctt-modal-close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.ahctt-modal-body {
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.ahctt-lb-note {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 12.5px !important;
  color: #065f46 !important;
  margin-bottom: 14px !important;
  line-height: 1.45 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ahctt-lb-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  margin-bottom: 14px !important;
  background: #ffffff !important;
}

.ahctt-lb-table {
  width: 100% !important;
  min-width: 580px !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  font-size: 13px !important;
  text-align: left !important;
  margin: 0 !important;
  font-variant-numeric: tabular-nums !important;
}

.ahctt-lb-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  padding: 11px 14px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  white-space: nowrap !important;
  text-align: left !important;
  font-size: 11.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

.ahctt-lb-table td {
  padding: 10px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #1e293b !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.ahctt-lb-table tbody tr:hover {
  background: #f8fafc !important;
}

.ahctt-lb-my-row {
  background: #ecfdf5 !important;
  font-weight: 700 !important;
}

.ahctt-you-badge {
  font-size: 10px !important;
  background: #059669 !important;
  color: #ffffff !important;
  padding: 1.5px 6px !important;
  border-radius: 4px !important;
  margin-left: 5px !important;
  font-weight: 700 !important;
}

.ahctt-modal-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 16px !important;
  width: 100% !important;
}

/* =========================================================================
   10. EXAMINATION RUNTIME INTERFACE (TERMINAL)
   ========================================================================= */
.ahctt-exam-container,
#ahctt-exam-section {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 16px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.14) !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box !important;
  clear: both !important;
}

.ahctt-exam-container > div,
#ahctt-exam-section > div,
.ahctt-top-black-bar,
.ahctt-top-toolbar,
.ahctt-blue-info-bar,
.ahctt-exam-content {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.ahctt-exam-container.ahctt-is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 999999 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  background: #f8fafc !important;
  overflow: hidden !important;
}

.ahctt-exam-container.ahctt-is-fullscreen .ahctt-exam-content {
  flex: 1 1 auto !important;
  height: calc(100vh - 125px) !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 18px 28px !important;
  background: #f8fafc !important;
}

.ahctt-exam-container.ahctt-is-fullscreen .ahctt-passage-box {
  height: 230px !important;
  max-height: 38vh !important;
  min-height: 165px !important;
}

.ahctt-exam-container.ahctt-is-fullscreen .ahctt-typing-area {
  height: 190px !important;
  max-height: 32vh !important;
  min-height: 140px !important;
}

.ahctt-top-black-bar {
  background: #062c22 !important;
  color: #ffffff !important;
  padding: 10px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.ahctt-terminal-tag {
  font-size: 11px !important;
  color: #a7f3d0 !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
}

.ahctt-top-toolbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 10px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.ahctt-toolbar-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.ahctt-fullscreen-btn {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.ahctt-fs-label {
  white-space: nowrap !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: inline-block !important;
}

.ahctt-tool-btn {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 7px 12px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #0f172a !important;
  transition: all 0.15s !important;
}

.ahctt-tool-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

.ahctt-tool-btn.ahctt-muted {
  color: #94a3b8 !important;
  background: #f8fafc !important;
}

.ahctt-font-scale-group {
  display: inline-flex !important;
  align-items: center !important;
  background: #f1f5f9 !important;
  padding: 3px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  gap: 2px !important;
  user-select: none !important;
}

.ahctt-font-scale-btn {
  background: transparent !important;
  border: none !important;
  padding: 4px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  color: #475569 !important;
  line-height: 1.4 !important;
  transition: all 0.15s ease-in-out !important;
  outline: none !important;
}

.ahctt-font-scale-btn:hover {
  color: #0f172a !important;
}

.ahctt-font-scale-btn.active {
  background: #064e3b !important;
  color: #ffffff !important;
}

/* Explicit font scaling rules */
.ahctt-scale-sm,
.ahctt-passage-box.ahctt-scale-sm,
.ahctt-passage-box.ahctt-scale-sm .ahctt-word,
textarea.ahctt-typing-area.ahctt-scale-sm,
#ahctt-passage-display.ahctt-scale-sm,
#ahctt-passage-display.ahctt-scale-sm .ahctt-word,
#ahctt-typing-input.ahctt-scale-sm {
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.ahctt-scale-md,
.ahctt-passage-box.ahctt-scale-md,
.ahctt-passage-box.ahctt-scale-md .ahctt-word,
textarea.ahctt-typing-area.ahctt-scale-md,
#ahctt-passage-display.ahctt-scale-md,
#ahctt-passage-display.ahctt-scale-md .ahctt-word,
#ahctt-typing-input.ahctt-scale-md {
  font-size: 18px !important;
  line-height: 1.85 !important;
}

.ahctt-scale-lg,
.ahctt-passage-box.ahctt-scale-lg,
.ahctt-passage-box.ahctt-scale-lg .ahctt-word,
textarea.ahctt-typing-area.ahctt-scale-lg,
#ahctt-passage-display.ahctt-scale-lg,
#ahctt-passage-display.ahctt-scale-lg .ahctt-word,
#ahctt-typing-input.ahctt-scale-lg {
  font-size: 22px !important;
  line-height: 2.0 !important;
}

.ahctt-toolbar-right {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
}

.ahctt-timer-block {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  padding: 5px 14px !important;
  border-radius: 8px !important;
}

.ahctt-timer-label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

.ahctt-timer-digits {
  font-family: 'IBM Plex Mono', monospace !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #064e3b !important;
}

.ahctt-candidate-avatar-box {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ahctt-avatar-frame {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #ecfdf5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid #a7f3d0 !important;
  color: #047857 !important;
}

.ahctt-candidate-name {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.ahctt-blue-info-bar {
  background: #064e3b !important;
  color: #ecfdf5 !important;
  padding: 9px 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  font-size: 13px !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.ahctt-exam-content {
  padding: 20px !important;
  background: #f8fafc !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  box-sizing: border-box !important;
}

/* Stationary Examination Passage Box */
.ahctt-passage-box {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 16px 20px !important;
  height: 190px !important;
  min-height: 155px !important;
  max-height: 230px !important;
  overflow-y: scroll !important;
  font-size: 18px !important;
  line-height: 1.85 !important;
  color: #0f172a !important;
  user-select: none !important;
  outline: none !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

/* Plain Text Words - Strict Zero Highlighting (Official AHC Examination Mode) */
.ahctt-word,
.ahctt-passage-box .ahctt-word,
.ahctt-word.ahctt-word-active,
.ahctt-word.ahctt-word-correct,
.ahctt-word.ahctt-word-wrong,
.ahctt-word.ahctt-word-active-wrong,
.ahctt-word.ahctt-word-current-match,
.ahctt-word.ahctt-word-current-wrong {
  color: #0f172a !important;
  background: transparent !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  border: none !important;
  display: inline !important;
  margin-right: 5px !important;
}

/* Typing Input Area */
.ahctt-typing-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.ahctt-typing-area {
  width: 100% !important;
  height: 150px !important;
  min-height: 135px !important;
  max-height: 175px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 16px 20px !important;
  font-size: 18px !important;
  line-height: 1.85 !important;
  color: #0f172a !important;
  outline: none !important;
  font-weight: 500 !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
  box-sizing: border-box !important;
}

.ahctt-typing-area:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3.5px rgba(5, 150, 105, 0.14) !important;
}

.ahctt-exam-bottom-actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 4px 0 0 0 !important;
}

.ahctt-btn-cancel-red {
  background: #ffffff !important;
  color: #dc2626 !important;
  border: 1.5px solid #fca5a5 !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  white-space: nowrap !important;
}

.ahctt-btn-cancel-red:hover {
  background: #fef2f2 !important;
  border-color: #dc2626 !important;
}

.ahctt-btn-submit-blue {
  background: #064e3b !important;
  color: #ffffff !important;
  border: 1.5px solid #047857 !important;
  padding: 10px 28px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  white-space: nowrap !important;
}

.ahctt-btn-submit-blue:hover {
  background: #047857 !important;
}

/* =========================================================================
   11. RESULTS & REPORT INTERFACE
   ========================================================================= */
.ahctt-result-card {
  max-width: 1060px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 32px 36px !important;
  box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.07) !important;
  box-sizing: border-box !important;
}

.ahctt-report-badge-wrap {
  margin-bottom: 6px !important;
}

.ahctt-report-badge {
  color: #a7f3d0 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  display: inline-block !important;
}

.ahctt-status-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  text-align: center !important;
  padding: 16px 20px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  margin-bottom: 24px !important;
  line-height: 1.4 !important;
  font-variant-numeric: tabular-nums !important;
}

.ahctt-status-icon {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.ahctt-status-pass {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1.5px solid #6ee7b7 !important;
}

.ahctt-status-pass .ahctt-status-icon {
  background: #059669 !important;
  color: #ffffff !important;
}

.ahctt-status-fail {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border: 1.5px solid #fca5a5 !important;
}

.ahctt-status-fail .ahctt-status-icon {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.ahctt-result-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 24px !important;
}

.ahctt-res-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 15px 18px !important;
  box-sizing: border-box !important;
}

.ahctt-res-lbl {
  display: block !important;
  font-size: 11px !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 6px !important;
}

.ahctt-res-val {
  font-family: 'IBM Plex Mono', monospace !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 20px !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  display: block !important;
}

.ahctt-res-highlight-marks {
  background: #fffbeb !important;
  border: 1.5px solid #fde68a !important;
}

.ahctt-res-highlight-marks .ahctt-res-val {
  font-size: 23px !important;
  color: #92400e !important;
}

.ahctt-res-highlight-gross {
  background: #f0f9ff !important;
  border: 1.5px solid #bae6fd !important;
}

.ahctt-res-highlight-gross .ahctt-res-val {
  font-size: 23px !important;
  color: #0369a1 !important;
}

.ahctt-res-highlight-net {
  background: #ecfdf5 !important;
  border: 1.5px solid #a7f3d0 !important;
}

.ahctt-res-highlight-net .ahctt-res-val {
  font-size: 23px !important;
  color: #047857 !important;
}

.text-green { color: #059669 !important; }
.text-red { color: #dc2626 !important; }

/* Word Review Sections */
.ahctt-review-container {
  margin-top: 26px !important;
  border-top: 1px solid #e2e8f0 !important;
  padding-top: 24px !important;
}

.ahctt-review-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 12px 0 !important;
}

.ahctt-review-legend {
  display: flex !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-bottom: 14px !important;
  font-size: 12.5px !important;
  color: #475569 !important;
}

.ahctt-legend-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

.ahctt-dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  display: inline-block !important;
}

.ahctt-dot-green { background: #059669 !important; }
.ahctt-dot-red { background: #dc2626 !important; }
.ahctt-dot-yellow { background: #d97706 !important; }
.ahctt-dot-gray { background: #94a3b8 !important; }

.ahctt-review-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}

.ahctt-col-header {
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #334155 !important;
  margin-bottom: 8px !important;
}

.ahctt-review-box {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  min-height: 170px !important;
  max-height: 290px !important;
  overflow-y: auto !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
  white-space: pre-wrap !important;
  box-sizing: border-box !important;
}

.ahctt-rev-word-correct {
  color: #065f46 !important;
  background: #d1fae5 !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}

.ahctt-rev-word-wrong {
  color: #991b1b !important;
  background: #fee2e2 !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.ahctt-rev-word-missing {
  color: #92400e !important;
  background: #fef3c7 !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
}

.ahctt-rev-word-added {
  color: #64748b !important;
  background: #f1f5f9 !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
  text-decoration: line-through !important;
}

.ahctt-rev-word-unattempted {
  color: #94a3b8 !important;
}

/* =========================================================================
   COLORFUL MOTIVATIONAL QUOTE BOX (BELOW SIDE-BY-SIDE REVIEW)
   ========================================================================= */
.ahctt-motivation-section,
.ahctt-v2-booster-wrap,
#ahctt-motivation-section {
  margin: 28px 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: block !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.ahctt-motivation-box,
.ahctt-v2-booster-card,
#ahctt-motivation-box {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: 100% !important;
  border-radius: 16px !important;
  padding: 28px 32px !important;
  text-align: center !important;
  overflow: hidden !important;
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.24) !important;
  border: 2px solid rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
}

.ahctt-mot-theme-0 {
  background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #0284c7 100%) !important;
}

.ahctt-mot-theme-1 {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%) !important;
}

.ahctt-mot-theme-2 {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 55%, #e11d48 100%) !important;
}

.ahctt-mot-theme-3 {
  background: linear-gradient(135deg, #0f766e 0%, #2563eb 55%, #4338ca 100%) !important;
}

.ahctt-mot-theme-4 {
  background: linear-gradient(135deg, #be185d 0%, #9333ea 50%, #2563eb 100%) !important;
}

.ahctt-motivation-top,
.ahctt-v2-booster-top {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.ahctt-motivation-badge,
.ahctt-v2-booster-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 6px 16px !important;
  border-radius: 999px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.ahctt-motivation-quote,
.ahctt-v2-booster-quote,
p.ahctt-motivation-quote,
div.ahctt-motivation-quote,
blockquote.ahctt-motivation-quote,
#ahctt-motivation-text {
  display: block !important;
  width: 100% !important;
  max-width: 840px !important;
  margin: 4px auto !important;
  padding: 6px 12px !important;
  border: none !important;
  border-left: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: 'Plus Jakarta Sans', 'Nirmala UI', 'Mangal', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 19px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.8 !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.05em !important;
  text-align: center !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  quotes: none !important;
}

.ahctt-motivation-quote::before,
.ahctt-motivation-quote::after,
.ahctt-v2-booster-quote::before,
.ahctt-v2-booster-quote::after,
blockquote.ahctt-motivation-quote::before,
blockquote.ahctt-motivation-quote::after {
  content: none !important;
  display: none !important;
}

.ahctt-motivation-footer,
.ahctt-v2-booster-foot {
  width: 100% !important;
  margin: 4px 0 0 0 !important;
  padding: 14px 0 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.ahctt-motivation-credit,
.ahctt-v2-booster-author {
  display: inline-block !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  word-spacing: 0.04em !important;
  line-height: 1.5 !important;
  color: #fef08a !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 2px 10px !important;
}

/* =========================================================================
   TOP 10 LEADERBOARD CONTAINER
   ========================================================================= */
.ahctt-result-leaderboard-container {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 24px !important;
  margin-top: 28px !important;
  box-sizing: border-box !important;
}

.ahctt-result-lb-header {
  margin-bottom: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.ahctt-badge-rank-trophy {
  color: #b45309 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

.ahctt-result-lb-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 2px 0 6px 0 !important;
  line-height: 1.3 !important;
}

.ahctt-lb-rank-callout {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  line-height: 1.5 !important;
}

.ahctt-lb-prune-info {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.ahctt-badge-pass-sm {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ecfdf5 !important;
  border: 1px solid #6ee7b7 !important;
  color: #065f46 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
}

.ahctt-badge-fail-sm {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fef2f2 !important;
  border: 1px solid #fca5a5 !important;
  color: #991b1b !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
}

.ahctt-result-actions {
  margin-top: 28px !important;
  text-align: center !important;
}

.ahctt-result-actions .ahctt-btn-primary {
  border-radius: 10px !important;
  padding: 13px 32px !important;
  font-size: 15px !important;
}

/* =========================================================================
   OFFICIAL AHC SCORING FORMULA & RULES EXPLAINER (BOTTOM ACCORDION)
   ========================================================================= */
.ahctt-explainer {
  margin: 28px 0 6px 0 !important;
  padding: 0 !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.06) !important;
  box-sizing: border-box !important;
}

.ahctt-explainer-toggle,
button.ahctt-explainer-toggle,
#ahctt-explainer-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 16px 22px !important;
  background: #f1f5f9 !important;
  border: none !important;
  border-radius: 0 !important;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  word-spacing: 0.02em !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background-color 0.16s ease, color 0.16s ease !important;
  box-sizing: border-box !important;
}

.ahctt-explainer-toggle:hover,
button.ahctt-explainer-toggle:hover,
#ahctt-explainer-btn:hover {
  background: #e2e8f0 !important;
  color: #064e3b !important;
}

.ahctt-toggle-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #064e3b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.ahctt-explainer-body,
#ahctt-explainer-content {
  padding: 22px 26px !important;
  background: #f8fafc !important;
  border-top: 1.5px solid #e2e8f0 !important;
  color: #334155 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
  letter-spacing: 0 !important;
  word-spacing: 0.03em !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.ahctt-explainer-body p,
#ahctt-explainer-content p,
.ahctt-explainer-heading {
  margin: 0 0 14px 0 !important;
  padding: 0 0 10px 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #064e3b !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}

.ahctt-explainer-body ul,
#ahctt-explainer-content ul,
.ahctt-explainer-list {
  margin: 0 !important;
  padding: 0 0 0 22px !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.ahctt-explainer-body ul li,
#ahctt-explainer-content ul li,
.ahctt-explainer-list li {
  margin: 0 !important;
  padding: 2px 0 2px 4px !important;
  list-style-type: disc !important;
  display: list-item !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  line-height: 1.75 !important;
  letter-spacing: 0 !important;
  word-spacing: 0.03em !important;
}

.ahctt-explainer-body ul li::marker,
#ahctt-explainer-content ul li::marker,
.ahctt-explainer-list li::marker {
  color: #059669 !important;
  font-size: 14px !important;
}

.ahctt-explainer-body ul li strong,
#ahctt-explainer-content ul li strong,
#ahctt-formula-breakdown {
  display: inline-block !important;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  margin-top: 4px !important;
}

/* =========================================================================
   12. MOBILE RESPONSIVENESS (Touch-Optimized & Zero Clipping on Smartphones)
   ========================================================================= */
@media (max-width: 768px) {
  .ahctt-wrapper {
    margin: 10px auto !important;
    padding: 0 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .ahctt-setup-card,
  .ahctt-result-card {
    padding: 16px 14px !important;
    border-radius: 14px !important;
    width: 100% !important;
  }

  .ahctt-header {
    padding: 16px 16px !important;
    margin-bottom: 18px !important;
    border-radius: 10px !important;
  }

  .ahctt-title {
    font-size: 19px !important;
    line-height: 1.3 !important;
  }

  .ahctt-subtitle {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
  }

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

  /* Prevent iOS Safari zoom on input/select focus by using 16px font-size and 48px touch height */
  .ahctt-input-name,
  .ahctt-select,
  .ahctt-available-dates-dropdown {
    font-size: 16px !important;
    min-height: 48px !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    max-width: 100% !important;
    width: 100% !important;
    text-overflow: ellipsis !important;
  }

  .ahctt-name-header-row,
  .ahctt-test-header-row,
  .ahctt-date-bar-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .ahctt-btn-view-leaderboard {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    min-height: 44px !important;
  }

  /* Language & Font Segmented Buttons */
  .ahctt-btn-group {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 6px !important;
  }

  .ahctt-btn-select {
    width: 100% !important;
    min-height: 46px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Date Filter Pills & Calendar Strip */
  .ahctt-date-toggle-btns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .ahctt-date-pill {
    width: 100% !important;
    text-align: center !important;
    padding: 8px 6px !important;
    font-size: 11.5px !important;
    min-height: 38px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }

  .ahctt-picker-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .ahctt-available-dates-dropdown {
    min-width: 100% !important;
  }

  .ahctt-cal-day-btn {
    min-width: 82px !important;
    padding: 8px 10px !important;
  }

  /* Difficulty Badges on Mobile */
  .ahctt-difficulty-container {
    padding: 12px !important;
  }

  .ahctt-diff-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .ahctt-diff-badges-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .ahctt-diff-badge,
  .ahctt-diff-reset-btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 8px 10px !important;
    font-size: 12.5px !important;
  }

  .ahctt-diff-summary-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .ahctt-btn-large {
    min-height: 50px !important;
    font-size: 15.5px !important;
    padding: 14px 18px !important;
  }

  /* Exam Terminal on Mobile */
  .ahctt-top-black-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 10px 14px !important;
    white-space: normal !important;
    font-size: 12.5px !important;
  }

  .ahctt-top-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px 12px !important;
    gap: 10px !important;
  }

  .ahctt-toolbar-left,
  .ahctt-toolbar-right {
    justify-content: space-between !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .ahctt-blue-info-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 8px 14px !important;
    gap: 4px !important;
    font-size: 12px !important;
  }

  .ahctt-exam-content {
    padding: 12px !important;
    gap: 12px !important;
  }

  .ahctt-exam-container.ahctt-is-fullscreen .ahctt-exam-content {
    padding: 12px !important;
    height: calc(100vh - 155px) !important;
  }

  .ahctt-passage-box {
    height: 165px !important;
    min-height: 140px !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  .ahctt-typing-area {
    height: 140px !important;
    min-height: 125px !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  .ahctt-exam-bottom-actions {
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .ahctt-btn-cancel-red,
  .ahctt-btn-submit-blue {
    flex: 1 !important;
    min-height: 46px !important;
    padding: 11px 12px !important;
    font-size: 13.5px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Result Screen on Mobile */
  .ahctt-status-banner {
    flex-direction: column !important;
    padding: 14px 12px !important;
    font-size: 14px !important;
    gap: 8px !important;
    word-break: break-word !important;
  }

  .ahctt-result-actions-top {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .ahctt-result-actions-top .ahctt-btn {
    width: 100% !important;
    min-height: 46px !important;
    white-space: normal !important;
  }

  .ahctt-result-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .ahctt-res-item {
    padding: 12px !important;
  }

  .ahctt-res-val {
    font-size: 16px !important;
    word-break: break-word !important;
  }

  .ahctt-res-highlight-marks .ahctt-res-val,
  .ahctt-res-highlight-gross .ahctt-res-val,
  .ahctt-res-highlight-net .ahctt-res-val {
    font-size: 18px !important;
  }

  .ahctt-review-columns {
    grid-template-columns: 1fr !important;
  }

  .ahctt-review-box {
    max-height: 220px !important;
    font-size: 15px !important;
    padding: 12px 14px !important;
  }

  .ahctt-motivation-box,
  .ahctt-v2-booster-card,
  #ahctt-motivation-box {
    padding: 20px 16px !important;
    gap: 12px !important;
    border-radius: 14px !important;
  }

  .ahctt-motivation-quote,
  .ahctt-v2-booster-quote,
  #ahctt-motivation-text {
    font-size: 16px !important;
    line-height: 1.7 !important;
    padding: 4px !important;
  }

  .ahctt-result-leaderboard-container {
    padding: 14px 12px !important;
  }

  .ahctt-explainer-toggle,
  .ahctt-v2-rules-btn,
  #ahctt-explainer-btn {
    padding: 14px 14px !important;
    font-size: 13.5px !important;
  }

  .ahctt-explainer-body,
  .ahctt-v2-rules-panel,
  #ahctt-explainer-content {
    padding: 16px 14px !important;
    font-size: 13px !important;
  }

  /* Modals on Mobile */
  .ahctt-modal-overlay:not(.ahctt-hidden) {
    padding: 10px !important;
  }

  .ahctt-modal,
  .ahctt-modal-wide {
    padding: 18px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 14px !important;
  }

  .ahctt-modal-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .ahctt-modal-actions .ahctt-btn {
    width: 100% !important;
    min-height: 46px !important;
  }
}

@media (max-width: 420px) {
  .ahctt-result-grid {
    grid-template-columns: 1fr !important;
  }

  .ahctt-diff-badges-group {
    grid-template-columns: 1fr !important;
  }

  .ahctt-date-toggle-btns {
    grid-template-columns: 1fr !important;
  }
}
