/* ═══════════════════════════════════════════════════
   NepalTYPE Reviews — premium editorial redesign
   Calm, trustworthy, readable. No glow / no harsh zoom.
   Keeps all JS hooks: .nt-slide.on, .nt-track2, .nt-vp,
   .nt-review-card(.featured/.expanded/.skeleton), etc.
   ═══════════════════════════════════════════════════ */

.nt-reviews-section {
  max-width: 1220px;
  margin: 64px auto 0;
  padding: 0 24px 20px;
  scroll-margin-top: 90px;
}

/* ── Head ── */
.nt-reviews-head { text-align: center; margin-bottom: 10px; }

.nt-reviews-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.nt-reviews-kicker::before,
.nt-reviews-kicker::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--border);
  display: inline-block;
}

.nt-reviews-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-primary);
  margin: 0 0 10px;
  line-height: 1.15;
}

.nt-reviews-head p {
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: .99rem;
}

/* ── Aggregate + actions ── */
.nt-reviews-agg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}

.nt-agg-link { text-decoration: none; color: inherit; display: inline-block; border-radius: 16px; }

.nt-agg-score {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 20px 12px 22px;
  box-shadow: 0 1px 2px rgba(16,24,40,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.nt-agg-link:hover .nt-agg-score {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(16,24,40,.18);
}

.nt-agg-number {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.nt-agg-meta { text-align: left; }
.nt-agg-count {
  font-size: .83rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 3px;
}

.nt-stars { display: inline-flex; gap: 3px; line-height: 1; }
.nt-stars .nt-star { font-size: 1.05rem; color: #f59e0b; }
.nt-stars .nt-star.off { color: #e2e8f0; }
[data-theme='dark'] .nt-stars .nt-star.off { color: #334155; }
.nt-stars.lg .nt-star { font-size: 1.35rem; }

/* Buttons — editorial: quiet radius, solid weight */
.nt-btn-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: .92rem;
  color: #fff;
  background: #059669;
  box-shadow: 0 8px 20px -8px rgba(5,150,105,.55);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.nt-btn-review:hover { transform: translateY(-1px); background: #047857; box-shadow: 0 12px 24px -8px rgba(5,150,105,.6); }
.nt-btn-review:active { transform: translateY(0); }
.nt-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.nt-btn-ghost:hover { border-color: var(--text-secondary); transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   Cards — premium editorial
   ═══════════════════════════════════════════ */
.nt-review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, border-color .25s ease, opacity .4s ease;
  position: relative;
  overflow: hidden;
}
/* Large serif quote — quiet watermark, top-left */
.nt-review-card::before {
  content: '\201C';
  position: absolute;
  top: 2px;
  left: 20px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 64px;
  line-height: 1;
  color: var(--text-primary);
  opacity: .08;
  pointer-events: none;
}
[data-theme='dark'] .nt-review-card::before { opacity: .12; }

.nt-review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100,116,139,.35);
  box-shadow: 0 16px 40px -16px rgba(16,24,40,.18), 0 2px 6px rgba(16,24,40,.05);
}

.nt-review-card.featured {
  border-color: rgba(5,150,105,.4);
  background:
    linear-gradient(180deg, rgba(5,150,105,.05), transparent 42%),
    var(--surface);
}
.nt-review-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  background: #0f172a;
  color: #fff;
}
[data-theme='dark'] .nt-review-badge { background: #e2e8f0; color: #0f172a; }
/* Keep the name row clear of the absolute badge on featured cards */
.nt-review-card.featured .nt-review-who { padding-right: 92px; }

.nt-review-who { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.nt-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #f1f5f9;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(148,163,184,.14);
}
.nt-who-name { font-weight: 700; color: var(--text-primary); font-size: .95rem; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; letter-spacing: -.01em; }
.nt-verified {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .7rem; font-weight: 700;
  color: #047857;
  background: rgba(5,150,105,.1);
  padding: 3px 9px; border-radius: 100px;
  border: none;
  cursor: help;
  font-family: inherit;
  position: relative;
}
.nt-verified:hover::after,
.nt-verified:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 210px;
  white-space: normal;
  background: #0f172a;
  color: #fff;
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
  z-index: 40;
  pointer-events: none;
}
.nt-who-sub { font-size: .78rem; color: var(--text-secondary); margin-top: 1px; }

.nt-review-msg {
  color: var(--text-primary);
  opacity: .9;
  line-height: 1.75;
  font-size: .94rem;
  flex: 1;
  letter-spacing: -.005em;
}
.nt-review-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 4px;
}
.nt-review-date { font-size: .76rem; color: var(--text-secondary); }

/* Tags — quiet, not pills screaming for attention */
.nt-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 2px;
}
.nt-tag {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-color);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: .01em;
}

/* Footer inside card */
.nt-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  margin-top: 2px;
  border-top: 1px solid var(--border);
}
.nt-helpful {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: .83rem;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 8px;
  transition: color .15s ease, transform .15s ease;
}
.nt-helpful:hover:not(:disabled) { color: var(--text-primary); transform: translateY(-1px); }
.nt-helpful.voted { color: #e11d48; cursor: default; }
.nt-helpful.voted svg { animation: ntHeartPop .35s ease; transform-origin: center; }
@keyframes ntHeartPop {
  0% { transform: scale(.4); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.nt-helpful b { font-weight: 700; font-variant-numeric: tabular-nums; }
.nt-more-wrap { position: relative; }
.nt-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 6px 8px;
  border-radius: 8px;
  line-height: 1;
}
.nt-more-btn:hover { background: var(--bg-color); color: var(--text-primary); }
.nt-more-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 172px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .14);
  padding: 6px;
  display: none;
  z-index: 30;
}
.nt-more-menu.open { display: block; }
.nt-more-menu button {
  display: flex;
  width: 100%;
  gap: 8px;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
}
.nt-more-menu button:hover { background: var(--bg-color); }

/* ═══════════════════════════════════════════
   Showcase — smooth editorial spotlight
   Auto-rotates, manual arrows / dots / drag.
   No harsh shrink: side cards gently recede.
   ═══════════════════════════════════════════ */
.nt-review-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
  min-height: 220px;
}

#nt-home-reviews.nt-carousel {
  display: block;
  margin: 6px -24px 0;
  padding: 10px 24px 6px;
  position: relative;
}
/* Soft edge fade so peeked cards feel intentional */
#nt-home-reviews.nt-carousel::before,
#nt-home-reviews.nt-carousel::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 56px;
  z-index: 5;
  pointer-events: none;
}
#nt-home-reviews.nt-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-color), transparent);
}
#nt-home-reviews.nt-carousel::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-color), transparent);
}

.nt-vp { overflow: hidden; touch-action: pan-y; padding: 14px 4px 20px; margin: 0 -4px; }
.nt-vp.dragging { cursor: grabbing; }
.nt-vp.dragging .nt-track2 { transition: none; }
.nt-track2 {
  display: flex;
  gap: 22px;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.nt-slide {
  flex: 0 0 min(380px, 84%);
  display: flex;
  min-width: 0;
}
.nt-slide .nt-review-card {
  width: 100%;
  min-height: 320px;
  /* receded: slightly smaller, dimmed, desaturated — but still readable */
  transform: scale(.955) translateY(8px);
  opacity: .58;
  filter: saturate(.82);
  transition:
    transform .7s cubic-bezier(.22,1,.36,1),
    opacity .5s ease,
    filter .5s ease,
    box-shadow .4s ease,
    border-color .3s ease;
}
.nt-slide:not(.on) .nt-review-card { cursor: pointer; }
.nt-slide:not(.on) .nt-review-card:hover {
  transform: scale(.965) translateY(3px);
  opacity: .85;
  filter: saturate(.95);
}
.nt-slide.on .nt-review-card {
  transform: none;
  opacity: 1;
  filter: none;
  border-color: rgba(5,150,105,.32);
  box-shadow:
    0 24px 48px -20px rgba(2,44,34,.22),
    0 2px 8px rgba(16,24,40,.06);
}
[data-theme='dark'] .nt-slide.on .nt-review-card {
  border-color: rgba(52,211,153,.4);
  box-shadow:
    0 24px 48px -20px rgba(0,0,0,.6),
    0 2px 8px rgba(0,0,0,.3);
}
.nt-slide.on .nt-review-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 32px 60px -20px rgba(2,44,34,.26),
    0 2px 8px rgba(16,24,40,.06);
}

/* Clamp long text so every spotlight card stays equal height */
.nt-slide .nt-review-msg {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nt-slide .nt-review-card.expanded .nt-review-msg {
  display: block;
  -webkit-line-clamp: unset;
}
.nt-readmore {
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  padding: 0;
  margin-top: -6px;
  font-size: .82rem;
  font-weight: 700;
  color: #059669;
}
.nt-readmore:hover { text-decoration: underline; }

/* Showcase nav — minimal editorial */
.nt-showcase-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}
.nt-showcase-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 2px 8px rgba(16,24,40,.06);
}
.nt-showcase-arrow:hover {
  transform: translateY(-2px);
  border-color: rgba(5,150,105,.5);
  box-shadow: 0 10px 24px -10px rgba(5,150,105,.4);
}
.nt-showcase-arrow:active { transform: translateY(0); }
.nt-showcase-dots { display: inline-flex; gap: 7px; align-items: center; }
.nt-showcase-dots button {
  width: 7px; height: 7px;
  border-radius: 100px;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: width .3s cubic-bezier(.22,1,.36,1), background .25s ease;
}
[data-theme='dark'] .nt-showcase-dots button { background: #334155; }
.nt-showcase-dots button.on {
  width: 26px;
  background: var(--text-primary);
}
.nt-showcase-dots button:hover:not(.on) { background: var(--text-secondary); }

/* Full page grid */
.nt-reviews-page-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; margin-top: 26px; }
.nt-reviews-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  background: var(--surface);
}

/* Filter bar — quiet segmented control */
.nt-filter-bar {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 22px auto 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.nt-reviews-head .nt-filter-bar { display: inline-flex; }
.nt-filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.nt-filter-btn:hover { color: var(--text-primary); background: var(--bg-color); }
.nt-filter-btn.active { background: #0f172a; color: #fff; }
[data-theme='dark'] .nt-filter-btn.active { background: #e2e8f0; color: #0f172a; }

/* ── Pager: "Page X of Y · N reviews" ── */
#nt-reviews-page-head { scroll-margin-top: 80px; }
.nt-pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 30px 0 10px;
}
.nt-page-info {
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.nt-page-btns { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; }
.nt-page-btn {
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 700;
  font-size: .86rem;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  font-variant-numeric: tabular-nums;
}
.nt-page-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(5,150,105,.5); }
.nt-page-btn.on { background: #0f172a; border-color: transparent; color: #fff; }
[data-theme='dark'] .nt-page-btn.on { background: #e2e8f0; color: #0f172a; }
.nt-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.nt-page-btn.prev, .nt-page-btn.next { padding: 0 16px; }

/* Skeleton */
.nt-review-card.skeleton { min-height: 220px; pointer-events: none; gap: 12px; }
.nt-review-card.skeleton::before { display: none; }
.nt-sk { border-radius: 10px; background: linear-gradient(90deg, var(--bg-color) 25%, var(--surface) 50%, var(--bg-color) 75%); background-size: 200% 100%; animation: ntShimmer 1.3s infinite linear; border: 1px solid var(--border); }
@keyframes ntShimmer { to { background-position: -200% 0; } }

/* ── Modal ── */
.nt-review-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  display: none;
  align-items: center; justify-content: center;
  padding: 18px;
}
.nt-review-modal-backdrop.open { display: flex; }
.nt-review-modal {
  width: 520px; max-width: 100%;
  max-height: 92vh; overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 32px 80px -16px rgba(15,23,42,.35);
  animation: ntPop .28s cubic-bezier(.22,1,.36,1);
}
@keyframes ntPop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.nt-review-modal h3 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -.02em; color: var(--text-primary); }
.nt-review-modal .sub { color: var(--text-secondary); font-size: .9rem; margin-bottom: 18px; line-height: 1.6; }

.nt-rate-row { display: flex; gap: 4px; justify-content: center; margin: 16px 0 6px; }
.nt-rate-btn {
  background: none; border: none; cursor: pointer;
  font-size: 2.2rem; line-height: 1; padding: 4px 5px;
  color: #e2e8f0; transition: transform .12s ease, color .12s ease;
}
[data-theme='dark'] .nt-rate-btn { color: #334155; }
.nt-rate-btn.lit { color: #f59e0b; }
.nt-rate-btn.prev { color: #fbbf24; }
.nt-rate-btn:hover { transform: scale(1.12); }
.nt-rate-label { text-align: center; font-weight: 600; font-size: .88rem; color: var(--text-secondary); min-height: 1.4em; margin-bottom: 12px; }

.nt-review-modal textarea {
  width: 100%; min-height: 160px; resize: vertical;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-color);
  color: var(--text-primary);
  padding: 14px; font-size: .94rem; line-height: 1.65;
  outline: none; font-family: inherit;
  box-sizing: border-box;
}
.nt-review-modal textarea:focus { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,.14); background: var(--surface); }
.nt-char-row { display: flex; justify-content: space-between; font-size: .76rem; color: var(--text-secondary); margin: 6px 2px 16px; }
.nt-modal-actions { display: flex; gap: 12px; }
.nt-modal-actions .nt-btn-review { flex: 1; justify-content: center; }
.nt-modal-actions .nt-btn-review:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.nt-modal-cancel {
  padding: 12px 22px; border-radius: 12px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); font-weight: 600; cursor: pointer;
}
.nt-modal-cancel:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.nt-review-note { margin-top: 12px; font-size: .78rem; color: var(--text-secondary); text-align: center; line-height: 1.5; }
.nt-form-err {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .85rem;
  line-height: 1.55;
  color: #b45309;
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .35);
  text-align: center;
}
.nt-review-success { text-align: center; padding: 20px 6px; }
.nt-review-success .big { font-size: 3rem; }
.nt-user-chip { display: flex; align-items: center; gap: 10px; background: var(--bg-color); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.nt-user-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

/* Toast */
#nt-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: #0f172a;
  color: #fff;
  font-size: .88rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 10001;
  max-width: 90vw;
  text-align: center;
}
#nt-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Trust stats row ── */
.nt-trust-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 30px auto 6px;
  padding: 20px 12px 4px;
  border-top: 1px solid var(--border);
}
.nt-ts-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #059669;
}
.nt-ts-item svg {
  width: 38px; height: 38px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(5,150,105,.09);
  border: 1px solid rgba(5,150,105,.14);
  box-sizing: border-box;
}
.nt-ts-item div { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }
.nt-ts-item b { font-size: 1.02rem; color: var(--text-primary); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.nt-ts-item small { font-size: .78rem; color: var(--text-secondary); font-weight: 500; }

/* ═══════════════════════════════════════════
   Lesson nudges — polite bottom-sheet
   (review ask + "any issues? we'll fix it" check)
   ═══════════════════════════════════════════ */
.nt-nudge-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9990;
  display: flex;
  justify-content: center;
  padding: 0 16px calc(18px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.nt-nudge-card {
  pointer-events: auto;
  position: relative;
  width: 480px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px -12px rgba(15,23,42,.3), 0 2px 8px rgba(16,24,40,.08);
  padding: 22px 22px 18px;
  animation: ntNudgeUp .38s cubic-bezier(.22,1,.36,1);
}
@keyframes ntNudgeUp { from { transform: translateY(24px); opacity: 0; } }
.nt-nudge-title {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  color: var(--text-primary);
  padding-right: 28px;
}
.nt-nudge-text {
  margin: 6px 0 14px;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.nt-nudge-text b { color: var(--text-primary); }
.nt-nudge-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.nt-nudge-btn {
  border-radius: 10px;
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  font-family: inherit;
}
.nt-nudge-btn.primary { background: #059669; border-color: transparent; color: #fff; }
.nt-nudge-btn.primary:hover { background: #047857; transform: translateY(-1px); }
.nt-nudge-btn.ghost { background: var(--surface); color: var(--text-primary); }
.nt-nudge-btn.ghost:hover { border-color: var(--text-secondary); transform: translateY(-1px); }
.nt-nudge-btn.quiet { background: transparent; border-color: transparent; color: var(--text-secondary); font-weight: 600; }
.nt-nudge-btn.quiet:hover { color: var(--text-primary); background: var(--bg-color); }
.nt-nudge-x {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: .8rem;
  cursor: pointer;
  line-height: 1;
}
.nt-nudge-x:hover { background: var(--bg-color); color: var(--text-primary); }
@media (max-width: 560px) {
  .nt-nudge-card { padding: 20px 18px 16px; border-radius: 16px; }
  .nt-nudge-btns { flex-direction: column; }
  .nt-nudge-btn { width: 100%; text-align: center; }
}
@media (max-width: 420px) {
  /* Cancel + Share stack full-width on the smallest phones */
  .nt-modal-actions { flex-direction: column; }
  .nt-modal-actions .nt-btn-review, .nt-modal-cancel { width: 100%; text-align: center; }
  .nt-showcase-arrow { width: 40px; height: 40px; }
  .nt-showcase-nav { gap: 10px; }
}
/* Page headers (logo + action) may wrap instead of squeezing on tiny screens */
.glass-header { flex-wrap: wrap; row-gap: 10px; }

/* Responsive */
@media (max-width: 960px) {
  .nt-review-track, .nt-reviews-page-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .nt-review-track, .nt-reviews-page-grid { grid-template-columns: 1fr; }
  .nt-reviews-section { margin-top: 44px; padding: 0 16px 16px; }
  .nt-review-card { padding: 22px 20px 16px; border-radius: 18px; }
  /* Badge joins the normal flow on narrow cards — never overlaps names */
  .nt-review-card.featured { padding-top: 20px; }
  .nt-review-card.featured .nt-review-who { padding-right: 0; }
  .nt-review-badge { position: static; align-self: flex-start; margin-bottom: 4px; }
  .nt-review-modal { padding: 22px; border-radius: 18px; }
  .nt-review-modal textarea { font-size: 16px; } /* stops iOS auto-zoom on focus */
  .nt-rate-btn { font-size: 2rem; }
  /* Wrapped filter rows need a squarer container than a pill */
  .nt-filter-bar { border-radius: 20px; }
  .nt-filter-btn { padding: 8px 14px; font-size: .8rem; }
  #nt-home-reviews.nt-carousel { margin: 6px -16px 0; padding: 10px 16px 6px; }
  #nt-home-reviews.nt-carousel::before,
  #nt-home-reviews.nt-carousel::after { width: 28px; }
  .nt-slide { flex-basis: 86%; }
  .nt-trust-stats { gap: 20px; }
  .nt-reviews-agg { gap: 10px; }
  .nt-filter-bar { max-width: 100%; }
}
