:root {
  /* پالت ریزبین: بنفش/نیلی به‌عنوان تنها رنگ اصلی + کهربایی برای CTA ثانویه، روی زمینه‌ی کرم گرم */
  --rz-ink: #211c3a;
  --rz-ink-soft: #5a5470;
  --rz-bg: #faf8f4;
  --rz-bg-alt: #f1edf9;
  --rz-primary: #4f3cc9;
  --rz-primary-dark: #3c2da3;
  --rz-amber: #d98c2b;
  --rz-line: #e7e2f2;
  --rz-card: #ffffff;
}

html {
  font-size: 14px;
}

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--rz-bg);
  color: var(--rz-ink);
}

h1, h2, h3, h4, h5, .navbar-brand {
  font-weight: 800;
  letter-spacing: -.01em;
}

/* ---------- ناوبری ---------- */
.navbar {
  background: var(--rz-bg) !important;
  border-bottom: 1px solid var(--rz-line) !important;
}

.navbar-brand {
  color: var(--rz-ink) !important;
  font-size: 1.4rem;
}

.nav-link {
  font-weight: 600;
  position: relative;
  transition: color .2s ease;
}

.nav-link:hover {
  color: var(--rz-primary) !important;
}

.nav-link.active-link::after {
  content: "";
  position: absolute;
  right: .75rem;
  left: .75rem;
  bottom: -2px;
  height: 2px;
  background: var(--rz-primary);
  border-radius: 2px;
}

/* ---------- هیرو + سرچ‌باکس شیک ---------- */
.rz-hero {
  background: radial-gradient(120% 140% at 20% 0%, var(--rz-bg-alt) 0%, var(--rz-bg) 65%);
  border-radius: 28px;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  margin-top: 1rem;
}

.rz-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: .5rem;
}

.rz-hero .lead {
  color: var(--rz-ink-soft);
  font-weight: 500;
}

.rz-search {
  max-width: 640px;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--rz-card);
  border: 1px solid var(--rz-line);
  border-radius: 999px;
  padding: .5rem .5rem .5rem 1.5rem;
  box-shadow: 0 12px 30px -14px rgba(79, 60, 201, .28);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.rz-search:focus-within {
  border-color: var(--rz-primary);
  box-shadow: 0 16px 36px -12px rgba(79, 60, 201, .4);
}

.rz-search-icon {
  color: var(--rz-ink-soft);
  flex-shrink: 0;
}

.rz-search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: var(--rz-ink);
  min-width: 0;
}

.rz-search button {
  border: none;
  background: var(--rz-primary);
  color: #fff;
  font-weight: 700;
  padding: .7rem 1.6rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s ease, transform .15s ease;
}

.rz-search button:hover { background: var(--rz-primary-dark); }
.rz-search button:active { transform: scale(.97); }

.rz-search-examples {
  margin-top: .9rem;
  font-size: .85rem;
  color: var(--rz-ink-soft);
  min-height: 1.4em;
}

.rz-search-examples .rz-typed-cursor {
  display: inline-block;
  width: 1px;
  margin-inline-start: 2px;
  background: var(--rz-ink-soft);
  animation: rz-blink 1s step-start infinite;
}

@keyframes rz-blink {
  50% { opacity: 0; }
}

/* ---------- عنوان بخش با نوار تأکیدی ---------- */
.rz-section-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 2.5rem 0 1.25rem;
}

.rz-section-title .bar {
  width: 4px;
  height: 1.5rem;
  background: var(--rz-primary);
  border-radius: 2px;
}

.rz-section-title h2, .rz-section-title h4 {
  margin: 0;
  font-size: 1.4rem;
}

/* ---------- بج‌های دسته/امتیاز ---------- */
.rz-pill {
  display: inline-block;
  padding: .3em .85em;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background: var(--rz-bg-alt);
  color: var(--rz-primary);
}

.rizbin-badge {
  display: inline-block;
  padding: .35em .85em;
  border-radius: 999px;
  font-weight: 700;
}

.rizbin-verdict-buy { background: #e6f7ed; color: #17803d; }
.rizbin-verdict-wait { background: #fff8e1; color: #9a6d00; }
.rizbin-verdict-avoid { background: #fdecec; color: #b3261e; }

.rizbin-score-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--rz-primary), var(--rz-primary-dark));
  box-shadow: 0 10px 22px -8px rgba(79, 60, 201, .55);
}

/* ---------- کارت‌ها ---------- */
.card {
  border: 1px solid var(--rz-line);
  border-radius: 18px;
  background: var(--rz-card);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card.shadow-sm {
  box-shadow: 0 8px 24px -16px rgba(33, 28, 58, .25) !important;
}

a.card:hover, .card-hoverable:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(79, 60, 201, .35) !important;
}

.btn-primary {
  background: var(--rz-primary);
  border-color: var(--rz-primary);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--rz-primary-dark);
  border-color: var(--rz-primary-dark);
}

.btn-outline-primary {
  color: var(--rz-primary);
  border-color: var(--rz-primary);
}

.btn-outline-primary:hover {
  background: var(--rz-primary);
  border-color: var(--rz-primary);
}

.rz-btn-amber {
  background: var(--rz-amber);
  border-color: var(--rz-amber);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
}

.rz-btn-amber:hover {
  background: #b9741f;
  border-color: #b9741f;
  color: #fff;
}

/* ---------- تصویر جایگزین محصول (تا وقتی عکس واقعی نداریم) ---------- */
.rz-thumb {
  border-radius: 14px 14px 0 0;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.rz-thumb-1 { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.rz-thumb-2 { background: linear-gradient(135deg, #fef3e2, #fde3b8); }
.rz-thumb-3 { background: linear-gradient(135deg, #e6f7ed, #c9ecd6); }
.rz-thumb-4 { background: linear-gradient(135deg, #fde8e8, #fbd0d0); }

/* ---------- کارت ویژه‌ی وسط (الهام از چیدمان Puva: کارت بزرگ با تصویر و کپشن روی آن) ---------- */
.rz-featured-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(160deg, var(--rz-primary), #241a5e);
  box-shadow: 0 16px 32px -14px rgba(79, 60, 201, .55);
}

.rz-featured-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.18), transparent 60%);
}

.rz-featured-card .rz-thumb-emoji {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  font-size: 2.5rem;
  opacity: .9;
}

.rz-featured-card .rz-pill {
  background: rgba(255,255,255,.18);
  color: #fff;
  align-self: flex-start;
  margin-bottom: .75rem;
  position: relative;
}

.rz-featured-card h5 {
  position: relative;
  color: #fff;
  margin-bottom: .25rem;
}

.rz-featured-card p, .rz-featured-card .rz-featured-score {
  position: relative;
}

/* ---------- تب‌های دسته‌بندی ---------- */
.rz-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.rz-tab {
  padding: .5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--rz-line);
  background: var(--rz-card);
  color: var(--rz-ink-soft);
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s ease;
}

.rz-tab:hover {
  border-color: var(--rz-primary);
  color: var(--rz-primary);
}

.rz-tab.active {
  background: var(--rz-primary);
  border-color: var(--rz-primary);
  color: #fff;
}

/* ---------- بخش دسته‌ها با گرادیان (الهام از "Top Categories" پووا) ---------- */
.rz-categories-band {
  border-radius: 28px;
  padding: 3rem 1.5rem;
  margin: 3rem 0;
  text-align: center;
  background: radial-gradient(120% 140% at 15% 15%, #ddd6fe 0%, #c7d2fe 40%, var(--rz-bg) 75%);
}

.rz-categories-band h3 {
  margin-bottom: 2rem;
}

.rz-category-tile {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  display: block;
  color: var(--rz-ink);
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}

.rz-category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -16px rgba(33, 28, 58, .35);
  color: var(--rz-primary);
}

/* کاشی دسته‌ای که هنوز فعال نیست — قابل کلیک به نظر نمی‌رسد. */
.rz-category-tile-soon {
  opacity: .55;
  cursor: default;
}

.rz-category-tile-soon:hover {
  transform: none;
  box-shadow: none;
  color: var(--rz-ink);
}

.rz-category-tile .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: .5rem;
}

.rz-category-tile small {
  display: block;
  font-weight: 500;
  color: var(--rz-ink-soft);
  margin-top: .25rem;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--rz-primary);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

footer.footer {
  background: var(--rz-bg-alt);
  border-color: var(--rz-line) !important;
}

.progress { background: var(--rz-bg-alt); }
.progress-bar { background: var(--rz-primary) !important; }

.badge.bg-primary { background: var(--rz-primary) !important; }
.badge.bg-success { background: #17803d !important; }
