/* Rahboom global styles — light theme, RTL */
:root {
  --brand: #0ea5e9;
  --bg: #f8fafc;
  --text: #0f172a;
}

html, body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { -webkit-tap-highlight-color: transparent; }

img, video { max-width: 100%; height: auto; }

/* Smooth focus rings, RTL friendly */
input:focus, select:focus, textarea:focus, button:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

/* Persian numerals in inputs */
input[type="number"] { font-variant-numeric: tabular-nums; }

/* Slider helpers */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Line clamp utility (in case Tailwind plugin not loaded) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================================
   Panel shell — collapsible RTL sidebar (admin / owner / consumer)
   Re-theme the whole panel UI by editing the --ps-* variables below.
   ============================================================================ */
:root {
  --ps-w: 266px;
  --ps-rail: 78px;
  --ps-bg1: #0f172a;     /* slate-900 */
  --ps-bg2: #082f49;     /* sky-950   */
  --ps-accent: #0ea5e9;  /* brand-500 */
  --ps-accent2: #0284c7; /* brand-600 */
  --ps-text: #cbd5e1;    /* slate-300 */
  --ps-muted: #8193a7;
}

.panel-shell { display: flex; align-items: stretch; min-height: 100vh; }
.panel-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* 1rem on phones, not 1.5: 24px of gutter on each side of a 375px screen cost
   more than a tenth of the usable width, which is exactly where the tables and
   stat tiles were tightest. */
.panel-content { width: 100%; max-width: 1280px; margin-inline: auto; padding: 1rem; }
@media (min-width: 640px)  { .panel-content { padding: 2rem; } }
@media (min-width: 1024px) { .panel-content { padding: 2rem 2.5rem; } }

.panel-sidebar {
  flex: 0 0 var(--ps-w); width: var(--ps-w);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: linear-gradient(198deg, var(--ps-bg1), var(--ps-bg2));
  color: var(--ps-text); z-index: 40;
  box-shadow: 0 0 50px -20px rgba(8, 47, 73, .6);
  transition: width .28s cubic-bezier(.4, 0, .2, 1), flex-basis .28s cubic-bezier(.4, 0, .2, 1), transform .28s ease;
}

/* brand / head */
.ps-head { display: flex; align-items: center; gap: .5rem; padding: 1.1rem 1rem .85rem; }
.ps-brand { display: flex; align-items: center; gap: .6rem; min-width: 0; color: #fff; }
.ps-logo {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--ps-accent), var(--ps-accent2));
  box-shadow: 0 8px 18px -7px rgba(14, 165, 233, .75);
}
.ps-logo img { width: 100%; height: 100%; object-fit: cover; }
.ps-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ps-brand-title { font-weight: 800; color: #fff; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-brand-sub { font-size: .7rem; color: var(--ps-muted); white-space: nowrap; }
.ps-collapse { margin-inline-start: auto; color: var(--ps-muted); padding: .35rem; border-radius: 9px; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; }
.ps-collapse:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* keyboard-only focus ring inside the sidebar (no stuck outline on mouse click) */
.panel-sidebar button:focus { outline: none; }
.panel-sidebar button:focus-visible { outline: 2px solid var(--ps-accent); outline-offset: 2px; }

/* nav */
.ps-nav { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: .35rem .6rem 1rem; }
.ps-nav::-webkit-scrollbar { width: 6px; }
.ps-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 3px; }

.ps-link, .ps-group-head {
  width: 100%; display: flex; align-items: center; gap: .7rem;
  padding: .6rem .7rem; margin: .12rem 0; border-radius: 12px;
  color: var(--ps-text); font-size: .9rem; font-weight: 500; font-family: inherit;
  background: transparent; border: 0; cursor: pointer; text-align: start;
  transition: background .15s, color .15s;
}
.ps-link:hover, .ps-group-head:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.ps-link.active {
  background: linear-gradient(135deg, var(--ps-accent), var(--ps-accent2));
  color: #fff; box-shadow: 0 12px 24px -12px rgba(14, 165, 233, .9);
}
.ps-link.active .ps-ico { color: #fff; }
.ps-ico { flex: 0 0 20px; display: grid; place-items: center; color: inherit; }
.ps-label { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ps-badge { flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #f43f5e; color: #fff; font-size: .67rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.ps-link.active .ps-badge { background: rgba(255, 255, 255, .28); }

/* groups (accordion) */
.ps-group { margin-top: .05rem; }
.ps-chevron { transition: transform .25s ease; color: var(--ps-muted); flex: 0 0 16px; }
.ps-group.open > .ps-group-head .ps-chevron { transform: rotate(180deg); }
.ps-group-items { overflow: hidden; max-height: 0; transition: max-height .28s ease; }
.ps-sublink {
  display: flex; align-items: center; gap: .6rem;
  padding: .48rem .7rem; padding-inline-start: 2.1rem; margin: .1rem 0;
  border-radius: 10px; color: var(--ps-muted); font-size: .85rem;
  transition: background .15s, color .15s;
}
.ps-sublink:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.ps-sublink.active { color: #fff; background: rgba(14, 165, 233, .16); font-weight: 600; }
.ps-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; flex: 0 0 6px; }
.ps-sublink.active .ps-dot { opacity: 1; background: var(--ps-accent); }

/* footer */
.ps-foot { padding: .55rem .6rem .9rem; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: .1rem; }
.ps-user { display: flex; align-items: center; gap: .6rem; padding: .45rem .55rem; margin-bottom: .25rem; }
.ps-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; }
.ps-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ps-user-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ps-user-name { color: #fff; font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-user-role { color: var(--ps-muted); font-size: .7rem; }
.ps-foot-form { margin: 0; }
.ps-foot-link { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .7rem; border-radius: 11px; color: var(--ps-text); font-size: .87rem; font-family: inherit; background: transparent; border: 0; cursor: pointer; text-align: start; transition: background .15s, color .15s; }
.ps-foot-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.ps-logout { color: #fda4af; }
.ps-logout:hover { background: rgba(244, 63, 94, .15); color: #fff; }

/* topbar — always visible (carries the notification bell); menu+title are mobile-only */
.panel-topbar {
  display: flex; align-items: center; gap: .35rem;
  height: 56px; padding: 0 1rem; background: #fff; border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; z-index: 30;
}
.panel-overlay { display: none; }
.ps-topbar-spacer { flex: 1 1 auto; }
.ps-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: #0f172a; background: transparent; border: 0; cursor: pointer; }
.ps-icon-btn:hover { background: #f1f5f9; }
.ps-topbar-menu { display: none; }
.ps-topbar-title { display: none; font-weight: 700; color: #0f172a; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* notification bell + dropdown */
.ps-bell { position: relative; }
.ps-bell-btn { position: relative; }
.ps-bell-dot {
  position: absolute; top: 3px; inset-inline-end: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 999px; background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px #fff;
}
.ps-bell-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: 340px; max-width: calc(100vw - 1.5rem);
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 24px 48px -16px rgba(15, 23, 42, .35);
  overflow: hidden; z-index: 50;
}
.ps-bell-head { padding: .8rem 1rem; font-weight: 700; font-size: .9rem; color: #0f172a; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.ps-bell-headcount { font-size: 11px; font-weight: 700; color: #ef4444; background: #fef2f2; border-radius: 999px; padding: 2px 8px; }
.ps-bell-list { max-height: 60vh; overflow-y: auto; }
.ps-bell-empty { padding: 2rem 1rem; text-align: center; color: #94a3b8; font-size: .85rem; }
.ps-bell-item { display: block; padding: .7rem 1rem; border-bottom: 1px solid #f1f5f9; text-decoration: none; }
.ps-bell-item:hover { background: #f8fafc; }
.ps-bell-item.is-unread { background: #f0f7ff; }
.ps-bell-item.is-unread:hover { background: #e6f1ff; }
.ps-bell-item-title { font-weight: 600; font-size: .84rem; color: #0f172a; }
.ps-bell-item-body { font-size: .78rem; color: #64748b; margin-top: 2px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ps-bell-item-time { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.ps-bell-foot { display: block; text-align: center; padding: .7rem; font-size: .82rem; font-weight: 600; color: var(--ps-accent, #ea580c); text-decoration: none; background: #fff; }
.ps-bell-foot:hover { background: #f8fafc; }

/* desktop collapsed (icon rail) — rail behaviour is desktop-only */
@media (min-width: 1024px) {
  .panel-shell.ps-collapsed .panel-sidebar { width: var(--ps-rail); flex-basis: var(--ps-rail); }
  .panel-shell.ps-collapsed .ps-label,
  .panel-shell.ps-collapsed .ps-brand-text,
  .panel-shell.ps-collapsed .ps-chevron,
  .panel-shell.ps-collapsed .ps-user-text,
  .panel-shell.ps-collapsed .ps-badge { display: none; }
  .panel-shell.ps-collapsed .ps-group-items { display: none; }
  .panel-shell.ps-collapsed .ps-link,
  .panel-shell.ps-collapsed .ps-group-head,
  .panel-shell.ps-collapsed .ps-foot-link { justify-content: center; padding-inline: .6rem; }
  .panel-shell.ps-collapsed .ps-sublink { padding-inline-start: .7rem; }
  /* rail header: logo on top, the (still-clickable) expand toggle below it */
  .panel-shell.ps-collapsed .ps-head { flex-direction: column; align-items: center; gap: .55rem; padding: 1rem .4rem .65rem; }
  .panel-shell.ps-collapsed .ps-brand,
  .panel-shell.ps-collapsed .ps-user { justify-content: center; }
  .panel-shell.ps-collapsed .ps-collapse { margin-inline-start: 0; }
  .panel-shell.ps-collapsed .ps-collapse svg { transform: rotate(180deg); } /* hint: now reopens */
}

@media (prefers-reduced-motion: reduce) {
  .panel-sidebar, .ps-group-items, .ps-chevron { transition: none; }
}

/* mobile (<1024px): off-canvas drawer */
@media (max-width: 1023px) {
  .panel-topbar { padding: 0 .65rem; }
  .panel-topbar .ps-topbar-menu { display: grid; }
  .panel-topbar .ps-topbar-title { display: block; }
  /* dropdown spans the viewport width (minus a margin) so it never overflows on phones */
  .ps-bell-menu { position: fixed; top: 60px; inset-inline: .75rem; width: auto; max-width: none; }
  .panel-sidebar {
    position: fixed; top: 0; bottom: 0; right: 0; height: 100%;
    width: min(86vw, var(--ps-w)); flex-basis: auto;
    transform: translateX(100%);
    box-shadow: -16px 0 48px -12px rgba(0, 0, 0, .55);
  }
  .panel-shell.ps-drawer .panel-sidebar { transform: translateX(0); }
  .panel-shell.ps-drawer .panel-overlay { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 35; }
  /* rail toggle is desktop-only; on mobile you use the drawer instead */
  .ps-collapse { display: none; }
}

/* ============================================================
   Landing — "Deep Ocean" theme (public home page)
   Hand-written so it's never purged by Tailwind. Effects only;
   layout/spacing stays in Tailwind utilities in the EJS.
   ============================================================ */
:root {
  --ocean-teal: #0d9488;
  --ocean-teal-bright: #14b8a6;
  --ocean-navy: #1e3a5f;
  --ocean-navy-deep: #0b1726;
  --ocean-coral: #ff6b4a;
  --rb-price-color: #0f1b16;
}

/* Hero: living teal→navy gradient + soft aurora blobs */
.rb-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, #0b1726 0%, #11233b 28%, #134e4a 60%, #0d9488 100%);
  background-size: 220% 220%;
  animation: rb-gradient 20s ease infinite;
}
@keyframes rb-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.rb-hero::before, .rb-hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(72px); pointer-events: none; z-index: 0;
}
.rb-hero::before {
  width: 460px; height: 460px; background: #14b8a6; opacity: .42;
  top: -150px; inset-inline-start: -90px; animation: rb-float 15s ease-in-out infinite;
}
.rb-hero::after {
  width: 380px; height: 380px; background: #ff6b4a; opacity: .26;
  bottom: -160px; inset-inline-end: -70px; animation: rb-float 18s ease-in-out infinite reverse;
}
@keyframes rb-float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(24px, -26px); }
}
.rb-hero > * { position: relative; z-index: 1; }

/* ============================================================
   Home hero — light marketplace composition
   ============================================================ */
.rb-home-hero {
  position: relative;
  background: radial-gradient(circle at 15% 45%, rgba(255,255,255,.96) 0 18%, transparent 48%),
              linear-gradient(112deg, #f8faf9 0%, #f5fbf9 42%, #d7f8f1 100%);
}
.rb-home-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image: radial-gradient(rgba(15, 23, 42, .11) .6px, transparent .6px);
  background-size: 5px 5px; mask-image: linear-gradient(90deg, transparent, #000 32%, #000 100%);
}
.rb-home-hero > div { position: relative; z-index: 1; }
.rb-home-kicker { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid #70e4d5; color: #128a82; background: rgba(255,255,255,.35); border-radius: 999px; padding: .45rem .9rem; font-size: .85rem; font-weight: 600; }
.rb-home-kicker i, .rb-demo-callout i { width: .62rem; height: .62rem; border-radius: 999px; display: inline-block; background: #ff7357; }
.rb-home-title { color: #071226; font-size: clamp(2.1rem, 3.9vw, 3.6rem); font-weight: 700; line-height: 1.4; letter-spacing: -.045em; }
.rb-home-subtitle { color: #71859f; font-size: clamp(.95rem, 1.15vw, 1.12rem); line-height: 1.95; max-width: 44rem; }
.rb-home-cta { position: relative; overflow: hidden; background: linear-gradient(112deg, #fff 0%, #f5fffc 52%, #dffbf3 100%); border: 1px solid rgba(20,184,166,.12); }
.rb-home-cta::after { content: ""; position: absolute; inset: auto -8% -75% 20%; height: 13rem; border-radius: 50%; background: rgba(20,184,166,.13); filter: blur(34px); pointer-events: none; }
.rb-home-cta > * { position: relative; z-index: 1; }
.rb-hero-cards { transform: rotate(-1deg); }
.rb-demo-card { position: absolute; display: block; width: min(64%, 15rem); min-height: 16.5rem; padding: .85rem; border-radius: 1.35rem; color: #111827; background: #fff; border: 1px solid rgba(148,163,184,.22); box-shadow: 0 22px 28px -18px rgba(15, 23, 42, .38), 0 2px 3px rgba(15, 23, 42, .08); transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease; }
.rb-demo-card:hover { box-shadow: 0 30px 44px -20px rgba(15, 23, 42, .5); z-index: 5; }
.rb-demo-card-alt { left: 3%; bottom: 1.2rem; background: linear-gradient(#fff2eb 0 45%, #fff 45%); transform: rotate(3deg); }
.rb-demo-card-alt:hover { transform: rotate(3deg) translateY(-9px) scale(1.02); }
.rb-demo-card-ai { right: 2%; top: .3rem; background: linear-gradient(#f5eee1 0 45%, #fff 45%); transform: rotate(-5deg); }
.rb-demo-card-ai:hover { transform: rotate(-5deg) translateY(-9px) scale(1.02); }
.rb-demo-topline { display: flex; align-items: center; justify-content: flex-start; gap: .35rem; flex-wrap: wrap; }
.rb-demo-special, .rb-demo-pill { display: inline-flex; align-items: center; gap: .25rem; padding: .32rem .58rem; border-radius: 999px; background: #fff; color: #1e293b; font-size: .68rem; font-weight: 700; box-shadow: 0 4px 10px -6px rgba(15,23,42,.35); }
.rb-demo-special { background: #ff711a; color: #fff; }
.rb-demo-purple { color: #6437ca; }
.rb-demo-blue { color: #2563eb; }
.rb-demo-brand { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 2.5rem; font-size: 1rem; }
.rb-demo-logo { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: .7rem; background: #ff641d; color: #fff; font-size: 1.45rem; font-weight: 700; }
.rb-demo-claude { justify-content: flex-start; font-size: 1.3rem; direction: ltr; }
.rb-claude-mark { color: #ee704d; font-size: 1.75rem; }
.rb-demo-card h3 { margin-top: .95rem; padding-top: .8rem; border-top: 1px solid rgba(148,163,184,.17); text-align: center; font-size: .85rem; line-height: 1.75; font-weight: 700; }
.rb-demo-orange { display: block; margin-top: .3rem; color: #ff641d; font-size: 1.02rem; }
.rb-demo-price { display: block; margin-top: .3rem; color: var(--rb-price-color); direction: rtl; font-size: 1.05rem; }
.rb-demo-price small { color: #94a3b8; font-size: .65rem; font-weight: 500; }
.rb-demo-meta { display: flex; justify-content: space-between; gap: .4rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid #e8edf2; color: #8ba0b8; font-size: .68rem; }
.rb-demo-button { display: block; margin-top: 1rem; border-radius: .6rem; padding: .6rem .5rem; background: #081226; color: #fff; text-align: center; font-size: .75rem; font-weight: 700; }
.rb-demo-callout { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1rem; border-radius: 999px; background: rgba(255,255,255,.94); color: #1b273b; font-size: .82rem; font-weight: 700; box-shadow: 0 14px 24px -16px rgba(15,23,42,.35); }
.rb-demo-callout-top { left: -1%; top: 2.2rem; }
.rb-demo-callout-bottom { left: -4%; bottom: .15rem; }
@media (max-width: 639px) {
  .rb-home-title { font-size: 2.05rem; }
  .rb-demo-card { width: 66%; min-height: 14.5rem; padding: .7rem; }
  .rb-demo-brand { margin-top: 1.8rem; }
  .rb-demo-card h3 { margin-top: .7rem; padding-top: .6rem; font-size: .74rem; }
  .rb-demo-meta { font-size: .57rem; }
  .rb-demo-button { margin-top: .8rem; padding: .55rem .4rem; }
  .rb-demo-callout { font-size: .72rem; padding: .6rem .85rem; }
  .rb-demo-callout-top { left: 0; top: 1.2rem; }
  .rb-demo-callout-bottom { left: -1%; bottom: .2rem; }
}

/* AI catalogue album on the home page */
.rb-ai-album { background: #ecfff8; border-radius: 1.65rem; }
.rb-ai-album-icon { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 1rem; color: #0d9488; background: #d4f7eb; }
.rb-ai-album-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.rb-ai-home-card { display: block; overflow: hidden; border-radius: 1.3rem; background: #fff; box-shadow: 0 14px 26px -19px rgba(15,23,42,.32); transition: transform .3s ease, box-shadow .3s ease; }
.rb-ai-home-card:hover { transform: translateY(-6px); box-shadow: 0 24px 32px -18px rgba(15,23,42,.32); }
.rb-ai-home-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10; gap: .7rem; color: #171b2c; position: relative; }
.rb-ai-home-cover.has-image { display: block; padding: 0; overflow: hidden; background: #e4f3ec; }
.rb-ai-home-image { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }
.rb-ai-home-cover.claude { background: #f6eee1; }
.rb-ai-home-cover.chatgpt { background: #eef0f6; }
.rb-ai-home-cover.midjourney { background: #e8ebfb; }
.rb-ai-home-cover.figma { background: #eee7ff; }
.rb-ai-home-cover strong { font-size: 1.45rem; font-weight: 800; }
.rb-ai-home-mark { font-size: 2.2rem; line-height: 1; color: #f07852; }
.chatgpt .rb-ai-home-mark { color: #0fa88b; }
.midjourney .rb-ai-home-mark { color: #4c63be; }
.figma .rb-ai-home-mark { color: #7d50ef; }
.rb-ai-home-body { padding: 1.05rem 1.1rem 1.2rem; }
.rb-ai-home-body h3 { min-height: 2.9rem; color: #182237; font-size: 1rem; font-weight: 800; line-height: 1.8; }
.rb-ai-home-price-row { display: flex; align-items: baseline; gap: .35rem; margin-top: .55rem; min-height: 2.25rem; direction: rtl; }
.rb-ai-home-price-row strong { color: var(--rb-price-color); font-size: 1.23rem; white-space: nowrap; }
.rb-ai-home-price-row span { color: #8996a8; font-size: .68rem; }
.rb-ai-home-price-row small { margin-inline-start: auto; color: #7d8795; font-size: .82rem; }
.rb-ai-home-button { display: block; margin-top: 1.25rem; padding: .7rem .5rem; border-radius: .75rem; background: #0c162c; color: #fff; text-align: center; font-size: .8rem; font-weight: 700; }
.rb-ai-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1.7rem; padding: 0 .5rem; }
.rb-ai-step { display: flex; align-items: flex-start; gap: .7rem; color: #172238; }
.rb-ai-step > span { display: grid; place-items: center; flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: 999px; background: #0c162c; color: #fff; font-size: .8rem; font-weight: 800; }
.rb-ai-step strong { display: block; font-size: 1rem; line-height: 1.8; }
.rb-ai-step p { margin-top: .2rem; color: #718096; font-size: .78rem; line-height: 1.9; }
@media (max-width: 1023px) {
  .rb-ai-album-grid { display: flex; overflow-x: auto; padding: .2rem .2rem .7rem; scroll-snap-type: x proximity; }
  .rb-ai-home-card { flex: 0 0 min(17rem, 76vw); scroll-snap-align: start; }
}
@media (max-width: 639px) {
  .rb-ai-album { border-radius: 1.2rem; }
  .rb-ai-album-icon { width: 2.65rem; height: 2.65rem; }
  .rb-ai-album h2 { font-size: 1.25rem; }
  .rb-ai-album p { font-size: .72rem; }
  .rb-ai-steps { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.2rem; }
  /* Phone: the card was 17rem wide with a 9.3rem cover — ~72% of a 375px screen
     and taller than a thumb, so barely one plan was visible at a time and it
     dwarfed the agahi cards further down the same page. Everything scales
     together; the width now shows a second card peeking in, which is what tells
     the user the row scrolls. */
  .rb-ai-home-card { flex: 0 0 min(13.5rem, 64vw); border-radius: 1.1rem; }
  .rb-ai-home-cover { gap: .5rem; }
  .rb-ai-home-cover strong { font-size: 1rem; }
  .rb-ai-home-mark { font-size: 1.7rem; }
  .rb-ai-home-body { padding: .75rem .8rem .9rem; }
  .rb-ai-home-body h3 { min-height: 2.4rem; font-size: .82rem; line-height: 1.7; }
  .rb-ai-home-price-row { min-height: 1.9rem; margin-top: .4rem; }
  .rb-ai-home-price-row strong { font-size: 1rem; }
  .rb-ai-home-price-row small { font-size: .72rem; }
  .rb-ai-home-button { margin-top: .8rem; padding: .55rem .4rem; font-size: .72rem; border-radius: .6rem; }
}

/* Subtle grid texture overlay for the hero */
.rb-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 35%, transparent 78%);
}

/* Frosted glass (search bar / chips on the hero) */
.rb-glass {
  background: rgba(255,255,255,.10);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
}
.rb-glass-strong {
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* Scroll reveal — gated on .rb-js so content is visible if JS never runs */
.rb-js .rb-reveal { opacity: 0; transform: translateY(24px); }
.rb-reveal { transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.rb-reveal.is-in { opacity: 1; transform: none; }
.rb-reveal[data-d="1"] { transition-delay: .07s; }
.rb-reveal[data-d="2"] { transition-delay: .14s; }
.rb-reveal[data-d="3"] { transition-delay: .21s; }
.rb-reveal[data-d="4"] { transition-delay: .28s; }

/* Horizontal album strips */
/* Landing category albums: each row sits on its own tinted panel so the rows read
   as separate shelves instead of one continuous wall of cards. */
.rb-cat-album { background: #eef3f8; border-radius: 1.65rem; }
@media (max-width: 639px) { .rb-cat-album { border-radius: 1.2rem; } }

/* An endless strip drifting LEFT. The track holds the SAME card set twice and
   travels exactly one set width, so the wrap is invisible.
   The direction matters: in RTL the track's right edge pins to the container and
   the box overflows to the LEFT, so animating toward -50% drains the right edge
   and leaves a hole. It has to START one set to the RIGHT (+50%) and travel to 0
   — same leftward motion, but new cards feed in from the right. */
.rb-marquee { overflow: hidden; padding: .6rem 0 1rem; direction: rtl; }
.rb-marquee-track {
  display: flex; width: max-content;
  animation-name: rb-marquee; animation-timing-function: linear; animation-iteration-count: infinite;
}
.rb-marquee:hover .rb-marquee-track { animation-play-state: paused; }
.rb-marquee-set { display: flex; gap: .6rem; padding-inline-start: .6rem; }
.rb-marquee-set > * { flex: 0 0 auto; }
@media (min-width: 640px) { .rb-marquee-set { gap: 1rem; padding-inline-start: 1rem; } }
@keyframes rb-marquee {
  from { transform: translateX(50%); }
  to { transform: translateX(0); }
}
/* Too few ads to fill the row: show exactly what the category has, standing still.
   Duplicating two ads into a loop just fakes a busy shelf. */
.rb-marquee-static { overflow-x: auto; }
.rb-marquee-static .rb-marquee-track { animation: none; }
/* Motion off: no drift, but the strip must stay reachable — so let it scroll. */
@media (prefers-reduced-motion: reduce) {
  .rb-marquee { overflow-x: auto; }
  .rb-marquee-track { animation: none; }
}

/* Album cards */
.rb-card { transition: transform .38s cubic-bezier(.22,.61,.36,1), box-shadow .38s ease; will-change: transform; }
.rb-card:hover { transform: translateY(-7px); }
.rb-thumb { overflow: hidden; }
.rb-thumb img { transition: transform .65s cubic-bezier(.22,.61,.36,1); }
.rb-card:hover .rb-thumb img { transform: scale(1.08); }


/* Shimmer sweep on accent buttons */
.rb-btn { position: relative; overflow: hidden; }
.rb-btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
}
.rb-btn:hover::after { transform: translateX(130%); transition: transform .85s ease; }

/* Service pill underline-grow */
.rb-pill { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.rb-pill:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .rb-hero, .rb-hero::before, .rb-hero::after { animation: none; }
  .rb-js .rb-reveal { opacity: 1; transform: none; }
  .rb-reveal, .rb-card, .rb-thumb img, .rb-arrow, .rb-btn::after, .rb-pill { transition: none; }
}

/* ============================================================
   Mobile app-style bottom navigation + products sheet (public)
   Hand-written (never purged). Shown only below 1024px.
   ============================================================ */
@media (max-width: 1023px) {
  body.has-bottom-nav { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
}
.rb-noscroll { overflow: hidden; }

.rb-bottomnav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  display: flex; align-items: stretch;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .18);
  padding-bottom: env(safe-area-inset-bottom);
}
.rb-bottomnav > a, .rb-bottomnav > button {
  position: relative; flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: .5rem 0 .55rem; min-height: 56px;
  background: none; border: 0; cursor: pointer;
  color: #64748b; font-size: 11px; font-weight: 600; font-family: inherit;
  -webkit-tap-highlight-color: transparent; transition: color .15s ease;
}
.rb-bottomnav > a:active, .rb-bottomnav > button:active { color: #0f766e; }
.rb-bottomnav .is-active { color: var(--ocean-teal); }
.rb-bottomnav .is-active::before {
  content: ""; position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--ocean-teal);
}

.rb-sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.rb-sheet.is-open { display: block; }
.rb-sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); opacity: 0; transition: opacity .25s ease; }
.rb-sheet.is-open .rb-sheet-backdrop { opacity: 1; }
.rb-sheet-panel {
  position: absolute; inset-inline: 0; bottom: 0;
  background: #fff; border-radius: 1.25rem 1.25rem 0 0;
  padding: .5rem 1rem calc(1rem + env(safe-area-inset-bottom));
  max-height: 86vh; overflow-y: auto;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.22, .61, .36, 1);
  box-shadow: 0 -18px 48px -12px rgba(15, 23, 42, .4);
}
.rb-sheet.is-open .rb-sheet-panel { transform: none; }
.rb-sheet-handle { width: 40px; height: 4px; border-radius: 9999px; background: #cbd5e1; margin: .25rem auto .75rem; }
.rb-sheet-head { display:flex;align-items:center;justify-content:space-between;gap:1rem }
.rb-sheet-close { display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid #e2e8f0;border-radius:13px;background:#fff;color:#64748b;cursor:pointer;-webkit-tap-highlight-color:transparent }
.rb-sheet-close:focus-visible { outline:3px solid rgba(20,168,106,.2);outline-offset:2px }
.rb-mobile-category-art { display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;color:#0d6e48 }
.rb-mobile-category-art img { width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 7px 6px rgba(15,38,28,.16)) }
.rb-mobile-category-art svg { width:21px;height:21px }
.rb-mobile-category-art.is-glyph { border-radius:12px;background:#f0f6f3 }

/* Phones use a dedicated full-screen products view. Tablets keep the bottom sheet. */
@media (max-width: 560px) {
  .rb-sheet { z-index:80;background:#fff }
  .rb-sheet-backdrop { display:none }
  .rb-sheet-panel { inset:0;width:100%;height:100%;height:100dvh;max-height:none;padding:calc(.75rem + env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom));border-radius:0;box-shadow:none;overscroll-behavior:contain }
  .rb-sheet-handle { display:none }
  .rb-sheet-head { position:sticky;top:calc(.75rem + env(safe-area-inset-top));z-index:2;min-height:48px;margin-bottom:.75rem!important;padding:.1rem 0 .65rem!important;background:#fff;border-bottom:1px solid #eef2f0 }
  .rb-sheet-head h3 { font-size:1.05rem }
  .rb-sheet-close { width:42px;height:42px;flex-basis:42px;border-radius:14px;background:#f8fafc;color:#334155 }
}
@media (max-width: 360px) {
  .rb-products-sheet-grid { grid-template-columns:1fr }
}

/* Desktop never shows the mobile chrome */
@media (min-width: 1024px) {
  .rb-bottomnav { display: none; }
  .rb-sheet, .rb-sheet.is-open { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-sheet-backdrop, .rb-sheet-panel { transition: none; }
}

/* ============================================================
   Public catalog pages — light marketplace grids
   ============================================================ */
.rb-catalog-page { min-height: 100vh; background: #f7f9fb; }
.rb-breadcrumb { color: #94a3b8; font-size: .75rem; margin-bottom: .5rem; }
.rb-catalog-title { color: #101a2d; font-family: 'Estedad', 'Vazirmatn', sans-serif; font-size: clamp(1.8rem, 3.1vw, 3rem); font-weight: 700; line-height: 1.45; }
.rb-catalog-subtitle { color: #7c8b9f; font-size: .85rem; margin-top: .2rem; }
.rb-catalog-toolbar { display: flex; align-items: center; gap: 1rem; padding: .85rem; margin-top: .9rem; background: #fff; border: 1px solid #edf1f5; border-radius: 1.25rem; box-shadow: 0 14px 30px -24px rgba(15,23,42,.28); direction: rtl; }
.rb-catalog-search { display: flex; align-items: center; gap: .65rem; flex: 1; min-width: 0; color: #9aabc0; background: #f1f4f8; border-radius: .8rem; padding-inline-start: .9rem; direction: rtl; }
.rb-catalog-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #1e293b; font: inherit; font-size: .82rem; padding: .78rem .25rem; direction: rtl; text-align: right; }
.rb-catalog-submit { flex: 0 0 auto; border: 0; border-radius: .75rem; padding: .72rem 2.1rem; background: #ff6b4a; color: #fff; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; box-shadow: 0 10px 20px -14px #ff6b4a; }
.rb-catalog-sort { display: flex; align-items: center; gap: .35rem; flex: 0 0 auto; color: #8492a5; font-size: .75rem; white-space: nowrap; direction: rtl; }
.rb-catalog-sort a { color: #637287; padding: .55rem .75rem; border-radius: .7rem; }
.rb-catalog-sort a.is-active { color: #182238; background: #eef2f7; font-weight: 700; }
.rb-chip-rail { display: flex; align-items: center; gap: .5rem; overflow-x: auto; padding: .7rem .1rem; scrollbar-width: none; scroll-behavior: smooth; }
.rb-chip-rail::-webkit-scrollbar { display: none; }
/* On a mouse (no touch), a hidden scrollbar leaves no way to reach overflowed
   chips — the wheel handler in the catalog page adds vertical-wheel scrolling,
   and here we surface a slim scrollbar on hover as the visible affordance. */
@media (hover: hover) and (pointer: fine) {
  .rb-chip-rail { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  .rb-chip-rail:hover { scrollbar-color: #cbd5e1 transparent; }
  .rb-chip-rail::-webkit-scrollbar { display: block; height: 6px; }
  .rb-chip-rail::-webkit-scrollbar-thumb { background: transparent; border-radius: 999px; }
  .rb-chip-rail:hover::-webkit-scrollbar-thumb { background: #cbd5e1; }
}
.rb-chip-label { color: #8a98a9; font-size: .75rem; font-weight: 700; white-space: nowrap; margin-inline-end: .25rem; }
.rb-filter-chip { display: inline-flex; align-items: center; gap: .25rem; flex: 0 0 auto; padding: .55rem .85rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #64748b; font-size: .76rem; white-space: nowrap; transition: .2s ease; }
.rb-filter-chip:hover { border-color: #cbd5e1; color: #1e293b; }
.rb-filter-chip.is-active { background: #111b30; border-color: #111b30; color: #fff; }
.rb-chip-rail-country { border-top: 1px solid #edf1f5; }
.rb-listing-grid, .rb-ai-catalog-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; direction: rtl; }
.rb-listing-card, .rb-ai-catalog-card { display: block; overflow: hidden; border: 1px solid #e7edf3; border-radius: 1.2rem; background: #fff; box-shadow: 0 12px 25px -20px rgba(15,23,42,.35); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; direction: rtl; }
.rb-listing-card:hover, .rb-ai-catalog-card:hover { transform: translateY(-5px); border-color: #cbd5e1; box-shadow: 0 24px 32px -20px rgba(15,23,42,.35); }
.rb-listing-cover { position: relative; height: 9.4rem; overflow: hidden; background: linear-gradient(145deg, #eef3f8, #e2e9f1); }
.rb-listing-cover img { width: 100%; height: 100%; object-fit: cover; }
.rb-card-badges { position: absolute; inset-inline: .7rem; top: .65rem; display: flex; flex-wrap: wrap; gap: .35rem; direction: rtl; }
.rb-card-badges span { padding: .25rem .5rem; border-radius: .55rem; background: rgba(255,255,255,.9); color: #536174; font-size: .58rem; font-weight: 700; box-shadow: 0 3px 8px -6px rgba(15,23,42,.5); }
.rb-bookmark { position: absolute; bottom: .55rem; inset-inline-start: .7rem; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: rgba(255,255,255,.92); color: #334155; font-size: 1rem; }
.rb-listing-body { padding: .8rem .85rem .9rem; direction: rtl; text-align: right; }
.rb-listing-category { color: #94a3b8; font-size: .63rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-listing-body h2, .rb-ai-catalog-body h2 { min-height: 2.9rem; margin-top: .3rem; color: #172238; font-size: .8rem; font-weight: 800; line-height: 1.8; }
.rb-listing-price { min-height: 1.8rem; margin-top: .35rem; color: var(--rb-price-color); font-weight: 700; }
.rb-listing-price .rb-price-num { font-size: 1rem; }
.rb-listing-meta { display: flex; justify-content: space-between; gap: .3rem; padding-top: .55rem; margin-top: .35rem; border-top: 1px solid #edf1f5; color: #94a3b8; font-size: .59rem; white-space: nowrap; direction: rtl; }
.rb-listing-button, .rb-ai-catalog-button { display: block; margin-top: .85rem; padding: .62rem .4rem; border-radius: .6rem; background: #0e182d; color: #fff; text-align: center; font-size: .68rem; font-weight: 700; }
.rb-empty-state { padding: 5rem 1rem; border: 1px dashed #dbe3ec; border-radius: 1.2rem; background: #fff; color: #64748b; text-align: center; }
.rb-pagination { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: 2.5rem; }
.rb-pagination a, .rb-pagination > span { display: grid; place-items: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .55rem; border: 1px solid #e2e8f0; border-radius: .65rem; background: #fff; color: #64748b; font-size: .75rem; }
.rb-pagination a.is-active { border-color: #111b30; background: #111b30; color: #fff; }
.rb-ai-catalog-hero { background: #eafff7; }
.rb-ai-catalog-hero .rb-catalog-title { margin-top: .25rem; }
.rb-ai-hero-pills { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.rb-ai-hero-pills span { padding: .42rem .8rem; border-radius: 999px; background: #fff; color: #0d9488; font-size: .68rem; font-weight: 700; }
.rb-ai-category-rail { padding-top: 0; }
.rb-ai-toolbar { margin-top: .35rem; }
.rb-ai-catalog-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10; gap: .6rem; color: #171b2c; position: relative; }
.rb-ai-catalog-cover.has-image { display: block; padding: 0; overflow: hidden; border-radius: 1.2rem 1.2rem 0 0; background: #e4f3ec; }
.rb-ai-catalog-image { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }
.rb-ai-catalog-cover > span { color: #f07852; font-size: 2rem; line-height: 1; }
.rb-ai-catalog-cover strong { font-size: 1.2rem; font-weight: 800; }
.rb-ai-catalog-cover.claude { background: #f6eee1; }
.rb-ai-catalog-cover.chatgpt { background: #eef0f6; }
.rb-ai-catalog-cover.midjourney { background: #e8ebfb; }
.rb-ai-catalog-cover.figma { background: #eee7ff; }
.rb-ai-catalog-cover.higgsfield { background: #ffecef; }
.rb-ai-catalog-cover.cursor { background: #edf1f4; }
.rb-ai-catalog-cover.chatgpt > span { color: #0fa88b; }
.rb-ai-catalog-cover.midjourney > span { color: #4c63be; }
.rb-ai-catalog-cover.figma > span { color: #7d50ef; }
.rb-ai-catalog-cover.higgsfield > span { color: #f3265d; }
.rb-ai-catalog-cover.cursor > span { color: #1f2937; }
.rb-ai-catalog-body { padding: .8rem .85rem .9rem; direction: rtl; text-align: right; }
.rb-ai-catalog-price { display: flex; align-items: baseline; gap: .3rem; min-height: 2rem; margin-top: .35rem; direction: rtl; }
.rb-ai-catalog-price strong { color: var(--rb-price-color); font-size: 1rem; white-space: nowrap; }
.rb-ai-catalog-price span { color: #94a3b8; font-size: .6rem; }
.rb-ai-catalog-price small { margin-inline-start: auto; color: #718096; font-size: .72rem; }
.rb-ai-catalog-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.6rem; padding: 0 .5rem; }
.rb-ai-catalog-steps > div { display: flex; align-items: center; justify-content: center; gap: .55rem; color: #172238; font-size: .86rem; font-weight: 800; }
.rb-ai-catalog-steps span { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: #111b30; color: #fff; font-size: .75rem; }
@media (max-width: 1100px) {
  .rb-listing-grid, .rb-ai-catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .rb-listing-grid, .rb-ai-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
  .rb-catalog-toolbar { flex-direction: column; align-items: stretch; }
  .rb-catalog-sort { justify-content: flex-end; }
}
@media (max-width: 560px) {
  .rb-listing-grid, .rb-ai-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .rb-listing-cover { height: 7rem; }
  .rb-listing-body, .rb-ai-catalog-body { padding: .65rem; }
  .rb-listing-body h2, .rb-ai-catalog-body h2 { font-size: .7rem; min-height: 2.55rem; }
  .rb-listing-meta { font-size: .52rem; }
  .rb-catalog-submit { padding-inline: 1.35rem; }
  .rb-ai-catalog-cover strong { font-size: .95rem; }
  .rb-ai-catalog-steps { grid-template-columns: 1fr; gap: .85rem; margin-top: 1.7rem; }
  .rb-ai-catalog-steps > div { justify-content: flex-start; font-size: .75rem; }
}

/* ============================================================
   Premium landing — self-hosted Estedad display font (titles +
   prices only; Vazirmatn stays for body). woff2 ships in the zip
   (public/fonts not excluded) → no runtime CDN, works in Iran.
   ============================================================ */
@font-face { font-family: 'Estedad'; src: url('/static/fonts/Estedad-Medium.woff2') format('woff2');   font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('/static/fonts/Estedad-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Estedad'; src: url('/static/fonts/Estedad-Bold.woff2') format('woff2');     font-weight: 700; font-style: normal; font-display: swap; }

/* Display utility (hand-written so Tailwind never purges it) */
.rb-display { font-family: 'Estedad', 'Vazirmatn', system-ui, sans-serif; letter-spacing: -.012em; }

/* Premium price block — confident tabular number, demoted unit */
.rb-price { display: inline-flex; align-items: flex-end; gap: .28rem; line-height: 1.05; white-space: nowrap; }
.rb-price-from { font-size: 11px; color: #94a3b8; margin-bottom: 3px; font-weight: 400; }
.rb-price-num { font-family: 'Estedad', 'Vazirmatn', system-ui, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: .2px; font-feature-settings: 'tnum'; color: inherit; }
.rb-price-unit { display: inline-flex; flex-direction: column; align-items: flex-start; font-size: 10px; color: #64748b; margin-bottom: 2px; font-weight: 500; line-height: 1.22; }
.rb-price-suffix { font-size: 9px; color: #b6c0cc; font-weight: 400; }
.rb-price-lg .rb-price-num { font-size: 27px; }
.rb-price-lg .rb-price-from { font-size: 13px; margin-bottom: 6px; }
.rb-price-lg .rb-price-unit { font-size: 12px; margin-bottom: 4px; }

/* Tracked eyebrow/kicker above section titles */
.rb-eyebrow { display: inline-block; font-family: 'Estedad', 'Vazirmatn', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .16em; color: #0d9488; margin-bottom: .35rem; }
.rb-eyebrow.coral { color: #f4502a; }
.rb-eyebrow.ink   { color: #3b5b86; }

/* Softer, layered card depth (overrides Tailwind shadow-soft/lift, which load earlier) */
.rb-card { box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 26px -16px rgba(15, 23, 42, .16); }
.rb-card:hover { box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 24px 50px -22px rgba(15, 23, 42, .30); }

/* Frosted pill badge for cards */
.rb-badge { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* ============================================================
   «چرا راه بوم؟» — animated escrow trust flow (home page).
   A coral "money" dot travels along the 4-step track (پرداخت ←
   امانت ← تحویل ← آزادسازی) and each node lights up as it arrives.
   Pure CSS, 9s loop; disabled under prefers-reduced-motion.
   ============================================================ */
.rb-flow { position: relative; padding: 1.25rem 0 .25rem; }
.rb-flow-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
/* the connecting track between node centers */
.rb-flow-steps::before {
  content: ""; position: absolute; top: 24px; right: 12.5%; left: 12.5%; height: 2px;
  background: linear-gradient(to left, rgba(255,255,255,.06), rgba(255,255,255,.22), rgba(255,255,255,.06));
}
.rb-flow-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.rb-flow-node {
  width: 48px; height: 48px; border-radius: 9999px; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  position: relative; z-index: 1;
  animation: rb-flow-node 9s infinite;
}
.rb-flow-step:nth-child(2) .rb-flow-node { animation-delay: 2.25s; }
.rb-flow-step:nth-child(3) .rb-flow-node { animation-delay: 4.5s; }
.rb-flow-step:nth-child(4) .rb-flow-node { animation-delay: 6.75s; }
.rb-flow-lbl { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.85); line-height: 1.6; }
.rb-flow-dot {
  position: absolute; top: calc(1.25rem + 24px); inset-inline-start: 12.5%;
  width: 12px; height: 12px; margin-top: -6px; margin-inline-start: -6px; border-radius: 9999px;
  background: #ff8a5c; z-index: 2;
  box-shadow: 0 0 0 4px rgba(244, 80, 42, .25), 0 0 16px rgba(244, 80, 42, .8);
  animation: rb-flow-dot 9s infinite;
}
/* hold ~8% on each node, travel ~17% between nodes */
@keyframes rb-flow-dot {
  0%   { inset-inline-start: 12.5%; opacity: 0; }
  3%   { opacity: 1; }
  8%   { inset-inline-start: 12.5%; }
  25%  { inset-inline-start: 37.5%; }
  33%  { inset-inline-start: 37.5%; }
  50%  { inset-inline-start: 62.5%; }
  58%  { inset-inline-start: 62.5%; }
  75%  { inset-inline-start: 87.5%; }
  95%  { inset-inline-start: 87.5%; opacity: 1; }
  100% { inset-inline-start: 87.5%; opacity: 0; }
}
/* node "lights up" while the dot sits on it (delays stagger the same cycle) */
@keyframes rb-flow-node {
  0%, 100% { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); box-shadow: none; transform: none; }
  2%       { transform: scale(1.12); }
  5%, 20%  { background: rgba(244, 80, 42, .28); border-color: rgba(255, 138, 92, .9); box-shadow: 0 0 18px rgba(244, 80, 42, .45); transform: none; }
  30%      { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-flow-dot { display: none; }
  .rb-flow-node { animation: none; }
}

/* Hero search — premium focus glow */
.rb-search:focus-within { box-shadow: 0 0 0 3px rgba(20, 184, 166, .28), 0 16px 40px -16px rgba(13, 148, 136, .45); border-color: rgba(255,255,255,.4); }

/* ============================================================
   Agahi (classifieds) structured ad form — segmented controls,
   pill toggles, checkable chips, hashtag input, map. Coral accent
   to match the mobile ad-form design. Hand-written (never purged).
   ============================================================ */
:root { --ag-accent: #f4502a; --ag-accent-soft: #fff1ec; --ag-border: #e6e9ef; }

/* Segmented (radio group) */
.ag-seg { display: inline-flex; background: #f1f4f8; border: 1px solid var(--ag-border); border-radius: 12px; padding: 3px; gap: 3px; width: 100%; }
.ag-seg-opt { flex: 1; }
.ag-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ag-seg-opt span { display: block; text-align: center; font-size: 13px; font-weight: 600; color: #64748b; padding: 8px 6px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.ag-seg-opt:has(input:checked) span { background: #fff; color: var(--ag-accent); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.ag-seg-opt input:focus-visible + span { outline: 2px solid var(--ag-accent); outline-offset: 1px; }

/* Pill toggle */
.ag-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.ag-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ag-toggle-track { position: relative; width: 44px; height: 25px; background: #cdd5df; border-radius: 999px; transition: background .18s; flex: 0 0 auto; }
.ag-toggle-track::after { content: ''; position: absolute; top: 3px; right: 3px; width: 19px; height: 19px; background: #fff; border-radius: 50%; transition: transform .18s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.ag-toggle input:checked + .ag-toggle-track { background: var(--ag-accent); }
.ag-toggle input:checked + .ag-toggle-track::after { transform: translateX(-19px); }
.ag-toggle-label { font-size: 13px; font-weight: 600; color: #475569; }

/* Checkable chips (accessories / multiselect) */
.ag-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ag-border); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; transition: all .15s; }
.ag-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ag-chip::before { content: '+'; font-weight: 700; color: #94a3b8; }
.ag-chip:has(input:checked) { border-color: var(--ag-accent); background: var(--ag-accent-soft); color: var(--ag-accent); }
.ag-chip:has(input:checked)::before { content: '✓'; color: var(--ag-accent); }

/* Hashtag input */
.ag-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 1px solid var(--ag-border); border-radius: 12px; padding: 8px; }
.ag-tags:focus-within { border-color: var(--ag-accent); }
.ag-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--ag-accent-soft); color: var(--ag-accent); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.ag-tag button { color: var(--ag-accent); font-weight: 700; line-height: 1; opacity: .7; }
.ag-tag button:hover { opacity: 1; }
.ag-tags input.ag-tags-field { flex: 1; min-width: 8rem; border: 0; outline: 0; font-size: 13px; padding: 4px; background: transparent; }

/* Map (Leaflet) */
.ag-map { height: 240px; width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--ag-border); z-index: 0; }
.ag-map-hint { font-size: 11px; color: #94a3b8; margin-top: 6px; }

/* ============================================================
   Main Categories Slide Cards & 2-Tier Filters
   ============================================================ */
.rb-main-cat-slider {
  display: flex;
  align-items: stretch;
  gap: .85rem;
  overflow-x: auto;
  padding: .4rem .2rem 1.1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rb-main-cat-slider::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) {
  .rb-main-cat-slider { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  .rb-main-cat-slider:hover { scrollbar-color: #cbd5e1 transparent; }
  .rb-main-cat-slider::-webkit-scrollbar { display: block; height: 6px; }
  .rb-main-cat-slider::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
}
.rb-main-cat-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex: 0 0 min(17.5rem, 80vw);
  padding: .85rem 1rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid #e7edf3;
  box-shadow: 0 4px 14px -6px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.03);
  transition: all .25s cubic-bezier(.22,.61,.36,1);
  scroll-snap-align: start;
  text-decoration: none;
}
.rb-main-cat-card:hover {
  transform: translateY(-4px);
  border-color: #0d9488;
  box-shadow: 0 16px 28px -12px rgba(13,148,136,.22), 0 4px 8px rgba(15,23,42,.06);
}
.rb-main-cat-icon {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  flex-shrink: 0;
  border-radius: .95rem;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #0d9488;
  border: 1px solid #a7f3d0;
  transition: transform .25s ease;
}
.rb-main-cat-card:hover .rb-main-cat-icon {
  transform: scale(1.08) rotate(-3deg);
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  border-color: #0d9488;
}
.rb-main-cat-info {
  flex: 1;
  min-width: 0;
}
.rb-main-cat-title {
  font-size: .88rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.rb-main-cat-card:hover .rb-main-cat-title {
  color: #0d9488;
}
.rb-main-cat-count {
  display: inline-block;
  margin-top: .15rem;
  font-size: .72rem;
  color: #64748b;
  font-weight: 600;
}
.rb-main-cat-count b {
  color: #0d9488;
}
.rb-main-cat-arrow {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1;
  transition: all .2s ease;
}
.rb-main-cat-card:hover .rb-main-cat-arrow {
  background: #0d9488;
  color: #fff;
  transform: translateX(-3px);
}

/* Catalog two-tier filters */
.rb-filter-tier { position: relative; }
.rb-main-chip {
  padding: .6rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  border-radius: 999px;
  background: #fff;
}
.rb-chip-icon {
  flex-shrink: 0;
  color: #0d9488;
}
.rb-main-chip.is-active .rb-chip-icon {
  color: #5eead4;
}
.rb-chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: .65rem;
  font-weight: 800;
}
.rb-main-chip.is-active .rb-chip-count {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.rb-sub-chip {
  padding: .45rem .8rem;
  font-size: .74rem;
  background: #f8fafc;
}
.rb-sub-chip.is-active {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}
.rb-sub-chip.is-active .rb-chip-count {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* ============================================================
   Right Sidebar Filter Boxes on /ai
   ============================================================ */
.rb-filter-box {
  background: #fff;
  border: 1px solid #e7edf3;
  border-radius: 1.25rem;
  padding: 1.1rem;
  box-shadow: 0 4px 14px -8px rgba(15,23,42,.06);
}
.rb-filter-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #f1f5f9;
}
.rb-filter-box-title {
  font-size: .88rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.rb-filter-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  overflow-y: auto;
  padding-inline-end: .25rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.rb-filter-list::-webkit-scrollbar {
  width: 5px;
}
.rb-filter-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.rb-filter-list::-webkit-scrollbar-track {
  background: transparent;
}
.rb-filter-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .65rem;
  border-radius: .75rem;
  font-size: .8rem;
  color: #475569;
  font-weight: 600;
  transition: all .15s ease;
  text-decoration: none;
}
.rb-filter-item:hover {
  background: #f8fafc;
  color: #0f172a;
}
.rb-filter-item.is-active {
  background: #ecfdf5;
  color: #0d9488;
  font-weight: 800;
}
.rb-filter-item-icon {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: .5rem;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
  transition: all .15s ease;
}
.rb-filter-item:hover .rb-filter-item-icon {
  background: #e2e8f0;
  color: #0d9488;
}
.rb-filter-item.is-active .rb-filter-item-icon {
  background: #0d9488;
  color: #fff;
}
.rb-filter-item-badge {
  margin-inline-start: auto;
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}
.rb-filter-item.is-active .rb-filter-item-badge {
  background: #a7f3d0;
  color: #065f46;
}

/* Product grid beside the sidebar */
.rb-ai-catalog-grid-sidebar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  direction: rtl;
}
@media (max-width: 1279px) {
  .rb-ai-catalog-grid-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .rb-ai-catalog-grid-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
}
@media (max-width: 450px) {
  .rb-ai-catalog-grid-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Figma landing (Aug 2026) — server-rendered, data-backed
   ============================================================ */
.rb-figma-home { background: #fff; color: #101828; overflow: hidden; }
.rb-landing-shell { width: min(1312px, calc(100% - 2rem)); margin-inline: auto; }
.rb-landing-section { padding-block: 3rem; }
.rb-figma-home > .rb-landing-section { background: #fff; }
.rb-landing-hero { position: relative; z-index: 3; background: linear-gradient(90deg, #e1f6ef 0%, #f6fcfa 44%, #fff 78%); min-height: 480px; }
.rb-landing-hero-grid { min-height: 480px; display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: 4rem; }
.rb-landing-hero-copy { text-align: right; padding-block: 3.2rem; }
.rb-landing-kicker { display: inline-flex; align-items: center; gap: .6rem; padding: .62rem 1rem; border: 1px solid #b7e7d3; border-radius: 999px; background: #fff; color: #0f2a3c; font-size: .78rem; font-weight: 600; }
.rb-landing-kicker i, .rb-hero-float i { width: 9px; height: 9px; border-radius: 50%; background: #19a974; box-shadow: 0 0 0 4px #dff7ec; }
.rb-landing-hero-copy h1 { margin-top: 1.35rem; font-family: 'Estedad','Vazirmatn',sans-serif; color: #0f172a; font-size: clamp(2.35rem, 4vw, 3rem); font-weight: 700; line-height: 1.5; letter-spacing: -.035em; }
.rb-landing-hero-copy > p { max-width: 43rem; margin-top: .9rem; color: #64748b; font-size: 1rem; line-height: 2; }
.rb-landing-hero-stage { position: relative; min-height: 480px; direction: ltr; transform: scale(.88); transform-origin: center center; }
.rb-hero-product-wrap { position:absolute;width:342px;height:438px;transition:transform .3s ease;will-change:transform }
.rb-hero-product-wrap:hover { z-index:4 }
.rb-hero-product-card { position:relative;display:block;width:342px;height:438px;overflow:hidden;border:1px solid #fff;border-radius:28px;background:#fff;box-shadow:-20px 46px 70px -12px rgba(13,20,38,.28),-8px 18px 28px -4px rgba(15,23,41,.16),0 2px 5px rgba(15,23,41,.1);color:inherit;direction:rtl;transition:box-shadow .3s ease }
.rb-hero-product-wrap:hover .rb-hero-product-card { box-shadow:-22px 52px 74px -12px rgba(13,20,38,.32),-8px 20px 30px -4px rgba(15,23,41,.18) }
.rb-hero-product-1 { left:-36px;top:104px;transform:rotate(12deg) }
.rb-hero-product-1:hover { transform:rotate(8deg) translateY(-8px) }
.rb-hero-product-2 { left:190px;top:20px;transform:rotate(7deg);z-index:2 }
.rb-hero-product-2:hover { transform:rotate(3deg) translateY(-8px) }
.rb-hero-product-band { height:132px;display:flex;align-items:flex-end;padding:26px 26px 22px;background:linear-gradient(#fdebe2,#fff7f2) }
.rb-hero-theme-claude .rb-hero-product-band,.rb-hero-product-2 .rb-hero-product-band { background:linear-gradient(#f2e6d5,#fcf6ee) }
.rb-hero-theme-placeholder .rb-hero-product-band { background:linear-gradient(#e8f6f0,#f7fcfa) }
.rb-hero-brand-row { display:flex;align-items:center;gap:11px;min-width:0 }
.rb-hero-brand-mark { display:grid;place-items:center;flex:0 0 32px;width:32px;height:38px;background:transparent }
.rb-hero-brand-mark img { display:block;width:32px;height:37.714px;border:0;border-radius:0;object-fit:fill;box-shadow:none }
.rb-hero-product-band strong { max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0f172a;font-family:'Estedad','Vazirmatn',sans-serif;font-size:1.35rem;font-weight:700 }
.rb-hero-product-body { display:flex;flex-direction:column;justify-content:space-between;height:306px;padding:20px 26px 22px;background:#fff }
.rb-hero-product-main { min-width:0 }
.rb-hero-product-body h2 { min-height:0;overflow:hidden;color:#0f172a;font-size:.86rem;font-weight:700;line-height:1.7;text-overflow:ellipsis;white-space:nowrap }
.rb-hero-product-price { display:flex;align-items:baseline;gap:.5rem;margin-top:.55rem;color:var(--rb-price-color);white-space:nowrap }
.rb-hero-product-price b { font-family:'Estedad','Vazirmatn',sans-serif;font-size:1.12rem;font-weight:700 }
.rb-hero-product-price small { color:#94a3b8;font-size:.65rem }
.rb-hero-product-body ul { display:flex;flex-direction:column;gap:.55rem;margin-top:.85rem;color:#64748b;font-size:.7rem }
.rb-hero-product-body li { display:flex;align-items:center;justify-content:flex-start;gap:.5rem;min-width:0 }
.rb-hero-product-body li span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap }
.rb-hero-product-body li img { flex:0 0 16px;width:16px;height:16px }
.rb-hero-product-actions { display:flex;flex-direction:column;gap:.85rem }
.rb-hero-product-chips { display:flex;gap:.5rem;justify-content:flex-start;white-space:nowrap }
.rb-hero-product-chips span { padding:.42rem .78rem;border:1px solid #e9eef4;border-radius:999px;background:#f4f7fa;color:#64748b;font-size:.62rem;font-weight:600;box-shadow:0 4px 12px rgba(15,23,41,.1) }
.rb-hero-product-cta { display:flex;align-items:center;justify-content:center;gap:.55rem;padding:.88rem;border-radius:16px;background:#111827;color:#fff;text-align:center;font-size:.8rem;font-weight:700;box-shadow:0 8px 18px -6px rgba(15,23,41,.3) }
.rb-hero-product-cta img { width:5px;height:10px }
.rb-hero-product-badges { position:absolute;top:15px;left:17px;display:flex;gap:.38rem;direction:ltr }
.rb-hero-product-badges em { padding:.42rem .78rem;border:1px solid #e9eef4;border-radius:999px;background:#fff;color:#0f172a;font-size:.62rem;font-style:normal;font-weight:700;box-shadow:0 4px 12px rgba(15,23,41,.1);direction:rtl }
.rb-hero-product-badges .is-special { border-color:#f97316;background:#f97316;color:#fff }
.rb-hero-float { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border: 1px solid #d9e8e0; border-radius: 999px; background: rgba(255,255,255,.94); color: #31554a; font-size: .68rem; font-weight: 700; box-shadow: 0 8px 20px -12px rgba(15,23,42,.35); direction: rtl; cursor: default; will-change: transform; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background-color .3s ease; }
.rb-hero-float-top { left: -99px; top: 42px; }
.rb-hero-float-bottom { left: -30px; top: 14px; }
.rb-hero-float-top:hover { transform: translateY(-7px) rotate(-3deg) scale(1.025); }
.rb-hero-float-bottom:hover { transform: translateY(-7px) rotate(3deg) scale(1.025); }
.rb-hero-float:hover { border-color: #b7e7d3; background: #fff; box-shadow: 0 18px 28px -15px rgba(15,23,42,.42); }

.rb-landing-heading { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.45rem; }
.rb-landing-heading h2 { font-family: 'Estedad','Vazirmatn',sans-serif; color: #101828; font-size: 1.62rem; font-weight: 700; line-height: 1.5; letter-spacing: -.025em; }
.rb-landing-heading p { margin-top: .22rem; color: #667085; font-size: .84rem; }
.rb-landing-heading > a { margin-inline-start: auto; flex: 0 0 auto; padding: .65rem 1rem; border: 1px solid #dce6e0; border-radius: 10px; background: #fff; color: #315b4c; font-size: .75rem; font-weight: 700; }
.rb-landing-heading > a span { color: #0b7a4b; }
.rb-landing-heading-with-icon { display: flex; align-items: center; gap: .8rem; }
.rb-landing-heading-with-icon > span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #d5e8de; border-radius: 15px; background: #fff; color: #0b7a4b; }
.rb-landing-heading-with-icon svg { width: 22px; height: 22px; }
.rb-landing-empty { padding: 3.5rem 1rem; border: 1px dashed #cbd9d1; border-radius: 20px; color: #7c8b83; text-align: center; }

.rb-showcase-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1.2rem; }
.rb-bestsellers-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.rb-showcase-card { min-width: 0; padding: .8rem; overflow: hidden; border: 1.2px dashed #d6e0d9; border-radius: 22px; background: #fff; color: inherit; box-shadow: 0 10px 18px -14px rgba(15,38,28,.25), 0 1px 2px rgba(15,38,28,.05); transition: transform .25s ease, box-shadow .25s ease; }
.rb-showcase-card:hover { transform: translateY(-5px); box-shadow: 0 20px 28px -18px rgba(15,38,28,.32); }
.rb-showcase-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: #3b2a22; color: #fff; }
.rb-showcase-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rb-showcase-thumb:has(img) { background: #e4f3ec; }
.rb-showcase-thumb > strong { padding: 1rem; font-family: 'Estedad','Vazirmatn',sans-serif; font-size: 1.35rem; text-align: center; text-shadow: 0 6px 14px rgba(0,0,0,.35); }
.rb-showcase-chatgpt { background: #0d4436; }.rb-showcase-midjourney { background: #172858; }.rb-showcase-figma { background: #552c6a; }.rb-showcase-gemini { background: #15375f; }.rb-showcase-higgsfield { background: #49306b; }.rb-showcase-cursor { background: #222a35; }
.rb-showcase-thumb > span { position: absolute; top: 11px; left: 11px; padding: .3rem .55rem; border-radius: 7px; background: #e52828; color: #fff; font-size: .62rem; font-weight: 700; }
.rb-showcase-card > h3 { min-height: 3.1rem; padding: .75rem .1rem .45rem; color: #171c23; font-size: .8rem; font-weight: 700; line-height: 1.8; }
.rb-showcase-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .15rem .1rem .1rem; }
.rb-showcase-meta > b { padding: .5rem .8rem; border-radius: 7px; background: #171c23; color: #fff; font-size: .67rem; }
.rb-showcase-meta p { color: #969da5; font-size: .68rem; text-align: left; }
.rb-showcase-meta p strong { color: var(--rb-price-color); font-size: .75rem; }

.rb-landing-categories { background: #fff !important; }
.rb-popular-category-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); grid-auto-rows: 152px; gap: 1rem; }
/* Bento: one lead tile, two wide ones, a row of three, then a banner. Sizes vary
   deliberately — a uniform 3x300px grid made the shelf taller than the hero. */
.rb-pc-1 { grid-column: span 3; grid-row: span 2; }
.rb-pc-2 { grid-column: span 3; }
.rb-pc-3 { grid-column: span 3; }
.rb-pc-4, .rb-pc-5, .rb-pc-6 { grid-column: span 2; }
.rb-pc-7 { grid-column: span 6; }
.rb-popular-category-card { position: relative; display: flex; align-items: center; min-height: 0; padding: 1.35rem 1.5rem; overflow: hidden; border: 1px solid #49834c; border-radius: 24px; background: #e6f6ee; color: inherit; box-shadow: 0 15px 26px -22px rgba(0,0,0,.55); transition: transform .25s ease; }
.rb-popular-category-card:hover { transform: translateY(-5px); }

.rb-popular-category-copy { position: relative; z-index: 2; width: calc(100% - 108px); text-align: right; }
.rb-popular-category-copy span { color: #0b7a4b; font-size: .68rem; font-weight: 700; }
.rb-popular-category-copy h3 { margin-top: .35rem; color: #141a21; font-family: 'Estedad','Vazirmatn',sans-serif; font-size: .98rem; font-weight: 700; line-height: 1.65; }
.rb-popular-category-copy p { margin-top: .4rem; display: -webkit-box; overflow: hidden; color: #5a6675; font-size: .68rem; line-height: 1.85; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rb-pc-1 .rb-popular-category-copy p, .rb-pc-7 .rb-popular-category-copy p { -webkit-line-clamp: 3; }
.rb-pc-1 .rb-popular-category-copy h3 { font-size: 1.22rem; }
.rb-pc-1 .rb-popular-category-copy { width: calc(100% - 132px); }
.rb-pc-1 .rb-popular-category-art { width: 128px; height: 128px; }
.rb-pc-7 .rb-popular-category-art { width: 104px; height: 104px; }
.rb-pc-4 .rb-popular-category-copy, .rb-pc-5 .rb-popular-category-copy, .rb-pc-6 .rb-popular-category-copy { width: calc(100% - 84px); }
.rb-pc-4 .rb-popular-category-art, .rb-pc-5 .rb-popular-category-art, .rb-pc-6 .rb-popular-category-art { width: 78px; height: 78px; left: 1rem; }
.rb-popular-category-art { position: absolute; left: 1.3rem; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 27px; color: #0b7a4b; filter: drop-shadow(0 13px 10px rgba(15,23,42,.2)); }
.rb-popular-category-art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rb-popular-category-art svg { width: 56px; height: 56px; }
.rb-popular-category-theme-2 { background:#f3e8fa;border-color:#834983 }.rb-popular-category-theme-2 .rb-popular-category-copy span,.rb-popular-category-theme-2 .rb-popular-category-art{color:#7538b8}
.rb-popular-category-theme-3 { background:#e7eafa;border-color:#495083 }.rb-popular-category-theme-3 .rb-popular-category-copy span,.rb-popular-category-theme-3 .rb-popular-category-art{color:#3a46ae}
.rb-popular-category-theme-4 { background:#e3edfc;border-color:#496583 }.rb-popular-category-theme-4 .rb-popular-category-copy span,.rb-popular-category-theme-4 .rb-popular-category-art{color:#2559bc}
.rb-popular-category-theme-5 { background:#fbeee1;border-color:#836b49 }.rb-popular-category-theme-5 .rb-popular-category-copy span,.rb-popular-category-theme-5 .rb-popular-category-art{color:#b75c1b}
.rb-popular-category-theme-6 { background:#f0e8fb;border-color:#614983 }.rb-popular-category-theme-6 .rb-popular-category-copy span,.rb-popular-category-theme-6 .rb-popular-category-art{color:#6538c9}
.rb-popular-category-theme-7 { background:#edf6db;border-color:#6d8349 }.rb-popular-category-theme-7 .rb-popular-category-copy span,.rb-popular-category-theme-7 .rb-popular-category-art{color:#4a8709}

.rb-category-showcase { background: #f7f9fb !important; }
.rb-category-showcase + .rb-category-showcase { padding-top: .65rem; }
.rb-category-showcase .rb-landing-shell { padding: 1.5rem; border-radius: 24px; background: #fff; border: 1px solid #eef2f0; }
.rb-category-showcase .rb-landing-heading { margin-bottom: 1.1rem; }
.rb-showcase-strip { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; gap: 1rem; align-items: center; }
.rb-category-grid { display: flex; overflow-x: auto; gap: 1.2rem; padding-bottom: .6rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.rb-category-grid::-webkit-scrollbar { display: none; }
.rb-category-grid > * { flex: 0 0 calc((100% - 3.6rem) / 4); scroll-snap-align: start; }
.rb-gift-grid { display: flex; overflow-x: auto; gap: 1.2rem; padding-bottom: .6rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.rb-gift-grid::-webkit-scrollbar { display: none; }
.rb-gift-card { flex: 0 0 calc((100% - 4.8rem) / 5); min-width: 0; padding: .8rem; overflow: hidden; border: 1.2px dashed #d6e0d9; border-radius: 22px; background: #fff; scroll-snap-align: start; box-shadow: 0 10px 18px -14px rgba(15,38,28,.25), 0 1px 2px rgba(15,38,28,.05); }
.rb-gift-thumb { position: relative; display: grid; place-items: center; height: 150px; overflow: hidden; border-radius: 16px; background: hsl(var(--gift-hue) 30% 96%); }
.rb-gift-thumb svg { width: 100%; height: 100%; }
.rb-gift-badge { position: absolute; top: .55rem; right: .55rem; padding: .18rem .55rem; border-radius: 999px; background: rgba(15,23,42,.82); color: #fff; font-size: .62rem; font-weight: 700; }
.rb-gift-card h3 { margin-top: .7rem; padding-inline: .25rem; display: -webkit-box; overflow: hidden; color: #141a21; font-size: .78rem; font-weight: 700; line-height: 1.8; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rb-gift-meta { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; padding: .1rem .25rem .15rem; }
.rb-gift-meta b { padding: .25rem .7rem; border-radius: 999px; background: #f1f5f2; color: #5a6675; font-size: .68rem; }
.rb-gift-meta p { color: #94a3b8; font-size: .68rem; }
@media (max-width: 900px) {
  .rb-category-grid > * { flex: 0 0 225px; }
  .rb-gift-card { flex: 0 0 200px; }
}
.rb-strip-arrow,.rb-review-nav button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #e2eae5; border-radius: 50%; background: #fff; color: #667085; font-size: 1.35rem; line-height: 1; box-shadow: 0 8px 18px -14px rgba(15,38,28,.4); transition: border-color .2s ease,color .2s ease,transform .2s ease; }
.rb-strip-arrow:hover,.rb-review-nav button:hover { transform: translateY(-2px); border-color: #a7d8bf; color: #0b7a4b; }
.rb-review-section { background: #fff !important; }
.rb-review-nav { margin-inline-start: auto; display: flex; gap: .5rem; direction: ltr; }
.rb-review-rail { display: flex; gap: 1.2rem; overflow-x: auto; padding: .15rem .1rem 1rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.rb-review-rail::-webkit-scrollbar { display: none; }
.rb-review-card { flex: 1 0 230px; min-height: 214px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.35rem; border: 1px solid #e2eae5; border-radius: 22px; background: #fff; box-shadow: 0 12px 22px -18px rgba(15,38,28,.32); scroll-snap-align: start; }
.rb-review-rating { display: flex; align-items: center; justify-content: flex-end; gap: .35rem; direction: ltr; }
.rb-review-rating span { color: #94a3b8; font-size: .7rem; font-weight: 700; }.rb-review-rating b { color: #ffad00; letter-spacing: .08rem; }.rb-review-rating i { color: #ecdcae; font-style: normal; }
.rb-review-card > p { color: #475569; font-size: .76rem; line-height: 1.9; text-align: right; }
.rb-review-person { display: flex; align-items: center; gap: .65rem; }
.rb-review-person > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e9f7f0; color: #0d6e48; font-weight: 800; }
.rb-review-person div { display: flex; flex-direction: column; gap: .12rem; }.rb-review-person strong { color: #0f172a; font-size: .78rem; }.rb-review-person small { color: #94a3b8; font-size: .64rem; }
.rb-payment-section { padding-bottom: 3rem; background: #f7f9fb; }
.rb-payment-banner { display: flex; align-items: center; gap: 2.25rem; min-height: 297px; padding: 2.25rem 3rem; border: 1px solid #3e3860; border-radius: 24px; background: #e7f3ee; box-shadow: 0 12px 14px rgba(0,0,0,.18); }
.rb-payment-copy { flex: 1; min-width: 0; text-align: right; }.rb-payment-copy > span { color: #0b7a4b; font-size: .8rem; font-weight: 600; }.rb-payment-copy h2 { margin-top:.5rem;font-family:'Estedad','Vazirmatn',sans-serif;font-size:1.2rem;font-weight:700;color:#141a21 }.rb-payment-copy > p { max-width: 55rem; margin-top:.75rem;color:#5a6675;font-size:.86rem;line-height:1.9 }.rb-payment-copy > a { display:inline-flex;margin-top:.75rem;padding:.75rem 1.5rem;border-radius:12px;background:#0b7a4b;color:#fff;font-size:.8rem;font-weight:700 }.rb-payment-tags { display:flex;justify-content:flex-start;gap:.5rem;flex-wrap:wrap;margin-top:.75rem }.rb-payment-tags i { padding:.35rem .75rem;border:1px solid #d8e7df;border-radius:999px;background:#fff;color:#3f5a50;font-size:.7rem;font-style:normal;font-weight:600 }
.rb-payment-art { position: relative; flex: 0 0 300px; width: 300px; height: 190px; direction:ltr }.rb-payment-art img { position:absolute;object-fit:contain;filter:drop-shadow(0 12px 10px rgba(67,45,130,.22)) }.rb-payment-art img:nth-child(1){left:18px;top:47px;width:95px;height:95px;transform:rotate(-14deg)}.rb-payment-art img:nth-child(2){left:66px;top:30px;width:100px;height:100px;transform:rotate(8deg)}.rb-payment-art img:nth-child(3){left:150px;top:42px;width:123px;height:123px;transform:rotate(-6deg)}

/* Figma API banner row */
.rb-api-section { padding-block: 3rem; }
.rb-api-heading { margin-bottom: 3rem; }
.rb-api-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;direction:ltr }
.rb-api-card { position:relative;display:flex;align-items:center;justify-content:flex-start;min-height:212px;padding:1.9rem 2.1rem;overflow:visible;border:1px solid rgba(15,23,42,.08);border-radius:24px;color:#0f172a;direction:rtl;box-shadow:0 12px 14px rgba(14,22,43,.1);transition:transform .25s ease,box-shadow .25s ease }
.rb-api-card:hover { transform:translateY(-5px);box-shadow:0 22px 25px -12px rgba(14,22,43,.22) }
.rb-api-card-blue{background:#eef4ff}.rb-api-card-green{background:#edf8f4}.rb-api-card-orange{background:#fff3ea}
.rb-api-copy { display:flex;flex-direction:column;justify-content:center;gap:.35rem;width:60%;padding-inline-start:.5rem;text-align:right }.rb-api-copy span { color:#326fce;font-size:.72rem;font-weight:700;letter-spacing:.01em }.rb-api-card-green .rb-api-copy span{color:#137a62}.rb-api-card-orange .rb-api-copy span{color:#b85019}.rb-api-copy h3{margin:0;display:-webkit-box;overflow:hidden;color:#172033;font-family:'Estedad','Vazirmatn',sans-serif;font-size:1.32rem;font-weight:800;line-height:1.75;-webkit-line-clamp:2;-webkit-box-orient:vertical}.rb-api-copy p{margin:0;color:#5d6a7d;font-size:.78rem;line-height:2}.rb-api-copy strong{display:block;margin-top:.3rem;color:#376fb6;font-size:.74rem}.rb-api-card-green .rb-api-copy p{color:#506c64}.rb-api-card-green .rb-api-copy strong{color:#227f6b}.rb-api-card-orange .rb-api-copy p{color:#725f53}.rb-api-card-orange .rb-api-copy strong{color:#ab5a28}
.rb-api-art { position:absolute;left:-14px;top:-30px;display:grid;place-items:center;width:151px;height:178px }.rb-api-art::after{content:'';position:absolute;left:24px;bottom:13px;width:105px;height:18px;border-radius:50%;background:rgba(0,0,0,.35);filter:blur(8px)}.rb-api-art img{position:relative;z-index:1;width:122px;height:122px;border-radius:28px;object-fit:contain;filter:drop-shadow(0 14px 10px rgba(0,0,0,.4))}.rb-api-art b{position:relative;z-index:1;display:grid;place-items:center;width:112px;height:112px;border-radius:28px;background:rgba(255,255,255,.1);font-size:1.4rem}

/* Figma pill header + products hover menu */
.rb-site-header { position:sticky;top:0;z-index:50;padding:16px 40px;background:linear-gradient(90deg,#e1f6ec,#fff) }
.rb-site-nav-pill { position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:2rem;width:100%;max-width:1360px;height:66px;margin-inline:auto;padding:11px 14px 11px 24px;border:1px solid #e4ece7;border-radius:24px;background:#fff;box-shadow:0 14px 34px -8px rgba(10,51,36,.1),0 2px 6px rgba(10,51,36,.06) }
.rb-site-brand { display:flex;align-items:center;gap:.65rem;flex:0 0 auto;color:#1f2937;direction:rtl }
.rb-site-brand > span { font-family:'Estedad','Vazirmatn',sans-serif;font-size:1.45rem;font-weight:800;letter-spacing:normal }.rb-site-brand em{color:#f26a22;font-style:normal}.rb-site-brand img{width:40px;height:40px;border-radius:10px;object-fit:cover}
.rb-site-nav { display:flex;align-items:center;gap:.35rem;min-width:0;margin-inline-start:1.6rem;margin-inline-end:auto }
.rb-products-nav { position:relative }
.rb-site-nav-link { display:inline-flex;align-items:center;gap:.4rem;padding:.55rem .9rem;border-radius:999px;color:#475569;font-size:.78rem;font-weight:600;white-space:nowrap;transition:background .2s ease,color .2s ease }
.rb-site-nav-link:hover,.rb-site-nav-link.is-active,.rb-products-nav.is-open .rb-products-trigger { background:#eef7f2;color:#0d5c40 }.rb-products-trigger{border:0;background:none;cursor:pointer;font-family:inherit}.rb-products-trigger b{font-size:1rem;line-height:.5;transition:transform .2s ease}.rb-products-nav.is-open .rb-products-trigger b{transform:rotate(180deg)}
.rb-site-actions { display:flex;align-items:center;gap:.55rem;flex:0 0 auto;direction:ltr }.rb-site-actions form{display:flex}
.rb-header-icon { display:grid;place-items:center;width:40px;height:40px;border-radius:50%;transition:transform .2s ease }.rb-header-icon:hover{transform:translateY(-2px)}.rb-header-icon img{width:40px;height:40px}
.rb-header-login { padding:.5rem .35rem;color:#475569;font-size:.75rem;font-weight:600;white-space:nowrap }
.rb-header-join { display:inline-flex;align-items:center;gap:.45rem;padding:.7rem 1.2rem;border-radius:999px;background:linear-gradient(90deg,#14a86a,#096944);color:#fff;font-size:.75rem;font-weight:700;white-space:nowrap;box-shadow:0 8px 18px -6px rgba(10,128,77,.35) }.rb-header-join span{font-size:.9rem}
/* Products dropdown — plain click-to-open list under the trigger (the hover mega
   menu was replaced: it opened on any accidental pass and covered the viewport). */
.rb-pmenu { position:absolute;z-index:60;top:calc(100% + 12px);inset-inline-start:0;width:min(56rem,calc(100vw - 3rem));padding:1rem;border:1px solid #e6ede9;border-radius:20px;background:#fff;box-shadow:0 24px 54px -20px rgba(8,30,21,.3),0 3px 10px rgba(8,30,21,.06);direction:rtl }
.rb-pmenu[hidden] { display:none }
.rb-pmenu-head { display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.6rem;padding-bottom:.55rem;border-bottom:1px solid #eef3f0 }
.rb-pmenu-head > span { color:#8b9a93;font-size:.68rem;font-weight:700 }
.rb-pmenu-head > a { display:inline-flex;align-items:center;gap:.35rem;color:#0d6e48;font-size:.7rem;font-weight:700 }
.rb-pmenu-head > a:hover { color:#0a5334 }
.rb-pmenu-head i { font-style:normal;font-size:.85rem;line-height:1 }
.rb-pmenu-body { display:flex;align-items:stretch;gap:1rem }
.rb-pmenu-grid { flex:1;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.15rem .4rem }
.rb-pmenu-item { display:flex;align-items:center;gap:.6rem;min-width:0;padding:.45rem .55rem;border-radius:12px;transition:background .16s ease }
.rb-pmenu-item:hover { background:#f2faf6 }
/* The designed 3D tiles are artwork, not glyphs — no chip behind them, and at
   the size they were drawn for. The tinted chip is only for the stroke-glyph
   fallback a brand-new category gets. */
.rb-pmenu-icon { display:grid;flex:0 0 40px;place-items:center;width:40px;height:40px;color:#0d6e48 }
.rb-pmenu-icon img { width:40px;height:40px;object-fit:contain }
.rb-pmenu-icon.is-glyph { border-radius:11px;background:#f0f6f3 }
.rb-pmenu-icon svg { width:19px;height:19px }
.rb-pmenu-item strong { overflow:hidden;flex:1;color:#152430;font-size:.75rem;font-weight:700;line-height:1.6;text-overflow:ellipsis;white-space:nowrap }
.rb-pmenu-item:hover strong { color:#0d6e48 }
.rb-pmenu-count { flex:0 0 auto;min-width:1.3rem;padding:.12rem .38rem;border-radius:999px;background:#eef3f0;color:#7d8d86;font-size:.6rem;font-style:normal;font-weight:700;text-align:center }
.rb-pmenu-item:hover .rb-pmenu-count { background:#d8f0e5;color:#0d6e48 }
/* The promo card the old menu carried at its left end. */
.rb-pmenu-promo { display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:1rem;flex:0 0 200px;padding:1.15rem;border-radius:18px;background:linear-gradient(128deg,#14a86a,#085437 72%);color:#fff;text-align:right }
.rb-pmenu-promo > img { width:72px;height:84px;object-fit:contain }
.rb-pmenu-promo > span { display:flex;flex-direction:column;gap:.3rem }
.rb-pmenu-promo strong { font-size:.85rem;font-weight:800 }
.rb-pmenu-promo small { color:#cdecdd;font-size:.64rem;line-height:1.8 }
.rb-pmenu-promo > b { display:inline-flex;align-items:center;gap:.4rem;padding:.6rem .95rem;border-radius:12px;background:#fff;color:#0d5c40;font-size:.68rem;font-weight:700 }
.rb-pmenu-promo i { font-style:normal }
.rb-home-footer { margin-top:0!important }
.rb-home-footer .max-w-7xl { max-width:1312px }
.rb-home-footer > .max-w-7xl { padding-top:3.5rem;padding-bottom:3.5rem }

@media (max-width: 1100px) {
  .rb-landing-hero-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .rb-hero-product-2 { left: 160px; }
  .rb-hero-float-bottom { left: -12px; }
  .rb-showcase-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .rb-api-art { left:-32px }.rb-api-copy{width:70%}
  .rb-site-nav-link { padding-inline:.65rem }.rb-site-nav-pill{gap:1rem}
}
@media (max-width: 820px) {
  .rb-landing-hero-grid { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .rb-landing-hero-copy { padding-block: 0; }.rb-landing-hero-stage { min-height: 480px; max-width: 620px; width: 100%; margin-inline: auto; }
  .rb-showcase-grid { display: flex; overflow-x: auto; padding-bottom: .8rem; scroll-snap-type: x proximity; scrollbar-width: none; }.rb-showcase-card { flex: 0 0 225px; scroll-snap-align: start; }
  .rb-popular-category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 150px; }
  .rb-pc-1 { grid-column: span 4; grid-row: span 1; }
  .rb-pc-2, .rb-pc-3, .rb-pc-4, .rb-pc-5, .rb-pc-6 { grid-column: span 2; }
  .rb-pc-7 { grid-column: span 4; }
  .rb-api-grid { grid-template-columns:1fr;gap:1.1rem }.rb-api-card{min-height:190px}.rb-api-art{left:0;top:-15px}.rb-api-copy{width:72%}
  .rb-showcase-strip { grid-template-columns:minmax(0,1fr) }.rb-strip-arrow{display:none}
  .rb-payment-banner { align-items:stretch;flex-direction:column }.rb-payment-art{align-self:center;order:2}.rb-payment-copy{order:1}
  .rb-site-header{padding:10px 14px}.rb-site-nav-pill{height:58px;padding:8px 10px;border-radius:19px}.rb-site-nav{display:none}.rb-pmenu{display:none}
}
@media (max-width: 560px) {
  .rb-landing-shell { width: min(100% - 1.25rem,1312px); }.rb-landing-section { padding-block: 2.1rem; }
  .rb-landing-hero-grid { padding-top:1.7rem;gap:.8rem }
  .rb-landing-kicker { max-width:100%;padding:.52rem .75rem;font-size:.62rem;line-height:1.8;white-space:normal }.rb-landing-hero-copy h1 { margin-top:1rem;font-size:clamp(1.7rem,8vw,2rem);line-height:1.55 }.rb-landing-hero-copy > p { font-size:.82rem;line-height:1.95 }
  .rb-landing-hero-stage { min-height:285px;max-width:390px;transform:none;margin:0 auto;overflow:visible;contain:layout paint }.rb-hero-product-wrap{transform-origin:top left}.rb-hero-product-1 { left:-5px;top:45px;transform:rotate(8deg) scale(.54) }.rb-hero-product-2 { left:clamp(105px,30vw,140px);top:5px;transform:rotate(4deg) scale(.54) }.rb-hero-product-1:hover{transform:rotate(8deg) scale(.54)}.rb-hero-product-2:hover{transform:rotate(4deg) scale(.54)}.rb-hero-float{display:none}
  .rb-landing-heading { align-items:flex-end;flex-wrap:wrap;gap:.7rem }.rb-landing-heading h2 { font-size:1.22rem }.rb-landing-heading p { font-size:.7rem;line-height:1.7 }.rb-landing-heading > a { margin-inline-start:auto;padding:.5rem .65rem;font-size:.64rem }
  .rb-popular-category-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }.rb-popular-category-card,.rb-pc-1,.rb-pc-2,.rb-pc-3,.rb-pc-4,.rb-pc-5,.rb-pc-6,.rb-pc-7 { grid-column: auto; grid-row: auto; min-height: 168px;padding:1.4rem }.rb-popular-category-copy { width: calc(100% - 82px); }.rb-popular-category-art,.rb-pc-1 .rb-popular-category-art,.rb-pc-7 .rb-popular-category-art,.rb-pc-4 .rb-popular-category-art,.rb-pc-5 .rb-popular-category-art,.rb-pc-6 .rb-popular-category-art { width:70px;height:70px;left:.85rem }.rb-pc-1 .rb-popular-category-copy{width:calc(100% - 82px)}.rb-pc-4 .rb-popular-category-copy,.rb-pc-5 .rb-popular-category-copy,.rb-pc-6 .rb-popular-category-copy{width:calc(100% - 82px)}.rb-pc-1 .rb-popular-category-copy h3{font-size:.95rem}.rb-popular-category-copy h3{font-size:.95rem}.rb-popular-category-copy p{font-size:.65rem}
  .rb-category-showcase .rb-landing-shell { padding: 1rem; }.rb-landing-heading-with-icon > span { width: 40px; height: 40px; }
  .rb-api-heading{margin-bottom:2.2rem}.rb-api-card{padding:1.4rem;min-height:180px;overflow:hidden}.rb-api-copy h3{font-size:1.05rem}.rb-api-art{left:-18px;top:8px;width:120px;height:145px}.rb-api-art img{width:92px;height:92px}.rb-api-copy{width:72%}.rb-api-copy h3{font-size:.9rem}.rb-api-copy p{font-size:.65rem}
  .rb-payment-banner { padding:1.4rem;gap:1rem }.rb-payment-art{width:260px;flex-basis:165px;transform:scale(.82);transform-origin:center}.rb-payment-copy > a{display:flex;justify-content:center}.rb-payment-copy > p{font-size:.75rem}.rb-payment-tags{gap:.35rem}.rb-payment-tags i{font-size:.62rem}
  .rb-site-header{padding:8px 10px}.rb-site-nav-pill{height:56px;padding:7px 8px;border-radius:18px;gap:.4rem}.rb-site-brand{gap:.35rem;min-width:0}.rb-site-brand > span{font-size:1rem}.rb-site-brand img{width:34px;height:34px}.rb-header-icon{display:none}.rb-site-actions{gap:.35rem}.rb-header-join{padding:.58rem .75rem;font-size:.64rem}.rb-header-login{font-size:.66rem}
}
@media (max-width: 380px) {
  .rb-site-brand > span{display:none}.rb-header-join span{display:none}.rb-landing-hero-stage{min-height:255px}.rb-hero-product-1{left:-8px;top:40px;transform:rotate(8deg) scale(.48)}.rb-hero-product-2{left:92px;top:4px;transform:rotate(4deg) scale(.48)}.rb-hero-product-1:hover{transform:rotate(8deg) scale(.48)}.rb-hero-product-2:hover{transform:rotate(4deg) scale(.48)}
}
@media (prefers-reduced-motion: reduce) { .rb-hero-product-wrap,.rb-hero-product-card,.rb-hero-float,.rb-api-card,.rb-popular-category-card,.rb-showcase-card,.rb-strip-arrow,.rb-review-nav button { transition:none } }

/* ---------- Contact page (public, landing chrome) ---------- */
.rb-contact-page { background: #f7f9f8; }
.rb-contact-crumbs { border-bottom: 1px solid #eef2f0; background: #fff; }
.rb-contact-crumbs .rb-landing-shell { display: flex; align-items: center; gap: .5rem; padding-block: .85rem; overflow-x:auto;color: #94a3b8; font-size: .75rem;white-space:nowrap;scrollbar-width:none }
.rb-contact-crumbs .rb-landing-shell::-webkit-scrollbar { display:none }
.rb-contact-crumbs a { color: #94a3b8; }
.rb-contact-crumbs a:hover { color: #0d5c40; }
.rb-contact-crumbs b { color: #334155; font-weight: 600; }

.rb-contact-hero { background: linear-gradient(180deg, #e9f6ef 0%, #f7fbf9 70%, #f7f9f8 100%); }
.rb-contact-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: center; gap: 2rem; padding-block: 3.4rem; }
.rb-contact-hero-copy { text-align: right; }
.rb-contact-status { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; background: #fff; box-shadow: 0 8px 18px -14px rgba(15,38,28,.4); color: #334155; font-size: .74rem; font-weight: 600; }
.rb-contact-status i { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.rb-contact-hero-copy h1 { margin-top: 1.1rem; color: #0f1b16; font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.5; }
.rb-contact-hero-copy p { margin-top: 1rem; max-width: 46ch; margin-inline-start: auto; color: #5a6675; font-size: .92rem; line-height: 2.2; }
.rb-contact-hero-art { display: grid; place-items: center; }
.rb-contact-hero-art img { width: 190px; max-width: 100%; filter: drop-shadow(0 22px 26px rgba(15,38,28,.18)); }

.rb-contact-section { padding-block: 3rem 4rem; }
.rb-contact-heading { text-align: right; margin-bottom: 1.6rem; }
.rb-contact-heading h2 { color: #0f1b16; font-family: 'Estedad','Vazirmatn',sans-serif; font-size: 1.4rem; font-weight: 800; }
.rb-contact-heading p { margin-top: .5rem; color: #6b7785; font-size: .82rem; }

.rb-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.1rem; }
.rb-contact-card { display: flex; flex-direction: column; align-items: flex-end; padding: 1.6rem; border: 1px solid #eef2f0; border-radius: 24px; background: #fff; color: inherit; text-align: right; box-shadow: 0 16px 30px -26px rgba(15,38,28,.45); transition: transform .22s ease, box-shadow .22s ease; }
.rb-contact-card:hover { transform: translateY(-4px); box-shadow: 0 22px 34px -22px rgba(15,38,28,.38); }
.rb-contact-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-inline-end: auto; margin-bottom: 1.4rem; border-radius: 16px; background: #eaf6f0; color: #0d7a4f; }
.rb-contact-icon svg { width: 22px; height: 22px; }
.rb-contact-card small { color: #94a3b8; font-size: .72rem; }
.rb-contact-card strong { margin-top: .35rem; color: #0f1b16; font-size: 1.05rem; font-weight: 700; }
.rb-contact-card p { margin-top: .55rem; color: #6b7785; font-size: .76rem; line-height: 1.9; }
.rb-contact-cta { margin-top: 1.3rem; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.1rem; border-radius: 999px; background: #f2f6f4; color: #334155; font-size: .78rem; font-weight: 700; }
.rb-contact-cta i { font-style: normal; }
.rb-contact-card.is-primary { border-color: #0b5c3c; background: linear-gradient(160deg, #12734a, #0a5334); color: #fff; }
.rb-contact-card.is-primary .rb-contact-icon { background: rgba(255,255,255,.16); color: #fff; }
.rb-contact-card.is-primary small { color: rgba(255,255,255,.72); }
.rb-contact-card.is-primary strong { color: #fff; }
.rb-contact-card.is-primary p { color: rgba(255,255,255,.82); }
.rb-contact-card.is-primary .rb-contact-cta { background: #fff; color: #0a5334; }

.rb-contact-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 1.4rem; border: 1px solid #eef2f0; border-radius: 22px; background: #fff; overflow: hidden; }
.rb-contact-facts > div { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; padding: 1.15rem 1.4rem; border-inline-start: 1px solid #f0f4f2; text-align: right; }
.rb-contact-facts > div:first-child { border-inline-start: 0; }
.rb-contact-facts span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #eaf6f0; color: #0d7a4f; order: 2; flex: none; }
.rb-contact-facts svg { width: 20px; height: 20px; }
.rb-contact-facts strong { display: block; color: #0f1b16; font-size: .84rem; font-weight: 700; }
.rb-contact-facts small { color: #8794a2; font-size: .72rem; }

.rb-contact-about { margin-top: 1.6rem; padding: 2rem; border: 1px solid #eef2f0; border-radius: 24px; background: #fff; text-align: right; }
.rb-contact-about h2 { color: #0f1b16; font-family: 'Estedad','Vazirmatn',sans-serif; font-size: 1.15rem; font-weight: 800; }
.rb-contact-about p { margin-top: 1rem; color: #5a6675; font-size: .84rem; line-height: 2.3; }
.rb-contact-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1.5rem; }
.rb-contact-chips i { padding: .5rem 1rem; border-radius: 999px; font-size: .76rem; font-style: normal; font-weight: 600; }
.rb-contact-chips .c1 { background: #e7f6ec; color: #15803d; }
.rb-contact-chips .c2 { background: #fdeee0; color: #b45309; }
.rb-contact-chips .c3 { background: #e6edfb; color: #2f4fbf; }
.rb-contact-chips .c4 { background: #f1e9fb; color: #6d28d9; }

/* Public contact form → the admins' inboxes. Same card language as the rest of
   the page; the captcha field inside is Tailwind-styled (shared with login). */
.rb-contact-form-wrap { margin-top: 1.6rem; padding: 2rem; border: 1px solid #eef2f0; border-radius: 24px; background: #fff; }
.rb-contact-form-wrap .rb-contact-heading { margin-bottom: 1.2rem; }
.rb-contact-alert { margin-bottom: 1.1rem; padding: .9rem 1.1rem; border-radius: 16px; font-size: .82rem; text-align: right; line-height: 1.9; }
.rb-contact-alert strong { display: block; font-weight: 700; }
.rb-contact-alert span { color: inherit; opacity: .85; }
.rb-contact-alert.is-ok { border: 1px solid #b7e4cb; background: #eefaf3; color: #0a5334; }
.rb-contact-alert.is-err { border: 1px solid #f6c8c8; background: #fdf1f1; color: #9b1c1c; }
.rb-contact-form { text-align: right; }
.rb-cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.rb-contact-form label { display: block; }
.rb-contact-form label > span { display: block; margin-bottom: .4rem; color: #64748b; font-size: .76rem; font-weight: 600; }
.rb-contact-form input, .rb-contact-form textarea { width: 100%; padding: .8rem 1rem; border: 1px solid #e7ecea; border-radius: 14px; background: #fbfdfc; color: #0f1b16; font-family: inherit; font-size: .84rem; line-height: 1.9; transition: border-color .18s ease, background .18s ease; }
.rb-contact-form input:focus, .rb-contact-form textarea:focus { outline: none; border-color: #9ed3b8; background: #fff; }
.rb-contact-form textarea { resize: vertical; min-height: 130px; }
.rb-cf-full { margin-top: 1rem; }
.rb-cf-captcha { max-width: 340px; }
.rb-contact-form button { margin-top: 1.3rem; padding: .85rem 2.4rem; border: 0; border-radius: 999px; background: linear-gradient(160deg, #12734a, #0a5334); color: #fff; font-family: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.rb-contact-form button:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -18px rgba(10,83,52,.75); }

.rb-contact-team { margin-top: 1.6rem; }
.rb-contact-team h2 { margin-bottom: 1rem; color: #0f1b16; font-size: 1.1rem; font-weight: 800; text-align: right; }
.rb-contact-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.rb-contact-person { padding: 1.2rem; border: 1px solid #eef2f0; border-radius: 20px; background: #fff; text-align: right; }
.rb-contact-person strong { color: #0f1b16; font-size: .9rem; }
.rb-contact-person small { display: block; margin-top: .2rem; color: #0d7a4f; font-size: .72rem; }
.rb-contact-person div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; margin-top: .8rem; }
.rb-contact-person a { padding: .35rem .8rem; border-radius: 999px; background: #f2f6f4; color: #334155; font-size: .72rem; }

@media (max-width: 900px) {
  .rb-contact-hero-grid { grid-template-columns: 1fr; padding-block: 2.4rem; }
  .rb-contact-hero-art { order: -1; }
  .rb-contact-hero-art img { width: 130px; }
  .rb-contact-grid, .rb-contact-facts, .rb-contact-team-grid { grid-template-columns: 1fr; }
  .rb-contact-facts > div { border-inline-start: 0; border-top: 1px solid #f0f4f2; }
  .rb-contact-facts > div:first-child { border-top: 0; }
  .rb-contact-about { padding: 1.4rem; }
  .rb-contact-form-wrap { padding: 1.4rem; }
  .rb-cf-grid { grid-template-columns: 1fr; }
  .rb-cf-captcha { max-width: none; }
}

/* ---------- Per-category (brand) page ---------- */
.rb-brand-page { background: #f7f9f8; }
.rb-brand-page .rb-contact-crumbs .rb-landing-shell { padding-block:.6rem }
.rb-brand-hero { background: linear-gradient(180deg,#eef7f2,#f7f9f8); }
.rb-brand-hero-grid { display:grid;grid-template-columns:minmax(0,1fr) 120px;align-items:center;gap:1rem;padding-block:1.4rem }
.rb-brand-hero-copy { text-align: right; }
.rb-brand-hero-copy h1 { color:#0f1b16;font-size:clamp(1.4rem,2.4vw,1.85rem);font-weight:800;line-height:1.55 }
.rb-brand-hero-copy p { margin-top:.35rem;color:#5a6675;font-size:.82rem;line-height:1.9 }
.rb-brand-hero-art { display:grid;place-items:center;width:92px;height:92px;margin-inline:auto }
.rb-brand-hero-art img,.rb-brand-hero-art svg { width:92px;height:92px;object-fit:contain;border-radius:23px;filter:drop-shadow(0 12px 16px rgba(15,38,28,.14)) }

.rb-brand-body { padding-block:1.25rem 3.5rem }
.rb-brand-toolbar { display:block }
.rb-brand-toolbar h2 { color: #0f1b16; font-family: 'Estedad','Vazirmatn',sans-serif; font-size: 1.25rem; font-weight: 800; }
.rb-brand-controls { display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem }
.rb-brand-search { position: relative; flex: 0 1 340px; }
.rb-brand-search input { width: 100%; padding: .7rem 1rem .7rem 2.6rem; border: 1px solid #e7ecea; border-radius: 999px; background: #fff; font-size: .8rem; }
.rb-brand-search input:focus { outline: none; border-color: #9ed3b8; }
.rb-brand-search button { position: absolute; left: .55rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #94a3b8; cursor: pointer; }
.rb-brand-search svg { width: 17px; height: 17px; }

.rb-brand-sorts { display:flex;align-items:center;flex:1 1 auto;min-width:0;flex-wrap:wrap;gap:.5rem;color:#94a3b8;font-size:.76rem }
.rb-brand-sorts a { padding: .45rem 1rem; border-radius: 999px; background: #eef2f0; color: #475569; font-weight: 600; }
.rb-brand-sorts a:hover { background: #e3ebe7; }
.rb-brand-sorts a.is-active { background: #dff2e7; color: #0d7a4f; }

.rb-brand-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.1rem; margin-top: 1.4rem; }
.rb-brand-card { display: block; padding: .85rem; border: 1px solid #eef2f0; border-radius: 22px; background: #fff; color: inherit; text-align: right; box-shadow: 0 14px 26px -24px rgba(15,38,28,.4); transition: transform .2s ease, box-shadow .2s ease; }
.rb-brand-card:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -22px rgba(15,38,28,.35); }
.rb-brand-thumb { display: grid; place-items: center; height: 168px; border-radius: 16px; background: #eaf6ee; overflow: hidden; }
.rb-brand-thumb img { max-width: 78%; max-height: 78%; object-fit: contain; }
/* A real cover fills a 16:10 frame like every other card; the contain rule above
   is for the fallback category GLYPH, which would look absurd blown up. */
.rb-brand-thumb.has-image { display: block; height: auto; aspect-ratio: 16 / 10; background: #e4f3ec; }
.rb-brand-thumb.has-image img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.rb-brand-card h3 { margin-top: .85rem; display: -webkit-box; overflow: hidden; color: #141a21; font-size: .84rem; font-weight: 700; line-height: 1.8; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rb-brand-card small { display: block; margin-top: .35rem; color: #94a3b8; font-size: .7rem; }
.rb-brand-card strong { display: block; margin-top: .6rem; color: var(--rb-price-color); font-size: .88rem; font-weight: 700; }
.rb-brand-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .6rem; }
.rb-brand-card-meta strong { margin-top: 0; text-align: left; }
.rb-brand-card-buy { flex: none; padding: .5rem .8rem; border-radius: 7px; background: #171c23; color: #fff; font-size: .67rem; font-weight: 700; }
.rb-brand-card:hover .rb-brand-card-buy { background: #000; }

.rb-brand-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 1.8rem; }
.rb-brand-pager a { min-width: 34px; padding: .45rem .6rem; border-radius: 10px; background: #fff; border: 1px solid #eef2f0; color: #475569; font-size: .78rem; text-align: center; }
.rb-brand-pager a.is-active { background: #0d7a4f; border-color: #0d7a4f; color: #fff; }
.rb-brand-empty { margin-top: 1.4rem; padding: 2.5rem 1.5rem; border: 1px dashed #d8e2dd; border-radius: 22px; background: #fff; color: #6b7785; font-size: .85rem; text-align: center; }

.rb-brand-siblings { position: relative; overflow: hidden; margin-top: 2.4rem; padding: 1.35rem; border: 1px solid #e5ece8; border-radius: 26px; background: linear-gradient(145deg,#fff 20%,#f1f8f4 130%); }
.rb-brand-siblings::after { content: ''; position: absolute; inset: -8rem auto auto -7rem; width: 16rem; height: 16rem; border-radius: 50%; background: rgba(22,161,99,.045); pointer-events: none; }
.rb-brand-siblings-head { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; text-align: right; }
.rb-brand-siblings-head > div > span { color: #0d7a4f; font-size: .66rem; font-weight: 750; }
.rb-brand-siblings-head h2 { margin-top: .2rem; color: #0f1b16; font-family: 'Estedad','Vazirmatn',sans-serif; font-size: 1.05rem; font-weight: 800; }
.rb-brand-siblings-head p { margin-top: .3rem; color: #829087; font-size: .7rem; line-height: 1.8; }
.rb-brand-siblings-all { display: inline-flex; align-items: center; gap: .45rem; flex: none; padding: .55rem .8rem; border: 1px solid #dce8e1; border-radius: 11px; background: rgba(255,255,255,.8); color: #0d7a4f; font-size: .7rem; font-weight: 700; }
.rb-brand-siblings-all i { font-size: .82rem; font-style: normal; transition: transform .2s ease; }
.rb-brand-siblings-all:hover i { transform: translateX(-3px); }
.rb-brand-sibling-rail { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .7rem; margin-top: 1rem; }
.rb-brand-sibling-card { display: flex; align-items: center; min-width: 0; gap: .7rem; padding: .75rem; border: 1px solid #e8eeea; border-radius: 16px; background: rgba(255,255,255,.9); color: #263d33; box-shadow: 0 12px 24px -24px rgba(12,48,32,.45); transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.rb-brand-sibling-card:hover { transform: translateY(-2px); border-color: #a9d6bf; box-shadow: 0 18px 28px -22px rgba(12,48,32,.32); }
.rb-brand-sibling-card:focus-visible { outline: 3px solid rgba(13,122,79,.22); outline-offset: 2px; }
.rb-brand-sibling-icon { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 7px 8px rgba(16,48,34,.09)); transition: transform .2s ease; }
.rb-brand-sibling-card:hover .rb-brand-sibling-icon { transform: scale(1.04); }
.rb-brand-sibling-copy { min-width: 0; flex: 1; text-align: right; }
.rb-brand-sibling-copy strong { display: block; overflow: hidden; color: #17261f; font-size: .72rem; font-weight: 750; line-height: 1.7; text-overflow: ellipsis; white-space: nowrap; }
.rb-brand-sibling-copy small { display: block; margin-top: .14rem; color: #91a097; font-size: .61rem; }
.rb-brand-sibling-copy small b { color: #0d7a4f; font-family: 'Estedad','Vazirmatn',sans-serif; font-size: .66rem; font-weight: 800; }
.rb-brand-sibling-arrow { display: grid; place-items: center; width: 25px; height: 25px; flex: none; border-radius: 8px; background: #edf7f2; color: #0d7a4f; font-size: .75rem; font-style: normal; transition: transform .2s ease,background .2s ease; }
.rb-brand-sibling-card:hover .rb-brand-sibling-arrow { transform: translateX(-2px); background: #dff2e7; }

@media (max-width: 1100px) { .rb-brand-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 900px) { .rb-category-detail-page .rb-header-search-mobile{display:none} }
@media (max-width: 900px) { .rb-brand-sibling-rail { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 820px) { .rb-brand-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }.rb-brand-hero-grid{display:flex;align-items:center;gap:1rem}.rb-brand-hero-copy{flex:1;min-width:0}.rb-brand-hero-art{order:0;flex:0 0 72px;width:72px;height:72px}.rb-brand-hero-art img,.rb-brand-hero-art svg{width:72px;height:72px;border-radius:20px} }
@media (max-width: 560px) {
  .rb-brand-page .rb-contact-crumbs .rb-landing-shell{padding-block:.48rem}.rb-brand-hero-grid{gap:.75rem;padding-block:.85rem}.rb-brand-hero-copy h1{font-size:1.18rem}.rb-brand-hero-copy p{margin-top:.25rem;font-size:.7rem;line-height:1.8}.rb-brand-hero-art{flex-basis:56px;width:56px;height:56px}.rb-brand-hero-art img,.rb-brand-hero-art svg{width:56px;height:56px;border-radius:16px}
  .rb-brand-body{padding-block:1rem 2.5rem}.rb-brand-toolbar h2{font-size:1.05rem}.rb-brand-controls{align-items:stretch;flex-wrap:wrap;gap:.7rem;margin-top:.8rem}.rb-brand-search{order:2;flex:1 1 100%;max-width:none}.rb-brand-search input{min-height:44px}.rb-brand-sorts{order:1;flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;padding-bottom:.35rem;white-space:nowrap;scrollbar-width:none}.rb-brand-sorts::-webkit-scrollbar{display:none}.rb-brand-sorts span,.rb-brand-sorts a{flex:0 0 auto}
  .rb-brand-grid{gap:.7rem;margin-top:1rem}.rb-brand-card{padding:.6rem;border-radius:17px}.rb-brand-thumb{border-radius:12px}.rb-brand-thumb:not(.has-image){height:120px}.rb-brand-card h3{margin-top:.65rem;font-size:.76rem;line-height:1.75}.rb-brand-card small{font-size:.62rem;line-height:1.7}.rb-brand-card strong{font-size:.76rem}.rb-brand-card-meta{margin-top:.5rem}.rb-brand-card-buy{padding:.42rem .6rem;font-size:.62rem}
  .rb-brand-siblings{margin-top:1.7rem;padding:1rem;border-radius:20px}.rb-brand-siblings-head{align-items:flex-start}.rb-brand-siblings-head p{max-width:30ch}.rb-brand-siblings-all{padding:.5rem .65rem}.rb-brand-sibling-rail{display:flex;grid-template-columns:none;gap:.6rem;overflow-x:auto;margin-inline:-1rem;padding:0 1rem .45rem;scroll-snap-type:x mandatory;scrollbar-width:none}.rb-brand-sibling-rail::-webkit-scrollbar{display:none}.rb-brand-sibling-card{flex:0 0 min(82vw,290px);padding:.7rem;scroll-snap-align:start}.rb-brand-sibling-icon{width:44px;height:44px}
}

/* ---------- Product detail page ---------- */
.rb-product-page { background: #f7f9f8; padding-bottom: 3.5rem; }
.rb-product-alert { margin-top: 1rem; padding: .9rem 1.1rem; border: 1px solid #fecaca; border-radius: 16px; background: #fef2f2; color: #b91c1c; font-size: .82rem; }
.rb-product-top { display: grid; grid-template-columns: .9fr 1.15fr; align-items: stretch; gap: 1.2rem; padding-top: 1.6rem; direction: ltr; }
.rb-product-gallery { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 26px; background: #23180f; overflow: hidden; }
.rb-product-gallery:has(img) { background: #e4f3ec; }
.rb-product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.rb-product-gallery-empty { color: rgba(255,255,255,.35); }
.rb-product-gallery-empty svg { width: 84px; height: 84px; }

.rb-product-gallery, .rb-product-buy { direction: rtl; }
.rb-product-buy { display: flex; flex-direction: column; justify-content: center; padding: 1.8rem; border: 1px solid #eef2f0; border-radius: 26px; background: #fff; text-align: right; }
.rb-product-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.rb-product-badges a, .rb-product-badges span { padding: .35rem .9rem; border-radius: 999px; background: #f1f5f3; color: #5a6675; font-size: .72rem; font-weight: 600; }
.rb-product-badges .is-brand { background: #dff2e7; color: #0d7a4f; }
.rb-product-buy h1 { margin-top: 1rem; color: #0f1b16; font-size: clamp(1.25rem,2.6vw,1.75rem); font-weight: 800; line-height: 1.6; }
.rb-product-lead { margin-top: .8rem; color: #5a6675; font-size: .84rem; line-height: 2.1; }
.rb-product-purchase { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.4rem; margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid #eef2f0; }
.rb-product-price { display: flex; align-items: baseline; gap: .45rem; }
.rb-product-price strong { color: var(--rb-price-color); font-family: 'Estedad','Vazirmatn',sans-serif; font-size: 1.85rem; font-weight: 800; }
.rb-product-price span { color: #94a3b8; font-size: .8rem; }
.rb-product-price em { color: #b45309; font-size: .8rem; font-style: normal; }
.rb-product-actions { display: flex; flex-wrap: wrap-reverse; align-items: center; gap: .7rem; }
.rb-product-actions form { flex: 0 0 auto; }
.rb-product-cta { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .9rem 2.1rem; border: 0; border-radius: 16px; background: linear-gradient(180deg,#149a5e,#0c7a49); color: #fff; font-family: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.rb-product-cta:hover { filter: brightness(1.05); }
.rb-product-cta i { font-style: normal; }
.rb-product-cta-sm { min-height: 38px; padding: .5rem 1.6rem; border-radius: .7rem; background: #0e182d; font-size: .74rem; }
/* compact buy button ⇒ the support button shrinks with it, so the pair matches */
.rb-product-actions:has(.rb-product-cta-sm) .rb-product-ghost { min-height: 38px; padding: .5rem 1.2rem; border-radius: .7rem; font-size: .76rem; }
.rb-product-ghost { flex: 0 1 auto; display: grid; place-items: center; min-height: 48px; padding: .9rem 1.4rem; border: 1px solid #e7ecea; border-radius: 16px; background: #fff; color: #334155; font-size: .84rem; font-weight: 600; }
.rb-product-ghost:hover { border-color: #9ed3b8; color: #0d7a4f; }
.rb-product-disabled { flex: 0 1 auto; display: grid; place-items: center; padding: .95rem 1.4rem; border-radius: 16px; background: #f1f5f3; color: #94a3b8; font-size: .82rem; }
.rb-product-trust { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.rb-product-trust i { padding: .4rem .85rem; border-radius: 999px; background: #f4f7f5; color: #64748b; font-size: .7rem; font-style: normal; }

.rb-product-headrow { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.1rem; margin-top: 1.65rem; }
.rb-product-headrow .rb-product-h2 { margin-top: 0; }
.rb-product-facts { display: flex; flex-wrap: wrap; gap: .5rem; }
.rb-product-facts > div { display: flex; align-items: baseline; gap: .45rem; padding: .45rem .95rem; border: 1px solid #eef2f0; border-radius: 999px; background: #fff; }
.rb-product-facts small { color: #94a3b8; font-size: .68rem; }
.rb-product-facts strong { color: #0f1b16; font-size: .75rem; font-weight: 700; }

.rb-product-h2 { margin-top: 1.65rem; color: #0f1b16; font-family: 'Estedad','Vazirmatn',sans-serif; font-size: 1.2rem; font-weight: 800; text-align: right; }
.rb-product-boxes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: .9rem; align-items: stretch; }
.rb-product-box { height: 100%; padding: 1.5rem; border: 1px solid #e6ece9; border-radius: 22px; background: #fff; text-align: right; }
/* a box with no partner on its row fills the row rather than leaving a hole */
.rb-product-boxes > .rb-product-box:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rb-product-box-full { grid-column: 1 / -1; }
.rb-product-box-head { display: flex; align-items: center; justify-content: flex-start; gap: .8rem; margin-bottom: 1rem; }
.rb-product-box-head h3 { color: #0f1b16; font-size: .95rem; font-weight: 800; }
.rb-product-box-head span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; flex: none; }
.rb-product-box-head svg { width: 17px; height: 17px; }
.rb-product-box-head .ic-green { background: #e3f5ea; color: #0d7a4f; }
.rb-product-box-head .ic-orange { background: #fdeee0; color: #b45309; }
.rb-product-box-head .ic-violet { background: #f0e9fb; color: #6d28d9; }
.rb-product-box-head .ic-blue { background: #e6edfb; color: #2f4fbf; }
.rb-product-box p { color: #5a6675; font-size: .82rem; line-height: 2.1; }
.rb-product-list { display: grid; gap: .55rem; }
.rb-product-list li { position: relative; padding-inline-start: 1rem; color: #5a6675; font-size: .82rem; line-height: 2; list-style: none; }
.rb-product-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.rb-product-specs { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: .55rem; }
.rb-product-specs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; min-width: 0; padding: .75rem .9rem; border-radius: 12px; background: #f6f9f7; font-size: .8rem; }
.rb-product-specs span { color: #94a3b8; }
.rb-product-specs b { color: #334155; font-weight: 600; }

.rb-product-faq { margin-top: 1.1rem; display: grid; gap: .7rem; }
.rb-product-faq details { padding: 1.1rem 1.4rem; border: 1px solid #eef2f0; border-radius: 18px; background: #fff; }
.rb-product-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #0f1b16; font-size: .86rem; font-weight: 700; cursor: pointer; list-style: none; }
.rb-product-faq summary::-webkit-details-marker { display: none; }
.rb-product-faq summary i { color: #94a3b8; font-style: normal; transition: transform .2s ease; }
.rb-product-faq details[open] summary i { transform: rotate(180deg); }
.rb-product-faq p { margin-top: .8rem; color: #6b7785; font-size: .8rem; line-height: 2.1; }

@media (max-width: 980px) {
  .rb-product-top, .rb-product-boxes { grid-template-columns: 1fr; }
  .rb-product-gallery { min-height: 0; aspect-ratio: 16 / 10; }
  .rb-product-box-full { grid-column: auto; }
  .rb-product-headrow { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .rb-product-page{padding-bottom:2.5rem}.rb-product-top{gap:.8rem;padding-top:1rem}.rb-product-gallery{border-radius:18px}.rb-product-buy{padding:1.15rem;border-radius:19px}.rb-product-buy h1{font-size:1.2rem}.rb-product-lead{font-size:.78rem;line-height:2}.rb-product-price{margin-top:1rem}.rb-product-price strong{font-size:1.5rem}
  .rb-product-purchase{gap:.9rem;padding-top:1.1rem}.rb-product-actions{width:100%;flex-wrap:wrap}.rb-product-actions>*,.rb-product-actions form,.rb-product-ghost,.rb-product-disabled{flex:1 1 100%;width:100%}.rb-product-cta,.rb-product-ghost,.rb-product-disabled{min-height:48px;padding:.8rem 1rem;width:100%}.rb-product-actions:has(.rb-product-cta-sm) .rb-product-ghost,.rb-product-cta-sm{min-height:42px;padding:.6rem 1rem}.rb-product-trust i{flex:1 1 auto;text-align:center}
  .rb-product-facts{gap:.4rem}.rb-product-facts>div{padding:.4rem .75rem}.rb-product-facts strong{font-size:.72rem}
  .rb-product-h2{margin-top:1.35rem;font-size:1.05rem}.rb-product-boxes{gap:.7rem;margin-top:.7rem}.rb-product-box{padding:1.1rem;border-radius:18px}.rb-product-specs{grid-template-columns:1fr}.rb-product-specs>div{align-items:flex-start}.rb-product-specs b{max-width:58%;text-align:left;overflow-wrap:anywhere}
  .rb-product-faq details{padding:1rem;border-radius:15px}
}
@media (max-width: 360px) { .rb-product-facts{grid-template-columns:1fr} }

/* Category icon (uploaded, main-category tile, or generated) */
.rb-cat-icon img, .rb-cat-icon svg { width: 100%; height: 100%; object-fit: contain; }
.rb-cat-icon { display: grid; place-items: center; }
.rb-cat-chip-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.rb-cat-chip-icon img, .rb-cat-chip-icon svg { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }

/* ---------- Products directory (/ai) ---------- */
.rb-catindex-page, .rb-about-page { background: #f6f8f7; padding-bottom: 4rem; }
.rb-catindex-hero { position: relative; overflow: hidden; border-bottom: 1px solid #e5eee9; background: radial-gradient(circle at 10% 15%,rgba(247,187,62,.16),transparent 25%),radial-gradient(circle at 88% 5%,rgba(20,154,94,.16),transparent 28%),linear-gradient(145deg,#f8fcfa 0%,#edf7f2 100%); }
.rb-catindex-hero::after { content: ''; position: absolute; inset: auto -8rem -11rem auto; width: 25rem; height: 25rem; border: 1px solid rgba(13,122,79,.12); border-radius: 50%; box-shadow: 0 0 0 3rem rgba(13,122,79,.035),0 0 0 7rem rgba(13,122,79,.025); pointer-events: none; }
.rb-catindex-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr); align-items: center; gap: clamp(2rem,5vw,5rem); padding-block: clamp(1.4rem,2.2vw,2rem); text-align: right; }
.rb-catindex-eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1px solid #cce8da; border-radius: 999px; background: rgba(255,255,255,.72); color: #0b7148; font-size: .72rem; font-weight: 700; }
.rb-catindex-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #16a163; box-shadow: 0 0 0 4px rgba(22,161,99,.12); }
.rb-catindex-hero h1 { max-width: 30ch; margin-top: .6rem; color: #0b1d15; font-size: clamp(1.8rem,3.2vw,2.7rem); font-weight: 850; line-height: 1.3; letter-spacing: -.035em; }
.rb-catindex-hero-copy > p { max-width: 68ch; margin-top: .6rem; color: #53655d; font-size: .9rem; line-height: 2.15; }
.rb-catindex-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; margin-top: .85rem; }
.rb-catindex-trust span { display: inline-flex; align-items: center; gap: .4rem; color: #456056; font-size: .72rem; font-weight: 600; }
.rb-catindex-trust i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #dff4e8; color: #0b7148; font-size: .66rem; font-style: normal; }
.rb-catindex-body { padding-top: clamp(2.2rem,5vw,4rem); }
.rb-catindex-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.3rem; text-align: right; }
.rb-catindex-section-head > div > span,.rb-catindex-soon > div > span { color: #0d7a4f; font-size: .7rem; font-weight: 750; }
.rb-catindex-section-head h2 { margin-top: .35rem; color: #0f1b16; font-family: 'Estedad','Vazirmatn',sans-serif; font-size: clamp(1.2rem,2.2vw,1.55rem); font-weight: 800; }
.rb-catindex-section-head p { color: #7f8d86; font-size: .72rem; }
.rb-catindex-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.rb-catindex-card { --rb-cat-accent:#0d7a4f; --rb-cat-tint:#edf8f2; position: relative; display: flex; min-height: 330px; flex-direction: column; align-items: stretch; overflow: hidden; padding: 1.25rem; border: 1px solid #e5ece8; border-radius: 25px; background: linear-gradient(160deg,#fff 55%,var(--rb-cat-tint) 145%); color: inherit; text-align: right; box-shadow: 0 20px 36px -32px rgba(12,44,31,.42); transition: transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.rb-catindex-card:nth-child(5n+2) { --rb-cat-accent:#4f46a5; --rb-cat-tint:#f1effb; }
.rb-catindex-card:nth-child(5n+3) { --rb-cat-accent:#b56522; --rb-cat-tint:#fdf3e9; }
.rb-catindex-card:nth-child(5n+4) { --rb-cat-accent:#28658f; --rb-cat-tint:#edf6fb; }
.rb-catindex-card:nth-child(5n+5) { --rb-cat-accent:#a33b63; --rb-cat-tint:#fbeef3; }
.rb-catindex-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--rb-cat-accent); opacity: .65; transform: scaleX(.22); transform-origin: right; transition: transform .25s ease; }
.rb-catindex-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb,var(--rb-cat-accent) 25%,#e5ece8); box-shadow: 0 26px 42px -30px rgba(10,43,29,.42); }
.rb-catindex-card:hover::before { transform: scaleX(1); }
.rb-catindex-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.rb-catindex-icon { width: 82px; height: 82px; flex: none; filter: drop-shadow(0 12px 12px rgba(26,49,38,.08)); transition: transform .25s ease; }
.rb-catindex-card:hover .rb-catindex-icon { transform: translateY(-2px) scale(1.03); }
.rb-catindex-card-copy { margin-top: 1.05rem; }
.rb-catindex-card-copy h3 { color: #102119; font-size: 1rem; font-weight: 800; line-height: 1.7; }
.rb-catindex-card-copy p { display: -webkit-box; min-height: 4.6em; margin-top: .55rem; overflow: hidden; color: #66766e; font-size: .72rem; line-height: 2; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.rb-catindex-examples { display: flex; align-items: baseline; gap: .45rem; margin-top: .7rem; }
.rb-catindex-examples span { color: #9aa69f; font-size: .62rem; }
.rb-catindex-examples b { overflow: hidden; color: #5b6962; font-size: .67rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.rb-catindex-card-action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid #edf1ef; color: var(--rb-cat-accent); font-size: .72rem; font-weight: 750; }
.rb-catindex-card-action i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--rb-cat-tint); font-size: .85rem; font-style: normal; transition: transform .2s ease; }
.rb-catindex-card:hover .rb-catindex-card-action i { transform: translateX(-3px); }
.rb-catindex-card:focus-visible { outline: 3px solid rgba(13,122,79,.28); outline-offset: 3px; }

.rb-catindex-soon { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 1.25rem; padding: 1.2rem 1.35rem; border: 1px dashed #d7e3dc; border-radius: 22px; background: rgba(255,255,255,.65); text-align: right; }
.rb-catindex-soon h2 { margin-top: .2rem; color: #0f1b16; font-size: .9rem; font-weight: 800; }
.rb-catindex-soon p { margin-top: .3rem; color: #849189; font-size: .68rem; line-height: 1.8; }
.rb-catindex-soon-rail { display: flex; flex: 1; flex-wrap: wrap; justify-content: flex-start; gap: .5rem; }
.rb-catindex-soon-rail > span { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; border: 1px solid #e2e9e5; border-radius: 999px; background: #fff; color: #7c8a83; font-size: .68rem; }

.rb-catindex-cta { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; overflow: hidden; margin-top: 1.25rem; padding: 2rem 2.2rem; border-radius: 26px; background: radial-gradient(circle at 10% 10%,rgba(255,209,94,.2),transparent 24%),linear-gradient(120deg,#08472f,#128254); color: #fff; text-align: right; }
.rb-catindex-cta::after { content: '?'; position: absolute; inset: -3.2rem auto auto 2rem; color: rgba(255,255,255,.07); font-family: 'Estedad','Vazirmatn',sans-serif; font-size: 10rem; font-weight: 800; line-height: 1; pointer-events: none; }
.rb-catindex-cta > div { position: relative; z-index: 1; }
.rb-catindex-cta-kicker { color: #9ce3bd; font-size: .68rem; font-weight: 750; }
.rb-catindex-cta h2 { margin-top: .3rem; font-family: 'Estedad','Vazirmatn',sans-serif; font-size: 1.15rem; font-weight: 800; }
.rb-catindex-cta p { max-width: 68ch; margin-top: .5rem; color: rgba(255,255,255,.76); font-size: .76rem; line-height: 1.9; }
.rb-catindex-cta a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .65rem; padding: .8rem 1.15rem; border-radius: 13px; background: #fff; color: #0a5334; font-size: .76rem; font-weight: 750; box-shadow: 0 12px 24px -18px rgba(0,0,0,.45); }
.rb-catindex-cta a:hover i { transform: translateX(-3px); }
.rb-catindex-cta i { font-size: .9rem; font-style: normal; transition: transform .2s ease; }

/* ---------- About ---------- */
.rb-about-hero { background: linear-gradient(180deg,#e9f6ef,#f7f9f8); }
.rb-about-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 240px; align-items: center; gap: 2rem; padding-block: 3rem; text-align: right; }
.rb-about-hero-grid h1 { margin-top: 1rem; color: #0f1b16; font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; line-height: 1.55; }
.rb-about-hero-grid p { margin-top: 1rem; max-width: 52ch; margin-inline-start: auto; color: #5a6675; font-size: .9rem; line-height: 2.2; }
.rb-about-hero-art { display: grid; place-items: center; }
.rb-about-hero-art img { width: 150px; filter: drop-shadow(0 20px 24px rgba(15,38,28,.18)); }

.rb-about-body { padding-top: 2rem; }
.rb-about-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.rb-about-stats > div { padding: 1.3rem; border: 1px solid #eef2f0; border-radius: 20px; background: #fff; text-align: center; }
.rb-about-stats strong { display: block; color: #0d7a4f; font-family: 'Estedad','Vazirmatn',sans-serif; font-size: 1.3rem; font-weight: 800; }
.rb-about-stats small { display: block; margin-top: .35rem; color: #8794a2; font-size: .72rem; }

.rb-about-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.2rem; }
.rb-about-card { padding: 1.6rem; border: 1px solid #eef2f0; border-radius: 22px; background: #fff; text-align: right; }
.rb-about-card h2 { color: #0f1b16; font-size: 1rem; font-weight: 800; }
.rb-about-card p { margin-top: .7rem; color: #5a6675; font-size: .83rem; line-height: 2.2; }

.rb-about-values { margin-top: 1.2rem; padding: 1.8rem 2rem; border: 1px solid #eef2f0; border-radius: 22px; background: #fff; text-align: right; }
.rb-about-values h2 { color: #0f1b16; font-size: 1rem; font-weight: 800; }
.rb-about-values ul { display: grid; gap: .7rem; margin-top: 1rem; }
.rb-about-values li { position: relative; padding-inline-end: 1rem; color: #5a6675; font-size: .83rem; line-height: 2.1; list-style: none; }
.rb-about-values li::before { content: ''; position: absolute; inset-inline-end: 0; top: .9em; width: 6px; height: 6px; border-radius: 50%; background: #16a34a; }
.rb-about-values strong { color: #0f1b16; font-weight: 700; }

@media (max-width: 1000px) { .rb-catindex-hero-grid { gap: 2rem; } .rb-catindex-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .rb-about-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 820px) {
  .rb-catindex-hero-grid { padding-block: 1.6rem; }
  .rb-catindex-hero h1 { max-width: 22ch; }
  .rb-catindex-soon { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .rb-catindex-soon-rail { justify-content: flex-start; }
  .rb-about-cards { grid-template-columns: 1fr; }
  .rb-about-hero-grid { grid-template-columns: 1fr; }
  .rb-about-hero-art { order: -1; } .rb-about-hero-art img { width: 110px; }
}
@media (max-width: 560px) {
  .rb-catindex-page { padding-bottom: 2.8rem; }
  .rb-catindex-hero-grid { gap: 1.5rem; padding-block: 1.25rem; }
  .rb-catindex-hero h1 { margin-top: .5rem; font-size: clamp(1.6rem,7.5vw,2.05rem); }
  .rb-catindex-hero-copy > p { font-size: .79rem; line-height: 2; }
  .rb-catindex-trust { gap: .55rem .8rem; }
  .rb-catindex-section-head { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .rb-catindex-grid { grid-template-columns: 1fr; gap: .75rem; }
  .rb-catindex-card { min-height: 0; padding: 1.05rem; border-radius: 21px; }
  .rb-catindex-icon { width: 72px; height: 72px; }
  .rb-catindex-card-copy p { min-height: 0; }
  .rb-catindex-soon { padding: 1rem; border-radius: 18px; }
  .rb-catindex-cta { align-items: stretch; padding: 1.4rem; border-radius: 21px; }
  .rb-catindex-cta a { justify-content: center; width: 100%; }
  .rb-about-stats { grid-template-columns: 1fr; }
}

/* ---------- Header search + autosuggest ---------- */
.rb-header-search { position:relative;flex:0 1 300px;min-width:0;direction:rtl }
.rb-header-search form { position:relative;display:flex;align-items:center }
.rb-header-search svg { position:absolute;inset-inline-start:.75rem;width:17px;height:17px;color:#94a3b8;pointer-events:none }
.rb-header-search input { width:100%;padding:.6rem 2.35rem .6rem 1rem;border:1px solid #e4ece7;border-radius:999px;background:#f7faf8;font-family:inherit;font-size:.78rem;color:#243b32 }
.rb-header-search input::placeholder { color:#9aa8a1 }
.rb-header-search input:focus { outline:none;border-color:#9ed3b8;background:#fff }
.rb-hs-panel { position:absolute;z-index:70;top:calc(100% + .5rem);inset-inline:0;max-height:60vh;overflow-y:auto;padding:.35rem;border:1px solid #e8eeea;border-radius:18px;background:#fff;box-shadow:0 24px 44px -18px rgba(10,31,23,.28) }
.rb-hs-item { display:flex;align-items:center;gap:.6rem;padding:.55rem .6rem;border-radius:12px;color:#243b32 }
.rb-hs-item:hover,.rb-hs-item.is-active { background:#f1f7f4 }
.rb-hs-item img { width:34px;height:34px;flex:none;border-radius:9px;object-fit:contain;background:#f1f5f3 }
.rb-hs-dot { width:34px;height:34px;flex:none;border-radius:9px;background:#eaf6ee }
.rb-hs-item span { flex:1;min-width:0 }
.rb-hs-item strong { display:block;overflow:hidden;font-size:.76rem;font-weight:700;white-space:nowrap;text-overflow:ellipsis }
.rb-hs-item small { display:block;color:#94a3b8;font-size:.66rem }
.rb-hs-item b { flex:none;color:#0d7a4f;font-size:.7rem;font-weight:700 }
.rb-hs-empty { padding:.9rem;color:#94a3b8;font-size:.75rem;text-align:center }
@media (max-width:1100px) { .rb-header-search { flex-basis:210px } .rb-site-nav { margin-inline-start:.8rem } }
.rb-header-search-mobile { display:none }
@media (max-width:900px) {
  .rb-header-search { display:none }
  .rb-header-search-mobile { display:block;flex:none;width:100%;max-width:1360px;margin:.55rem auto 0 }
  .rb-header-search-mobile input { padding-block:.62rem;background:#fff;box-shadow:0 10px 24px -18px rgba(10,51,36,.5) }
  .rb-header-search-mobile .rb-hs-panel { inset-inline:0 }
}
