:root {
  --ink: #0a1628;
  --navy: #102a4a;
  --navy-deep: #0b1f3a;
  --slate: #4a5a6b;
  --muted: #7a8796;
  --line: #e4e9ef;
  --surface: #f2f5f8;
  --white: #ffffff;
  --amber: #ff6b1a;
  --amber-hover: #e85a0d;
  --sky: #1f8fff;
  --sky-hover: #1576d9;
  --teal: #0d9f6e;
  --teal-soft: #e8f7f1;
  --rose: #c43d4b;
  --rose-soft: #fceeef;
  --gold: #c9922a;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 8px 28px rgba(10, 22, 40, 0.08);
  --shadow-sm: 0 2px 10px rgba(10, 22, 40, 0.06);
  --font-display: "Vazirmatn", Tahoma, sans-serif;
  --font-body: "Vazirmatn", Tahoma, sans-serif;
  --max: 1100px;
  --header-h: 68px;
  --float-h: 88px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--float-h) + 12px);
  overflow-x: clip;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.45;
  margin: 0 0 0.65em;
  color: var(--navy-deep);
  font-weight: 800;
}

h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
}

h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-top: 2.4rem;
  padding-top: 0.35rem;
  scroll-margin-top: 96px;
}

h3 {
  font-size: 1.08rem;
  margin-top: 1.4rem;
}

p {
  margin: 0 0 1.05rem;
  color: var(--slate);
}

ul,
ol {
  color: var(--slate);
}

.container {
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -40px;
  background: var(--navy-deep);
  color: white;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.15rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
}

.btn-primary {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(31, 143, 255, 0.28);
}

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

.btn-app {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(255, 107, 26, 0.3);
}

.btn-app:hover {
  background: var(--amber-hover);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.badge-rank {
  background: var(--teal);
  color: white;
}

.badge-score {
  background: var(--navy-deep);
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy-deep);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #1a4a7a 0%, #0d6e4f 70%, #ff6b1a 160%);
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-size: 1rem;
}

.logo-text small {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.nav {
  display: none;
  gap: 1rem;
  align-items: center;
}

.nav a {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--slate);
}

.nav a:hover {
  color: var(--navy-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  margin: 3px 0;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.5rem 0 1rem;
  border-top: 1px solid var(--line);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-weight: 700;
  padding: 0.45rem 0.15rem;
}

.promo-strip {
  background: linear-gradient(90deg, #0b1f3a, #163a63 55%, #1f4d7a);
  color: white;
  font-size: 0.88rem;
}

.promo-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  text-align: center;
}

.promo-strip strong {
  color: #ffc48a;
}

.page-shell {
  padding: 1.15rem 0 2.5rem;
  background:
    radial-gradient(ellipse 70% 45% at 90% -8%, rgba(31, 143, 255, 0.08), transparent 50%),
    radial-gradient(ellipse 55% 35% at 8% 0%, rgba(255, 107, 26, 0.07), transparent 45%),
    var(--surface);
}

.layout-2col {
  display: grid;
  gap: 1.25rem;
}

.layout-2col > *,
.main-article,
.sidebar-col,
.hero,
.prose,
.media-split,
.compare-table {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 980px) {
  .layout-2col {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

.main-article {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1rem 2.25rem;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sidebar-col {
  display: grid;
  gap: 1rem;
}

.side-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.side-card h2 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.side-card.sticky {
  position: sticky;
  top: 84px;
}

.subtabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 1.1rem;
  scrollbar-width: thin;
}

.subtabs a {
  flex: 0 0 auto;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--surface);
  color: var(--slate);
}

.subtabs a.active {
  background: var(--navy-deep);
  color: white;
}

.rating-grid {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.rating-row {
  display: grid;
  grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 44px;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.88rem;
}

.rating-row span:first-child {
  color: var(--slate);
  font-weight: 700;
}

.bar {
  height: 8px;
  background: #e8edf2;
  border-radius: 999px;
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), #1bc48a);
  border-radius: inherit;
}

.rating-row strong {
  text-align: left;
  color: var(--navy-deep);
}

.global-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 1.5rem;
}

.global-score .score {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
}

.overview-groups {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.overview-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.overview-group h3 {
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: var(--navy-deep);
  color: white;
  font-size: 0.95rem;
}

.overview-group .fact-grid {
  margin: 0;
  padding: 0.75rem;
  background: #fff;
}

.content-figure {
  margin: 1.15rem 0 1.4rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b1f3a;
}

.content-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 420px;
}

.content-figure.portrait img {
  max-height: 520px;
  object-position: center top;
}

.media-split {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

@media (min-width: 760px) {
  .media-split {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 520px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.blog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.blog-card-body {
  padding: 0.85rem;
}

.blog-card-body h2 {
  font-size: 0.98rem;
  margin: 0 0 0.4rem;
}

.blog-card-body p {
  margin: 0;
  font-size: 0.84rem;
}

.bm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.bm-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.55rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.bm-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bm-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.bm-name {
  font-weight: 800;
  font-size: 0.9rem;
}

.bm-bonus {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0.2rem 0 0.45rem;
}

@media (min-width: 760px) {
  .main-article {
    padding: 1.6rem 1.85rem 2.75rem;
  }

  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.hero {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 1.25rem;
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1fr 1.05fr;
  }
}

.rating-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.55rem;
  min-height: 200px;
}

.rating-card .rank {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
}

.brand-logo {
  width: 150px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a3a5c, #0d6e4f);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.bonus-line {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0;
}

.cta-panel {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(31, 143, 255, 0.16), transparent 42%),
    linear-gradient(145deg, #0b1f3a 0%, #163656 100%);
  color: white;
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  min-height: 200px;
}

.cta-panel h2 {
  color: white;
  margin: 0;
  font-size: 1.25rem;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  font-size: 0.92rem;
}

.cta-panel .btn-row {
  display: grid;
  gap: 0.5rem;
}

.meta-line {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0 0 1.15rem;
}

.pros-cons {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

@media (min-width: 700px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.pc-box {
  border-radius: var(--radius);
  padding: 0.9rem;
}

.pc-box h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.pc-box.pros {
  background: var(--teal-soft);
}

.pc-box.pros h3 {
  color: #0a7a55;
}

.pc-box.cons {
  background: var(--rose-soft);
}

.pc-box.cons h3 {
  color: var(--rose);
}

.pc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.pc-list li {
  background: white;
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  font-size: 0.9rem;
  color: var(--ink);
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.pc-list .icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
}

.pros .icon {
  background: var(--teal);
  color: white;
}

.cons .icon {
  background: var(--rose);
  color: white;
}

.prose {
  font-size: 1.02rem;
}

.prose strong {
  color: var(--ink);
}

.prose a {
  color: #1768b5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose li {
  margin-bottom: 0.35rem;
}

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.35rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 1rem 0 1.4rem;
}

@media (min-width: 480px) {
  .fact-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

.fact {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
  background: white;
}

.fact dt {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0 0 0.3rem;
  font-weight: 800;
}

.fact dd {
  margin: 0;
  font-weight: 800;
  color: var(--navy-deep);
  font-size: 0.95rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.4rem;
  display: grid;
  gap: 0.7rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.steps li::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1.25rem;
}

.tag-cloud span {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.compare-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
  text-align: center;
}

.compare-table th {
  background: var(--navy-deep);
  color: white;
  font-weight: 800;
}

.compare-table tr:nth-child(even) td {
  background: var(--surface);
}

.compare-table td:first-child,
.compare-table th:first-child {
  text-align: right;
  font-weight: 700;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
  background: white;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy-deep);
}

.faq details p {
  margin: 0.65rem 0 0;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
  }
}

.site-footer h3 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: white;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-row a {
  display: inline-flex !important;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  margin: 0 !important;
}

.disclaimer {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.float-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.55rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(11, 31, 58, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.float-cta-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 0.45rem;
}

.float-cta-meta {
  margin: 0;
  display: none;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
}

.float-cta-meta strong {
  color: #ffc48a;
}

.float-cta-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.float-cta-actions .btn {
  width: 100%;
  padding: 0.8rem 0.4rem;
  font-size: 0.82rem;
  line-height: 1.25;
}

@media (min-width: 700px) {
  .float-cta-meta {
    display: flex;
  }

  .float-cta-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .float-cta-actions {
    min-width: min(420px, 100%);
  }
}

@media (max-width: 759px) {
  :root {
    --header-h: 60px;
    --float-h: 72px;
  }

  .header-inner {
    height: var(--header-h);
  }

  .logo-text small {
    display: none;
  }

  .main-article {
    padding: 1rem 0.85rem 2rem;
    border-radius: 14px;
  }

  .page-shell {
    padding: 0.85rem 0 2rem;
  }

  .rating-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 40px;
    font-size: 0.8rem;
  }

  .rating-row span:first-child {
    font-size: 0.78rem;
  }

  .cta-panel,
  .rating-card {
    min-height: 0;
  }

  .cta-panel .btn-row .btn,
  .inline-cta .btn {
    width: 100%;
  }

  .inline-cta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .promo-strip {
    font-size: 0.8rem;
  }

  .subtabs {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .subtabs::-webkit-scrollbar {
    display: none;
  }

  h1 {
    font-size: clamp(1.35rem, 6.2vw, 1.7rem);
  }
}
