/**
 * AHC Typing Test - Frontend Examination Stylesheet v1.8.0
 * Comprehensive & Rock-Solid WordPress Theme Isolation
 * Scoped strictly under .ahctt- and #ahctt-
 */

/* Import universal embedded base64 Kruti Dev 010 web font */
@import url('ahctt-krutidev.css');

@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.5px !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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
  color: #1e293b !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
  text-align: left !important;
  letter-spacing: normal !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;
}

/* Neutralize WordPress Theme Button Overrides */
.ahctt-wrapper button,
.ahctt-modal-overlay button {
  font-family: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  text-decoration: none !important;
  border-style: solid !important;
}

/* Neutralize WordPress Theme Table Overrides */
.ahctt-wrapper table,
.ahctt-modal-overlay table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  background: transparent !important;
}

/* =========================================================================
   2. STRICT HIDDEN UTILITY (CRITICAL: Overrides all modals and containers)
   ========================================================================= */
.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 & SETUP CARD
   ========================================================================= */
.ahctt-wrapper {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 15px auto !important;
  padding: 0 10px !important;
}

.ahctt-header {
  border-bottom: 2px solid #e2e8f0 !important;
  padding-bottom: 12px !important;
  margin-bottom: 20px !important;
  text-align: center !important;
}

.ahctt-title {
  margin: 0 !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0f2744 !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
}

.ahctt-subtitle {
  margin: 6px 0 0 0 !important;
  font-size: 14px !important;
  color: #475569 !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.ahctt-setup-card {
  max-width: 1100px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 24px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

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

.ahctt-label {
  display: block !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  margin-bottom: 8px !important;
  color: #1e293b !important;
  line-height: 1.3 !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: 8px !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.ahctt-name-badge-hint {
  font-size: 11px !important;
  color: #64748b !important;
  background: #f1f5f9 !important;
  padding: 2px 8px !important;
  border-radius: 4px !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: 12px !important;
  pointer-events: none !important;
  font-size: 16px !important;
}

.ahctt-input-name {
  width: 100% !important;
  padding: 10px 14px 10px 38px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  outline: none !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

.ahctt-input-name:focus {
  border-color: #0f3a68 !important;
  box-shadow: 0 0 0 3px rgba(15, 58, 104, 0.12) !important;
}

/* =========================================================================
   5. LAYER 1: LANGUAGE & FONT SELECTION
   ========================================================================= */
.ahctt-btn-group {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

.ahctt-btn-select {
  flex: 1 1 0 !important;
  min-width: 140px !important;
  padding: 12px 18px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: #f8fafc !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  color: #334155 !important;
  text-align: center !important;
  transition: all 0.15s ease-in-out !important;
  line-height: 1.4 !important;
}

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

.ahctt-btn-select.active {
  border-color: #0f3a68 !important;
  background: #0f3a68 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 58, 104, 0.25) !important;
}

.ahctt-notice-info {
  background: #fffbeb !important;
  border-left: 4px solid #f59e0b !important;
  padding: 8px 12px !important;
  margin-top: 10px !important;
  border-radius: 4px !important;
  color: #92400e !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
}

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

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

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

.ahctt-date-toggle-btns {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.ahctt-date-pill {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  line-height: 1.4 !important;
}

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

.ahctt-date-pill.active {
  background: #0f3a68 !important;
  border-color: #0f3a68 !important;
  color: #ffffff !important;
}

.ahctt-date-picker-box {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  margin-bottom: 10px !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: 200px !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
}

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

.ahctt-calendar-strip {
  display: flex !important;
  gap: 10px !important;
  min-width: 100% !important;
  padding-right: 10px !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: 8px 14px !important;
  min-width: 88px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  text-align: center !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
}

.ahctt-cal-day-btn:hover {
  border-color: #0f3a68 !important;
  background: #f0f7ff !important;
}

.ahctt-cal-day-btn.active {
  background: #f0f7ff !important;
  border-color: #0f3a68 !important;
  box-shadow: 0 0 0 2px rgba(15, 58, 104, 0.2) !important;
}

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

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

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

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

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

.ahctt-cal-day-badge {
  display: block !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  background: #e2e8f0 !important;
  color: #475569 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
}

.ahctt-cal-day-btn.active .ahctt-cal-day-badge {
  background: #0f3a68 !important;
  color: #ffffff !important;
}

.ahctt-cal-new-tag {
  position: absolute !important;
  top: -7px !important;
  right: -6px !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  padding: 2px 6px !important;
  border-radius: 9999px !important;
  border: 1.5px solid #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  pointer-events: none !important;
  animation: ahcttBadgePopShimmer 1.8s infinite ease-in-out !important;
}

@keyframes ahcttBadgePopShimmer {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 12px 3px rgba(239, 68, 68, 0.7);
  }
}

.ahctt-date-status-info {
  font-size: 12px !important;
  color: #64748b !important;
  font-style: italic !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: 8px !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
}

.ahctt-btn-view-leaderboard {
  background: #f0fdf4 !important;
  border: 1px solid #86efac !important;
  color: #166534 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 5px 12px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 0.15s !important;
  line-height: 1.4 !important;
}

.ahctt-btn-view-leaderboard:hover {
  background: #dcfce7 !important;
  border-color: #4ade80 !important;
}

.ahctt-select {
  width: 100% !important;
  padding: 10px 14px !important;
  font-size: 14.5px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  outline: none !important;
  transition: border-color 0.15s !important;
  box-sizing: border-box !important;
}

.ahctt-select:focus {
  border-color: #0f3a68 !important;
  box-shadow: 0 0 0 2px rgba(15, 58, 104, 0.15) !important;
}

/* =========================================================================
   7.1 PASSAGE DIFFICULTY BADGES & INDICATOR (EASY, MODERATE, HARD)
   ========================================================================= */
.ahctt-difficulty-container {
  margin-top: 10px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !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;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

.ahctt-diff-pill-current {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.ahctt-diff-pill-current.ahctt-diff-easy {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

.ahctt-diff-pill-current.ahctt-diff-medium {
  background: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}

.ahctt-diff-pill-current.ahctt-diff-hard {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fecaca !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: 6px 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: #64748b !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

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

/* Easy (सरल) */
.ahctt-diff-easy:hover {
  border-color: #10b981 !important;
  color: #047857 !important;
  background: #f0fdf4 !important;
}

.ahctt-diff-easy.active {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35) !important;
}

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

/* Moderate / Medium (मध्यम) */
.ahctt-diff-medium:hover {
  border-color: #f59e0b !important;
  color: #b45309 !important;
  background: #fffbeb !important;
}

.ahctt-diff-medium.active {
  background: #f59e0b !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35) !important;
}

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

/* Hard (कठिन) */
.ahctt-diff-hard:hover {
  border-color: #ef4444 !important;
  color: #b91c1c !important;
  background: #fef2f2 !important;
}

.ahctt-diff-hard.active {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35) !important;
}

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

.ahctt-diff-reset-btn {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  background: #ffffff !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
}

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

.ahctt-diff-summary-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  border-top: 1px solid #e2e8f0 !important;
  padding-top: 8px !important;
  font-size: 12px !important;
  color: #64748b !important;
}

.ahctt-diff-summary-item strong {
  color: #1e293b !important;
}

/* =========================================================================
   8. BUTTONS
   ========================================================================= */
.ahctt-btn {
  display: inline-block !important;
  padding: 10px 20px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  text-align: center !important;
  border: none !important;
  text-decoration: none !important;
  transition: background 0.15s ease !important;
  line-height: 1.4 !important;
}

.ahctt-btn-primary {
  background: #0f3a68 !important;
  color: #ffffff !important;
}

.ahctt-btn-primary:hover {
  background: #0a2644 !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: 14px !important;
  font-size: 16px !important;
  letter-spacing: 0.5px !important;
  border-radius: 6px !important;
}

/* =========================================================================
   9. MODALS & LEADERBOARD (STRICT HIGH SPECIFICITY - NO THEME OVERRIDES)
   ========================================================================= */
.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.75) !important;
  backdrop-filter: blur(3px) !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: 8px !important;
  max-width: 480px !important;
  width: 100% !important;
  padding: 24px !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  box-sizing: border-box !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

.ahctt-modal-wide {
  max-width: 740px !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: 12px !important;
  margin-bottom: 14px !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: #0284c7 !important;
  background: #e0f2fe !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  width: fit-content !important;
}

.ahctt-modal-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f2744 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.ahctt-modal-desc {
  font-size: 13.5px !important;
  color: #475569 !important;
  margin: 0 0 16px 0 !important;
  line-height: 1.5 !important;
}

.ahctt-modal-stats {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  padding: 12px !important;
  font-size: 13px !important;
  margin-bottom: 16px !important;
  color: #334155 !important;
}

/* Close Button (CRITICAL: Completely resets WordPress theme button styles) */
.ahctt-modal-close {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  font-size: 26px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  transition: background 0.15s, color 0.15s !important;
  box-shadow: none !important;
}

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

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

.ahctt-lb-note {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-size: 12.5px !important;
  color: #1e40af !important;
  margin-bottom: 14px !important;
  line-height: 1.45 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.ahctt-lb-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !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;
}

.ahctt-lb-table th {
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-weight: 700 !important;
  padding: 10px 12px !important;
  border-bottom: 2px solid #cbd5e1 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  white-space: nowrap !important;
  text-align: left !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
}

.ahctt-lb-table td {
  padding: 9px 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !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: 9.5px !important;
  background: #059669 !important;
  color: #ffffff !important;
  padding: 1px 4px !important;
  border-radius: 2px !important;
  margin-left: 3px !important;
}

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

/* =========================================================================
   10. EXAMINATION RUNTIME INTERFACE (TERMINAL)
   ========================================================================= */
.ahctt-exam-container,
#ahctt-exam-section {
  background: #ffffff !important;
  border: 2px solid #0f172a !important;
  border-radius: 12px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !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;
}

/* Enforce that EVERY direct child of the exam container is ALWAYS 100% full width and stacked vertically */
.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;
}

/* FULLSCREEN EXAMINATION TERMINAL MODE (Auto-enabled when test starts) */
.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 - 120px) !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 16px 24px !important;
  background: #f8fafc !important;
}

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

.ahctt-exam-container.ahctt-is-fullscreen .ahctt-typing-area {
  height: 180px !important;
  max-height: 30vh !important;
  min-height: 130px !important;
}

.ahctt-top-black-bar {
  background: #000000 !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 14px !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;
  background: #1e293b !important;
  color: #94a3b8 !important;
  padding: 2px 8px !important;
  border-radius: 3px !important;
  white-space: nowrap !important;
}

.ahctt-top-toolbar {
  background: #ffffff !important;
  border-bottom: 2px solid #e2e8f0 !important;
  padding: 10px 16px !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: 12px !important;
  font-weight: 600 !important;
  display: inline-block !important;
}

.ahctt-tool-btn {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 6px 10px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #334155 !important;
}

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

.ahctt-font-scale-group {
  display: inline-flex !important;
  align-items: center !important;
  background: #f1f5f9 !important;
  padding: 3px !important;
  border-radius: 9999px !important;
  border: 1px solid #cbd5e1 !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: 9999px !important;
  cursor: pointer !important;
  color: #475569 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  transition: all 0.15s ease-in-out !important;
  outline: none !important;
}

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

.ahctt-font-scale-btn.active {
  background: #0f3a68 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

/* Explicit font scaling rules with high specificity */
.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.6 !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.8 !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: 16px !important;
}

.ahctt-timer-digits {
  font-family: "Courier New", Courier, monospace !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0f172a !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: #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #475569 !important;
}

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

.ahctt-blue-info-bar {
  background: #0f3a68 !important;
  color: #ffffff !important;
  padding: 8px 16px !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: 16px !important;
  background: #f8fafc !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !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: 2px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 14px 16px !important;
  height: 180px !important;
  min-height: 150px !important;
  max-height: 220px !important;
  overflow-y: scroll !important;
  font-size: 18px !important;
  line-height: 1.8 !important;
  color: #000000 !important;
  user-select: none !important;
  outline: none !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
}

/* Plain Black 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: #000000 !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 (Clean Examination White Background) */
.ahctt-typing-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.ahctt-typing-area {
  width: 100% !important;
  height: 140px !important;
  min-height: 130px !important;
  max-height: 160px !important;
  background: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 14px 16px !important;
  font-size: 18px !important;
  line-height: 1.8 !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: #0f3a68 !important;
  box-shadow: 0 0 0 3px rgba(15, 58, 104, 0.15) !important;
}

.ahctt-barrier-info {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 12px !important;
  color: #64748b !important;
  padding: 0 4px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.ahctt-backspace-alert {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
}

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

.ahctt-btn-cancel-red {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 18px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.ahctt-btn-submit-blue {
  background: #0f3a68 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 24px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

/* =========================================================================
   11. RESULTS & REPORT INTERFACE (MODERN, ROUNDED & BULLETPROOF FOR WP)
   ========================================================================= */
.ahctt-result-card {
  max-width: 1100px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 28px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  box-sizing: border-box !important;
}

.ahctt-report-badge-wrap {
  text-align: center !important;
  margin-bottom: 8px !important;
}

.ahctt-report-badge {
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
  padding: 3px 14px !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !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: 14px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  margin-bottom: 24px !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  line-height: 1.4 !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: 15px !important;
  flex-shrink: 0 !important;
}

.ahctt-status-pass {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1.5px solid #86efac !important;
}

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

.ahctt-status-fail {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1.5px solid #fca5a5 !important;
}

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

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

.ahctt-res-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: transform 0.15s ease !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: 800 !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 6px !important;
}

.ahctt-res-val {
  font-size: 20px !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  display: block !important;
}

.ahctt-res-highlight-marks {
  background: #fefce8 !important;
  border: 1.5px solid #fef08a !important;
  border-radius: 14px !important;
}

.ahctt-res-highlight-marks .ahctt-res-val {
  font-size: 24px !important;
  color: #854d0e !important;
}

.ahctt-res-highlight-gross {
  background: #eff6ff !important;
  border: 1.5px solid #bfdbfe !important;
  border-radius: 14px !important;
}

.ahctt-res-highlight-gross .ahctt-res-val {
  font-size: 24px !important;
  color: #1d4ed8 !important;
}

.ahctt-res-highlight-net {
  background: #f0fdf4 !important;
  border: 1.5px solid #bbf7d0 !important;
  border-radius: 14px !important;
}

.ahctt-res-highlight-net .ahctt-res-val {
  font-size: 24px !important;
  color: #15803d !important;
}

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

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

.ahctt-review-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f2744 !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: -0.2px !important;
}

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

.ahctt-legend-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12px !important;
}

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

.ahctt-dot-green { background: #16a34a !important; }
.ahctt-dot-red { background: #dc2626 !important; }
.ahctt-dot-yellow { background: #ca8a04 !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: 6px !important;
}

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

.ahctt-rev-word-correct {
  color: #15803d !important;
  background: #dcfce7 !important;
  padding: 1px 4px !important;
  border-radius: 3px !important;
  font-weight: 500 !important;
}

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

.ahctt-rev-word-missing {
  color: #854d0e !important;
  background: #fef9c3 !important;
  padding: 1px 4px !important;
  border-radius: 3px !important;
}

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

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

/* =========================================================================
   TOP 10 LEADERBOARD CONTAINER (MATCHING IMAGE.PNG & OFFICIAL DESIGN)
   ========================================================================= */
.ahctt-result-leaderboard-container {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 24px !important;
  margin-top: 30px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !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 {
  background: #fefce8 !important;
  color: #854d0e !important;
  border: 1px solid #fef08a !important;
  padding: 4px 14px !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: fit-content !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.ahctt-result-lb-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f2744 !important;
  margin: 4px 0 6px 0 !important;
  letter-spacing: -0.2px !important;
  line-height: 1.3 !important;
}

.ahctt-lb-rank-callout {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%) !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.06) !important;
  line-height: 1.5 !important;
}

.ahctt-party-icon {
  font-size: 20px !important;
  flex-shrink: 0 !important;
}

.ahctt-highlight-rank {
  color: #047857 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !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;
  margin-bottom: 6px !important;
}

.ahctt-badge-pass-sm {
  background: #dcfce7 !important;
  color: #15803d !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  display: inline-block !important;
  border: 1px solid #bbf7d0 !important;
}

.ahctt-badge-fail-sm {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  display: inline-block !important;
  border: 1px solid #fecaca !important;
}

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

.ahctt-result-actions .ahctt-btn-primary {
  border-radius: 14px !important;
  padding: 13px 32px !important;
  font-size: 15px !important;
  box-shadow: 0 4px 12px rgba(15, 58, 104, 0.25) !important;
}

/* =========================================================================
   12. MOBILE RESPONSIVENESS (WordPress Page & Small Screen Adaptability)
   ========================================================================= */
@media (max-width: 768px) {
  .ahctt-wrapper {
    padding: 8px 6px !important;
  }

  .ahctt-setup-card {
    padding: 16px 12px !important;
  }

  .ahctt-btn-group {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .ahctt-btn-select {
    width: 100% !important;
    min-width: 100% !important;
    padding: 10px 14px !important;
    font-size: 14.5px !important;
  }

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

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

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

  .ahctt-timer-digits {
    font-size: 22px !important;
  }

  .ahctt-passage-box {
    height: 140px !important;
    min-height: 120px !important;
    padding: 10px 12px !important;
    font-size: 16px !important;
  }

  .ahctt-typing-area {
    height: 120px !important;
    min-height: 110px !important;
    padding: 10px 12px !important;
    font-size: 16px !important;
  }

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

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

  .ahctt-lb-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

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

  .ahctt-modal-actions .ahctt-btn {
    width: 100% !important;
  }
}

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

  .ahctt-title {
    font-size: 20px !important;
  }

  .ahctt-timer-digits {
    font-size: 19px !important;
  }
}
