.font-serif,
.text-question,
.nat-input,
.option-item {
  font-family: var(--serif-font);
  font-size: 20px !important;
}

.text-question .code {
  background: #f9f9f9;
  padding: 5px 15px;
  border-radius: 10px;
}

.feed-new-post,
.feed-post {
  font-family: var(--serif-font);
  font-size: 22px;
  letter-spacing: -1px;
  color: #025add;
}

.option-item .option-index,
.option-item .badge {
  font-family: var(--primary-font);
}

.option-item .option-body p {
  margin: 0;
}

.bg-wave-white {
  background-image: url(/assets/background/wave-white-bg.png);
  background-position: center;
  background-size: cover;
}

.bg-soft-illustration {
  background-image: url(/assets/background/bg-01.svg);
  background-position: center;
  background-repeat: initial;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-size: cover;
}

.bg-sidebar {
  background-image: url(/assets/background/bg-01.svg);
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
}

.sidebar,
.content-container {
  z-index: 9;
}

.content-container .content {
  padding-bottom: 90px;
}

.small,
small {
  font-size: 80%;
}

.top-5 {
  top: 5px;
}

.bg-silver {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.btn-back-subtle {
  background-color: #f8f9fa;
  border: 1px solid #d6d6d6;
  color: #333;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-back-subtle:hover {
  background-color: #e9ecef;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-back-subtle:focus {
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}

.gradient-green-btn {
  background: linear-gradient(135deg, #28a745, #6fdc8c);
  transition: background 0.3s ease;
}

.gradient-green-btn:hover {
  background: linear-gradient(135deg, #23913c, #5ecf7a);
}

.gate-branch-hero .card-header {
  border-bottom: none;
}

.bookmark-btn.bookmarked {
  background-color: #fff7e6;
  border-color: #ffc107;
}

.scrolling-tabs-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

#question-type-tabs button {
  white-space: nowrap;
}

#question-type-tabs::-webkit-scrollbar {
  display: none;
}

.option-item {
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, border 0.2s ease;
}

.option-item:hover {
  background-color: #f0f8ff;
  border-color: #0d6efd;
}

.option-item.clicked {
  background-color: #e9f5ff;
  border: 2px solid #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.option-index {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  background-color: #0d6efd;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px white;
}

.option-item img {
  max-height: none !important;
}

.question-card .card-footer {
  border-top: 1px solid #eee;
}

.nat-answer-field {
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nat-answer-field:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.select2-container--bootstrap4 .select2-selection {
  min-height: 45px;
  border-radius: 0.375rem;
}

.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
  background-color: #0d6efd;
  border: none;
  color: white;
  padding: 2px 8px;
  font-size: 13px;
}

.report-option {
  cursor: pointer;
  transition: background 0.2s;
}

.report-option:hover {
  background-color: #f5f9ff;
}

.option-item.active {
  border-width: 2px;
  box-shadow: 0 0 0 0.1rem rgba(13, 110, 253, 0.25);
  background-color: #f0f8ff;
}

.bg-light-success {
  background-color: #e9fbee !important;
}

.bg-light-danger {
  background-color: #fdecea !important;
}

.alert-info {
  background-color: #eaf4ff;
  border: 1px solid #b6e0ff;
  color: #084298;
}

.badge-question-count {
  background-color: rgba(255, 255, 255, 0.95);
  color: #0d6efd;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4em 1em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hover-soft-green:hover {
  background-color: rgba(25, 135, 84, 0.08);
  border-color: rgba(25, 135, 84, 0.3) !important;
}

.transition-all {
  transition: all 0.25s ease;
}

.bg-light-hover:hover {
  background-color: rgba(248, 249, 250, 0.8) !important;
}

.paper-card {
  background-color: #f8f9fa;
  /* Subtle background */
  transition: background-color 0.2s ease;
}

.paper-completed {
  background-color: #e2f9e3;
}

.paper-pending {
  background-color: #fffbdb;
}

.paper-card:hover {
  background-color: #ddfff8;
}

.paper-icon {
  color: var(--bs-dark);
  transition: opacity 0.2s;
  opacity: 0.9;
}

.paper-icon:hover {
  opacity: 1;
}

.gate-year-selector + .card-footer .btn {
  font-size: 1rem;
}

.login-fixed-alert {
  position: sticky;
  top: 5px;
  z-index: 1000;
  width: fit-content;
}

footer {
  background-image: url('/assets/illustrations/i2.png');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: 55%;
}

footer .profile-subtitle {
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--dark-color);
}

footer .profile-card {
  background-color: white;
  border-radius: 12px;
  margin-bottom: 20px;
}

footer .form-check {
  margin-bottom: 15px;
}

footer .form-check-label {
  font-weight: 500;
}

footer .badge-hot {
  background-color: #ff6b6b;
  color: white;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: 10px;
}

footer .badge-new {
  background-color: #4fd1c5;
  color: white;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: 10px;
}

footer .bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  display: none;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

footer .bottom-nav .nav-item {
  text-align: center;
}

footer .bottom-nav .nav-link {
  color: #718096;
  font-size: 12px;
}

footer .bottom-nav .nav-link.active {
  color: var(--primary-color);
}

footer .bottom-nav i {
  font-size: 20px;
  margin-bottom: 5px;
}

/* profile menu */
footer .profile-menu {
  position: fixed;
  bottom: -100%;
  left: 2%;
  right: 2%;
  background: rgba(255, 255, 255, 0.75);
  /* Transparent white */
  backdrop-filter: blur(15px);
  /* Frosted glass blur */
  -webkit-backdrop-filter: blur(15px);
  /* For Safari */
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  /* Deeper shadow */
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* Optional white border */
  transition: bottom 0.3s ease;
  z-index: 1100;
  height: 45vh;
  overflow-y: auto;
}

footer .profile-menu.active {
  bottom: 2%;
  overflow: hidden;
}

footer .profile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

footer .profile-menu-title {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  margin: 0;
  font-size: medium;
}

footer .close-profile {
  background: none;
  border: none;
  font-size: 24px;
  color: hsl(216, 15%, 51.6%);
}

footer .overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: none;
}

footer .overlay.active {
  display: block;
}

@media (max-width: 576px) {
  #stickyFilterBar a.btn {
    font-size: 0.79rem;
  }

  #stickyFilterBar button.btn {
    font-size: 0.65rem;
  }

  .content-container .content {
    padding-bottom: 0;
  }

  .width-110 {
    width: 110px;
    margin-bottom: 5px;
  }

  .mobile-w-100 {
    width: 100% !important;
  }

  .question-card-header-inner-1 {
    width: 85%;
    overflow: hidden;
    overflow-x: scroll;
  }

  .login-panel {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  footer {
    background-image: none;
  }

  footer .bottom-nav {
    display: flex;
  }

  .login-hero ::placeholder {
    font-size: 16px;
  }

  .login-fixed-alert {
    position: fixed;
    top: unset;
    bottom: 68px;
    border-radius: 20px 20px 0 0;
  }

  .display-6 {
    font-size: 1.7rem;
  }

  .mobile-display-6 {
    font-size: 1.7rem;
  }

  .lead {
    font-size: 1rem;
  }

  .gate-year-selector {
    height: 190px;
    overflow-y: scroll;
  }

  .gate-year-selector a span,
  .gate-year-selector a i {
    font-size: 12px;
  }

  .gate-year-selector + .card-footer,
  .gate-year-selector + .card-footer .btn {
    font-size: 15px !important;
  }

  .content {
    margin-bottom: 2rem;
  }

  .badge-question-count {
    font-size: 0.7rem;
  }

  .container-mobile-fix {
    margin-top: -85px;
  }
}

.prepare-banner-section {
  margin-top: -40px;
  background-color: #f8fbff;
}

.prepare-banner {
  background-color: #f0f8ff;
  border: 1px solid #e0ecf5;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.notification-row {
  background-color: #f9fbfe;
  border: 1px solid #e4eaf1;
  transition: all 0.2s ease-in-out;
}

.notification-row:hover {
  background-color: #f1f6fc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.paper-row {
  transition: background-color 0.2s ease;
}

.paper-row:hover {
  background-color: #f8f9fc;
}

/* FAB: Floating Action Button */
.bot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4b6cb7, #182848);
  color: white;
  border: none;
}

/* Sidebar Slide Panel */
.bot-sidebar {
  width: 320px;
  height: 100vh;
  z-index: 1049;
  transition: transform 0.3s ease;
  border-left: 4px solid #4b6cb7;
  transform: translateX(100%);
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.bot-sidebar.show {
  transform: translateX(0);
}

@media (max-width: 576px) {
  .bot-sidebar {
    width: 100%;
  }
}

body.zen-mode {
  background-color: #fefefe !important;
}

.zen-hidden {
  display: none !important;
}

#zenOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 9999;
  padding: 2rem 1rem;
  overflow-y: auto;
  display: none;
  background-color: #fefefe;
  background-image: url(/assets/background/bg-01.svg);
  background-position: top;
}

#zenOverlay.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

#zenOverlay .question-card {
  max-width: 860px;
  margin: 0 auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

body.zen-mode-dark {
  background-color: #121212;
  color: #f0f0f0;
}

#zenOverlay.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

#zenOverlay.dark-mode .question-card {
  background-color: #1e1e1e;
  border-color: #333;
  color: #e2e2e2;
}

#zenOverlay.dark-mode .btn,
#zenOverlay.dark-mode .option-item {
  background-color: #2a2a2a;
  border-color: #444;
  color: #f0f0f0;
}

#zenOverlay.dark-mode .option-item[data-selected='true'] {
  background-color: #3a3a3a;
  border-color: #5e5e5e;
}

#zenExitBtn {
  position: fixed;
  top: 1rem;
  right: 2rem;
  z-index: 10000;
}

/* Sticky position */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Smooth hide/show */
#smartBanner,
#stickyFilterBar {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Slide up = hide smoothly */
.slide-up {
  transform: translateY(-100%);
  /* opacity: 0;
  pointer-events: none; */
}

#smartBanner {
  position: fixed;
  bottom: 20px;
  left: 55%;
  transform: translateX(-50%);
  z-index: 1055;
}

.login-fixed-alert {
  border: 1px solid #ffe58f;
  background-color: #fff9e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Pagination Wrapper Styling */
.pagination-wrapper {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e9ecef;
  border-radius: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

/* Pagination Buttons */
.pagination .page-link {
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0 3px;
  text-align: center;
  line-height: 38px;
  border-radius: 50% !important;
  font-weight: 500;
  color: #0d6efd;
  transition: all 0.2s ease;
}

/* Active Page */
.pagination .page-item.active .page-link {
  background-color: #0d6efd;
  color: #fff;
  font-weight: 600;
  border: none;
}

/* Hover Effect */
.pagination .page-link:hover {
  background-color: #eaf1ff;
  color: #0a58ca;
}

/* Previous & Next Pills */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  border-radius: 2rem !important;
  padding: 0 14px;
  width: auto;
  height: 38px;
  line-height: 38px;
}

.btn-glass {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 123, 255, 0.2);
  /* primary tint */
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.btn-glass:hover {
  background: rgba(0, 123, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

/* Optional glowing border on hover */
.btn-glass:hover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.5);
  opacity: 0.6;
  pointer-events: none;
}

/* Fix for <a> tags: position needed for pseudo-elements */
.btn-glass {
  position: relative;
  overflow: hidden;
}

.footer-made-with-love {
  display: block;
  font-size: 11px;
  opacity: 0.7;
}

.offcanvas-header {
  text-transform: uppercase;
  letter-spacing: -1px;
}

.font-display-1 {
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 34px;
  letter-spacing: -2px;
  color: rgb(5 115 211);
}

.glassy-kpi {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(254, 250, 224, 0.75), rgba(224, 247, 250, 0.8)) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease-in-out;
  padding: 15px;
  border-radius: 15px;
  margin-top: -15px;
  margin-right: 0px;
}

.fade-in-kpi {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.success-pop-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid #dcfce7;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff8e1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffe08a;
  margin-top: -55px;
}

.animate-title {
  animation: bounceIn 0.7s ease-in-out;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  60% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.glassy-loader-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.testimonial-card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.swiper {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1100px) {
  .content {
    width: calc(100vw - 300px);
  }

  .content-container {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
}

/* Unified subtle button group */
.button-group-subtle {
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  overflow: hidden;
}

.button-group-subtle .btn {
  border: none;
  border-radius: 0;
  padding: 1rem 0.75rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.button-group-subtle .btn:first-child {
  border-right: 1px solid #e2e8f0;
}

.button-group-subtle .btn:nth-child(2) {
  border-right: 1px solid #e2e8f0;
}

/* Base subtle colors */
.btn-subtle-success {
  background: #f0fdf4;
  color: #166534;
}

.btn-subtle-info {
  background: #ecfeff;
  color: #0e7490;
}

.btn-subtle-primary {
  background: #fff;
  color: #243189;
}

/* Gradient hover effects */
.btn-subtle-success:hover {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.btn-subtle-info:hover {
  background: linear-gradient(135deg, #cffafe, #a5f3fc);
  color: #075985;
}

.btn-subtle-primary:hover {
  background: linear-gradient(135deg, #eef2ff, #dbeafe);
  color: #1e3a8a;
}

/* Profile / Exam Switcher — SaaS look for sidebar */
.sv-exam-switcher {
  background: #2e24df;
  /* background: linear-gradient(180deg, #fff6d9, #ffeaa7); */
  background-image: url(/assets/background/soft-grad.png);
  border-radius: 16px;
  background-size: cover;
  box-shadow: 0 1rem 2rem rgb(237 204 204 / 11%) !important;
}

@media (prefers-color-scheme: dark) {
  .sv-exam-switcher {
    background: #2e24df;
    /* background: linear-gradient(180deg, #2a2a21, #333122); */
    background-image: url(/assets/background/soft-grad.png);
    background-size: cover;
    box-shadow: 0 1rem 2rem rgb(237 204 204 / 11%) !important;
  }
}

.sv-exam-body {
  gap: 0.5rem;
}

.sv-exam-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 193, 7, 0.2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.sv-exam-icon .bi {
  font-size: 1.25rem;
}

.sv-kicker {
  letter-spacing: 0.05em;
  opacity: 0.8;
  font-size: 11px;
}

.sv-branch {
  line-height: 1.2;
}

/* Buttons styled to feel native but distinct */
.sv-btn-primary {
  background: #111827;
  color: #fff;
  border: 1px solid rgba(17, 24, 39, 0.2);
}

.sv-btn-primary:hover {
  background: #0b1220;
  color: #fff;
  border-color: rgba(17, 24, 39, 0.35);
}

.sv-btn-ghost {
  background: transparent;
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.15);
}

.sv-btn-ghost:hover {
  background: rgba(17, 24, 39, 0.04);
  color: #0b1220;
  border-color: rgba(17, 24, 39, 0.3);
}

@media (prefers-color-scheme: dark) {
  .sv-btn-ghost {
    color: #e5e7eb;
    border-color: rgba(229, 231, 235, 0.18);
  }

  .sv-btn-ghost:hover {
    background: rgba(229, 231, 235, 0.08);
    color: #fff;
    border-color: rgba(229, 231, 235, 0.35);
  }
}

/* Footer quick chips */
.sv-exam-footer {
  margin-top: -4px;
}

.sv-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: #111827;
  background: rgba(17, 24, 39, 0.05);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.sv-chip:hover {
  background: rgba(17, 24, 39, 0.08);
  color: #0b1220;
  border-color: rgba(17, 24, 39, 0.18);
}

@media (prefers-color-scheme: dark) {
  .sv-chip {
    color: #e5e7eb;
    background: rgba(229, 231, 235, 0.08);
    border-color: rgba(229, 231, 235, 0.12);
  }

  .sv-chip:hover {
    background: rgba(229, 231, 235, 0.14);
    color: #fff;
    border-color: rgba(229, 231, 235, 0.24);
  }
}

.sv-exam-switcher .btn {
  font-size: 10px;
}

.footer-app-version {
  display: inline-block;
  font-size: 0.5rem;
  color: #999;
  text-transform: uppercase;
  margin-top: 10px;
  letter-spacing: 1px;
}

.icon-day {
  width: 48px;
  height: 48px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nat-keypad .btn {
  font-size: 1rem;
  padding: 0.5rem 0;
  border-radius: 0.35rem;
}

.nat-keypad .btn:active {
  background-color: #e2e6ea;
}

.bg-info-subtle .progress {
  background-color: #def5f9;
}

.bg-warning-subtle .progress {
  background-color: #edeaa2;
}

.bg-danger-subtle .progress {
  background-color: #fdafaf;
}

.missed-goal {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #dc3545;
  color: #dc3545;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.errata-block {
  margin-bottom: -10px !important;
  padding: 12px 16px;
  border-radius: 16px 16px 0 0; /* rounded top like a banner */
  border: 1px solid rgba(255, 193, 7, 0.4);
  background-color: rgba(255, 243, 205, 0.9); /* soft warning bg */
}

/* Truncate long errata text to 3 lines by default */
.errata-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* When expanded, show full text */
.errata-text.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
