/* =========================================================
   SadidHub — hub home (design "C-light")
   Brand: navy #033483 + orange #FEA000, IRANSans, RTL.
   Navy surfaces carry white text; orange surfaces carry navy text (never white on orange).
   Motion (Emil Kowalski): custom ease-out curves, scale(.97) on press, hover only on fine
   pointers, short non-uniform stagger, transform/opacity only, reduced-motion respected.
   Prefix: hb-  (CSP: no inline styles; everything lives here)
   ========================================================= */
:root {
    --hb-navy: #033483;
    --hb-navy-2: #0a4fb8;
    --hb-navy-3: #022766;
    --hb-orange: #fea000;
    --hb-orange-2: #f08a00;
    --hb-orange-3: #ffb83a;
    --hb-ink: #0b1f44;
    --hb-muted: #6b7a93;
    --hb-line: rgba(3, 52, 131, .08);
    --hb-bg: #f4f6fb;
    --hb-card: #fff;
    --hb-nsoft: #eaf0fa;
    --hb-asoft: #fff4de;
    --hb-danger: #b42318;
    --hb-shadow: 0 1px 2px rgba(3, 52, 131, .04), 0 6px 20px -10px rgba(3, 52, 131, .12);
    --hb-shadow-lift: 0 14px 30px -12px rgba(3, 52, 131, .28);
    --hb-ease: cubic-bezier(.23, 1, .32, 1);
    --hb-ease-io: cubic-bezier(.77, 0, .175, 1);
    --hb-ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

html { direction: rtl; }
body.hb-body {
    margin: 0;
    background: var(--hb-bg);
    color: var(--hb-ink);
    -webkit-font-smoothing: antialiased;
    text-align: right;
}
.hb-body a { color: inherit; text-decoration: none; }
.hb-body img { max-width: 100%; }
.hb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shared atoms ---------- */
.hb-card {
    background: var(--hb-card);
    border: 1px solid var(--hb-line);
    border-radius: 22px;
    box-shadow: var(--hb-shadow);
}
.hb-press {
    transition: transform 160ms var(--hb-ease), box-shadow 200ms ease, background-color 200ms ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}
.hb-press:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
    .hb-lift:hover { transform: translateY(-3px); box-shadow: var(--hb-shadow-lift); }
    .hb-lift:active { transform: translateY(-1px) scale(.98); }
}
.hb-body :focus-visible { outline: 3px solid rgba(254, 160, 0, .7); outline-offset: 2px; border-radius: 12px; }

.hb-tile {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--hb-navy-2), var(--hb-navy));
}
.hb-tile--orange { color: var(--hb-navy); background: linear-gradient(135deg, var(--hb-orange-3), var(--hb-orange-2)); }
.hb-tile--soft { color: var(--hb-navy); background: var(--hb-nsoft); }

.hb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 13px;
    font-size: .86rem;
    font-weight: 700;
    white-space: nowrap;
}
.hb-btn--navy { background: var(--hb-navy); color: #fff !important; }
.hb-btn--orange { background: var(--hb-orange); color: var(--hb-navy) !important; }
.hb-btn--white { background: #fff; color: var(--hb-navy) !important; }
.hb-btn--glass { background: rgba(255, 255, 255, .14); color: #fff !important; border: 1px solid rgba(255, 255, 255, .3); }
.hb-btn--soft { background: var(--hb-nsoft); color: var(--hb-navy) !important; }
.hb-btn--sm { min-height: 34px; padding: 0 12px; font-size: .78rem; border-radius: 10px; }

.hb-h {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 12px;
}
.hb-h h2 { margin: 0; font-size: 1.02rem; font-weight: 800; color: var(--hb-ink); }
.hb-h__more { margin-right: auto; font-size: .78rem; font-weight: 600; color: var(--hb-navy) !important; display: inline-flex; align-items: center; gap: 4px; }

.hb-amount { font-weight: 900; letter-spacing: -.3px; }
.hb-amount small { font-size: .78rem; font-weight: 500; opacity: .7; margin-right: 4px; }

/* ---------- navy hero (credit / guest) ---------- */
.hb-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 20px;
    color: #fff;
    background: linear-gradient(140deg, var(--hb-navy-2), var(--hb-navy) 65%, var(--hb-navy-3));
    box-shadow: 0 18px 40px -18px rgba(3, 52, 131, .55);
}
.hb-hero::after {
    content: "";
    position: absolute;
    left: -60px;
    top: -76px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 20px solid rgba(254, 160, 0, .85);
    pointer-events: none;
}
.hb-hero > * { position: relative; z-index: 1; }
.hb-hero__lbl { font-size: .8rem; color: #b9cdf0; display: flex; align-items: center; gap: 6px; }
.hb-hero__big { font-size: 1.7rem; margin: 4px 0 2px; color: #fff; }
.hb-hero__sub { font-size: .76rem; color: #b9cdf0; }
.hb-hero__title { font-size: 1.22rem; font-weight: 900; line-height: 1.7; margin: 0; }
.hb-hero__title span { color: var(--hb-orange); }
.hb-hero__text { font-size: .82rem; color: #d5e2f8; margin: 6px 0 14px; line-height: 1.9; }
.hb-hero__cta { display: flex; gap: 8px; flex-wrap: wrap; }
.hb-hero__acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.hb-hero__act {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 10px 2px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .13);
    font-size: .7rem;
    color: #fff !important;
    text-align: center;
    line-height: 1.5;
}
.hb-hero__act i { font-size: 1.15rem; }
.hb-hero__act b { font-size: .72rem; font-weight: 700; color: var(--hb-orange-3); }
@media (hover: hover) and (pointer: fine) { .hb-hero__act:hover { background: rgba(255, 255, 255, .2); } }
.hb-hero__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hb-hero__pills span { font-size: .7rem; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #e3ecfb; }

/* ---------- installment due ---------- */
.hb-due {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    background: var(--hb-asoft);
    border: 1px solid rgba(240, 138, 0, .25);
}
.hb-due--late { background: #fff1ef; border-color: rgba(180, 35, 24, .2); }
.hb-due .hb-tile { width: 44px; height: 44px; font-size: 1.2rem; }
.hb-due--late .hb-tile { background: #fde2de; color: var(--hb-danger); }
.hb-due__txt { min-width: 0; flex: 1; }
.hb-due__txt b { display: block; font-size: .88rem; color: var(--hb-ink); }
.hb-due__txt small { display: block; font-size: .74rem; color: var(--hb-muted); margin-top: 2px; }
.hb-due__txt em { font-style: normal; font-weight: 800; color: var(--hb-navy); }
.hb-due--late .hb-due__txt em { color: var(--hb-danger); }

/* ---------- platform quick grid ---------- */
.hb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 6px;
    margin-top: 14px;
    padding: 16px 8px;
}
.hb-grid a { display: grid; justify-items: center; gap: 7px; font-size: .74rem; font-weight: 600; color: var(--hb-ink) !important; text-align: center; }
.hb-grid .hb-tile { width: 52px; height: 52px; border-radius: 16px; font-size: 1.35rem; }

/* ---------- small stat cards (wallet, points) ---------- */
.hb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.hb-stat { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.hb-stat .hb-tile { width: 40px; height: 40px; font-size: 1.05rem; border-radius: 12px; }
.hb-stat small { display: block; font-size: .7rem; color: var(--hb-muted); }
.hb-stat b { font-size: .92rem; color: var(--hb-ink); }

/* ---------- platform section ---------- */
/* Per-platform colour tokens (category cards, section head tile, «ورود» button):
   --hb-pf-c     accent for borders/focus rings (non-text, ≥3:1 on white)
   --hb-pf-ink   icon + button text colour (≥4.5:1 on white and on --hb-pf-tint)
   --hb-pf-tint  very light background of icon tiles / button
   --hb-pf-line  resting card border; --hb-pf-glow hover shadow.
   Default (and GisheTrip «به‌زودی», SadidPay) = brand navy. */
.hb-pf {
    --hb-pf-c: #2f5fae;
    --hb-pf-ink: var(--hb-navy);       /* 11.6:1 on white */
    --hb-pf-tint: var(--hb-nsoft);
    --hb-pf-line: rgba(3, 52, 131, .16);
    --hb-pf-glow: rgba(3, 52, 131, .18);
    margin-top: 26px;
    scroll-margin-top: 80px;
}
.hb-pf--gisheh {   /* purple: #6b3fa0 = 7.4:1 on white, 6.5:1 on tint */
    --hb-pf-c: #6b3fa0;
    --hb-pf-ink: #6b3fa0;
    --hb-pf-tint: #f4effb;
    --hb-pf-line: rgba(107, 63, 160, .22);
    --hb-pf-glow: rgba(107, 63, 160, .22);
}
.hb-pf--food {     /* orange: bright #e07800 only as border; icons/text #a85700 = 5.2:1 on white, 4.8:1 on tint */
    --hb-pf-c: #e07800;
    --hb-pf-ink: #a85700;
    --hb-pf-tint: #fff4e5;
    --hb-pf-line: rgba(224, 120, 0, .3);
    --hb-pf-glow: rgba(224, 120, 0, .22);
}
.hb-pf--mall {     /* green: #187a43 = 5.4:1 on white, 4.9:1 on tint */
    --hb-pf-c: #1e8e4f;
    --hb-pf-ink: #187a43;
    --hb-pf-tint: #ebf6ef;
    --hb-pf-line: rgba(30, 142, 79, .25);
    --hb-pf-glow: rgba(30, 142, 79, .2);
}
.hb-pf--kish {     /* blue: #1a63bd = 5.9:1 on white, 5.2:1 on tint */
    --hb-pf-c: #1f6fd1;
    --hb-pf-ink: #1a63bd;
    --hb-pf-tint: #ecf3fd;
    --hb-pf-line: rgba(31, 111, 209, .24);
    --hb-pf-glow: rgba(31, 111, 209, .2);
}
.hb-pf__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hb-pf__head .hb-tile {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    background: var(--hb-pf-tint);
    color: var(--hb-pf-ink);
    border: 1.5px solid var(--hb-pf-c);
}
.hb-pf__go.hb-btn--soft { background: var(--hb-pf-tint); color: var(--hb-pf-ink) !important; border: 1px solid var(--hb-pf-line); }
@media (hover: hover) and (pointer: fine) {
    .hb-pf__go.hb-btn--soft { transition: border-color 200ms ease, box-shadow 200ms ease; }
    .hb-pf__go.hb-btn--soft:hover { border-color: var(--hb-pf-c); box-shadow: 0 6px 16px -10px var(--hb-pf-glow); }
}.hb-pf__head h2 { margin: 0; font-size: 1.02rem; font-weight: 800; }
.hb-pf__head p { margin: 1px 0 0; font-size: .74rem; color: var(--hb-muted); }
.hb-pf__go { margin-right: auto; }

.hb-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 2px 16px 6px;
    margin: 0 -16px;
    scrollbar-width: none;
}
.hb-chips::-webkit-scrollbar, .hb-rail::-webkit-scrollbar { display: none; }
.hb-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px 7px 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--hb-line);
    font-size: .78rem;
    color: var(--hb-ink) !important;
    white-space: nowrap;
}
.hb-chip i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--hb-nsoft); color: var(--hb-navy); font-size: .85rem; }
.hb-pf .hb-chip { border-color: var(--hb-pf-line); }
.hb-pf .hb-chip i { background: var(--hb-pf-tint); color: var(--hb-pf-ink); box-shadow: inset 0 0 0 1px var(--hb-pf-line); }
@media (hover: hover) and (pointer: fine) {
    .hb-chip:hover { border-color: rgba(3, 52, 131, .25); }
    .hb-pf .hb-chip:hover { border-color: var(--hb-pf-c); }
}

/* category cards: image/icon tile on top, name (max 2 lines) below.
   Mobile: 4 per row; with more than 8 they run in 2 rows that scroll sideways (the 5th column peeks in). */
.hb-cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 8px;
    padding: 2px 0 4px;
}
.hb-cats:has(> :nth-child(9)) {
    grid-template-columns: none;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 8px) / 4.3);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
    padding: 2px 16px 6px;
    margin: 0 -16px;
    scrollbar-width: none;
}
.hb-cats::-webkit-scrollbar { display: none; }
.hb-cat {
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 10px 4px 9px;
    border-radius: 16px;
    background: var(--hb-card);
    border: 1px solid var(--hb-pf-line, var(--hb-line));
    box-shadow: 0 1px 2px rgba(3, 52, 131, .04);
    color: var(--hb-ink) !important;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.hb-cat:focus-visible { outline-color: var(--hb-pf-c); }
a.hb-cat:active { border-color: var(--hb-pf-c); }
/* Outline icon on a white→tint tile with a platform-coloured border (no photos). */
.hb-cat__tile {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(160deg, #fff, var(--hb-pf-tint, var(--hb-nsoft)));
    border: 1.5px solid var(--hb-pf-c, var(--hb-navy));
    color: var(--hb-pf-ink, var(--hb-navy));
    font-size: 1.3rem;
    line-height: 1;
}
.hb-cat__tile i { transition: transform 300ms var(--hb-ease); }
.hb-cat__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 3em;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
@media (hover: hover) and (pointer: fine) {
    .hb-cat { transition: transform 160ms var(--hb-ease), box-shadow 200ms ease, border-color 200ms ease; }
    .hb-cat__tile { transition: background-color 200ms ease; }
    a.hb-cat:hover { border-color: var(--hb-pf-c); box-shadow: 0 8px 20px -12px var(--hb-pf-glow); }
    a.hb-cat:hover .hb-cat__tile { background: var(--hb-pf-tint); }
    a.hb-cat:hover .hb-cat__tile i { transform: scale(1.08); }
}
.hb-prod__img img.is-broken { visibility: hidden; }

.hb-sub { font-size: .8rem; font-weight: 700; color: var(--hb-muted); margin: 14px 0 8px; }

.hb-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2px 16px 10px;
    margin: 0 -16px;
    scrollbar-width: none;
}
.hb-prod {
    flex: 0 0 62%;
    max-width: 240px;
    scroll-snap-align: start;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.hb-prod__img {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--hb-nsoft), #dbe5f6);
    overflow: hidden;
}
.hb-prod__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms var(--hb-ease); }
@media (hover: hover) and (pointer: fine) { .hb-prod:hover .hb-prod__img img { transform: scale(1.04); } }
.hb-prod__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 9px;
    border-radius: 8px;
    background: var(--hb-orange);
    color: var(--hb-navy);
    font-size: .7rem;
    font-weight: 800;
}
.hb-prod__bd { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hb-prod__bd b {
    font-size: .82rem;
    color: var(--hb-ink);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hb-prod__bd small { font-size: .72rem; color: var(--hb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-prod__price { margin-top: auto; display: flex; align-items: baseline; gap: 6px; font-size: .8rem; font-weight: 800; color: var(--hb-orange-2); }
.hb-prod__price s { font-size: .7rem; font-weight: 400; color: var(--hb-muted); }
.hb-prod__bnpl { font-size: .66rem; color: var(--hb-navy); background: var(--hb-nsoft); border-radius: 6px; padding: 1px 6px; align-self: flex-start; }

.hb-empty { padding: 14px 16px; font-size: .78rem; color: var(--hb-muted); display: flex; align-items: center; gap: 10px; }
.hb-empty i { color: var(--hb-navy); font-size: 1.1rem; }

/* ---------- SadidPay offer (orange) ---------- */
.hb-offer {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    padding: 20px;
    color: var(--hb-ink);
    background: linear-gradient(135deg, var(--hb-orange-3), var(--hb-orange));
}
.hb-offer::after {
    content: "";
    position: absolute;
    left: -44px;
    top: -44px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 24px solid rgba(3, 52, 131, .1);
    pointer-events: none;
}
.hb-offer > * { position: relative; z-index: 1; }
.hb-offer h3 { margin: 0; font-size: 1.08rem; font-weight: 900; line-height: 1.7; color: var(--hb-navy); }
.hb-offer p { margin: 6px 0 14px; font-size: .8rem; line-height: 1.9; color: #3b2a00; }
.hb-offer__steps { display: grid; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .78rem; color: #3b2a00; }
.hb-offer__steps li { display: flex; align-items: center; gap: 8px; }
.hb-offer__steps i { color: var(--hb-navy); }

/* ---------- mobile shell ---------- */
.hb-m { max-width: 560px; margin: 0 auto; padding: 0 16px 24px; }
.hb-m.has-nav { padding-bottom: 104px; }
.hb-top {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 -16px 8px;
    background: rgba(244, 246, 251, .86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.hb-iconbtn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 13px;
    background: #fff;
    border: 1px solid var(--hb-line);
    color: var(--hb-navy) !important;
    font-size: 1.25rem;
}
.hb-logo { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--hb-line); display: grid; place-items: center; flex-shrink: 0; }
.hb-logo img { width: 30px; height: auto; }
.hb-top__who { min-width: 0; }
.hb-top__who small { display: block; font-size: .72rem; color: var(--hb-muted); }
.hb-top__who b { display: block; font-size: .95rem; color: var(--hb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-top__end { margin-right: auto; }

.hb-nav {
    position: fixed;
    z-index: 40;
    right: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: translateX(50%);
    width: min(360px, calc(100% - 24px));
    display: flex;
    justify-content: space-around;
    padding: 7px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--hb-line);
    box-shadow: 0 12px 30px -10px rgba(3, 52, 131, .3);
}
.hb-nav a, .hb-nav button {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 6px 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    font-size: .64rem;
    color: var(--hb-muted) !important;
}
.hb-nav i { font-size: 1.15rem; }
.hb-nav .is-on { background: var(--hb-nsoft); color: var(--hb-navy) !important; font-weight: 700; }
.hb-nav .hb-nav__pay { background: var(--hb-orange); color: var(--hb-navy) !important; font-weight: 700; position: relative; }
.hb-nav__dot { position: absolute; top: 3px; left: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--hb-danger); box-shadow: 0 0 0 2px #fff; }

.hb-foot { margin-top: 30px; text-align: center; font-size: .76rem; color: var(--hb-muted); line-height: 2; }
.hb-foot a { color: var(--hb-navy) !important; font-weight: 700; }

/* drawer: re-skin the existing side menu onto the brand */
.hb-body .sh-drawer__head { background: linear-gradient(150deg, var(--hb-navy-2), var(--hb-navy) 60%, var(--hb-navy-3)); box-shadow: 0 14px 30px -16px rgba(3, 52, 131, .7); }
.hb-body .sh-drawer__head::after { border-color: rgba(254, 160, 0, .5); }
.hb-dw { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin: 0 0 12px; }
.hb-dw > a { display: block; border-radius: 14px; padding: 10px 12px; background: linear-gradient(140deg, var(--hb-navy-2), var(--hb-navy)); color: #fff !important; }
.hb-dw > a + a { background: var(--hb-asoft); color: var(--hb-ink) !important; }
.hb-dw small { display: block; font-size: .68rem; opacity: .8; }
.hb-dw b { font-size: .86rem; }
.hb-dsec { font-size: .7rem; color: var(--hb-muted); margin: 4px 8px 6px; }

/* ---------- entrance motion ---------- */
.hb-stg > * { animation: hbIn 340ms var(--hb-ease) both; }
.hb-stg > *:nth-child(2) { animation-delay: 40ms; }
.hb-stg > *:nth-child(3) { animation-delay: 75ms; }
.hb-stg > *:nth-child(4) { animation-delay: 105ms; }
.hb-stg > *:nth-child(5) { animation-delay: 130ms; }
.hb-stg > *:nth-child(6) { animation-delay: 150ms; }
.hb-stg > *:nth-child(7) { animation-delay: 168ms; }
.hb-stg > *:nth-child(8) { animation-delay: 184ms; }
@keyframes hbIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
/* below-the-fold sections: JS adds .hb-io, then .is-in when they scroll into view */
.hb-io { opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--hb-ease), transform 420ms var(--hb-ease); }
.hb-io.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .hb-stg > * { animation: hbFade 200ms ease both; }
    .hb-io { transform: none; transition: opacity 200ms ease; }
    .hb-press:active, .hb-lift:hover, .hb-prod:hover .hb-prod__img img, a.hb-cat:hover .hb-cat__tile i { transform: none; }
}
@keyframes hbFade { from { opacity: 0; } }

/* =========================================================
   Desktop
   ========================================================= */
.hb-desk { display: grid; grid-template-columns: 250px minmax(0, 1fr) 330px; min-height: 100vh; }
.hb-sb {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid var(--hb-line);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hb-sb__logo { display: flex; align-items: center; gap: 10px; margin: 0 6px 22px; font-size: 1.25rem; font-weight: 900; color: var(--hb-navy) !important; }
.hb-sb__logo img { height: 34px; width: auto; }
.hb-sb__logo span { color: var(--hb-orange); }
.hb-sb small { color: var(--hb-muted); font-size: .7rem; margin: 16px 10px 6px; }
.hb-it {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: .86rem;
    color: #3b4a66 !important;
}
.hb-it .hb-tile { width: 30px; height: 30px; border-radius: 9px; font-size: .85rem; }
.hb-it > i { width: 30px; text-align: center; font-size: 1.05rem; color: var(--hb-navy); }
.hb-it.is-on { background: var(--hb-nsoft); color: var(--hb-navy) !important; font-weight: 700; }
.hb-it.is-on::before { content: ""; position: absolute; right: -16px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px 0 0 4px; background: var(--hb-orange); }
.hb-it em { margin-right: auto; font-style: normal; font-size: .68rem; background: var(--hb-orange); color: var(--hb-navy); font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.hb-it--out { color: #9a5b00 !important; }
@media (hover: hover) and (pointer: fine) { .hb-it:hover { background: var(--hb-bg); } .hb-it.is-on:hover { background: var(--hb-nsoft); } }

.hb-main { padding: 26px 30px 40px; min-width: 0; }
.hb-dtop { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hb-dtop h1 { margin: 0; font-size: 1.55rem; font-weight: 800; color: var(--hb-ink); }
.hb-dtop p { margin: 2px 0 0; font-size: .86rem; color: var(--hb-muted); }
.hb-dtop__end { margin-right: auto; display: flex; gap: 8px; }

/* ---------- desktop hub banner: one wide photo (wwwroot/img/hub-banner/banner.jpg) for all Sadid platforms ----------
   Same look as the sadidpay.com hero: one panoramic collage (Kish beach, water/amusement park, phone + card, food, fashion, hotel)
   fading into brand navy on the right, where the copy sits (RTL). */
.hb-bn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 290px;
    margin-bottom: 18px;
    border-radius: 26px;
    background: #002266;
    color: #fff;
    isolation: isolate;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 48px -28px rgba(0, 38, 108, .75);
    animation: hbIn 420ms var(--hb-ease) both;
}
.hb-bn__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: left center;
    z-index: -2;
}
/* soft light on the text side + thin fade so the photo never fights the copy on narrow screens */
.hb-bn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to left, #002266 0%, rgba(0, 34, 102, .9) 24%, rgba(0, 34, 102, 0) 36%),
        linear-gradient(to top, rgba(2, 25, 74, .35), transparent 40%);
}
.hb-bn__body { position: relative; width: 400px; max-width: 48%; padding: 30px 36px; }
.hb-bn__tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--hb-orange);
}
.hb-bn__tag::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 2px;
    margin-left: 8px;
    vertical-align: middle;
    border-radius: 2px;
    background: var(--hb-orange);
}
.hb-bn__title { margin: 10px 0 8px; font-size: 1.9rem; font-weight: 900; line-height: 1.45; color: #fff; }
.hb-bn__title span { color: var(--hb-orange); }
.hb-bn__text { margin: 0 0 18px; font-size: .84rem; line-height: 1.9; color: rgba(255, 255, 255, .8); }
.hb-bn__chips { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.hb-bn__chips > * {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
    font-size: .74rem;
    font-weight: 700;
    color: #fff !important;
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--hb-ease);
}
.hb-bn__chips small { font-size: .62rem; font-weight: 700; color: var(--hb-orange); }
.hb-bn__chips > span { color: rgba(255, 255, 255, .6) !important; border-style: dashed; }
.hb-bn__chips > a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
    .hb-bn__chips > a:hover { background: var(--hb-orange); border-color: var(--hb-orange); color: var(--hb-navy) !important; }
}
/* narrower desktops: slide the collage left (beach edge crops) so the phone stays clear of the copy */
@media (max-width: 1360px) {
    .hb-bn__img { left: -170px; width: calc(100% + 170px); }
    .hb-bn__body { width: 370px; padding: 26px 30px; }
    .hb-bn__title { font-size: 1.65rem; }
    .hb-bn__text { font-size: .8rem; }
    .hb-bn::after { background: linear-gradient(to left, #002266 0%, rgba(0, 34, 102, .92) 32%, rgba(0, 34, 102, .5) 42%, rgba(0, 34, 102, 0) 50%), linear-gradient(to top, rgba(2, 25, 74, .35), transparent 40%); }
}
@media (prefers-reduced-motion: reduce) {
    .hb-bn { animation: hbFade 200ms ease both; }
}

.hb-dstats { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; }
.hb-dstats > .hb-card { padding: 18px 20px; }
.hb-dstat__lbl { font-size: .8rem; color: var(--hb-muted); display: flex; align-items: center; gap: 6px; }
.hb-dstat__big { font-size: 1.55rem; margin: 6px 0 10px; color: var(--hb-ink); }
.hb-dstat__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--hb-muted); }
.hb-dstat__org { margin: -4px 0 10px; }
.hb-dstat__org b { color: var(--hb-ink); font-weight: 700; }
.hb-dstats .hb-hero { padding: 20px; border-radius: 22px; }
.hb-dstats .hb-hero__acts { grid-template-columns: repeat(3, 1fr); }

.hb-dgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px; }
.hb-dgrid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; text-align: center; font-size: .82rem; font-weight: 700; color: var(--hb-ink) !important; }
.hb-dgrid a small { font-size: .68rem; font-weight: 400; color: var(--hb-muted); line-height: 1.6; }
.hb-dgrid .hb-tile { width: 50px; height: 50px; border-radius: 16px; font-size: 1.35rem; }

.hb-desk .hb-pf { margin-top: 30px; }
.hb-desk .hb-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
/* desktop: as many cards per row as fit (about 7 at 1440px), no sideways scroll */
.hb-desk .hb-cats,
.hb-desk .hb-cats:has(> :nth-child(9)) {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 12px;
}
.hb-desk .hb-cat { padding: 14px 6px 12px; gap: 9px; }
.hb-desk .hb-cat__tile { width: 56px; height: 56px; border-radius: 16px; font-size: 1.5rem; }
.hb-desk .hb-cat__name { font-size: .78rem; }
.hb-desk .hb-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 14px; }
.hb-desk .hb-prod { max-width: none; }

.hb-rs { border-right: 1px solid var(--hb-line); padding: 26px 20px; display: flex; flex-direction: column; gap: 16px; }
.hb-rs .hb-card { padding: 18px; }
.hb-rs__t { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 800; font-size: .9rem; color: var(--hb-ink); }
.hb-rs__t a { font-size: .74rem; font-weight: 600; color: var(--hb-navy) !important; }
.hb-tx { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hb-line); font-size: .8rem; }
.hb-tx .hb-tile { width: 36px; height: 36px; border-radius: 11px; font-size: .95rem; }
.hb-tx small { display: block; color: var(--hb-muted); font-size: .7rem; }
.hb-tx em { margin-right: auto; font-style: normal; font-weight: 800; color: var(--hb-ink); }
.hb-tx--late em { color: var(--hb-danger); }
.hb-qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; text-align: center; font-size: .74rem; }
.hb-qa a { display: grid; justify-items: center; gap: 6px; color: var(--hb-ink) !important; }
.hb-qa .hb-tile { width: 44px; height: 44px; font-size: 1.1rem; }
.hb-login { text-align: center; }
.hb-login .hb-tile { width: 54px; height: 54px; margin: 0 auto 10px; font-size: 1.5rem; border-radius: 18px; }
.hb-login h3 { font-size: 1rem; font-weight: 800; margin: 0 0 6px; }
.hb-login p { font-size: .78rem; color: var(--hb-muted); line-height: 1.9; margin: 0 0 14px; }
.hb-login .hb-btn { width: 100%; }
.hb-login .hb-btn + .hb-btn { margin-top: 8px; }
.hb-support { display: flex; align-items: center; gap: 12px; }
.hb-support .hb-tile { width: 42px; height: 42px; }
.hb-support small { display: block; font-size: .7rem; color: var(--hb-muted); }
.hb-support b { direction: ltr; display: block; text-align: right; }

@media (max-width: 1280px) {
    .hb-desk { grid-template-columns: 230px minmax(0, 1fr) 290px; }
    .hb-dgrid { grid-template-columns: repeat(3, 1fr); }
    .hb-desk .hb-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hb-desk .hb-rail .hb-prod:nth-child(n+7) { display: none; }
}
@media (max-width: 1080px) {
    .hb-desk { grid-template-columns: 220px minmax(0, 1fr); }
    .hb-rs { grid-column: 2; border-right: 0; padding: 0 30px 40px; display: grid; grid-template-columns: repeat(2, 1fr); }
    .hb-dstats { grid-template-columns: 1fr 1fr; }
    .hb-dstats > :first-child { grid-column: 1 / -1; }
}

/* ---------- «به‌زودی» (coming soon: GisheTrip, hotel booking) ----------
   Navy text on the brand orange (never white on orange). Soon items are plain elements, not links. */
.hb-soon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--hb-orange);
    color: var(--hb-navy);
    font-family: inherit;
    font-size: .74rem;
    font-weight: 800;
    line-height: 1.4;
    white-space: nowrap;
}
.hb-soon--sm { padding: 1px 8px; font-size: .62rem; font-weight: 700; }
.hb-soon-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--hb-nsoft);
    color: var(--hb-navy);
    font-size: .78rem;
    font-weight: 600;
}
.hb-soon-note i { color: var(--hb-navy); font-size: 1rem; }
.hb-cat--soon { position: relative; cursor: default; }
.hb-cat--soon .hb-cat__tile, .hb-cat--soon .hb-cat__name { opacity: .55; }
.hb-cat--soon .hb-soon { margin-top: -2px; }
.hb-grid__soon {
    display: grid;
    justify-items: center;
    gap: 5px;
    font-size: .74rem;
    font-weight: 600;
    color: var(--hb-ink);
    text-align: center;
    cursor: default;
}
.hb-grid__soon .hb-tile { width: 52px; height: 52px; border-radius: 16px; font-size: 1.35rem; opacity: .55; }
.hb-it--soon { cursor: default; }
.hb-it--soon .hb-tile { opacity: .55; }
.hb-it--soon .hb-soon { margin-right: auto; }
.hb-dgrid__soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    text-align: center;
    font-size: .82rem;
    font-weight: 700;
    color: var(--hb-ink);
    cursor: default;
}
.hb-dgrid__soon small { font-size: .68rem; font-weight: 400; color: var(--hb-muted); line-height: 1.6; }
.hb-dgrid__soon .hb-tile { width: 50px; height: 50px; border-radius: 16px; font-size: 1.35rem; opacity: .55; }
