:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #ff385c;
  --gold: #d4af37;
  --border: #e5e7eb;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Vazirmatn", "IRANSans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

body.rtl { direction: rtl; text-align: right; }

a { color: inherit; }

.nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.logo {
  display: inline-flex;
  align-items: center;
  width: 148px;
  height: 46px;
  text-decoration: none;
  flex: 0 0 auto;
}
.logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

@media (max-width: 420px) {
  .logo {
    width: 132px;
    height: 42px;
  }
  .logo img {
    max-height: 42px;
  }
}
.menu-toggle { display: none; }
.hamburger {
  width: 38px;
  height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.hamburger span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-menu {
  position: absolute;
  top: 54px;
  right: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.nav-menu a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}
.menu-toggle:checked ~ .nav-menu { display: flex; }

.hero {
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.65));
  background-size: cover;
  background-position: center;
  padding: 64px 6vw 72px;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-content h1 {
  font-size: clamp(28px, 5vw, 46px);
  margin: 0 0 12px;
  font-weight: 700;
}
.hero-content p {
  margin: 0 0 20px;
  color: #f3f4f6;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: none;
  border-radius: 32px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 56, 92, 0.3);
}
.btn.ghost {
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  background: transparent;
}
.btn.secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}
.btn:active { transform: scale(0.98); }

.search-section {
  margin-top: -32px;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.search-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid #eef2f7;
  min-height: 56px;
}
.search-field label {
  font-size: 11px;
  color: var(--muted);
}
.search-field input,
.search-field select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
}
.search-btn {
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  min-height: 52px;
}

.section { padding: 32px 0; }
.section-head { margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 20px; }

.cards-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.cards-scroll::-webkit-scrollbar { height: 8px; }
.cards-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }

.model-card {
  min-width: 220px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  scroll-snap-align: start;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.model-card.promoted {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.2);
}
.model-card:active { transform: scale(0.98); }
.model-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Search results: horizontal swipeable gallery */
.model-media-scroll {
  width: 100%;
  height: 200px;
  display: flex;
  gap: 10px;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  /* Simple horizontal scroll (no snapping) */
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
}
.model-media-scroll::-webkit-scrollbar { height: 0; }
.model-media-scroll img {
  flex: 0 0 88%;
  width: 88%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

@media (max-width: 520px) {
  /* Mobile: make search-result image box much taller */
  .search-result-card .model-media-scroll { height: 60vh; }
  .search-result-card > img { height: 60vh; }
  .search-result-card .model-placeholder { height: 60vh; }

  /* Slightly bigger peek on small screens */
  .search-result-card .model-media-scroll img { flex-basis: 92%; width: 92%; }
}
.model-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(212, 175, 55, 0.9);
  color: #1b1b1b;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.model-badge.promoted {
  background: rgba(255, 200, 90, 0.95);
}
.model-meta { padding: 12px; }
.model-title { font-weight: 600; font-size: 14px; }
.model-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.model-sub.secondary { font-size: 11px; color: #9ca3af; }
.model-sub.price { color: #1f2937; font-weight: 600; }
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.model-placeholder {
  height: 200px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 12px;
}

.why-grid {
  display: grid;
  gap: 12px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.why-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 10px;
}
.why-card h3 { margin: 0 0 6px; font-size: 16px; }
.why-card p { margin: 0; color: var(--muted); font-size: 13px; }

.about p { margin: 0; color: var(--muted); }

.seo-intro {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}
.seo-intro h2 {
  margin: 0 0 10px;
  font-size: 22px;
}
.seo-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}
.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.topic-link-grid {
  display: grid;
  gap: 10px;
}
.topic-link {
  display: block;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}
.topic-link strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.topic-link span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.final-cta .cta-card {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
}
.final-cta h2 { margin: 0 0 14px; font-size: 22px; }

.footer {
  padding: 26px 0 34px;
  background: #f9fafb;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: max-content;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
}
.footer-logo img {
  display: block;
  height: 36px;
  width: auto;
}
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  margin-left: 2px;
}
.footer p { margin: 0; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.footer-contact a span {
  color: var(--muted);
  font-size: 12px;
}
.footer .copyright {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .footer-brand {
    width: 100%;
    justify-content: space-between;
  }
  .footer-contact {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 14px;
  }
}

@media (max-width: 420px) {
  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

.no-results { color: var(--muted); }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.page-link {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.page-link.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.blog-shell,
.article-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 56px;
}
.blog-header,
.article-header {
  max-width: 780px;
  margin-bottom: 28px;
}
.blog-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.blog-header h1,
.article-header h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.25;
}
.blog-header p,
.article-header p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.blog-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.blog-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.blog-card-body {
  padding: 18px;
}
.blog-card h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.6;
}
.blog-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}
.blog-card span,
.article-back {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.blog-empty {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 26px;
  color: var(--muted);
}
.article-page {
  max-width: 820px;
  margin: 0 auto;
}
.article-back {
  display: inline-flex;
  margin-bottom: 18px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.article-meta span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.article-tags span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 13px;
}
.article-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  margin: 18px 0 28px;
}
.article-content {
  color: var(--text);
  font-size: 17px;
  line-height: 2.1;
}
.article-toc {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 18px 20px;
  margin: 22px 0 30px;
  box-shadow: 0 10px 26px rgba(17,24,39,0.05);
}
.article-toc h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.article-toc ol {
  margin: 0;
  padding-right: 20px;
}
.article-toc li {
  margin-bottom: 8px;
  color: var(--muted);
}
.article-toc a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.article-content h2 {
  scroll-margin-top: 92px;
  margin: 34px 0 12px;
  font-size: 26px;
  line-height: 1.5;
}
.article-content h3 {
  margin: 26px 0 10px;
  font-size: 21px;
  line-height: 1.5;
}
.article-content p {
  margin: 0 0 16px;
}
.article-content ul {
  margin: 0 0 18px;
  padding-right: 22px;
}
.article-content li {
  margin-bottom: 8px;
}
.article-cta {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.article-cta h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.membership-page {
  background: #fff;
}
.membership-hero {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.72)),
    url("/static/hero-20260627.jpg?v=20260627");
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 76px 6vw 92px;
}
.membership-hero-inner {
  width: min(760px, 100%);
}
.membership-kicker {
  margin: 0 0 10px;
  color: #f9fafb;
  font-weight: 700;
}
.membership-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(31px, 5vw, 54px);
  line-height: 1.35;
}
.membership-hero p {
  margin: 0 0 24px;
  color: #f3f4f6;
  font-size: 17px;
  line-height: 2;
}
.membership-summary {
  margin-top: -48px;
}
.membership-summary-grid,
.option-grid {
  display: grid;
  gap: 14px;
}
.membership-summary-grid > div,
.option-grid > article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}
.membership-summary-grid span {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.membership-summary-grid strong,
.option-grid h3,
.step-item h3 {
  display: block;
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text);
}
.membership-summary-grid p,
.option-grid p,
.step-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}
.step-list {
  display: grid;
  gap: 12px;
}
.step-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}
.step-item > span {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 56, 92, 0.1);
  color: var(--accent);
  font-weight: 700;
}

@media (min-width: 960px) {
  .nav-inner { padding: 14px 24px; }
  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 20px;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
  .hamburger { display: none; }

  .hero { text-align: right; padding: 80px 6vw 96px; }
  .hero-inner { margin: 0; }
  .hero-actions { flex-direction: row; justify-content: flex-start; }

  .search-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px;
  }
  .search-field { flex: 1 1 0; min-height: 56px; }
  .search-btn { min-height: 56px; padding: 12px 26px; }

  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .membership-summary-grid,
  .option-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .topic-link-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-header h1,
  .article-header h1 {
    font-size: 48px;
  }
}
