/* ===================================================
   Police Exam Preparation – MCQs
   Stylesheet with inline year expansion & tactile buttons
   =================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #FFFCF0;
  color: #261312;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem 3rem;
}

/* ---------- Screen Management ---------- */
.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
  animation: fadeIn 0.25s ease;
}

.screen.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .screen.active,
  .btn,
  .years-panel {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Header ---------- */
.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: #261312;
}

.subtitle {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 400;
  color: #6b6560;
}

/* ---------- Category List ---------- */
.category-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- Category Block ---------- */
.category-block {
  width: 100%;
}

/* ---------- Tactile Button (Core) ---------- */
.btn {
  appearance: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 0.85rem 1rem;
  border-radius: 13px;
  background-color: #7ACDFF;
  color: #261312;
  box-shadow:
    0 5px 0 0 #5FA6D0,
    0 6px 6px -2px rgba(0, 0, 0, 0.08);
  transform: translateY(0);
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    background-color 0.15s ease;
  outline: none;
  border: 2px solid transparent;
}

/* ---------- Hover ---------- */
.btn:hover {
  background-color: #8ed5ff;
  box-shadow:
    0 5px 0 0 #5FA6D0,
    0 7px 10px -2px rgba(0, 0, 0, 0.10);
}

/* ---------- Active / Pressed ---------- */
.btn:active,
.btn.pressing {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 0 #5FA6D0,
    0 2px 3px -1px rgba(0, 0, 0, 0.06);
}

/* ---------- Focus (Keyboard) ---------- */
.btn:focus-visible {
  border-color: #261312;
  outline: 3px solid #7ACDFF;
  outline-offset: 2px;
}

/* ---------- Selected / Open State ---------- */
.btn.selected {
  background-color: #5bb8f0;
  box-shadow:
    0 2px 0 0 #4890b8,
    0 3px 4px -1px rgba(0, 0, 0, 0.08);
  transform: translateY(2px);
}

/* ---------- Button Labels ---------- */
.btn__label {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.btn__sublabel {
  font-size: 0.8rem;
  font-weight: 400;
  color: #1a3a52;
  margin-top: 0.15rem;
}

/* ---------- Primary Buttons (ASI / Constable) ---------- */
.btn--primary {
  min-height: 80px;
  padding: 1rem 1.25rem;
}

.btn--primary .btn__label {
  font-size: 1.4rem;
}

.btn--primary .btn__sublabel {
  font-size: 0.85rem;
}

/* ---------- Collapsible Years Panel ---------- */
.years-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 0.25rem;
  margin-top: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    margin-top 0.3s ease,
    padding 0.3s ease;
}

.years-panel.open {
  max-height: 500px; /* generous upper bound */
  opacity: 1;
  margin-top: 0.75rem;
  padding: 0.25rem;
}

/* ---------- CSS Sub-panel (Subject / MPT — 2 columns) ---------- */
#css-sub-panel {
  grid-template-columns: repeat(2, 1fr);
}

/* ---------- CSS MPT Years panel ---------- */
#css-mpt-years.open {
  margin-top: 0.5rem;
}

/* ---------- Year Buttons ---------- */
.years-panel .btn {
  min-height: 56px;
  padding: 0.65rem 0.5rem;
}

.years-panel .btn .btn__label {
  font-size: 1.05rem;
}

/* ---------- Back Button ---------- */
.nav-actions {
  margin-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn--back {
  background-color: #F8F4E6;
  color: #261312;
  min-height: 48px;
  padding: 0.6rem 1.6rem;
  max-width: 200px;
  box-shadow:
    0 4px 0 0 #D0CCC0,
    0 5px 5px -2px rgba(0, 0, 0, 0.06);
  border: 1.5px solid #D0CCC0;
}

.btn--back:hover {
  background-color: #f1edd9;
  box-shadow:
    0 4px 0 0 #D0CCC0,
    0 6px 8px -2px rgba(0, 0, 0, 0.08);
}

.btn--back:active,
.btn--back.pressing {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 0 #D0CCC0,
    0 2px 3px -1px rgba(0, 0, 0, 0.05);
}

.btn--back .btn__label {
  font-size: 1rem;
}

/* ---------- Placeholder Card (MCQ Section) ---------- */
.placeholder-card {
  width: 100%;
  background-color: #F8F4E6;
  border: 1.5px solid #D0CCC0;
  border-radius: 13px;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.placeholder-card__text {
  font-size: 1.05rem;
  color: #6b6560;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.25rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background-color: #D0CCC0;
}

.divider__text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #9a9590;
}

/* ---------- Upcoming Section ---------- */
.upcoming-section {
  width: 100%;
}

/* ---------- Upcoming Toggle Button ---------- */
.btn--upcoming-toggle {
  position: relative;
  background-color: #F8F4E6;
  color: #261312;
  min-height: 72px;
  box-shadow:
    0 5px 0 0 #D0CCC0,
    0 6px 6px -2px rgba(0, 0, 0, 0.06);
  border: 1.5px solid #D0CCC0;
}

.btn--upcoming-toggle:hover {
  background-color: #f1edd9;
  box-shadow:
    0 5px 0 0 #D0CCC0,
    0 7px 10px -2px rgba(0, 0, 0, 0.08);
}

.btn--upcoming-toggle:active,
.btn--upcoming-toggle.pressing {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 0 #D0CCC0,
    0 2px 3px -1px rgba(0, 0, 0, 0.05);
}

.btn--upcoming-toggle.selected {
  background-color: #ece8d8;
  box-shadow:
    0 2px 0 0 #c0bbb0,
    0 3px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(2px);
}

.btn--upcoming-toggle .btn__sublabel {
  color: #9a9590;
}

.btn__chevron {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #9a9590;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.btn--upcoming-toggle.selected .btn__chevron {
  transform: translateY(-50%) rotate(180deg);
}

/* ---------- Upcoming Panel (collapsible) ---------- */
.upcoming-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    margin-top 0.3s ease;
}

.upcoming-panel.open {
  max-height: 800px;
  opacity: 1;
  margin-top: 0.75rem;
}

/* ---------- Upcoming Buttons ---------- */
.btn--upcoming {
  background-color: #F8F4E6;
  color: #261312;
  min-height: 56px;
  box-shadow:
    0 4px 0 0 #D0CCC0,
    0 5px 5px -2px rgba(0, 0, 0, 0.05);
  border: 1.5px solid #D0CCC0;
}

.btn--upcoming:hover {
  background-color: #f1edd9;
  box-shadow:
    0 4px 0 0 #D0CCC0,
    0 6px 8px -2px rgba(0, 0, 0, 0.07);
}

.btn--upcoming:active,
.btn--upcoming.pressing {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 0 #D0CCC0,
    0 2px 2px -1px rgba(0, 0, 0, 0.04);
}

.btn--upcoming .btn__sublabel {
  color: #9a9590;
}

/* ---------- Coming Soon Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(38, 19, 18, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #FFFCF0;
  border: 1.5px solid #D0CCC0;
  border-radius: 18px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  max-width: 360px;
  width: 100%;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.modal-overlay.visible .modal-card {
  transform: scale(1) translateY(0);
}

.modal-card__icon {
  font-size: 2.8rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.modal-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #261312;
  margin-bottom: 0.35rem;
}

.modal-card__text {
  font-size: 1rem;
  color: #6b6560;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.btn--modal-close {
  margin: 0 auto;
  max-width: 160px;
}

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  body {
    padding: 1.5rem 0.75rem 2.5rem;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }

  .btn--primary {
    min-height: 72px;
  }

  .btn--primary .btn__label {
    font-size: 1.25rem;
  }

  .years-panel {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ===================================================
   Progress Tracking & Progress-Fill Styles
   =================================================== */

:root {
  --bg-main: #FFFCF0;
  --surface-card: #F8F4E6;
  --text-main: #261312;
  --text-muted: #6B5A55;
  --border-default: #D0CCC0;
  --blue-action: #7ACDFF;
  --blue-shadow: #5FA6D0;
  --green-success: #87973A;
  --green-shadow: #657426;
  --green-fill: rgba(135, 151, 58, 0.30);
  --coral-error: #FF6F5E;
}

/* Ensure button handles absolute fill layer cleanly */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* Progress-fill layer behind content */
.btn__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--progress, 0%);
  background-color: var(--green-fill);
  pointer-events: none;
  z-index: 0;
  transform-origin: left;
  transition: width 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Urdu / RTL support: fill grows from right edge */
[dir="rtl"] .btn__fill,
.urdu-mode .btn__fill {
  left: auto;
  right: 0;
  transform-origin: right;
}

@media (prefers-reduced-motion: reduce) {
  .btn__fill {
    transition: none !important;
  }
}

/* Content wrapper keeps labels on top of fill */
.btn__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Year button enhancements */
.btn--year {
  min-height: 64px;
  padding: 0.6rem 0.5rem;
}

.btn--year .btn__year-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  line-height: 1.2;
}

.btn--year .btn__check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #261312;
  font-weight: 900;
}

.btn--year .btn__progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a3a52;
  margin-top: 0.2rem;
  line-height: 1.2;
}

/* Completed Year Button */
.btn--year.is-completed {
  border-color: var(--green-success);
  box-shadow:
    0 5px 0 0 var(--green-shadow),
    0 6px 6px -2px rgba(0, 0, 0, 0.08);
}

.btn--year.is-completed:hover {
  background-color: #8ed5ff;
  box-shadow:
    0 5px 0 0 var(--green-shadow),
    0 7px 10px -2px rgba(0, 0, 0, 0.10);
}

.btn--year.is-completed:active,
.btn--year.is-completed.pressing {
  box-shadow:
    0 1px 0 0 var(--green-shadow),
    0 2px 3px -1px rgba(0, 0, 0, 0.06);
}

.btn--year.is-completed .btn__progress-label {
  color: #261312;
  font-weight: 700;
}

/* Retry Button on completed cards */
.btn__retry {
  position: absolute;
  top: 4px;
  right: 5px;
  z-index: 3;
  appearance: none;
  background: #FFFCF0;
  border: 1.5px solid var(--border-default);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  color: #261312;
  cursor: pointer;
  line-height: 1;
  pointer-events: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

[dir="rtl"] .btn__retry,
.urdu-mode .btn__retry {
  right: auto;
  left: 5px;
}

.btn__retry:hover {
  background: #F8F4E6;
  border-color: #8c857f;
  transform: scale(1.06);
}

.btn__retry:active {
  transform: scale(0.92);
}

/* Exam Card (ASI / Constable / CSS) Progress summary */
.btn--primary .btn__sublabel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.btn--primary .btn__exam-progress {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a3a52;
  margin-top: 0.2rem;
}

/* ---------- Continue Where You Left Off Card ---------- */
.continue-section {
  width: 100%;
  margin-bottom: 1.5rem;
}

.continue-card {
  background-color: #F8F4E6;
  border: 2px solid #D0CCC0;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  box-shadow:
    0 5px 0 0 #D0CCC0,
    0 6px 12px -2px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.continue-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.continue-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green-shadow);
  background-color: #EEF3D6;
  border: 1px solid var(--green-success);
  border-radius: 6px;
  padding: 3px 8px;
}

.continue-card__time {
  font-size: 0.75rem;
  color: #8c857f;
  font-weight: 500;
}

.continue-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.continue-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #261312;
  line-height: 1.25;
}

.continue-card__subtitle {
  font-size: 0.88rem;
  color: #6b6560;
  margin-top: 0.2rem;
}

.btn--continue-resume {
  min-height: 54px;
  padding: 0.75rem 1rem;
  background-color: #7ACDFF;
  border: 2px solid transparent;
  box-shadow:
    0 4px 0 0 #5FA6D0,
    0 5px 6px -1px rgba(0, 0, 0, 0.08);
}

.btn--continue-resume .btn__label {
  font-size: 1.05rem;
}

/* ---------- Page Footer ---------- */
.page-footer {
  width: 100%;
  margin-top: 2rem;
  text-align: center;
  padding: 0.75rem 0 0.5rem;
}

.footer-note {
  font-size: 0.8rem;
  color: #8c857f;
  line-height: 1.45;
  max-width: 440px;
  margin: 0 auto;
}

/* ---------- Resume Toast Notification ---------- */
.atp-resume-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -24px);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  background-color: #FFFCF0;
  border: 2px solid var(--green-success);
  border-radius: 12px;
  box-shadow:
    0 5px 0 0 var(--green-shadow),
    0 8px 16px rgba(0, 0, 0, 0.12);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #261312;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
}

.atp-resume-toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.atp-resume-toast__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.atp-resume-toast__text {
  line-height: 1.2;
}


/* ---------- Bookmark Button ---------- */
.atp-bookmark-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #F8F4E6;
  border: 1.5px solid #D0CCC0;
  border-radius: 9px;
  padding: 0.35rem 0.65rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #261312;
  cursor: pointer;
  box-shadow: 0 2px 0 0 #D0CCC0;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  z-index: 10;
}

.atp-bookmark-btn:hover {
  background: #f0ebd5;
  border-color: #FFAE35;
  transform: translateY(-1px);
}

.atp-bookmark-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 0 #D0CCC0;
}

.atp-bookmark-btn.is-bookmarked {
  background: #FFF3CD;
  border-color: #FFAE35;
  color: #856404;
  box-shadow: 0 2px 0 0 #D39E00;
}

/* ---------- Review Mode Overlay & Modal ---------- */
.atp-review-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(38, 19, 18, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.atp-review-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.atp-review-card {
  background: #FFFCF0;
  border: 2px solid #D0CCC0;
  border-radius: 18px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.atp-review-modal.open .atp-review-card {
  transform: scale(1);
}

.atp-review-header {
  background: #F8F4E6;
  border-bottom: 2px solid #D0CCC0;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.atp-review-badge {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #CF4E40;
  background: #FFE7E3;
  border: 1px solid #FF6F5E;
  border-radius: 6px;
  padding: 3px 8px;
}

.atp-review-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.atp-review-close-btn {
  background: #FFFCF0;
  border: 1.5px solid #D0CCC0;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #261312;
  cursor: pointer;
}

.atp-review-close-btn:hover {
  background: #eae5d0;
}

.atp-review-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.atp-review-progress-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #6b6560;
}

.atp-review-question-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #261312;
  line-height: 1.4;
}

.atp-review-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.atp-review-option-card {
  background: #F8F4E6;
  border: 2px solid #D0CCC0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
}

.atp-review-option-card.is-correct {
  background: #EEF3D6;
  border-color: #87973A;
  color: #261312;
  box-shadow: 0 2px 0 0 #657426;
}

.atp-review-option-card.is-wrong {
  background: #FFE7E3;
  border-color: #FF6F5E;
  color: #261312;
  box-shadow: 0 2px 0 0 #CF4E40;
}

.atp-review-opt-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.atp-review-opt-badge.tag-correct {
  background: #87973A;
  color: #fff;
}

.atp-review-opt-badge.tag-wrong {
  background: #FF6F5E;
  color: #fff;
}

.atp-review-expl-box {
  background: #F8F4E6;
  border: 1.5px solid #D0CCC0;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.atp-review-expl-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #657426;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.atp-review-expl-text {
  font-size: 0.92rem;
  color: #261312;
  line-height: 1.5;
}

.atp-review-footer {
  background: #F8F4E6;
  border-top: 2px solid #D0CCC0;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.atp-review-nav-btn {
  background: #7ACDFF;
  color: #261312;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 0 #5FA6D0;
}

.atp-review-nav-btn:hover {
  background: #8ed5ff;
}

.atp-review-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.atp-review-chips {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.2rem 0;
  max-width: 320px;
}

.atp-chip-btn {
  background: #FFFCF0;
  border: 1.5px solid #D0CCC0;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.atp-chip-btn.active {
  background: #CF4E40;
  color: #fff;
  border-color: #CF4E40;
}

.atp-btn-review-cta {
  background-color: #FF6F5E !important;
  box-shadow: 0 5px 0 0 #CF4E40, 0 6px 6px -2px rgba(0, 0, 0, 0.08) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  padding: 0.75rem 1.25rem !important;
  min-height: 48px !important;
  cursor: pointer !important;
}

.atp-btn-review-cta:hover {
  background-color: #ff8577 !important;
}

.atp-btn-bookmarks-cta {
  background-color: #FFAE35 !important;
  box-shadow: 0 5px 0 0 #D39E00, 0 6px 6px -2px rgba(0, 0, 0, 0.08) !important;
  color: #261312 !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  padding: 0.75rem 1.25rem !important;
  min-height: 48px !important;
  cursor: pointer !important;
}

/* ===================================================
   Compact Feedback in Footer
   =================================================== */
.feedback-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.5rem;
}

.feedback-compact__prompt {
  font-size: 0.84rem;
  font-weight: 600;
  color: #6b6560;
  letter-spacing: 0.01em;
}

.feedback-compact__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.feedback-pill {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.42rem !important;
  width: auto !important;
  min-height: 36px !important;
  padding: 0.38rem 0.85rem !important;
  background-color: #FFFFFF !important;
  color: #261312 !important;
  text-decoration: none !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  border: 1.5px solid #D0CCC0 !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 0 0 #D0CCC0, 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.15s ease, background-color 0.15s ease !important;
  cursor: pointer !important;
  line-height: 1 !important;
}

.feedback-pill:hover {
  background-color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 0 0 #B8B3A6, 0 3px 6px rgba(0, 0, 0, 0.06) !important;
}

.feedback-pill:active {
  transform: translateY(1.5px) !important;
  box-shadow: 0 0.5px 0 0 #D0CCC0 !important;
}

.feedback-pill--gmail:hover {
  border-color: #EA4335 !important;
  color: #C5221F !important;
}

.feedback-pill--whatsapp:hover {
  border-color: #25D366 !important;
  color: #128C7E !important;
}

.feedback-pill__icon {
  display: block;
  flex-shrink: 0;
}


