/* =========================================================
   SadidHub — modern home styles (mobile default + desktop def_desk)
   Loaded after the legacy template CSS. Class prefix: sh-
   No inline styles needed (CSP style-src 'self').
   ========================================================= */

:root {
    --sh-primary: #4338ca;
    --sh-primary-2: #7c3aed;
    --sh-ink: #111827;
    --sh-muted: #6b7280;
    --sh-line: rgba(17, 24, 39, .08);
    --sh-surface: #ffffff;
    --sh-bg: #f5f6fb;
    --sh-radius: 18px;
    --sh-radius-sm: 12px;
    --sh-shadow-sm: 0 1px 2px rgba(17, 24, 39, .05), 0 2px 8px rgba(17, 24, 39, .05);
    --sh-shadow: 0 8px 24px rgba(17, 24, 39, .08);
    --sh-shadow-lg: 0 18px 40px rgba(67, 56, 202, .16);
    /* Motion tokens (Emil Kowalski curves) */
    --sh-ease: cubic-bezier(.23, 1, .32, 1);          /* ease-out: enter, press, hover */
    --sh-ease-in-out: cubic-bezier(.77, 0, .175, 1);  /* on-screen movement */
    --sh-ease-drawer: cubic-bezier(.32, .72, 0, 1);   /* iOS-like sheet/drawer */
    --sh-press: 160ms;
    --sh-quick: 200ms;
}

/* ---------- Shared: section heading ---------- */
.sh-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.sh-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.05rem;
    color: var(--sh-ink);
    line-height: 1.4;
}

.sh-section-title::before {
    content: "";
    width: 6px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--sh-primary-2), var(--sh-primary));
    flex-shrink: 0;
}

.sh-section-sub {
    font-size: .8rem;
    color: var(--sh-muted);
}

/* =========================================================
   MOBILE (default.aspx)
   ========================================================= */

.sh-mobile {
    background: var(--sh-bg);
    padding-bottom: 92px; /* room for the fixed footer */
}

.sh-mobile .bg-white { background: var(--sh-bg) !important; }
.sh-mobile .bg-white.pt-4.mt-4 { padding-top: 6px !important; margin-top: 0 !important; }

/* Header: frosted glass */
.sh-mobile .header {
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--sh-line);
    box-shadow: 0 4px 18px rgba(17, 24, 39, .04);
    padding: 6px 0;
}

.sh-mobile .header .toggle-sidebar-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--sh-surface);
    box-shadow: var(--sh-shadow-sm);
    color: var(--sh-ink);
    font-size: 1.5rem !important;
    transition: transform var(--sh-press) var(--sh-ease);
}

.sh-mobile .header .toggle-sidebar-btn:active { transform: scale(.95); }

/* Hero */
.sh-mobile .hero-image { border-radius: 24px; }

.sh-mobile .floating-card {
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    box-shadow: var(--sh-shadow);
    border: 1px solid rgba(255, 255, 255, .7);
}

/* Rounded media from server-rendered sliders */
.sh-mobile .carousel img { border-radius: 16px; }

/* Fixed footer: floating glass bar */
.sh-mobile .footer {
    left: 12px;
    right: 12px;
    bottom: 10px;
    width: auto;
    padding: 10px 14px 8px;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid var(--sh-line);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .12);
    z-index: 1020;
}

.sh-mobile .footer a { color: var(--sh-ink) !important; }
.sh-mobile .footer-bottom { margin-top: 4px; font-size: 11px; color: var(--sh-muted); }

/* =========================================================
   DESKTOP (def_desk.aspx)
   ========================================================= */

.sh-desk {
    background: var(--sh-bg);
    color: var(--sh-ink);
}

.sh-desk .header {
    position: relative;
    background: linear-gradient(120deg, #312e81 0%, #4338ca 45%, #7c3aed 100%);
    box-shadow: 0 10px 30px rgba(49, 46, 129, .25);
    padding: 10px 0 8px;
    height: auto;
}

.sh-desk .header::before { display: none; }

.sh-desk .header .logo {
    background: rgba(255, 255, 255, .95);
    border-radius: 16px;
    padding: 6px 14px;
    width: fit-content;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.sh-desk .header h5 { letter-spacing: .2px; opacity: .95; }

.sh-container {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

/* Hero banner */
.sh-desk-hero {
    margin-top: 24px;
}

.sh-desk-hero a {
    display: block;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--sh-shadow);
    transition: transform 240ms var(--sh-ease), box-shadow 240ms var(--sh-ease);
}

@media (hover: hover) and (pointer: fine) {
    .sh-desk-hero a:hover { transform: translateY(-2px); box-shadow: var(--sh-shadow-lg); }
}
.sh-desk-hero img { display: block; width: 100%; height: auto; }

/* Ads carousel + banner */
.sh-desk #divslide_gisheh724_sadiddesk1_cat_adverst { margin: 28px auto 0; }
.sh-desk #divslide_gisheh724_sadiddesk1_cat_adverst img { border-radius: 20px; }

.sh-desk-banner {
    margin-top: 28px;
    text-align: center;
}

.sh-desk-banner img {
    width: 100%;
    max-width: 1240px;
    border-radius: 24px;
    box-shadow: var(--sh-shadow);
}

/* Guide videos */
.sh-desk-videos { margin-top: 32px; }

.sh-desk-videos .sh-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 900px) { .sh-desk-videos .sh-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sh-desk-videos .sh-video-grid { grid-template-columns: 1fr; } }

.sh-desk-videos .sh-video {
    position: relative;
    background: var(--sh-surface);
    border-radius: 20px;
    padding: 10px;
    box-shadow: var(--sh-shadow-sm);
}

.sh-desk-videos .placeholder,
.sh-desk-videos .placeholder-glow .placeholder {
    border-radius: 14px;
    background-color: #e7e9f2;
    width: 100%;
    display: block;
}

.sh-desk-videos .legacy-video-placeholder { min-height: 200px; }

/* Services / benefits */
.sh-desk .services.section {
    width: 100% !important;
    background: transparent !important;
    padding: 0;
    margin-top: 32px;
}

.sh-desk .services .container { max-width: none; padding: 0; }
.sh-desk .services .row { --bs-gutter-x: 18px; --bs-gutter-y: 18px; padding: 0 !important; margin-top: 0 !important; }

.sh-desk .service-item {
    height: 100%;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    background: var(--sh-surface);
    border-radius: 20px;
    border: 1px solid var(--sh-line);
    box-shadow: var(--sh-shadow-sm);
    transition: transform 220ms var(--sh-ease), box-shadow 220ms var(--sh-ease);
    position: relative;
}

.sh-desk .services .service-item::before,
.sh-desk .services .service-item::after,
.sh-desk .services .service-item .icon::before { display: none; }

@media (hover: hover) and (pointer: fine) {
    .sh-desk .service-item:hover { transform: translateY(-3px); box-shadow: var(--sh-shadow); }
}

.sh-desk .service-item .icon {
    order: -1;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef0ff, #f6ecff);
    color: var(--sh-primary);
    font-size: 1.6rem;
    margin: 0;
}

.sh-desk .services .service-item .icon i { color: var(--sh-primary); font-size: 1.6rem; }
.sh-desk .service-item .title { font-size: 1.05rem; margin-bottom: 8px; }
.sh-desk .service-item .title a { color: var(--sh-ink); }
.sh-desk .service-item .description { color: var(--sh-muted); line-height: 1.9; margin: 0; }

/* Footer */
.sh-desk .footer {
    margin-top: 40px;
    padding: 24px 0 18px;
    background: #0f172a;
    color: #cbd5e1;
    border-top: 0;
}

.sh-desk .footer a { color: #fff !important; font-size: 1.05rem; }
.sh-desk .footer-bottom { margin-top: 8px; color: #94a3b8; font-size: 12px; }



/* =========================================================
   CATEGORIES v2 — gradient "super-app" cards (both pages)
   ========================================================= */

/* Gradient palette (text on these is white: all pairs keep >= 4.5:1) */
.g-violet { --g1: #7c3aed; --g2: #4c1d95; }
.g-orange { --g1: #f97316; --g2: #c2410c; }
.g-green  { --g1: #16a34a; --g2: #166534; }
.g-indigo { --g1: #4f46e5; --g2: #312e81; }
.g-cyan   { --g1: #0891b2; --g2: #155e75; }
.g-rose   { --g1: #e11d48; --g2: #9f1239; }
.g-amber  { --g1: #d97706; --g2: #92400e; }
.g-pink   { --g1: #db2777; --g2: #9d174d; }
.g-sky    { --g1: #0284c7; --g2: #075985; }
.g-teal   { --g1: #0d9488; --g2: #115e59; }
.g-blue   { --g1: #2563eb; --g2: #1e3a8a; }
.g-purple { --g1: #9333ea; --g2: #581c87; }
.g-slate  { --g1: #475569; --g2: #1e293b; }
.g-red    { --g1: #dc2626; --g2: #991b1b; }
.g-lime   { --g1: #65a30d; --g2: #3f6212; }

.shc {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
    color: #fff !important;
    text-decoration: none;
    border-radius: 22px;
    background: linear-gradient(145deg, var(--g1), var(--g2));
    box-shadow: 0 10px 24px -12px var(--g2), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform var(--sh-press) var(--sh-ease), box-shadow 220ms var(--sh-ease);
    -webkit-tap-highlight-color: transparent;
}

/* glossy highlight + decorative rings */
.shc::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(130% 90% at 100% 0%, rgba(255, 255, 255, .28), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(255, 255, 255, .12) 0 28%, transparent 29%);
}

.shc::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 140px;
    height: 140px;
    left: -46px;
    top: -46px;
    border-radius: 50%;
    border: 18px solid rgba(255, 255, 255, .09);
}

.shc:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -14px var(--g2), inset 0 1px 0 rgba(255, 255, 255, .25);
    outline: none;
    color: #fff;
}

.shc:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--g1); }
.shc:active { transform: scale(.97); }

.shc__title {
    position: relative;
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.35;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

.shc__sub {
    position: relative;
    display: block;
    margin-top: 2px;
    font-size: .72rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.5;
}

/* 3D art (mobile) */
.shc__art {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .25));
    transition: transform 240ms var(--sh-ease);
}



/* glass icon (desktop) */
.shc__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: auto;
    border-radius: 16px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    font-size: 1.55rem;
    line-height: 1;
    color: #fff;
    transition: transform 240ms var(--sh-ease), background-color 200ms ease;
}



.shc__go {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    font-size: .95rem;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 200ms var(--sh-ease), transform 200ms var(--sh-ease);
}

.shc:focus-visible .shc__go { opacity: 1; transform: translateX(0); }

.shc__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #fff;
    color: var(--g2);
    font-size: .66rem;
    font-weight: 700;
}

/* ---------- Mobile layout: bento ---------- */
.sh-cats {
    margin: 10px 12px 20px;
}

.sh-cats .sh-section-head { padding: 0 4px; }

.sh-bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.sh-bento .shc {
    grid-column: span 2;
    min-height: 104px;
    padding: 12px;
}

.sh-bento .shc--wide {
    grid-column: span 3;
    min-height: 124px;
    padding: 14px;
}

.sh-bento .shc--wide .shc__art { width: 70px; height: 70px; }
.sh-bento .shc--wide .shc__title { font-size: 1.02rem; }

.sh-bento .shc--full {
    grid-column: span 6;
    min-height: 84px;
    padding: 14px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.sh-bento .shc--full .shc__art { position: static; order: 2; margin-right: auto; width: 58px; height: 58px; }
.sh-bento .shc--full .shc__badge { position: static; order: 3; margin-right: 10px; }
.sh-bento .shc__title { font-size: .82rem; }

@media (max-width: 340px) {
    .sh-bento .shc__art { width: 42px; height: 42px; }
    .sh-bento .shc__title { font-size: .74rem; }
}

@media (min-width: 576px) {
    .sh-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
    .sh-bento .shc { grid-column: span 3; min-height: 120px; }
    .sh-bento .shc--wide { grid-column: span 6; }
    .sh-bento .shc--full { grid-column: span 12; }
}

@media (min-width: 992px) {
    .sh-cats { max-width: 960px; margin-inline: auto; }
}

/* ---------- Desktop layout ---------- */
.sh-desk-cats {
    margin-top: 32px;
}

.sh-desk-cats .sh-section-head { margin-bottom: 18px; }
.sh-desk-cats .sh-section-title { font-size: 1.35rem; }

.sh-cat-deck {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.sh-cat-deck .shc {
    min-height: 168px;
    padding: 20px;
    border-radius: 24px;
}

.sh-cat-deck .shc__title { font-size: 1.08rem; margin-top: 18px; }
.sh-cat-deck .shc__sub { font-size: .8rem; }

@media (max-width: 1100px) { .sh-cat-deck { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .sh-cat-deck { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .sh-cat-deck .shc { min-height: 150px; padding: 16px; } }
@media (max-width: 560px)  { .sh-cat-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .sh-cat-deck .shc__sub { display: none; } .sh-container { width: calc(100% - 24px); } }

/* =========================================================
   MOBILE v2 — header logo, drawer, deals tabs, offers, quick access
   ========================================================= */

.sh-header-logo { height: 46px; width: auto; display: block; }

/* ---------- Drawer (side menu) ---------- */
.sh-drawer.offcanvas {
    --bs-offcanvas-width: min(340px, 88vw);
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 28px 0 0 28px;
    background: var(--sh-bg);
    box-shadow: -18px 0 50px rgba(17, 24, 39, .22);
    overflow: hidden;
}

.sh-drawer__head {
    position: relative;
    padding: 18px 18px 20px;
    color: #fff;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .18), transparent 55%),
        linear-gradient(150deg, #4338ca 0%, #6d28d9 60%, #7c3aed 100%);
    border-radius: 0 0 28px 28px;
    box-shadow: 0 14px 30px -16px rgba(67, 56, 202, .7);
}

.sh-drawer__head::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -60px;
    bottom: -90px;
    border-radius: 50%;
    border: 26px solid rgba(255, 255, 255, .07);
    pointer-events: none;
}

.sh-drawer__close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 1rem;
    z-index: 1;
}

.sh-drawer__brand {
    width: 112px;
    height: 112px;
    margin: 4px auto 14px;
    display: grid;
    place-items: center;
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 14px 30px -10px rgba(17, 24, 39, .45), inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.sh-drawer__brand img { width: 92px; height: auto; display: block; }

.sh-drawer__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
}

.sh-drawer__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    color: var(--sh-primary);
    font-size: 1.35rem;
}

.sh-drawer__who { min-width: 0; text-align: right; }
.sh-drawer__who .offcanvas-title { margin: 0; font-size: 1rem; color: #fff; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-drawer__hint { display: block; font-size: .74rem; color: rgba(255, 255, 255, .8); }

.sh-drawer__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

.sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--sh-press) var(--sh-ease), background-color 200ms ease;
}

.sh-btn:active { transform: scale(.97); }
.sh-btn--primary { background: #fff; color: var(--sh-primary) !important; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
.sh-btn--ghost { background: rgba(255, 255, 255, .14); color: #fff !important; border: 1px solid rgba(255, 255, 255, .35); }
.sh-btn--light { background: #fff; color: var(--sh-primary) !important; }
.sh-btn--outline { color: #fff !important; border: 1px solid rgba(255, 255, 255, .55); }

.sh-drawer__body { flex: 1 1 auto; padding: 16px 14px 10px; overflow-y: auto; }

.sh-menu {
    display: flex;
    flex-direction: column;
    padding: 6px;
    border-radius: 20px;
    background: var(--sh-surface);
    box-shadow: var(--sh-shadow-sm);
}

.sh-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 8px;
    border-radius: 14px;
    color: var(--sh-ink) !important;
    text-decoration: none;
    font-size: .88rem;
    transition: background-color 150ms ease, transform var(--sh-press) var(--sh-ease);
}

.sh-menu__item + .sh-menu__item { margin-top: 2px; }
.sh-menu__item:focus-visible { background: #f3f4fb; outline: none; }
.sh-menu__item:active { background: #eceefa; transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .sh-menu__item:hover { background: #f3f4fb; } }

.sh-menu__ic {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    background: linear-gradient(145deg, var(--g1, #6b7280), var(--g2, #374151));
    box-shadow: 0 6px 12px -8px var(--g2, #374151);
}

.sh-menu__label { flex: 1; text-align: right; }
.sh-menu__chev { color: #9ca3af; font-size: .8rem; }

.sh-menu__item--danger {
    margin-top: 12px;
    background: #fff1f2;
    color: #be123c !important;
}

.sh-menu__item--danger .sh-menu__ic { background: #ffe4e6; color: #be123c; box-shadow: none; }

.sh-drawer__guest {
    padding: 18px;
    border-radius: 20px;
    background: var(--sh-surface);
    box-shadow: var(--sh-shadow-sm);
    text-align: center;
    color: var(--sh-muted);
    font-size: .86rem;
    line-height: 1.9;
}

.sh-drawer__guest i { font-size: 1.6rem; color: var(--sh-primary-2); }
.sh-drawer__guest p { margin: 6px 0 0; }

.sh-drawer__foot { padding: 10px 14px 18px; }

.sh-support {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: var(--sh-surface);
    box-shadow: var(--sh-shadow-sm);
    color: var(--sh-ink) !important;
    text-decoration: none;
}

.sh-support__ic {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eef0ff;
    color: var(--sh-primary);
    font-size: 1.25rem;
}

.sh-support__txt { flex: 1; display: flex; flex-direction: column; text-align: right; line-height: 1.4; }
.sh-support__txt small { color: var(--sh-muted); font-size: .72rem; }
.sh-support__txt strong { font-size: 1.05rem; letter-spacing: .5px; text-align: right; }

.sh-support__call {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #22c55e, #15803d);
    box-shadow: 0 8px 16px -8px #15803d;
}

.sh-social { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }

.sh-social__btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff !important;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform var(--sh-press) var(--sh-ease);
}

.sh-social__btn:active { transform: scale(.95); }
.sh-social__btn:focus-visible { transform: translateY(-2px); }
@media (hover: hover) and (pointer: fine) { .sh-social__btn:hover { transform: translateY(-2px); } }
.sh-social__btn.is-instagram { background: radial-gradient(circle at 30% 110%, #fdd835 0%, #f56040 35%, #c13584 65%, #5b51d8 100%); }
.sh-social__btn.is-telegram { background: linear-gradient(145deg, #38bdf8, #0284c7); }
.sh-social__btn.is-whatsapp { background: linear-gradient(145deg, #4ade80, #16a34a); }
.sh-social__btn.is-linkedin { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }

/* ---------- Deals: club / special-offer tabs ---------- */
.sh-deals { margin: 6px 12px 22px; }

.sh-mobile .sh-deals .segmented-tabs {
    display: flex;
    margin: 0 0 14px;
    padding: 5px;
    border-radius: 18px;
    background: var(--sh-surface);
    box-shadow: var(--sh-shadow-sm);
}

.sh-mobile .sh-deals .seg-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 6px;
    border-radius: 14px;
    font-size: .86rem;
    font-weight: 700;
    color: var(--sh-muted);
    transition: color 200ms ease, transform var(--sh-press) var(--sh-ease);
}

.sh-mobile .sh-deals .seg-tab.active { color: #fff !important; }
.sh-mobile .sh-deals .seg-tab i { font-size: 1rem; }

.sh-mobile .sh-deals .tab-indicator {
    top: 5px;
    right: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    border-radius: 14px;
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    box-shadow: 0 8px 18px -8px rgba(67, 56, 202, .7);
}

.sh-deals__panes > .tab-pane { padding: 0 !important; }

/* Offer cards rail */
.sh-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    padding: 4px 2px 14px;
    scrollbar-width: none;
}

.sh-rail::-webkit-scrollbar { display: none; }

@media (min-width: 576px) { .sh-rail { grid-auto-columns: 31%; } }
@media (min-width: 992px) {
    .sh-rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
}

.sh-offer.service-item {
    position: relative;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--sh-surface);
    box-shadow: var(--sh-shadow);
    transition: transform var(--sh-press) var(--sh-ease);
}

.sh-offer.service-item:active { transform: scale(.97); }
.sh-offer .pic { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: #eef0f6; }

.sh-offer .pic img,
.sh-offer .pictm {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    border-radius: 0 !important;
}

.sh-offer .details { align-items: stretch !important; padding: 10px 12px 12px; gap: 6px; }
.sh-offer .details > a { text-align: right !important; color: var(--sh-ink); text-decoration: none; }

.sh-offer .details > a span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.8em;
    font-size: .8rem !important;
    line-height: 1.4;
}

.sh-offer .details > div { margin-top: 0 !important; justify-content: flex-start !important; }

.sh-offer__price {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #047857 !important;
    font-weight: 700;
    font-size: .76rem !important;
}

.sh-offer__price:empty { display: none; }

.sh-offer__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff !important;
    font-weight: 700;
    font-size: .7rem !important;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    box-shadow: 0 6px 14px -6px #e11d48;
}

.sh-offers--empty::before,
.sh-offers:empty::before {
    content: "فعلاً پیشنهاد ویژه‌ای ثبت نشده است.";
    display: block;
    padding: 26px 16px;
    border-radius: 20px;
    background: var(--sh-surface);
    color: var(--sh-muted);
    text-align: center;
    font-size: .85rem;
}

/* Club (logged in): points header + product rail */
.sh-club > .row:first-child {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 14px;
    padding: 18px;
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .22), transparent 55%),
        linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 14px 28px -16px #b45309;
    text-align: right;
}

.sh-club > .row:first-child > * { width: auto; padding: 0; margin: 0; }
.sh-club > .row:first-child h2 { font-size: 1rem; color: #fff; margin: 0; line-height: 1.6; }

.sh-club > .row:first-child a {
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
    color: #92400e !important;
    font-size: .8rem;
    font-weight: 700;
}

.sh-club > .row:last-child {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    gap: 12px;
    margin: 0;
    padding: 4px 2px 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.sh-club > .row:last-child::-webkit-scrollbar { display: none; }
.sh-club > .row:last-child > * { width: auto; padding: 0; margin: 0; }

.sh-club .member {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: var(--sh-surface);
    box-shadow: var(--sh-shadow);
    text-align: right;
}

.sh-club .member .pic { aspect-ratio: 16 / 10; overflow: hidden; background: #eef0f6; }
.sh-club .member .pic img { width: 100%; height: 100%; object-fit: cover; }
.sh-club .member > .d-flex { padding: 12px; gap: 4px; }
.sh-club .member h5 { margin: 0; font-size: .86rem !important; color: var(--sh-ink); }
.sh-club .member .text-danger { color: var(--sh-muted) !important; font-weight: 400 !important; margin: 0 !important; }
.sh-club .member .text-success { color: #047857 !important; margin: 0 !important; }

.sh-club .member button[data-action="convert-point-to-off"] {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-size: .84rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4338ca, #7c3aed);
}

/* Club (guest) call to action */
.sh-club-cta {
    position: relative;
    overflow: hidden;
    padding: 22px 18px 20px;
    border-radius: 24px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%),
        linear-gradient(140deg, #f59e0b 0%, #d97706 45%, #92400e 100%);
    box-shadow: 0 16px 30px -18px #92400e;
}

.sh-club-cta::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -60px;
    bottom: -80px;
    border-radius: 50%;
    border: 24px solid rgba(255, 255, 255, .1);
}

.sh-club-cta__ic {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .2);
    font-size: 1.6rem;
}

.sh-club-cta h3 { font-size: 1.05rem; color: #fff; margin: 0 0 6px; }
.sh-club-cta p { font-size: .82rem; line-height: 1.9; margin: 0 0 14px; color: rgba(255, 255, 255, .9); }
.sh-club-cta__actions { position: relative; z-index: 1; display: flex; justify-content: center; gap: 10px; }
.sh-club-cta .sh-btn--light { color: #92400e !important; }

/* ---------- Quick access (story-style) ---------- */
.sh-quick { margin: 0 12px 24px; }

.sh-quick__rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 8px;
    padding: 16px 10px 14px;
    border-radius: 22px;
    background: var(--sh-surface);
    box-shadow: var(--sh-shadow-sm);
}

@media (max-width: 340px) { .sh-quick__rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .sh-quick__rail { gap: 20px 12px; padding: 20px; } }

.sh-quick__item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--sh-ink) !important;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.sh-quick__ring {
    width: min(60px, 100%);
    aspect-ratio: 1 / 1;
    padding: 3px;
    border-radius: 50%;
    background: conic-gradient(from 200deg, var(--g1), var(--g2), var(--g1));
    transition: transform var(--sh-press) var(--sh-ease);
}

.sh-quick__ic {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 3px solid var(--sh-bg);
    background: linear-gradient(145deg, var(--g1), var(--g2));
    color: #fff;
    font-size: 1.35rem;
}

.sh-quick__item:active .sh-quick__ring { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .sh-quick__item:hover .sh-quick__ring { transform: translateY(-2px); } }
.sh-quick__label { font-size: .72rem; color: #374151; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================
   MOTION — interaction polish (Emil Kowalski design-engineering rules)
   - Only transform / opacity animate; exact properties, no `all`.
   - Custom ease-out for enter/press, ease-in-out for on-screen movement.
   - Hover motion only on real pointers; press feedback everywhere.
   ========================================================= */

/* Hover lifts: pointer devices only (touch would leave sticky hover) */
@media (hover: hover) and (pointer: fine) {
    .shc:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -14px var(--g2), inset 0 1px 0 rgba(255, 255, 255, .25); }
    .shc:hover .shc__art { transform: rotate(-6deg) scale(1.05); }
    .shc:hover .shc__icon { transform: rotate(-6deg) scale(1.04); background-color: rgba(255, 255, 255, .26); }
    .shc:hover .shc__go { opacity: 1; transform: translateX(0); }
}

/* Press feedback */
.sh-mobile .sh-deals .seg-tab:active { transform: scale(.97); }
.sh-drawer__close,
.sh-support,
.sh-support__call { transition: transform var(--sh-press) var(--sh-ease); }
.sh-drawer__close:active,
.sh-support__call:active { transform: scale(.94); }
.sh-support:active { transform: scale(.98); }
.sh-club .member button[data-action="convert-point-to-off"] { transition: transform var(--sh-press) var(--sh-ease); }
.sh-club .member button[data-action="convert-point-to-off"]:active { transform: scale(.97); }

/* Segmented-tab pill: it moves on screen, so ease-in-out; fast enough to feel instant */
.sh-mobile .sh-deals .tab-indicator { transition: transform 260ms var(--sh-ease-in-out); }

/* Tab panes: short opacity fade (Bootstrap .fade default is linear 150ms) */
.sh-deals__panes > .tab-pane.fade { transition: opacity 180ms ease; }

/* Offer / club cards cascade in each time their tab opens (occasional => allowed) */
@keyframes sh-rise {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.sh-deals__panes > .tab-pane.active .sh-offer,
.sh-deals__panes > .tab-pane.active .sh-club .member {
    animation: sh-rise 280ms var(--sh-ease) both;
}

.sh-deals__panes > .tab-pane.active .sh-offer:nth-child(2),
.sh-deals__panes > .tab-pane.active .sh-club .member:nth-child(2) { animation-delay: 40ms; }
.sh-deals__panes > .tab-pane.active .sh-offer:nth-child(3),
.sh-deals__panes > .tab-pane.active .sh-club .member:nth-child(3) { animation-delay: 75ms; }
.sh-deals__panes > .tab-pane.active .sh-offer:nth-child(n+4),
.sh-deals__panes > .tab-pane.active .sh-club .member:nth-child(n+4) { animation-delay: 100ms; }

/* Drawer: iOS sheet curve on open, quicker on close (asymmetric timing) */
.sh-drawer.offcanvas { transition: transform 420ms var(--sh-ease-drawer), visibility 0s linear 0s; }
.sh-drawer.offcanvas.hiding { transition: transform 260ms var(--sh-ease-in-out); }

/* Drawer content settles in just after the sheet starts moving */
.sh-drawer.showing .sh-drawer__brand,
.sh-drawer.show .sh-drawer__brand {
    animation: sh-pop 360ms var(--sh-ease) 60ms both;
}

@keyframes sh-pop {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: none; }
}

.sh-drawer.showing .sh-menu__item,
.sh-drawer.show .sh-menu__item,
.sh-drawer.showing .sh-drawer__auth,
.sh-drawer.show .sh-drawer__auth,
.sh-drawer.showing .sh-drawer__guest,
.sh-drawer.show .sh-drawer__guest {
    animation: sh-rise 300ms var(--sh-ease) 90ms both;
}

.sh-drawer .sh-menu__item:nth-child(2) { animation-delay: 115ms; }
.sh-drawer .sh-menu__item:nth-child(3) { animation-delay: 135ms; }
.sh-drawer .sh-menu__item:nth-child(4) { animation-delay: 150ms; }
.sh-drawer .sh-menu__item:nth-child(n+5) { animation-delay: 160ms; }

/* Backdrop: soft dim with a touch of blur */
.offcanvas-backdrop.show { opacity: .4; }

/* Reduced motion: keep fades that aid comprehension, drop all movement */
@media (prefers-reduced-motion: reduce) {
    .shc, .shc__art, .shc__icon, .shc__go, .sh-btn, .sh-menu__item, .sh-social__btn,
    .sh-offer, .sh-quick__ring, .sh-desk-hero a, .sh-desk .service-item,
    .sh-mobile .sh-deals .seg-tab, .sh-drawer__close, .sh-support, .sh-support__call {
        transition-property: opacity, background-color, color, box-shadow !important;
    }
    .sh-mobile .sh-deals .tab-indicator { transition: none; }
    .sh-drawer.offcanvas, .sh-drawer.offcanvas.hiding { transition: opacity 200ms ease, visibility 0s; transform: none !important; opacity: 0; }
    .sh-drawer.offcanvas.showing, .sh-drawer.offcanvas.show:not(.hiding) { opacity: 1; }
    .sh-deals__panes > .tab-pane.active .sh-offer,
    .sh-deals__panes > .tab-pane.active .sh-club .member,
    .sh-drawer .sh-menu__item, .sh-drawer .sh-drawer__brand, .sh-drawer .sh-drawer__auth, .sh-drawer .sh-drawer__guest {
        animation: sh-fade 200ms ease both !important;
    }
}

@keyframes sh-fade { from { opacity: 0; } }

/* =========================================================
   BRAND — Sadid organization colours (from Logo.png)
   Navy  #033483  primary  (white text: 11.6:1)
   Orange #FEA000 accent   (navy text on it: 6.0:1 — never white text)
   This block is last on purpose: it re-maps every colour token above.
   ========================================================= */
:root {
    --brand-navy: #033483;
    --brand-navy-600: #0a4bb0;
    --brand-navy-800: #022560;
    --brand-navy-900: #011a45;
    --brand-navy-50: #eaf0fb;
    --brand-orange: #fea000;
    --brand-orange-300: #ffbf47;
    --brand-orange-50: #fff5e0;

    --sh-primary: var(--brand-navy);
    --sh-primary-2: var(--brand-navy-600);
    --sh-bg: #f4f6fb;
    --sh-shadow-lg: 0 18px 40px rgba(3, 52, 131, .18);
}

/* Category / icon palette collapsed onto the brand: three navy depths + orange accent */
.g-sky, .g-blue, .g-indigo, .g-cyan          { --g1: #1a5fd0; --g2: var(--brand-navy); }
.g-violet, .g-purple, .g-teal, .g-green, .g-lime { --g1: var(--brand-navy-600); --g2: var(--brand-navy-800); }
.g-rose, .g-red, .g-pink, .g-slate           { --g1: var(--brand-navy); --g2: var(--brand-navy-900); }
.g-orange, .g-amber                          { --g1: var(--brand-orange-300); --g2: var(--brand-orange); }

/* Orange surfaces always carry navy text/icons for contrast */
.shc.g-orange, .shc.g-amber,
.shc.g-orange .shc__title, .shc.g-amber .shc__title { color: var(--brand-navy) !important; text-shadow: none; }
.shc.g-orange .shc__sub, .shc.g-amber .shc__sub { color: rgba(3, 52, 131, .78); }
.shc.g-orange .shc__icon, .shc.g-amber .shc__icon { color: var(--brand-navy); background: rgba(255, 255, 255, .35); border-color: rgba(255, 255, 255, .55); }
.shc.g-orange .shc__go, .shc.g-amber .shc__go { background: rgba(3, 52, 131, .12); }
.sh-menu__ic.g-orange, .sh-menu__ic.g-amber,
.sh-quick__ring.g-orange .sh-quick__ic, .sh-quick__ring.g-amber .sh-quick__ic { color: var(--brand-navy); }

/* Navy cards get a thin orange spark so the accent shows up across the grid */
.shc.g-sky::after, .shc.g-blue::after, .shc.g-indigo::after, .shc.g-cyan::after,
.shc.g-violet::after, .shc.g-purple::after, .shc.g-teal::after, .shc.g-green::after, .shc.g-lime::after,
.shc.g-rose::after, .shc.g-red::after, .shc.g-pink::after, .shc.g-slate::after {
    border-color: rgba(254, 160, 0, .16);
}

.shc__badge { background: var(--brand-orange); color: var(--brand-navy); }

/* Section titles: orange accent bar */
.sh-section-title { color: var(--brand-navy); }
.sh-section-title::before { background: linear-gradient(180deg, var(--brand-orange-300), var(--brand-orange)); }

/* Desktop header + footer */
.sh-desk .header {
    background: linear-gradient(120deg, var(--brand-navy-900) 0%, var(--brand-navy) 55%, var(--brand-navy-600) 100%);
    box-shadow: 0 10px 30px rgba(3, 52, 131, .28);
    border-bottom: 3px solid var(--brand-orange);
}
.sh-desk .footer { background: var(--brand-navy-900); color: #c9d6f0; border-top: 3px solid var(--brand-orange); }
.sh-desk .footer-bottom { color: #9fb2d9; }
.sh-desk .service-item .icon { background: var(--brand-navy-50); }
.sh-desk .services .service-item .icon i { color: var(--brand-navy); }
.sh-desk .service-item .title a { color: var(--brand-navy); }

/* Mobile header + floating footer */
.sh-mobile .header .toggle-sidebar-btn { color: var(--brand-navy); }
.sh-mobile .footer a { color: var(--brand-navy) !important; }

/* Drawer */
.sh-drawer__head {
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .14), transparent 55%),
        linear-gradient(150deg, var(--brand-navy-900) 0%, var(--brand-navy) 55%, var(--brand-navy-600) 100%);
    box-shadow: 0 14px 30px -16px rgba(3, 52, 131, .75);
}
.sh-drawer__head::after { border-color: rgba(254, 160, 0, .14); }
.sh-drawer__avatar { color: var(--brand-navy); }
.sh-btn--primary { background: var(--brand-orange); color: var(--brand-navy) !important; }
.sh-menu__item:focus-visible { background: var(--brand-navy-50); }
@media (hover: hover) and (pointer: fine) { .sh-menu__item:hover { background: var(--brand-navy-50); } }
.sh-menu__item:active { background: #dde6f7; }
.sh-drawer__guest i { color: var(--brand-orange); }
.sh-support__ic { background: var(--brand-navy-50); color: var(--brand-navy); }
.sh-support__call { background: linear-gradient(145deg, var(--brand-orange-300), var(--brand-orange)); color: var(--brand-navy); box-shadow: 0 8px 16px -8px var(--brand-orange); }

/* Tabs */
.sh-mobile .sh-deals .tab-indicator {
    background: linear-gradient(135deg, var(--brand-navy-600), var(--brand-navy));
    box-shadow: 0 8px 18px -8px rgba(3, 52, 131, .7);
}

/* Offers */
.sh-offer__badge { background: var(--brand-orange); color: var(--brand-navy) !important; box-shadow: 0 6px 14px -6px var(--brand-orange); }
.sh-offer__price { background: var(--brand-navy-50); color: var(--brand-navy) !important; }

/* Club */
.sh-club > .row:first-child,
.sh-club-cta {
    color: var(--brand-navy);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .35), transparent 55%),
        linear-gradient(135deg, var(--brand-orange-300), var(--brand-orange));
    box-shadow: 0 14px 28px -16px var(--brand-orange);
}
.sh-club > .row:first-child h2,
.sh-club-cta h3 { color: var(--brand-navy); }
.sh-club-cta p { color: rgba(3, 52, 131, .85); }
.sh-club-cta__ic { background: rgba(255, 255, 255, .4); color: var(--brand-navy); }
.sh-club-cta::after { border-color: rgba(3, 52, 131, .08); }
.sh-club > .row:first-child a,
.sh-club-cta .sh-btn--light { background: var(--brand-navy); color: #fff !important; }
.sh-club-cta .sh-btn--outline { color: var(--brand-navy) !important; border-color: rgba(3, 52, 131, .45); }
.sh-club .member .text-success { color: var(--brand-navy) !important; }
.sh-club .member button[data-action="convert-point-to-off"] { background: linear-gradient(135deg, var(--brand-navy-600), var(--brand-navy)); }
