/* ==========================================================================
   Needo v1.8 — Minimalist Brand Intelligence & Loyalty Network (EN / FA)
   Design System: Cast & Crew × Tehranto.Plus Exact Font & Full-Width Bento
   Typography: Unicode-Ranged ShabnamFA + Google Sans + Roboto (100% Parity)
   ========================================================================== */

/* 1. Unicode-Ranged ShabnamFA: Renders ONLY Persian/Arabic script in Shabnam
      while keeping ALL Latin letters & brand names in Google Sans / Roboto! */
@font-face {
  font-family: "ShabnamFA";
  src: url("/fonts/Shabnam-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "ShabnamFA";
  src: url("/fonts/Shabnam.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "ShabnamFA";
  src: url("/fonts/Shabnam-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "ShabnamFA";
  src: url("/fonts/Shabnam-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

/* Full Shabnam family retained for explicit Persian-numeral / pure-FA slots */
@font-face {
  font-family: "Shabnam";
  src: url("/fonts/Shabnam-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src: url("/fonts/Shabnam.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src: url("/fonts/Shabnam-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src: url("/fonts/Shabnam-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "ShabnamFA", "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-body: "ShabnamFA", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --navy: #0f2c6b;
  --navy-deep: #091d49;
  --ink: #0b1930;
  --ink-body: #3c4a63;
  --muted: #55657d;
  --cyan: #14839e;
  --cyan-bright: #2bb8d4;
  --cyan-soft: #ecfeff;
  --green: #137333;
  --green-dark: #0d5c27;
  --green-ring: #127858;
  --green-dot: #16a34a;
  --green-soft: #e6f4ea;
  --green-border: #b7dfc1;
  --amber-ink: #854d0e;
  --crit-ink: #c5221f;
  --crit-dark: #9c1614;
  --crit-soft: #fce8e6;
  --crit-border: #f5b7b1;
  --bg: #ffffff;
  --surface: #f8fafd;
  --surface-hover: #f1f5f9;
  --capsule-bg: #e9eff7;
  --line: rgba(15, 44, 107, 0.09);
  --line-strong: rgba(15, 44, 107, 0.15);
  --shadow-sm: 0 4px 16px -4px rgba(11, 25, 48, 0.05);
  --shadow-md: 0 14px 36px -12px rgba(11, 25, 48, 0.09);
  --shadow-lg: 0 24px 64px -16px rgba(11, 25, 48, 0.14);

  --wrap: 1200px;
  --wrap-bento: 1120px;
  --wrap-narrow: 920px;
  --pad: clamp(1.15rem, 3.5vw, 2.5rem);
  --sec-pad: clamp(3rem, 5.5vw, 4.5rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  font-synthesis: none;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="fa"] body {
  line-height: 1.72;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
}

html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3,
html[lang="fa"] h4 {
  letter-spacing: 0;
}

button, input, select, textarea {
  font-family: var(--font-body);
  font-size: inherit;
  color: inherit;
}

input::placeholder,
textarea::placeholder {
  font-family: var(--font-body);
}

.en-font {
  font-family: "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
  letter-spacing: -0.01em;
}

.fa-font {
  font-family: "Shabnam", Tahoma, Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

[hidden] {
  display: none !important;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

bdi {
  unicode-bidi: isolate;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

.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;
}

.container {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.container-bento {
  width: min(100%, var(--wrap-bento));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.container-narrow {
  width: min(100%, var(--wrap-narrow));
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ================= MINIMAL STICKY HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: height 0.2s var(--ease);
}

.site-header.scrolled .nav-inner {
  height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18.5px;
  letter-spacing: -0.02em;
  color: var(--navy);
  flex-shrink: 0;
}

html[lang="fa"] .brand {
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  flex-shrink: 0;
}

.brand-dot {
  color: var(--cyan);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-tab {
  padding: 7px 14px;
  border-radius: var(--pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-body);
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.nav-tab:hover {
  color: var(--navy);
  background: var(--surface);
}

.nav-tab.is-active {
  color: var(--navy);
  background: var(--surface);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ================= UNIFIED BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: var(--pill);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.btn-primary {
  background: var(--navy);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--navy-deep);
}

.btn-ghost {
  background: #ffffff;
  color: var(--ink-body);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--surface);
}

.btn-sm {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 13.5px;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-close-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-sm);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-center,
  .nav-right .hide-sm {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
}

/* ================= SECTION HEAD CONVENTION ================= */
.sec-head {
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

html[lang="fa"] .eyebrow {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13.5px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1.5px;
  background: var(--cyan-bright);
  border-radius: 2px;
}

.sec-h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.1vw, 2.35rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--navy);
  text-wrap: balance;
}

html[lang="fa"] .sec-h2 {
  line-height: 1.38;
  letter-spacing: 0;
}

.sec-h2 em,
.hero-h1 em {
  color: var(--cyan);
  font-style: normal;
}

.hdot,
.hero-dot {
  color: var(--navy);
}

.sec-lede {
  margin: 0;
  max-width: 58ch;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
}

/* ================= CLEAN AIRY HERO (NO CATEGORY CLUTTER BELOW SEARCH) ================= */
.hero-minimal {
  padding: clamp(2rem, 3.8vw, 2.9rem) 0 0.85rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--pill);
  background: #ffffff;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-body);
  margin-bottom: 16px;
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-bright);
  flex-shrink: 0;
}

.hero-h1 {
  margin: 0 auto 10px;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-wrap: balance;
}

html[lang="fa"] .hero-h1 {
  max-width: 24ch;
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1.36;
  letter-spacing: 0;
}

.hero-sub {
  margin: 0 auto 22px;
  max-width: 54ch;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.62;
}

html[lang="fa"] .hero-sub {
  max-width: 58ch;
  line-height: 1.76;
}

.search-bar-wrap {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.search-pill-input {
  width: 100%;
  height: 52px;
  padding-inline-start: 46px;
  padding-inline-end: 42px;
  border-radius: var(--pill);
  border: 1.5px solid var(--line-strong);
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  box-shadow: 0 6px 20px -6px rgba(15, 44, 107, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-pill-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(43, 184, 212, 0.16);
}

.search-icon {
  position: absolute;
  inset-inline-start: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
}

/* Horizontal Category Strip Used on /rankings Page Only */
.cat-strip {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding: 2px 0 6px;
  scrollbar-width: none;
}

.cat-strip::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-body);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.cat-pill:hover {
  color: var(--navy);
  border-color: var(--line-strong);
  background: var(--surface);
}

.cat-pill.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
  font-weight: 600;
}

/* ================= DIRECTORY TOOLBAR & BENTO BRAND ROW CARDS ================= */
.directory-sec {
  padding: 1rem 0 var(--sec-pad);
}

.directory-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-select {
  height: 36px;
  padding-inline: 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-body);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  max-width: 235px;
}

.pill-select:focus {
  outline: none;
  border-color: var(--navy);
}

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

/* Signature Hybrid Bento Brand Card */
.needo-bento-card {
  background: #ffffff;
  border: 1px solid rgba(15, 44, 107, 0.13);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 4px 18px -6px rgba(11, 25, 48, 0.05);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.needo-bento-card:hover {
  border-color: rgba(15, 44, 107, 0.24);
  box-shadow: var(--shadow-md);
}

.bento-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.bento-identity-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 360px;
}

/* 68x68 Circular Avatar + Overlapping Rank Badge */
.bento-avatar-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
}

.bento-avatar-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid #dbe4f0;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(11, 25, 48, 0.06);
}

.bento-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-mono {
  font-family: "Google Sans", "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.bento-rank-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  height: 23px;
  min-width: 30px;
  padding: 0 7px;
  border-radius: var(--pill);
  background: #eef4fb;
  color: var(--navy);
  border: 1.5px solid #cbd8ea;
  box-shadow: 0 2px 6px rgba(11, 25, 48, 0.1);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
  z-index: 2;
}

.bento-rank-badge.is-rank-1 {
  background: linear-gradient(135deg, #f9e8be 0%, #edd18b 100%);
  color: #6b4208;
  border-color: #dec074;
}

.bento-rank-badge.is-rank-2 {
  background: linear-gradient(135deg, #f1f5f9 0%, #dde6f0 100%);
  color: #1e3a5f;
  border-color: #c3d0e0;
}

.bento-rank-badge.is-rank-3 {
  background: linear-gradient(135deg, #f7e6d5 0%, #ebd0b5 100%);
  color: #723b13;
  border-color: #d9b694;
}

.bento-title-actions {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.bento-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.bento-brand-h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--navy);
}

html[lang="fa"] .bento-brand-h3 {
  letter-spacing: 0;
}

.bento-brand-h3 a:hover {
  color: var(--cyan);
}

.bento-title-pipe {
  color: #cbd5e1;
  font-weight: 400;
  user-select: none;
}

.bento-alt-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* Concentric Location + Website Capsule & Full Review Pill */
.bento-capsules-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.concentric-capsule {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: var(--pill);
  background: var(--capsule-bg);
  border: 1px solid rgba(15, 44, 107, 0.12);
}

.loc-inner-pill {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--pill);
  background: #ffffff;
  border: 1px solid rgba(15, 44, 107, 0.08);
  color: var(--ink-body);
  font-family: var(--font-display);
  font-size: 12.8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.loc-inner-pill svg {
  color: var(--navy);
}

.capsule-ico-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(15, 44, 107, 0.08);
  color: var(--navy);
  display: inline-grid;
  place-items: center;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.capsule-ico-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.full-review-pill {
  height: 36px;
  padding: 0 15px;
  border-radius: var(--pill);
  background: #eaf3fc;
  border: 1px solid rgba(15, 44, 107, 0.16);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}

.full-review-pill:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.full-review-pill:hover .full-review-arrow {
  color: #7dd3e6;
}

.full-review-arrow {
  color: var(--cyan);
  font-size: 13.5px;
}

/* Unified Needo Score Ring + Google Reviews Dual Dock */
.dual-score-dock {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 9px 18px;
  border-radius: 18px;
  background: #fcfdff;
  border: 1px solid rgba(15, 44, 107, 0.14);
  flex-shrink: 0;
}

.dock-score-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-ring-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
}

.score-ring-val {
  position: absolute;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.dock-score-labels {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dock-score-title-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dock-score-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.score-info-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.dock-score-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.dock-divider {
  width: 1px;
  height: 36px;
  background: rgba(15, 44, 107, 0.12);
  flex-shrink: 0;
}

.dock-google-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dock-stars-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.frac-stars-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.frac-star {
  width: 16px;
  height: 16px;
}

.dock-rev-count {
  font-family: var(--font-display);
  font-size: 11.8px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.dock-big-rating {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}

/* FULL-WIDTH Green & Red Customer-Proof Grid (Zero Dead White Space!) */
.bento-proof-strip {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 44, 107, 0.08);
  width: 100%;
}

.bento-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.proof-tag {
  flex: 1 1 calc(25% - 8px);
  min-width: 215px;
  min-height: 34px;
  padding: 5px 8px 5px 12px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.4px;
  font-weight: 600;
  line-height: 1.35;
}

html[dir="rtl"] .proof-tag {
  padding: 5px 12px 5px 8px;
}

.proof-tag.is-pos {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: var(--green-dark);
}

.proof-tag.is-con {
  background: var(--crit-soft);
  border: 1px solid var(--crit-border);
  color: var(--crit-dark);
}

.proof-tag-lbl {
  min-width: 0;
  flex: 1;
}

.proof-tag-cnt {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  height: 22px;
  padding: 0 7px 0 4px;
  border-radius: var(--pill);
  background: #ffffff;
  font-family: var(--font-display);
  font-size: 11.2px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(11, 25, 48, 0.06);
}

.proof-sign-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  flex-shrink: 0;
}

.proof-tag.is-pos .proof-sign-dot {
  background: var(--green);
}

.proof-tag.is-con .proof-sign-dot {
  background: var(--crit-ink);
}

@media (max-width: 820px) {
  .dual-score-dock {
    width: 100%;
    justify-content: space-between;
    padding: 10px 14px;
  }
  .dock-stars-stack {
    align-items: flex-start;
  }
  .proof-tag {
    flex: 1 1 calc(50% - 8px);
    min-width: 160px;
  }
}

@media (max-width: 520px) {
  .needo-bento-card {
    padding: 15px;
  }
  .bento-avatar-wrap,
  .bento-avatar-circle {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
  .dual-score-dock {
    gap: 10px;
  }
  .dock-big-rating {
    font-size: 23px;
  }
  .proof-tag {
    flex: 1 1 100%;
  }
}

.score-tip-popover {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  z-index: 550;
  max-width: 340px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: var(--shadow-lg);
}

.load-more-wrap {
  margin-top: 32px;
  text-align: center;
}

/* ================= SUBTLE ALTERNATE-GROUND CONCEPT STRIP ================= */
.concept-strip {
  padding: var(--sec-pad) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 760px) {
  .concept-grid {
    grid-template-columns: 1fr;
  }
}

.concept-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.concept-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.concept-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.concept-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 48ch;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.link-arrow:hover {
  color: var(--cyan);
}

/* ================= BRAND PROFILE (/brand/:slug) ================= */
.profile-wrap {
  padding: clamp(1.8rem, 4vw, 3rem) 0 var(--sec-pad);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.back-link:hover {
  color: var(--navy);
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 5px 13px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-body);
}

.underline-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.underline-tabs::-webkit-scrollbar {
  display: none;
}

.u-tab {
  padding: 12px 2px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: -1px;
  white-space: nowrap;
}

.u-tab.is-active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.strength-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-dot);
  flex-shrink: 0;
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

@media (max-width: 680px) {
  .intel-grid {
    grid-template-columns: 1fr;
  }
}

.intel-panel {
  padding: 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.intel-panel h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic-list {
  display: grid;
  gap: 12px;
}

.topic-item-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.topic-item-desc {
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--muted);
}

.hist-box {
  padding: 20px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #ffffff;
  margin-bottom: 26px;
}

.hist-row {
  display: grid;
  grid-template-columns: 48px 1fr 56px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
  font-variant-numeric: tabular-nums;
}

.hist-track {
  height: 7px;
  border-radius: var(--pill);
  background: var(--surface-hover);
  overflow: hidden;
}

.hist-fill {
  height: 100%;
  border-radius: var(--pill);
  background: var(--navy);
}

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

@media (max-width: 600px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

.photo-frame {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviews-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 740px) {
  .reviews-split {
    grid-template-columns: 1fr;
  }
}

.review-col-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-card {
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 14px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}

.review-author {
  font-weight: 600;
  color: var(--ink);
}

.review-stars {
  color: var(--navy);
  font-weight: 600;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.review-text {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-body);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 36px;
}

@media (max-width: 640px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

.spec-block {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.spec-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

html[lang="fa"] .spec-label {
  text-transform: none;
  letter-spacing: 0;
}

.spec-val {
  font-size: 15px;
  color: var(--ink);
}

/* ================= LOYALTY CLUB & PARTNERS (/club & /partners) ================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}

@media (max-width: 820px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  padding: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--navy);
}

.step-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.club-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .club-split {
    grid-template-columns: 1fr;
  }
}

.pass-preview-card {
  border-radius: var(--r-lg);
  padding: 28px;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.pass-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pass-tag {
  padding: 4px 11px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.pass-balance-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.pass-balance-val {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 20px;
  font-variant-numeric: tabular-nums;
}

.pass-sim-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pass-sim-btn {
  padding: 6px 12px;
  border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.pass-sim-btn.is-active {
  background: #ffffff;
  color: var(--navy);
  border-color: #ffffff;
  font-weight: 600;
}

.pass-ledger {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 14px;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}

.pass-ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
}

.panel-box {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: #ffffff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-body);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  font-size: 16px;
  color: var(--ink);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(43, 184, 212, 0.15);
}

.banner {
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  margin-bottom: 14px;
}

.banner.ok {
  background: var(--green-soft);
  color: var(--green);
}

.banner.err {
  background: #fee4e2;
  color: #b42318;
}

/* ================= MODAL & MOBILE DRAWER ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(11, 25, 48, 0.48);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: min(100%, 500px);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #ffffff;
  padding: 20px var(--pad) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.28s var(--ease), visibility 0.28s;
}

html[dir="rtl"] .mobile-drawer {
  transform: translateX(-102%);
}

.mobile-drawer.is-open,
html[dir="rtl"] .mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer-links a {
  display: block;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

/* ================= CALM MINIMAL FOOTER ================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 0 32px;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--navy);
}

.footer-bottom {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

.footer-credit a {
  color: var(--navy);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
