/**
 * LUXURY PERSIAN STOREFRONT - REVIEWS, Q&A & INSTITUTIONAL TRUST FOOTER CSS
 * Full RTL support, high-fidelity verified buyer scorecards, pros/cons chips,
 * expert Q&A thread, 4-badge regulatory footer, and PWA mobile install banner.
 */

/* ==========================================================================
   1. Reviews Aggregate Scorecard & Rating Breakdown
   ========================================================================== */
.pdp-reviews-section {
  margin-top: 32px;
  direction: rtl;
}

.reviews-scorecard-grid {
  display: grid;
  grid-template-columns: 280px 1fr 240px;
  gap: 24px;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border-subtle, #e2e8f0);
  border-radius: var(--radius-2xl, 24px);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.scorecard-main-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-left: 1px solid var(--color-border-subtle, #e2e8f0);
  padding-left: 20px;
}

.scorecard-big-score {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-text-main, #0f172a);
}

.scorecard-stars-row {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  margin: 10px 0 6px 0;
}

.scorecard-meta-text {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #64748b);
}

.scorecard-recommend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid #a7f3d0;
}

/* Star Distribution Bars */
.scorecard-bars-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78125rem;
  color: var(--color-text-muted, #64748b);
}

.rating-bar-label {
  width: 50px;
  font-weight: 700;
}

.rating-bar-track {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-full, 9999px);
  background: var(--bg-surface-sunken, #f1f5f9);
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  border-radius: var(--radius-full, 9999px);
  background: #f59e0b;
  transition: width 400ms ease;
}

.rating-bar-count {
  width: 32px;
  text-align: left;
  font-weight: 600;
}

/* Call to Action Column */
.scorecard-cta-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--color-border-subtle, #e2e8f0);
  padding-right: 20px;
  gap: 12px;
}

.btn-write-review {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-xl, 16px);
  background: var(--color-primary-600, #2563eb);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all var(--transition-fast, 180ms ease);
}

.btn-write-review:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* ==========================================================================
   2. Individual Review Cards & Pros/Cons Chips
   ========================================================================== */
.reviews-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.review-item-card {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border-subtle, #e2e8f0);
  border-radius: var(--radius-xl, 16px);
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.review-author-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author-name {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--color-text-main, #0f172a);
}

.badge-buyer-verified {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid #a7f3d0;
}

.badge-variant-bought {
  font-size: 0.6875rem;
  color: var(--color-text-muted, #64748b);
  background: var(--bg-surface-sunken, #f8fafc);
  padding: 2px 8px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--color-border-subtle, #e2e8f0);
}

.review-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text-main, #0f172a);
  margin-bottom: 8px;
}

.review-body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text-main, #334155);
  margin-bottom: 16px;
}

/* Pros and Cons Taxonomy */
.review-taxonomy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg-surface-sunken, #f8fafc);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--color-border-subtle, #f1f5f9);
}

.taxonomy-title {
  font-size: 0.78125rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.taxonomy-title.is-pro { color: #047857; }
.taxonomy-title.is-con { color: #be123c; }

.taxonomy-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.taxonomy-chip {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-main, #1e293b);
}

.taxonomy-chip.is-pro:before {
  content: "+";
  font-weight: 900;
  color: #059669;
}

.taxonomy-chip.is-con:before {
  content: "−";
  font-weight: 900;
  color: #e11d48;
}

.review-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--color-border-subtle, #e2e8f0);
  padding-top: 12px;
  font-size: 0.75rem;
  color: var(--color-text-muted, #64748b);
}

.review-vote-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-vote {
  background: transparent;
  border: 1px solid var(--color-border-subtle, #cbd5e1);
  border-radius: var(--radius-md, 8px);
  padding: 4px 10px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-muted, #64748b);
}

.btn-vote:hover {
  background: var(--bg-surface-sunken, #f8fafc);
  color: var(--color-text-main, #0f172a);
}

/* ==========================================================================
   3. Technical Q&A Threading & Expert Badge
   ========================================================================== */
.qa-card {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border-subtle, #e2e8f0);
  border-radius: var(--radius-xl, 16px);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.qa-question-box {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.qa-question-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-question-text {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-main, #0f172a);
  line-height: 1.6;
}

.qa-answer-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg, 12px);
  padding: 16px;
  margin-right: 36px;
}

.qa-expert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1d4ed8;
  margin-bottom: 8px;
}

.qa-answer-text {
  font-size: 0.84375rem;
  line-height: 1.65;
  color: #1e3a8a;
}

/* ==========================================================================
   4. Dual-Theme Institutional Bento Footer (Phase 9 Locked)
   ========================================================================== */
.institutional-footer {
  background: transparent;
  padding: 28px 0 36px;
  margin-top: 44px;
  direction: rtl;
}

.luxury-footer-shell {
  border-radius: 26px;
  padding: 28px 30px 22px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  box-shadow: 0 12px 36px rgba(2, 132, 199, 0.08);
  position: relative;
  overflow: hidden;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.footer-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid #e2e8f0;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-brand-emblem {
  height: 46px;
  width: auto;
  max-width: 34px;
  object-fit: contain;
  display: block;
}

[data-theme="light"] .footer-brand-img-light,
:root:not([data-theme="dark"]) .footer-brand-img-light {
  display: block;
}
[data-theme="light"] .footer-brand-img-dark,
:root:not([data-theme="dark"]) .footer-brand-img-dark {
  display: none;
}
[data-theme="dark"] .footer-brand-img-light {
  display: none;
}
[data-theme="dark"] .footer-brand-img-dark {
  display: block;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1.15;
  color: #0f172a;
}

.footer-brand-accent {
  color: #0369a1;
}

.footer-brand-sub {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1e293b;
  margin-top: 2px;
}

.btn-back-to-top {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-back-to-top:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}

/* 2 Compact Non-Stretched Trust Bento Pills */
.trust-pillars-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.pillar-bento-card {
  border-radius: 15px;
  padding: 10px 16px;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  transition: transform 180ms ease;
}

.trust-feature-icon-box,
.pillar-icon-capsule {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-icon-capsule.sky {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.pillar-icon-capsule.amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.pillar-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.pillar-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
}

/* Main Footer Columns */
.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.75fr 0.9fr 0.95fr auto;
  gap: 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid #e2e8f0;
  align-items: start;
}

.footer-col-heading {
  font-size: 0.9375rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 14px;
}

.footer-about-copy {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.85;
  color: #1e293b;
  margin-bottom: 16px;
}

.footer-contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.78125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 160ms ease;
}

.contact-chip:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.contact-chip svg {
  color: #0284c7;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  text-decoration: none;
  color: #1e293b;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 160ms ease;
}

.footer-nav-list a:hover {
  color: #0284c7;
  transform: translateX(-3px);
}

/* Compact Portrait Trust Seals (Natural Square Proportions) */
.trust-seals-grid {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.seal-bento-card {
  width: 128px;
  border-radius: 16px;
  padding: 14px 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
  text-decoration: none;
  transition: all 180ms ease;
}

.seal-bento-card:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  transform: translateY(-2px);
}

.enamad-img-frame {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.enamad-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.seal-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seal-icon-box.rose {
  background: #ffe4e6;
  color: #e11d48;
}

.seal-title {
  font-size: 0.78125rem;
  font-weight: 800;
  line-height: 1.3;
}

.seal-verified {
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 2px;
  color: #047857;
}

.verified-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Bottom Legal & Designer Credit */
.footer-copyright-bar {
  padding-top: 18px;
  text-align: center;
  font-size: 0.78125rem;
  font-weight: 600;
  color: #334155;
}

.designer-credit-name {
  font-family: 'Georgia Pro', 'Georgia', 'Palatino Linotype', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  display: inline-block;
  margin: 0 3px;
  color: #0369a1;
}

/* ==========================================================================
   5. PWA Mobile Install Floating Bar
   ========================================================================== */
.pwa-install-bar {
  display: none;
  position: fixed;
  bottom: 78px; /* Sits cleanly above bottom dock with breathing room */
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl, 16px);
  padding: 10px 14px;
  z-index: 998;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  direction: rtl;
}

@media (max-width: 768px) {
  .pwa-install-bar {
    display: none !important;
  }
  body.pdp-page .pwa-install-bar {
    display: none !important;
  }
}

@media (max-width: 480px) {
  body.pdp-page .pwa-install-bar {
    display: none !important; /* Prioritize checkout CTA on small phones */
  }
}

.pwa-app-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
  padding: 6px;
  flex-shrink: 0;
}

.pwa-app-icon img,
.pwa-app-icon svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain;
  display: block;
}

.pwa-app-icon img {
  filter: brightness(0) invert(1);
}

.btn-pwa-install {
  padding: 6px 14px;
  border-radius: var(--radius-full, 9999px);
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.78125rem;
  font-weight: 800;
  cursor: pointer;
}

/* ==========================================================================
   5.1. Interactive Review & Q&A Modals
   ========================================================================== */
.review-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  direction: rtl;
}

.review-modal-box {
  background: var(--color-surface, #ffffff);
  border-radius: var(--radius-2xl, 24px);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border-subtle, #e2e8f0);
  animation: modalScaleIn 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-subtle, #f1f5f9);
}

.modal-header-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text-main, #0f172a);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-text-muted, #475569);
  padding: 4px;
  border-radius: 8px;
  line-height: 1;
}

.modal-form-group {
  margin-bottom: 16px;
}

.modal-form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-main, #1e293b);
  margin-bottom: 6px;
}

.modal-form-input,
.modal-form-select,
.modal-form-textarea {
  width: 100%;
  border: 1px solid var(--color-border-subtle, #cbd5e1);
  border-radius: var(--radius-lg, 12px);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.875rem;
  background: var(--color-surface, #ffffff);
  color: var(--color-text-main, #0f172a);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.modal-form-input:focus,
.modal-form-select:focus,
.modal-form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-600, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.modal-radio-group {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 4px;
}

.modal-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84375rem;
  cursor: pointer;
  color: var(--color-text-main, #334155);
}

/* Pros & Cons Interactive Chip Builder */
.review-chip-builder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  direction: rtl;
}

.review-chip-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.review-chip-input-row .modal-form-input {
  flex: 1;
  min-width: 0;
}

.review-chip-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0 14px;
  min-height: 42px;
  border-radius: var(--radius-full, 9999px);
  font-family: inherit;
  font-size: 0.78125rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.review-chip-add-btn.is-pro {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.review-chip-add-btn.is-pro:hover {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
  transform: translateY(-1px);
}

.review-chip-add-btn.is-con {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.review-chip-add-btn.is-con:hover {
  background: #ffe4e6;
  color: #9f1239;
  border-color: #fda4af;
  transform: translateY(-1px);
}

.review-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-chips-list:empty {
  display: none;
}

.review-chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.78125rem;
  font-weight: 700;
  line-height: 1.4;
  max-width: 100%;
  animation: chipPopIn 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes chipPopIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.review-chip-pill.is-pro {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.review-chip-pill.is-con {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

.review-chip-sign {
  font-weight: 900;
  font-size: 0.875rem;
  line-height: 1;
}

.review-chip-pill.is-pro .review-chip-sign {
  color: #059669;
}

.review-chip-pill.is-con .review-chip-sign {
  color: #e11d48;
}

.review-chip-text {
  word-break: break-word;
}

.review-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full, 9999px);
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 140ms ease, transform 140ms ease;
}

.review-chip-remove:hover {
  background: rgba(15, 23, 42, 0.16);
  transform: scale(1.06);
}

/* ==========================================================================
   6. Universal Responsive Media Queries (320px - 768px)
   ========================================================================== */
@media (max-width: 992px) {
  .reviews-scorecard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .scorecard-main-col {
    border-left: none;
    border-bottom: 1px solid var(--color-border-subtle, #e2e8f0);
    padding-left: 0;
    padding-bottom: 16px;
  }
  .scorecard-cta-col {
    border-right: none;
    border-top: 1px solid var(--color-border-subtle, #e2e8f0);
    padding-right: 0;
    padding-top: 16px;
  }
  .footer-columns-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .review-taxonomy-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .footer-top-strip {
    justify-content: center;
    text-align: center;
  }
  .trust-pillars-compact {
    width: 100%;
    justify-content: center;
  }
  .pillar-bento-card {
    width: 100%;
  }
  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .trust-seals-grid {
    justify-content: flex-start;
  }
  .qa-answer-box {
    margin-right: 0;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .institutional-footer {
    padding: 24px 0 104px;
  }
}

@media (max-width: 480px) {
  .reviews-scorecard-grid {
    padding: 14px;
    border-radius: var(--radius-xl, 16px);
  }
  .scorecard-big-score {
    font-size: 2.75rem;
  }
  .rating-bar-row {
    font-size: 0.72rem;
    gap: 6px;
  }
  .rating-bar-label {
    width: 44px;
  }
  .rating-bar-count {
    width: 24px;
  }
  .review-item-card {
    padding: 14px;
    border-radius: var(--radius-lg, 14px);
  }
  .review-title {
    font-size: 0.9375rem;
  }
  .review-body {
    font-size: 0.8125rem;
  }
  .qa-card {
    padding: 14px;
    border-radius: var(--radius-lg, 14px);
  }
  .luxury-footer-shell {
    padding: 20px 14px 18px;
    border-radius: 20px;
  }
  .institutional-footer {
    padding: 20px 0 104px;
  }
  .seal-bento-card {
    flex: 1;
    min-width: 0;
  }
  .footer-col-heading {
    font-size: 0.9375rem;
    margin-bottom: 10px;
  }
  .footer-nav-list a {
    font-size: 0.78125rem;
  }
  .pwa-install-bar {
    left: 8px;
    right: 8px;
    padding: 8px 12px;
  }
  .review-chip-input-row {
    flex-wrap: wrap;
  }
  .review-chip-input-row .modal-form-input {
    flex: 1 1 160px;
  }
  .review-chip-add-btn {
    flex: 1 0 auto;
    min-height: 38px;
  }
}

/* ==========================================================================
   7. Dark Mode Adaptations (Cyber OLED #09090b / #38bdf8)
   ========================================================================== */
[data-theme="dark"] .reviews-scorecard-grid,
[data-theme="dark"] .review-item-card,
[data-theme="dark"] .qa-card {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .scorecard-big-score,
[data-theme="dark"] .review-author-name,
[data-theme="dark"] .review-title,
[data-theme="dark"] .qa-question-text {
  color: #f8fafc;
}

[data-theme="dark"] .review-body {
  color: #cbd5e1;
}

[data-theme="dark"] .review-taxonomy-grid {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .taxonomy-chip {
  color: #f1f5f9;
}

[data-theme="dark"] .qa-answer-box {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .qa-answer-text {
  color: #e2e8f0;
}

/* Dark Theme Dual-Theme Bento Footer Overrides */
[data-theme="dark"] .luxury-footer-shell {
  background: #09090b;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .luxury-footer-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, #38bdf8 50%, transparent 95%);
  opacity: 0.65;
}

[data-theme="dark"] .footer-top-strip,
[data-theme="dark"] .footer-columns-grid {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .footer-brand-name,
[data-theme="dark"] .pillar-title,
[data-theme="dark"] .footer-col-heading {
  color: #ffffff;
}

[data-theme="dark"] .footer-brand-accent,
[data-theme="dark"] .designer-credit-name,
[data-theme="dark"] .contact-chip svg {
  color: #38bdf8;
}

[data-theme="dark"] .footer-brand-sub,
[data-theme="dark"] .pillar-sub,
[data-theme="dark"] .footer-about-copy,
[data-theme="dark"] .footer-nav-list a,
[data-theme="dark"] .footer-copyright-bar {
  color: #94a3b8;
}

[data-theme="dark"] .footer-nav-list a:hover {
  color: #38bdf8;
}

[data-theme="dark"] .btn-back-to-top {
  background: #0b1120;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

[data-theme="dark"] .btn-back-to-top:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: #38bdf8;
  color: #38bdf8;
}

[data-theme="dark"] .pillar-bento-card {
  background: #0b1120;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .pillar-icon-capsule.sky {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .pillar-icon-capsule.amber {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .contact-chip {
  background: #0b1120;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

[data-theme="dark"] .seal-bento-card {
  background: #0b1120;
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

[data-theme="dark"] .seal-bento-card:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
}

[data-theme="dark"] .enamad-img-frame {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.22);
}

[data-theme="dark"] .seal-icon-box.rose {
  background: rgba(244, 63, 94, 0.16);
  color: #fb7185;
}

[data-theme="dark"] .seal-verified {
  color: #34d399;
}

[data-theme="dark"] .scorecard-recommend-pill,
[data-theme="dark"] .badge-buyer-verified {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

[data-theme="dark"] .taxonomy-title.is-pro {
  color: #6ee7b7;
}

[data-theme="dark"] .taxonomy-title.is-con {
  color: #fda4af;
}

[data-theme="dark"] .review-like-btn,
[data-theme="dark"] .review-dislike-btn {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

[data-theme="dark"] .review-modal-box {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .modal-form-input,
[data-theme="dark"] .modal-form-select,
[data-theme="dark"] .modal-form-textarea {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

[data-theme="dark"] .modal-header-title,
[data-theme="dark"] .modal-form-label,
[data-theme="dark"] .modal-radio-label {
  color: #f1f5f9;
}

[data-theme="dark"] .modal-close-btn {
  color: #94a3b8;
}

[data-theme="dark"] .review-chip-add-btn.is-pro,
[data-theme="dark"] .review-chip-pill.is-pro {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.38);
  color: #6ee7b7;
}

[data-theme="dark"] .review-chip-add-btn.is-pro:hover {
  background: rgba(16, 185, 129, 0.24);
  border-color: rgba(52, 211, 153, 0.55);
  color: #a7f3d0;
}

[data-theme="dark"] .review-chip-add-btn.is-con,
[data-theme="dark"] .review-chip-pill.is-con {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.38);
  color: #fda4af;
}

[data-theme="dark"] .review-chip-add-btn.is-con:hover {
  background: rgba(244, 63, 94, 0.24);
  border-color: rgba(251, 113, 133, 0.55);
  color: #fecdd3;
}

[data-theme="dark"] .review-chip-pill.is-pro .review-chip-sign {
  color: #34d399;
}

[data-theme="dark"] .review-chip-pill.is-con .review-chip-sign {
  color: #fb7185;
}

[data-theme="dark"] .review-chip-remove {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

[data-theme="dark"] .review-chip-remove:hover {
  background: rgba(255, 255, 255, 0.22);
}
