/* Hallmark: design-v9/coupons/brand-page */
:root {
  --n-trust-green: #00B67A;
  --n-dot-live-bg: #0E9F6E;
  --n-dot-err-bg: #E02424;
  --n-accent-hover-bg: #1D3CB8;
  --n-shadow-offer: rgba(19, 28, 69, 0.04);
  --n-shadow-toast-box: rgba(19, 28, 69, 0.15);
  --n-shadow-dialog-box: rgba(19, 28, 69, 0.20);
  --n-dialog-backdrop: rgba(19, 28, 69, 0.40);
}

/* Container bọc ngoài */
.n-coupon-brand {
  display: block;
  width: 100%;
  padding-top: 16px;
  padding-bottom: 48px;
  overflow-x: clip;
  box-sizing: border-box;
}

/* Khoảng cách các band */
.n-coupon-brand .n-band-sm {
  margin-top: 24px;
}

/* -----------------------------------------------------------------------------
   1. Khối Hero Thương Hiệu (.n-hero-brand)
   ----------------------------------------------------------------------------- */
.n-hero-brand {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  padding: 28px;
  background: var(--n-paper);
  border: 1px solid var(--n-rule);
  border-radius: var(--n-r-card);
}

.n-hero-brand__main {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
}

.n-hero-brand__logo-wrap {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--n-paper-2);
  border: 1px solid var(--n-rule-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.n-hero-brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.n-avatar.n-monogram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--n-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--n-ink);
  background: var(--n-accent-wash);
}

.n-hero-brand__meta {
  flex: 1 1 auto;
  min-width: 0;
}

.n-hero-brand__kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.n-hero-brand__title {
  margin: 0 0 8px;
  font-family: var(--n-serif);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--n-ink);
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.n-hero-brand__summary {
  margin: 0;
  font-family: var(--n-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--n-ink-2);
}

/* TrustScore Box bên phải */
.n-hero-brand__trust {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--n-rule-soft);
  padding-left: 24px;
}

.n-trust-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.n-trust-box__score-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.n-trustscore {
  font-size: 24px;
  font-weight: 700;
  color: var(--n-ink);
  line-height: 1;
}

.n-trust-scale {
  font-size: 14px;
  color: var(--n-muted);
}

.n-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.n-star {
  color: var(--n-rule);
}

.n-star--full,
.n-star--half {
  color: var(--n-trust-green);
}

.n-trust-box__reviews {
  font-size: 13px;
  color: var(--n-muted);
}

.n-trust-link {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
}

.n-trust-link:active {
  transform: scale(0.98);
}

.n-trust-box--unrated .n-trust-desc {
  margin: 4px 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--n-muted);
}

/* -----------------------------------------------------------------------------
   2. Khối Savings Snapshot (Bảng Thống kê Nhanh) (.n-stats-grid)
   ----------------------------------------------------------------------------- */
.n-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.n-stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--n-paper);
  border: 1px solid var(--n-rule);
  border-radius: var(--n-r-card);
}

.n-stat-card__label {
  font-size: 13px;
  color: var(--n-muted);
  font-weight: 500;
}

.n-stat-card__num {
  font-size: 22px;
  font-weight: 700;
  color: var(--n-ink);
  line-height: 1.2;
}

.n-stat-card__sub {
  font-size: 12px;
  color: var(--n-faint);
}

/* -----------------------------------------------------------------------------
   3. Khối Điều khiển & Bộ lọc (.n-card-ctrl)
   ----------------------------------------------------------------------------- */
.n-filter-section {
  margin-top: 24px;
}

.n-card-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--n-rule-soft);
}

.n-chips--scroll {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

.n-chips--scroll::-webkit-scrollbar {
  display: none;
}

.n-chip {
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--n-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--n-ink-2);
  background: var(--n-paper-2);
  border: 1px solid var(--n-rule-chip);
  border-radius: var(--n-r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.n-chip:hover {
  background: var(--n-accent-wash);
  border-color: var(--n-accent-line);
  color: var(--n-accent);
}

.n-chip:active {
  transform: scale(0.98);
}

.n-chip:disabled,
.n-chip[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.n-chip.is-active {
  background: var(--n-ink);
  border-color: var(--n-ink);
  color: var(--n-paper);
}

.n-chip__count {
  font-size: 12px;
  opacity: 0.85;
}

/* -----------------------------------------------------------------------------
   4. Danh sách Thẻ Offer (.n-offer-list)
   ----------------------------------------------------------------------------- */
.n-offer-section {
  margin-top: 20px;
}

.n-offer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.n-offer-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 200px;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  background: var(--n-paper);
  border: 1px solid var(--n-rule);
  border-radius: var(--n-r-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.n-offer-card:hover {
  border-color: var(--n-rule-hover);
  box-shadow: 0 2px 8px var(--n-shadow-offer);
}

.n-offer-card.is-hidden {
  display: none !important;
}

.n-offer-card.is-target-highlight {
  outline: 2px solid var(--n-accent, #1d4ed8) !important;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.15) !important;
  transition: outline 0.3s ease, box-shadow 0.3s ease;
}

/* Vùng 1: Hộp giảm giá nét đứt (.n-disc-box) */
.n-disc-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  background: var(--n-accent-wash);
  border: 1px dashed var(--n-accent-line);
  border-radius: 10px;
  text-align: center;
  min-height: 100px;
}

.n-disc-box__value {
  font-family: var(--n-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--n-accent);
  line-height: 1.2;
}

.n-disc-box__badge {
  font-size: 12.5px;
}

.n-disc-box__tier {
  font-size: 12.5px;
}

/* Vùng 2: Thân ưu đãi ở giữa (.n-offer-body) */
.n-offer-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.n-offer-title {
  margin: 0;
  font-family: var(--n-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--n-ink);
  overflow-wrap: break-word;
}

.n-offer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--n-muted);
}

.n-meta-sep {
  color: var(--n-faint-2);
}

.n-offer-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--n-ink-2);
}

.n-offer-terms {
  font-size: 13px;
  color: var(--n-muted);
  cursor: pointer;
  margin-top: 4px;
}

.n-offer-terms summary {
  outline: none;
  font-weight: 500;
}

.n-offer-terms p {
  margin: 8px 0 0;
  padding: 8px 12px;
  background: var(--n-paper-2);
  border-radius: 6px;
  line-height: 1.4;
}

.n-offer-insight {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--n-muted);
  margin-top: 4px;
}

.n-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.n-dot--live {
  background: var(--n-dot-live-bg);
}

.n-dot--err {
  background: var(--n-dot-err-bg);
}

/* Vùng 3: Nút bấm Kích hoạt / Hiện mã (.n-reveal-cta) */
.n-reveal-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.n-reveal-box {
  position: relative;
  width: 100%;
  min-width: 170px;
  height: 44px;
  overflow: hidden;
  border-radius: 8px;
  box-sizing: border-box;
}

.n-code-revealed {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--n-paper-2);
  border: 1px dashed var(--n-rule);
  border-radius: 8px;
  font-family: var(--n-code, monospace);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--n-ink);
  user-select: all;
  box-sizing: border-box;
}

.n-reveal-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--n-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--n-paper);
  background: var(--n-ink);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), background-color 0.15s ease;
}

.n-reveal-btn:hover {
  background: var(--n-ink-hover);
}

.n-reveal-btn:active {
  transform: scale(0.98);
}

.n-reveal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.n-reveal-btn__arrow {
  font-size: 16px;
  transition: transform 0.15s ease;
}

.n-reveal-btn:hover .n-reveal-btn__arrow {
  transform: translateX(4px);
}

/* Khi đã lộ mã: nắp che trượt mở hoàn toàn */
.n-reveal-cta.is-revealed .n-reveal-btn {
  transform: translateX(105%);
  pointer-events: none;
}

.n-deal-btn {
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--n-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--n-paper);
  background: var(--n-accent);
  border: none;
  border-radius: var(--n-r-md);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.n-deal-btn:hover {
  background: var(--n-accent-hover-bg);
}

.n-deal-btn:active {
  transform: scale(0.98);
}

.n-deal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -----------------------------------------------------------------------------
   Trạng thái rỗng khi lọc (.n-state--empty)
   ----------------------------------------------------------------------------- */
.n-state--empty {
  padding: 32px 20px;
  text-align: center;
  background: var(--n-paper-2);
  border: 1px dashed var(--n-rule);
  border-radius: 12px;
  margin-top: 16px;
}

.n-state--empty.is-hidden {
  display: none;
}

.n-state__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--n-ink);
}

.n-state__text {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--n-muted);
}

/* -----------------------------------------------------------------------------
   5. Khối Hết Hạn 410 (.n-expired-section)
   ----------------------------------------------------------------------------- */
.n-expired-section {
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.n-expired-section:hover {
  opacity: 1;
}

.n-state--dash {
  padding: 24px;
  background: var(--n-paper-2);
  border: 1px dashed var(--n-rule);
  border-radius: 12px;
}

.n-state__header {
  margin-bottom: 16px;
}

.n-state__header .n-state__title {
  font-size: 18px;
  margin: 8px 0 4px;
}

.n-state__sub {
  margin: 0;
  font-size: 13px;
  color: var(--n-muted);
}

.n-expired-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.n-expired-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--n-paper);
  border: 1px solid var(--n-rule-soft);
  border-radius: 8px;
}

.n-expired-item__disc {
  font-family: var(--n-serif);
  font-weight: 600;
  color: var(--n-muted);
  min-width: 90px;
}

.n-expired-item__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.n-expired-item__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--n-ink-2);
}

.n-expired-item__exp {
  font-size: 12px;
  color: var(--n-faint);
}

/* -----------------------------------------------------------------------------
   6. Hướng dẫn Nhập Mã (.n-steps)
   ----------------------------------------------------------------------------- */
.n-steps-card {
  padding: 28px;
  background: var(--n-paper-2);
  border: 1px dashed var(--n-rule);
  border-radius: var(--n-r-card);
}

.n-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--n-rule-soft);
}

.n-card-title {
  margin: 0;
  font-family: var(--n-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--n-ink);
}

.n-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.n-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.n-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--n-ink);
  color: var(--n-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.n-step__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--n-ink);
}

.n-step__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--n-ink-2);
}

/* -----------------------------------------------------------------------------
   7. Khối Bài Viết Biên Tập (.n-editorial-card)
   ----------------------------------------------------------------------------- */
.n-editorial-card {
  padding: 28px;
  background: var(--n-paper);
  border: 1px solid var(--n-rule-soft);
  border-radius: var(--n-r-card);
}

.n-editorial-body {
  font-family: var(--n-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--n-ink-body);
}

.n-editorial-body p {
  margin: 0 0 16px;
}

.n-editorial-body p:last-child {
  margin-bottom: 0;
}

/* -----------------------------------------------------------------------------
   8. Khối FAQ (.n-faq-card)
   ----------------------------------------------------------------------------- */
.n-faq-card {
  padding: 28px;
  background: var(--n-paper-2);
  border: 1px solid var(--n-rule-soft);
  border-radius: var(--n-r-card);
}

.n-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.n-faq {
  border: 1px solid var(--n-rule-soft);
  border-radius: 8px;
  background: var(--n-paper);
  overflow: hidden;
}

.n-faq__summary {
  min-height: 44px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--n-ink);
  cursor: pointer;
  list-style: none;
}

.n-faq__summary::-webkit-details-marker {
  display: none;
}

.n-faq__icon {
  font-size: 18px;
  font-weight: 400;
  color: var(--n-muted);
  transition: transform 0.2s ease;
}

.n-faq[open] .n-faq__icon {
  transform: rotate(45deg);
}

.n-faq__answer {
  padding: 16px;
  background: var(--n-paper);
  border-top: 1px solid var(--n-rule-soft);
  font-size: 14px;
  line-height: 1.6;
  color: var(--n-ink-body);
}

.n-faq__answer p {
  margin: 0;
}

/* -----------------------------------------------------------------------------
   9. Thương hiệu cùng ngành hàng (.n-similar-card)
   ----------------------------------------------------------------------------- */
.n-similar-card {
  padding: 28px;
  background: var(--n-paper);
  border: 1px solid var(--n-rule);
  border-radius: var(--n-r-card);
}

.n-similar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.n-similar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--n-paper-2);
  border: 1px solid var(--n-rule-soft);
  border-radius: 10px;
  text-decoration: none;
  min-height: 44px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.n-similar-item:hover {
  border-color: var(--n-accent);
  background: var(--n-paper);
}

.n-similar-item:active {
  transform: scale(0.98);
}

.n-similar-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  font-size: 18px;
  border-radius: 8px;
}

.n-similar-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.n-similar-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--n-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.n-similar-count {
  font-size: 12px;
  color: var(--n-muted);
}

/* -----------------------------------------------------------------------------
   Toast Thông báo nổi (.n-toast)
   ----------------------------------------------------------------------------- */
.n-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  max-width: 380px;
  width: 100%;
  padding: 12px 20px;
  background: var(--n-ink);
  color: var(--n-paper);
  border-radius: 8px;
  box-shadow: 0 4px 14px var(--n-shadow-toast-box);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-sizing: border-box;
}

.n-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* -----------------------------------------------------------------------------
   Modal/Hộp thoại Phản hồi Bình chọn UGC (.n-dialog)
   ----------------------------------------------------------------------------- */
dialog#coupon-feedback-dialog[hidden],
dialog#coupon-feedback-dialog:not([open]) {
  display: none !important;
}

dialog#coupon-feedback-dialog[open] {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  margin: auto;
  max-height: calc(100dvh - 32px);
}

.n-dialog {
  border: none;
  border-radius: 14px;
  padding: 0;
  background: transparent;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 10px 30px var(--n-shadow-dialog-box);
  box-sizing: border-box;
}

.n-dialog::backdrop {
  background: var(--n-dialog-backdrop);
  backdrop-filter: blur(2px);
}

.n-dialog__content {
  background: var(--n-paper);
  border: 1px solid var(--n-rule);
  border-radius: 14px;
  padding: 24px;
}

.n-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.n-dialog__title {
  margin: 0;
  font-family: var(--n-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--n-ink);
}

.n-dialog__close {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--n-muted);
  cursor: pointer;
}

.n-dialog__close:active {
  transform: scale(0.96);
}

.n-dialog__lead {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--n-ink-2);
}

.n-dialog__code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--n-paper-2);
  border: 1px dashed var(--n-rule);
  border-radius: 8px;
  margin-bottom: 20px;
}

.n-dialog__code {
  flex: 1 1 auto;
  font-family: var(--n-code, monospace);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--n-ink);
}

.n-dialog__question {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--n-ink);
}

.n-dialog__actions {
  display: flex;
  gap: 12px;
}

.n-dialog__vote-btn {
  flex: 1 1 50%;
  min-height: 44px;
  font-weight: 600;
}

.n-dialog__vote-btn:active {
  transform: scale(0.98);
}

.n-dialog__vote-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.n-dialog__thankyou {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--n-accent-wash);
  color: var(--n-accent);
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}

.n-dialog__thankyou.is-hidden {
  display: none;
}

/* Utility sr-only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -----------------------------------------------------------------------------
   Focus-visible & Reduced Motion
   ----------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--n-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .n-reveal-btn,
  .n-chip,
  .n-toast,
  .n-deal-btn,
  .n-faq__icon {
    transition: none !important;
  }
}

/* -----------------------------------------------------------------------------
   Responsive Breakpoints: 1024px, 768px, 640px, 360px
   ----------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .n-offer-card {
    grid-template-columns: 120px minmax(0, 1fr) 180px;
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .n-hero-brand {
    flex-direction: column;
    gap: 20px;
  }
  .n-hero-brand__trust {
    border-left: none;
    border-top: 1px solid var(--n-rule-soft);
    padding-left: 0;
    padding-top: 16px;
    flex: 1 1 auto;
  }
  .n-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .n-steps {
    grid-template-columns: 1fr;
  }
  .n-similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .n-coupon-brand {
    padding-top: 12px;
    padding-bottom: 36px;
  }
  .n-hero-brand {
    padding: 16px 18px;
  }
  .n-hero-brand__main {
    flex-direction: column;
    gap: 16px;
  }
  .n-hero-brand__title {
    font-size: 20px;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
  }
  .n-offer-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 18px;
  }
  .n-disc-box {
    min-height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 16px;
  }
  .n-reveal-cta {
    justify-content: stretch;
  }
  .n-reveal-box,
  .n-deal-btn {
    width: 100%;
  }
  .n-similar-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ: dùng mũi tên của core, bỏ dấu + trùng; lề trong đồng nhất */
.n-faq-card .n-faq__icon { display: none; }
.n-faq-card .n-faq__summary { padding: 14px 48px 14px 16px; position: relative; }
.n-faq-card .n-faq__summary::after { right: 20px; }
.n-faq-card .n-faq[open] .n-faq__summary::after { transform: translateY(-30%) rotate(225deg); }
.n-hero-brand__logo { object-fit: contain; padding: 12px; background: var(--n-paper); }
.n-hero-brand__logo[hidden] { display: none; }
.n-faq-card .n-faq { display: block; }
.n-faq-card .n-faq__summary { display: flex; align-items: center; min-height: 56px; }
.n-similar-logo { width: 48px; height: 48px; flex: 0 0 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--n-rule-soft); border-radius: 8px; background: var(--n-paper); overflow: hidden; }
.n-similar-logo img { width: 32px; height: 32px; object-fit: contain; }
.n-similar-logo img[hidden] { display: none; }
.n-similar-logo .n-similar-avatar { width: 100%; height: 100%; border: 0; }
.n-tp-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.n-tp-item { border: 1px solid var(--n-rule-soft); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.n-tp-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--n-fs-small); }
.n-tp-rating { font-weight: 700; color: var(--n-ink); }
.n-tp-head { margin: 0; font-weight: 600; color: var(--n-ink); }
.n-tp-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--n-ink-body); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Khớp thiết kế: sec-head mb 24 */
.n-coupon-brand .n-sec-head { margin-bottom: 24px; }
