﻿* {
    box-sizing: border-box
}

:root {
    --purple: #6736d5;
    --purple2: #8b50ed;
    --blue: #147ee8;
    --navy: #102d83;
    --ink: #112f83;
    --muted: #6077b4;
    --line: #dbe5ff;
    --font: "Vazirmatn",Tahoma,sans-serif
}


.popular-search {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 42px;
    padding: 0 12px;
    margin: 12px 0;
    border: 1px solid #e5e9ff;
    border-radius: 13px;
    background: #fff;
}

    .popular-search input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font-family: inherit;
    }

    .popular-search button {
        border: 0;
        background: transparent;
        font-size: 20px;
        cursor: pointer;
    }

.popular-scroll {
    max-height: 132px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #b9a5ff transparent;
    padding: 5px 2px 10px;
    direction: rtl;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    cursor: grab;
}

    .popular-scroll:active {
        cursor: grabbing;
    }

.popular-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 56px);
    grid-auto-columns: 175px;
    gap: 8px;
    width: max-content;
}

.popular-card {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: transform .2s, box-shadow .2s;
}

    .popular-card strong {
        flex: 1;
        min-width: 0;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.popular-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #ffffffa8;
    font-size: 17px;
}

.popular-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px #5268a222;
}

.popular-card.green {
    background: #e8f8f0;
    color: #16865a;
}

.popular-card.blue {
    background: #eaf2ff;
    color: #326bd1;
}

.popular-card.purple {
    background: #f1eaff;
    color: #8150d8;
}

.popular-card.orange {
    background: #fff1e3;
    color: #d98225;
}

.popular-card.pink {
    background: #ffedf4;
    color: #d84d8b;
}

.popular-card.cyan {
    background: #e5f8fc;
    color: #1593a8;
}

@media(max-width:600px) {
    .popular-scroll {
        max-height: 120px;
    }

    .popular-grid {
        grid-template-rows: repeat(2, 52px);
        grid-auto-columns: 145px;
        gap: 7px;
    }
}

@media(prefers-reduced-motion: reduce) {
    .popular-card {
        transition: none;
    }
}


html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    padding: 25px 18px 45px;
    font-family: var(--font);
    color: var(--ink);
    background: radial-gradient(ellipse at 5% 8%,#d8d0ff 0,transparent 35%),radial-gradient(ellipse at 95% 22%,#c5e6ff 0,transparent 38%),linear-gradient(135deg,#f3f0ff,#f8fbff 55%,#edf4ff)
}

button {
    font: inherit;
    cursor: pointer
}

.page {
    width: min(100%,960px);
    margin: 0 auto;
    padding: 26px 26px 32px;
    border: 1px solid #dbe4ff;
    border-radius: 34px;
    background: linear-gradient(145deg,#ffffffed,#f7f8ffed);
    box-shadow: 0 18px 60px #536fc02b;
    overflow: visible
}

.header {
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 17px
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: var(--purple)
}

.brand-mark {
    width: 105px;
    height: 68px;
    position: relative;
    display: block
}

    .brand-mark:before {
        content: "";
        position: absolute;
        left: 37px;
        top: 0;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #8652f2
    }

    .brand-mark i {
        position: absolute;
        left: 7px;
        top: 19px;
        width: 44px;
        height: 43px;
        border-radius: 35px 35px 8px 35px;
        background: linear-gradient(145deg,#8b5aff,#4522c2);
        transform: skew(-18deg) rotate(-10deg)
    }

    .brand-mark b {
        position: absolute;
        left: 47px;
        top: 19px;
        width: 47px;
        height: 44px;
        border-radius: 35px 35px 35px 8px;
        background: linear-gradient(145deg,#5222ca,#3017a4);
        transform: skew(18deg) rotate(10deg)
    }

    .brand-mark em {
        position: absolute;
        left: 42px;
        top: 34px;
        width: 28px;
        height: 12px;
        border-radius: 12px;
        background: #fff;
        transform: rotate(-12deg)
    }

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1
}

    .brand-copy strong {
        font-size: 43px;
        font-weight: 900;
        letter-spacing: -2px
    }

    .brand-copy b {
        font-size: 21px;
        font-weight: 900;
        margin-top: 0
    }

    .brand-copy small {
        font-size: 14px;
        color: #183a93;
        margin-top: 10px
    }

.header-tools {
    display: flex;
    align-items: center;
    gap: 24px
}

.notification {
    position: relative;
    border: 0;
    background: none;
    width: 42px;
    height: 48px;
    color: #102e9b
}

    .notification svg {
        width: 35px;
        height: 35px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round
    }

    .notification i {
        position: absolute;
        right: 5px;
        top: 5px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #ff465c;
        border: 1px solid white
    }

.user-avatar {
    width: 65px;
    height: 65px;
    border: 3px solid #d9eaff;
    border-radius: 50%;
    background: linear-gradient(145deg,#bdeaff,#6e9cff);
    box-shadow: 0 5px 14px #3e69b326
}

    .user-avatar span {
        display: grid;
        place-items: center;
        width: 100%;
        height: 100%;
        font-size: 35px;
        color: #332a43
    }

.main-nav {
    position: sticky;
    top: 10px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    width: min(100%,760px);
    min-height: 78px;
    margin: 0 auto 22px;
    padding: 9px 17px;
    border: 1px solid #e1e7ff;
    border-radius: 27px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 28px #465ab52b;
    backdrop-filter: blur(16px)
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    border: 0;
    background: none;
    color: #3159b6
}

    .nav-item svg {
        width: 29px;
        height: 29px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round
    }

    .nav-item span:last-child {
        font-size: 12px;
        white-space: nowrap
    }

.nav-home {
    flex: 0 0 82px;
    margin-top: -27px;
    color: #fff
}

.home-circle {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 5px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg,#9b55fa,#5224cf);
    box-shadow: 0 8px 22px #6539ce55
}

    .home-circle svg {
        width: 36px;
        height: 36px;
        fill: white;
        stroke: white;
        stroke-width: 1
    }

.nav-home span:last-child {
    font-weight: 900;
    color: #3d35a7
}

.hero {
    position: relative;
    direction: ltr;
    overflow: hidden;
    border-radius: 29px;
    box-shadow: 0 16px 34px #475ed12c;
    isolation: isolate
}

.slides {
    display: flex;
    transition: transform .55s cubic-bezier(.2,.75,.25,1);
    will-change: transform
}

.slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 276px;
    overflow: hidden;
    direction: rtl
}

.slide-reference img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.slide-blue {
    background: linear-gradient(115deg,#9b50e9,#086ce1 58%,#163dbb)
}

.slide-purple {
    background: linear-gradient(115deg,#ad54ec,#6543d7 56%,#214fc9)
}

.slide-decoration {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%,#ffffff3b 0 2px,transparent 3px),radial-gradient(circle at 75% 80%,#ffffff20 0 2px,transparent 3px);
    background-size: 31px 31px
}

.slide-text {
    position: absolute;
    z-index: 2;
    right: 5%;
    top: 12%;
    width: 54%;
    color: #fff
}

    .slide-text small {
        display: inline-block;
        padding: 5px 13px;
        border: 1px solid #ffffff5c;
        border-radius: 30px;
        background: #ffffff1e;
        font-size: 12px
    }

    .slide-text h1 {
        font-size: 34px;
        line-height: 1.5;
        margin: 10px 0 2px;
        font-weight: 900
    }

    .slide-text h2 {
        font-size: 21px;
        margin: 0 0 7px
    }

    .slide-text p {
        font-size: 14px;
        margin: 0 0 15px
    }

.cta {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 0;
    border-radius: 40px;
    padding: 6px 9px 6px 21px;
    background: #fff;
    color: #15378f;
    font-weight: 900
}

    .cta b {
        display: grid;
        place-items: center;
        width: 43px;
        height: 43px;
        border-radius: 50%;
        background: linear-gradient(145deg,#16a8ff,#1550d2);
        color: white;
        font-size: 28px
    }

.slide-art {
    position: absolute;
    left: 4%;
    bottom: 0;
    width: 38%;
    height: 100%
}

.art-orbit {
    position: absolute;
    left: 5%;
    bottom: -50%;
    width: 330px;
    height: 330px;
    border: 1px solid #ffffff3c;
    border-radius: 50%;
    box-shadow: 0 0 0 23px #ffffff0b,0 0 0 50px #ffffff0a
}

.art-phone {
    position: absolute;
    z-index: 3;
    left: 38%;
    bottom: 12%;
    width: 78px;
    height: 146px;
    border: 5px solid #142c75;
    border-radius: 17px;
    background: linear-gradient(#fff,#e8efff);
    box-shadow: 0 10px 24px #171e5d69;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 31px;
    color: #4931c2;
    transform: rotate(7deg)
}

    .art-phone b {
        font-size: 35px
    }

    .art-phone span {
        font-size: 11px;
        font-weight: 900
    }

    .art-phone i {
        font-style: normal;
        display: grid;
        place-items: center;
        margin-top: 9px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #12b98d;
        color: #fff
    }

.art-pin {
    position: absolute;
    left: 70%;
    top: 24%;
    font-size: 60px;
    color: #c8e8ff;
    text-shadow: 0 5px 18px #172e9c
}

.price-card {
    position: absolute;
    z-index: 3;
    left: 22%;
    top: 26%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 19px 25px;
    border-radius: 22px;
    background: #ffffffed;
    color: #193b9c;
    box-shadow: 0 12px 35px #1c2d8a55;
    transform: rotate(-5deg)
}

    .price-card small {
        font-size: 12px
    }

    .price-card strong {
        font-size: 22px
    }

    .price-card span {
        font-size: 11px
    }

    .price-card i {
        position: absolute;
        right: -12px;
        bottom: -12px;
        display: grid;
        place-items: center;
        width: 33px;
        height: 33px;
        border-radius: 50%;
        background: #18bc91;
        color: #fff;
        font-style: normal
    }

.slide-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 39px;
    height: 39px;
    border: 0;
    border-radius: 50%;
    background: #ffffffb8;
    color: #3424a4;
    font-size: 31px;
    line-height: 1;
    display: grid;
    place-items: center
}

    .slide-arrow.prev {
        left: 12px
    }

    .slide-arrow.next {
        right: 12px
    }

.slide-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 30px;
    background: #ffffff3b;
    backdrop-filter: blur(8px)
}

    .slide-dots button {
        width: 12px;
        height: 12px;
        border: 0;
        border-radius: 20px;
        background: #ffffff9d;
        padding: 0
    }

        .slide-dots button.selected {
            width: 25px;
            background: #642bd0
        }

.categories {
    margin-top: 27px
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px
}

    .section-title h2 {
        font-size: 23px;
        font-weight: 900;
        margin: 0;
        color: #172b8c
    }

    .section-title a {
        font-size: 13px;
        font-weight: 800;
        color: #1268db;
        text-decoration: none;
        white-space: nowrap
    }

        .section-title a b {
            font-size: 22px;
            vertical-align: -3px
        }

.bolt {
    font-size: 39px;
    color: #ffba24;
    vertical-align: -6px;
    margin-right: 4px
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px
}

.category {
    min-height: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 12px 5px;
    color: #112d85
}

.cat-icon {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    border-radius: 23px;
    color: white;
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 8px 19px #3153a52a
}

.category strong {
    font-size: 16px;
    font-weight: 900
}

.category small {
    font-size: 12px
}

.c-green {
    background: #e4f8f5;
    border-color: #d4f0eb
}

    .c-green .cat-icon {
        background: linear-gradient(145deg,#1ed5b5,#009c9b)
    }

.c-blue {
    background: #e5f2ff;
    border-color: #d8eaff
}

    .c-blue .cat-icon {
        background: linear-gradient(145deg,#42c5ff,#0879e8)
    }

.c-purple {
    background: #f0e8ff;
    border-color: #e7dbff
}

    .c-purple .cat-icon {
        background: linear-gradient(145deg,#ad65ff,#6824df)
    }

.c-orange {
    background: #fff0e5;
    border-color: #ffe6d3
}

    .c-orange .cat-icon {
        background: linear-gradient(145deg,#ffc05b,#ff8b1c)
    }

.c-pink {
    background: #ffeaf4;
    border-color: #fbd9e9
}

    .c-pink .cat-icon {
        background: linear-gradient(145deg,#ff8fbd,#e93283)
    }

.c-gray {
    background: #eaf0fc;
    border-color: #dce6fa
}

    .c-gray .cat-icon {
        background: linear-gradient(145deg,#9bb5d7,#637da5)
    }

.benefits {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    margin-top: 20px;
    padding: 15px 8px;
    border: 1px solid #dce6ff;
    border-radius: 23px;
    background: linear-gradient(110deg,#f8f8ff,#f0f4ff);
    box-shadow: 0 4px 14px #4165bb0b
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 0 5px;
    border-left: 1px solid #cbd8fb
}

    .benefit:last-child {
        border-left: 0
    }

    .benefit > span {
        width: 45px;
        height: 45px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: linear-gradient(145deg,#28d4bd,#009bba);
        color: #fff;
        font-size: 24px;
        font-weight: 900;
        box-shadow: 0 5px 13px #19a9b52e
    }

    .benefit:nth-child(2) > span {
        background: linear-gradient(145deg,#25c6d9,#0781c7)
    }

    .benefit:nth-child(3) > span {
        background: linear-gradient(145deg,#27d6a2,#009c80)
    }

    .benefit:nth-child(4) > span {
        background: linear-gradient(145deg,#35b9ff,#0871df)
    }

    .benefit strong {
        font-size: 12px;
        font-weight: 900
    }

    .benefit small {
        font-size: 10px;
        color: #36579d
    }

.popular {
    margin-top: 25px
}

.star {
    font-size: 29px;
    color: #ffbd31;
    margin-left: 4px
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px
}

.popular-card {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border: 1px solid #dce6ff;
    border-radius: 22px;
    background: linear-gradient(145deg,#fff,#f8faff);
    box-shadow: 0 5px 15px #4a66a00d;
    text-align: right;
    color: #102e88
}

.popular-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e4efff;
    color: #0871b7;
    font-size: 27px
}

.popular-card > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0
}

.popular-card strong {
    font-size: 14px;
    font-weight: 900
}

.popular-card small {
    font-size: 11px;
    color: #3d5eaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.popular-card > b {
    margin-right: auto;
    color: #aac1ec;
    font-size: 25px;
    font-weight: 400
}

.toast {
    position: fixed;
    z-index: 200;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%,15px);
    opacity: 0;
    pointer-events: none;
    background: #34218f;
    color: #fff;
    padding: 11px 17px;
    border-radius: 14px;
    font-size: 13px;
    box-shadow: 0 8px 25px #24205d40;
    transition: .22s
}

    .toast.show {
        opacity: 1;
        transform: translate(-50%,0)
    }

@media(min-width:1100px) {
    .page {
        width: min(100%,1060px);
        padding: 30px 34px 38px
    }

    .header {
        height: 122px
    }

    .slide {
        height: 315px
    }

    .category {
        min-height: 170px
    }

    .benefits {
        padding: 18px
    }

    .popular-card {
        min-height: 96px
    }
}

@media(max-width:700px) {
    body {
        padding: 0;
        background: #f8f9ff
    }

    .page {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        padding: 12px 13px calc(105px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: linear-gradient(150deg,#fff,#f7f8ff)
    }

    .header {
        height: 75px;
        padding: 0 4px 9px
    }

    .brand {
        gap: 5px
    }

    .brand-mark {
        transform: scale(.73);
        transform-origin: right center;
        width: 76px;
        margin-left: -8px
    }

    .brand-copy strong {
        font-size: 33px
    }

    .brand-copy b {
        font-size: 17px
    }

    .brand-copy small {
        font-size: 10px;
        margin-top: 7px
    }

    .header-tools {
        gap: 12px
    }

    .user-avatar {
        width: 49px;
        height: 49px
    }

        .user-avatar span {
            font-size: 27px
        }

    .notification svg {
        width: 29px;
        height: 29px
    }

    .main-nav {
        position: fixed;
        top: auto;
        bottom: max(6px,env(safe-area-inset-bottom));
        right: 9px;
        left: 9px;
        z-index: 150;
        width: auto;
        min-height: 91px;
        margin: 0;
        padding: 8px 7px 6px;
        gap: 2px;
        border-radius: 28px;
        background: #ffffffed;
        box-shadow: 0 8px 30px #465cae2b;
        border: 1px solid #e0e7ff
    }

    .nav-item {
        gap: 5px
    }

        .nav-item svg {
            width: 26px;
            height: 26px
        }

        .nav-item span:last-child {
            font-size: 10px
        }

    .nav-home {
        flex: 0 0 66px;
        margin-top: -29px
    }

    .home-circle {
        width: 76px;
        height: 76px
    }

        .home-circle svg {
            width: 35px;
            height: 35px
        }

    .nav-home span:last-child {
        font-size: 10px
    }

    .hero {
        border-radius: 23px
    }

    .slide {
        height: clamp(215px,61vw,290px)
    }

    .slide-reference img {
        object-fit: cover;
        object-position: center
    }

    .slide-text {
        right: 5%;
        top: 13%;
        width: 59%
    }

        .slide-text small {
            font-size: 9px;
            padding: 4px 8px
        }

        .slide-text h1 {
            font-size: clamp(20px,5.1vw,28px);
            margin: 8px 0 1px
        }

        .slide-text h2 {
            font-size: 14px
        }

        .slide-text p {
            font-size: 10px;
            line-height: 1.8;
            margin-bottom: 11px
        }

    .cta {
        font-size: 11px;
        padding: 5px 7px 5px 12px;
        gap: 9px
    }

        .cta b {
            width: 34px;
            height: 34px;
            font-size: 23px
        }

    .slide-art {
        left: 0;
        width: 39%
    }

    .art-phone {
        transform: scale(.73) rotate(7deg);
        transform-origin: bottom left;
        left: 28%;
        bottom: 11%
    }

    .art-pin {
        font-size: 42px;
        left: 65%
    }

    .price-card {
        transform: scale(.76) rotate(-5deg);
        transform-origin: bottom left;
        left: 9%;
        top: 32%
    }

    .slide-arrow {
        width: 29px;
        height: 29px;
        font-size: 23px
    }

        .slide-arrow.prev {
            left: 6px
        }

        .slide-arrow.next {
            right: 6px
        }

    .slide-dots {
        bottom: 7px;
        gap: 7px;
        padding: 4px 8px
    }

        .slide-dots button {
            width: 9px;
            height: 9px
        }

            .slide-dots button.selected {
                width: 20px
            }

    .categories {
        margin-top: 21px
    }

    .section-title {
        margin-bottom: 10px
    }

        .section-title h2 {
            font-size: 19px
        }

        .section-title a {
            font-size: 10px
        }

    .bolt {
        font-size: 30px
    }

    .category-grid {
        gap: 8px
    }

    .category {
        min-height: 127px;
        border-radius: 19px;
        gap: 6px;
        padding: 8px 2px
    }

    .cat-icon {
        width: 51px;
        height: 51px;
        border-radius: 18px;
        font-size: 23px
    }

    .category strong {
        font-size: 11px
    }

    .category small {
        font-size: 8px
    }

    .benefits {
        margin-top: 16px;
        padding: 11px 2px;
        border-radius: 18px
    }

    .benefit {
        gap: 4px;
        padding: 0 2px
    }

        .benefit > span {
            width: 36px;
            height: 36px;
            font-size: 19px
        }

        .benefit strong {
            font-size: 8px
        }

        .benefit small {
            font-size: 7px;
            line-height: 1.6
        }

    .popular {
        margin-top: 19px
    }

    .star {
        font-size: 23px
    }

    .popular-grid {
        gap: 8px
    }

    .popular-card {
        min-height: 74px;
        border-radius: 17px;
        padding: 7px 6px;
        gap: 6px
    }

    .popular-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 20px
    }

    .popular-card strong {
        font-size: 9px
    }

    .popular-card small {
        font-size: 8px
    }

    .popular-card > b {
        font-size: 19px
    }

    .toast {
        bottom: calc(108px + env(safe-area-inset-bottom));
        max-width: calc(100vw - 30px);
        text-align: center
    }
}

@media(max-width:370px) {
    .page {
        padding-right: 10px;
        padding-left: 10px
    }

    .brand-copy strong {
        font-size: 29px
    }

    .brand-mark {
        transform: scale(.65);
        width: 68px
    }

    .slide-text {
        width: 62%
    }

        .slide-text h1 {
            font-size: 19px
        }

        .slide-text h2 {
            font-size: 12px
        }

    .category strong {
        font-size: 10px
    }

    .category small {
        font-size: 7px
    }
}

@media(prefers-reduced-motion:reduce) {
    *, *:before, *:after {
        scroll-behavior: auto !important;
        transition: none !important
    }
}


/* Refined original navigation: same layout, more polished details */
@media (min-width:701px) {
    .main-nav {
        width: min(100%,760px);
        min-height: 82px;
        padding: 8px 15px;
        gap: 5px;
        border: 1px solid rgba(219,226,255,.95);
        border-radius: 28px;
        background: linear-gradient(115deg,rgba(255,255,255,.97),rgba(248,249,255,.94));
        box-shadow: 0 10px 28px rgba(66,78,160,.11),inset 0 1px 0 #fff;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        transition: box-shadow .25s ease,border-color .25s ease;
    }

        .main-nav:hover {
            border-color: #d4d9ff;
            box-shadow: 0 14px 34px rgba(76,72,177,.15),inset 0 1px 0 #fff;
        }

    .nav-item {
        position: relative;
        min-height: 62px;
        border-radius: 19px;
        color: #52699f;
        transition: background .2s ease,color .2s ease,transform .2s ease;
    }

        .nav-item svg {
            width: 27px;
            height: 27px;
            padding: 4px;
            border-radius: 10px;
            background: linear-gradient(145deg,#f1f5ff,#fff);
            box-shadow: 0 2px 7px rgba(56,91,171,.08);
            transition: transform .2s ease,background .2s ease,box-shadow .2s ease;
        }

        .nav-item span:last-child {
            font-size: 12px;
            font-weight: 700
        }

        .nav-item:hover {
            color: #5731c8;
            background: linear-gradient(145deg,#f5efff,#eff6ff);
            transform: translateY(-2px);
        }

            .nav-item:hover svg {
                transform: translateY(-2px) scale(1.06);
                background: #fff;
                box-shadow: 0 5px 12px rgba(94,71,194,.13);
            }

        .nav-item.active:not(.nav-home) {
            color: #5932ca;
            background: linear-gradient(145deg,#f4edff,#f0f6ff);
        }

            .nav-item.active:not(.nav-home)::after {
                content: "";
                position: absolute;
                bottom: 4px;
                left: 50%;
                width: 19px;
                height: 3px;
                border-radius: 5px;
                background: linear-gradient(90deg,#8d4de9,#2b7fe9);
                transform: translateX(-50%);
            }

    .nav-home {
        flex: 0 0 82px;
        margin-top: -25px;
        color: #fff;
        background: transparent;
    }

    .home-circle {
        width: 72px;
        height: 72px;
        border: 5px solid #fff;
        background: linear-gradient(145deg,#9654f2,#6734d5 58%,#315fe0);
        box-shadow: 0 8px 20px rgba(99,61,211,.29),0 0 0 5px rgba(123,88,222,.07);
        transition: transform .22s ease,box-shadow .22s ease;
    }

    .nav-home:hover {
        background: transparent;
        transform: translateY(-3px);
    }

        .nav-home:hover .home-circle {
            transform: scale(1.055);
            box-shadow: 0 11px 25px rgba(99,61,211,.36),0 0 0 7px rgba(123,88,222,.09);
        }

    .nav-home span:last-child {
        color: #5733c4;
        font-weight: 900;
    }
}

@media (max-width:700px) {
    /* Keep the established mobile bottom dock; only add subtle touch feedback. */
    .nav-item {
        transition: transform .16s ease,color .16s ease
    }

        .nav-item:active {
            transform: scale(.94)
        }

    .home-circle {
        box-shadow: 0 7px 18px rgba(99,61,211,.28)
    }
}


/* Desktop-only unified header + navigation frame */
@media (min-width:701px) {
    .desktop-topbar {
        position: sticky;
        top: 12px;
        z-index: 120;
        display: flex;
        flex-direction: column;
        gap: 7px;
        width: 100%;
        margin: 0 auto 23px;
        padding: 13px 20px 12px;
        border: 1px solid rgba(214,221,255,.96);
        border-radius: 28px;
        background: radial-gradient(ellipse at 12% 0%,rgba(145,105,255,.10),transparent 43%), radial-gradient(ellipse at 92% 100%,rgba(50,139,244,.09),transparent 44%), rgba(255,255,255,.94);
        box-shadow: 0 12px 32px rgba(70,78,157,.12),inset 0 1px 0 #fff;
        backdrop-filter: blur(18px) saturate(145%);
        -webkit-backdrop-filter: blur(18px) saturate(145%);
    }

        .desktop-topbar .header {
            height: auto;
            min-height: 76px;
            padding: 0 5px 8px;
            border-bottom: 1px solid #e8ecff;
        }

        .desktop-topbar .brand {
            gap: 10px
        }

        .desktop-topbar .brand-mark {
            transform: scale(.78);
            transform-origin: right center;
            width: 86px;
            margin-left: -5px
        }

        .desktop-topbar .brand-copy strong {
            font-size: 35px
        }

        .desktop-topbar .brand-copy b {
            font-size: 18px
        }

        .desktop-topbar .brand-copy small {
            font-size: 12px;
            margin-top: 7px
        }

        .desktop-topbar .header-tools {
            gap: 17px
        }

        .desktop-topbar .notification {
            width: 43px;
            height: 43px;
            display: grid;
            place-items: center;
            border: 1px solid #e2e8ff;
            border-radius: 14px;
            background: linear-gradient(145deg,#fff,#f4f6ff);
            box-shadow: 0 3px 9px rgba(55,85,166,.07);
            transition: transform .2s ease,box-shadow .2s ease;
        }

            .desktop-topbar .notification:hover {
                transform: translateY(-2px);
                box-shadow: 0 7px 15px rgba(55,85,166,.13)
            }

            .desktop-topbar .notification svg {
                width: 25px;
                height: 25px
            }

            .desktop-topbar .notification i {
                right: 7px;
                top: 6px
            }

        .desktop-topbar .user-avatar {
            width: 48px;
            height: 48px
        }

            .desktop-topbar .user-avatar span {
                font-size: 27px
            }

        .desktop-topbar .main-nav {
            position: static;
            top: auto;
            z-index: auto;
            width: 100%;
            min-height: 61px;
            margin: 0;
            padding: 2px 0 0;
            gap: 7px;
            justify-content: stretch;
            flex-wrap: wrap;
            border: 0;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
            backdrop-filter: none;
        }

        .desktop-topbar .nav-item {
            flex: 1 1 115px;
            min-width: 100px;
            min-height: 53px;
            flex-direction: row;
            gap: 9px;
            padding: 5px 11px;
            border: 1px solid transparent;
            border-radius: 15px;
            color: #53699e;
            transition: background .2s ease,color .2s ease,transform .2s ease,border-color .2s ease;
        }

            .desktop-topbar .nav-item svg {
                flex: 0 0 27px;
                width: 27px;
                height: 27px;
                padding: 3px;
                border-radius: 9px;
                background: linear-gradient(145deg,#f1f4ff,#fff);
            }

            .desktop-topbar .nav-item span:last-child {
                font-size: 12px;
                font-weight: 750
            }

            .desktop-topbar .nav-item:hover {
                color: #5934c7;
                background: linear-gradient(110deg,#f4edff,#eef5ff);
                border-color: #e4e2ff;
                transform: translateY(-1px);
            }

            .desktop-topbar .nav-item.active:not(.nav-home) {
                color: #5831c8;
                background: linear-gradient(110deg,#f3ecff,#eef5ff);
                border-color: #e2dcff;
            }

        .desktop-topbar .nav-home {
            flex: 0 0 78px;
            min-width: 78px;
            min-height: 60px;
            margin: -8px 3px 0;
            padding: 0;
            flex-direction: column;
            gap: 0;
            overflow: visible;
            background: transparent;
            border-color: transparent;
        }

        .desktop-topbar .home-circle {
            width: 58px;
            height: 58px;
            border: 4px solid #fff;
            background: linear-gradient(145deg,#9c5af3,#6735d6 58%,#3263e2);
            box-shadow: 0 7px 17px rgba(99,61,211,.27),0 0 0 4px rgba(123,88,222,.06);
        }

            .desktop-topbar .home-circle svg {
                width: 30px;
                height: 30px;
                padding: 0;
                background: transparent
            }

        .desktop-topbar .nav-home span:last-child {
            font-size: 10px;
            color: #5634c1;
            font-weight: 900
        }

        .desktop-topbar .nav-home:hover {
            background: transparent;
            border-color: transparent;
            transform: translateY(-2px)
        }

            .desktop-topbar .nav-home:hover .home-circle {
                box-shadow: 0 10px 22px rgba(99,61,211,.35),0 0 0 6px rgba(123,88,222,.08)
            }

        .desktop-topbar .nav-item:not(.nav-home) {
            white-space: nowrap
        }
}

@media (min-width:701px) and (max-width:900px) {
    .desktop-topbar {
        padding: 10px 12px
    }

        .desktop-topbar .nav-item {
            min-width: 76px;
            padding: 5px 6px;
            gap: 6px
        }

            .desktop-topbar .nav-item span:last-child {
                font-size: 11px
            }

        .desktop-topbar .nav-home {
            flex-basis: 68px;
            min-width: 68px
        }
}

@media (max-width:700px) {
    .desktop-topbar {
        display: contents
    }
}


/* On desktop, only the five-item navigation remains sticky while scrolling.
   The logo, notifications and profile stay in normal flow and are visible again at page top. */
@media (min-width:701px) {
    .desktop-topbar {
        position: relative;
        top: auto;
        z-index: auto;
    }

        .desktop-topbar .main-nav {
            position: sticky;
            top: 0;
            z-index: 140;
            background: rgba(255,255,255,.97);
            border-radius: 18px;
            box-shadow: 0 8px 24px rgba(70,78,157,.13);
            backdrop-filter: blur(18px) saturate(145%);
            -webkit-backdrop-filter: blur(18px) saturate(145%);
        }
}

/* === Responsive polish: reliable desktop sticky menu, uncropped banners, search and footer === */
@media (min-width:701px) {
    /* Keep the navigation sticky relative to the full page, not the short header wrapper. */
    .desktop-topbar {
        display: contents
    }

        .desktop-topbar .header {
            width: 100%;
            margin: 0 auto 12px;
            padding: 8px 18px 14px;
            border: 1px solid #e2e7ff;
            border-radius: 24px;
            background: linear-gradient(115deg,#fff,#f4f7ff);
            box-shadow: 0 8px 24px rgba(70,78,157,.08)
        }

        .desktop-topbar .main-nav {
            position: sticky;
            top: 10px;
            z-index: 500;
            width: 100%;
            max-width: none;
            margin: 0 auto 24px;
            padding: 8px 18px;
            min-height: 72px;
            flex-wrap: nowrap;
            justify-content: space-around;
            border: 1px solid #d9e2ff;
            border-radius: 22px;
            background: rgba(255,255,255,.96);
            box-shadow: 0 12px 32px rgba(48,72,150,.16),0 3px 10px rgba(60,83,160,.08);
            backdrop-filter: blur(20px) saturate(160%);
            -webkit-backdrop-filter: blur(20px) saturate(160%)
        }

        .desktop-topbar .nav-item {
            flex: 1 1 0;
            min-width: 0;
            justify-content: center;
            padding: 7px 10px
        }

        .desktop-topbar .nav-home {
            flex: 0 0 86px
        }

        .desktop-topbar .nav-item.active:not(.nav-home) {
            background: linear-gradient(120deg,#f0eaff,#eaf3ff);
            border-color: #dcdcff;
            box-shadow: inset 0 1px 0 #fff
        }
}
/* Banner images always fit completely; no edge is cropped on narrow or wide screens. */
.hero {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab
}

    .hero.is-dragging {
        cursor: grabbing
    }

.slides {
    width: 100%;
    transform: translate3d(0,0,0);
    backface-visibility: hidden
}

.slide {
    min-width: 100%;
    height: clamp(220px,30vw,340px)
}

.slide-reference {
    display: block !important;
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg,#edf2ff,#e4edff);
}

    .slide-reference img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
        pointer-events: none;
        -webkit-user-drag: none;
    }

.slide-arrow {
    cursor: pointer;
    touch-action: manipulation
}

.service-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-height: 58px;
    margin: 0 0 17px;
    padding: 6px 8px 6px 7px;
    border: 1px solid #dbe4ff;
    border-radius: 18px;
    background: linear-gradient(110deg,#fff,#f7f9ff);
    box-shadow: 0 7px 22px rgba(63,83,160,.09);
    direction: rtl
}

    .service-search:focus-within {
        border-color: #8c79e9;
        box-shadow: 0 0 0 4px rgba(111,77,211,.10),0 8px 24px rgba(63,83,160,.1)
    }

    .service-search .search-icon {
        display: grid;
        place-items: center;
        flex: 0 0 38px;
        height: 38px;
        border-radius: 12px;
        background: linear-gradient(145deg,#eee9ff,#e9f3ff);
        color: #5b43c8;
        font-size: 31px;
        line-height: 1
    }

    .service-search input {
        flex: 1;
        min-width: 0;
        height: 42px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #18377e;
        font: 500 14px var(--font)
    }

        .service-search input::placeholder {
            color: #8a98bc
        }

    .service-search button {
        flex: 0 0 auto;
        border: 0;
        border-radius: 13px;
        padding: 10px 20px;
        background: linear-gradient(120deg,#7446dc,#287ee7);
        color: #fff;
        font: 800 13px var(--font);
        box-shadow: 0 5px 12px #6949c52b
    }

.site-footer {
    width: 100%;
    margin: 34px auto 0;
    padding: 25px 26px 14px;
    border: 1px solid #cbd9ff;
    border-radius: 26px;
    color: #fff;
    background: radial-gradient(ellipse at 8% 0%,rgba(128,105,255,.55),transparent 42%),radial-gradient(ellipse at 95% 100%,rgba(39,143,225,.45),transparent 46%),linear-gradient(125deg,#293d9c,#4d3ca8 52%,#176db7);
    box-shadow: 0 14px 34px rgba(43,66,150,.22);
    overflow: hidden
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
    align-items: center;
    padding-bottom: 20px
}

.footer-brand strong {
    display: block;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.5px
}

    .footer-brand strong span {
        font-size: 16px;
        color: #d8e6ff
    }

.footer-brand p {
    max-width: 390px;
    margin: 8px 0 0;
    color: #e4eaff;
    font-size: 12px;
    line-height: 2.1
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 16px
}

    .footer-links a, .footer-contact a {
        color: #fff;
        text-decoration: none;
        font-size: 12px;
        font-weight: 750
    }

        .footer-links a:hover {
            text-decoration: underline;
            color: #ffe69a
        }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 13px 16px;
    border: 1px solid #ffffff38;
    border-radius: 17px;
    background: #ffffff16
}

    .footer-contact b {
        font-size: 12px
    }

    .footer-contact a {
        font-size: 19px;
        letter-spacing: .3px
    }

    .footer-contact small {
        font-size: 10px;
        color: #e0e9ff
    }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #ffffff38;
    color: #dce7ff;
    font-size: 10px
}

.trust-label {
    padding: 5px 10px;
    border: 1px solid #ffffff40;
    border-radius: 20px;
    background: #ffffff17
}

@media(max-width:700px) {
    body {
        padding-bottom: 0
    }

    /*.slide {
        height: clamp(190px,58vw,270px)
    }*/

    .slide-reference {
        background: linear-gradient(135deg,#edf2ff,#e4edff)
    }

        .slide-reference img {
            object-fit: contain;
            object-position: center
        }

    .service-search {
        min-height: 50px;
        margin-bottom: 13px;
        padding: 5px;
        gap: 6px;
        border-radius: 15px
    }

        .service-search .search-icon {
            flex-basis: 33px;
            height: 34px;
            font-size: 27px
        }

        .service-search input {
            height: 36px;
            font-size: 11px
        }

        .service-search button {
            padding: 9px 13px;
            border-radius: 11px;
            font-size: 11px
        }

    .site-footer {
        margin: 25px 0 0;
        padding: 20px 16px 13px;
        border-radius: 22px;
        background: radial-gradient(ellipse at 100% 0%,rgba(118,99,255,.55),transparent 48%),linear-gradient(145deg,#253b98,#4b3aa4 55%,#1269b1);
        box-shadow: 0 12px 26px rgba(43,66,150,.2)
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 16px 12px;
        padding-bottom: 15px
    }

    .footer-brand {
        grid-column: 1/-1;
        padding-bottom: 12px;
        border-bottom: 1px solid #ffffff30
    }

        .footer-brand strong {
            font-size: 23px
        }

            .footer-brand strong span {
                font-size: 14px
            }

        .footer-brand p {
            font-size: 10px;
            line-height: 2;
            margin-top: 5px
        }

    .footer-links {
        gap: 12px 8px;
        align-content: center
    }

        .footer-links a {
            font-size: 10px;
            padding: 4px 0
        }

    .footer-contact {
        padding: 11px 9px;
        gap: 7px
    }

        .footer-contact b {
            font-size: 10px
        }

        .footer-contact a {
            font-size: 15px
        }

        .footer-contact small {
            font-size: 8px;
            line-height: 1.7
        }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        font-size: 9px;
        line-height: 1.8
    }
}

@media(max-width:370px) {
    .footer-main {
        grid-template-columns: 1fr
    }

    .footer-brand {
        grid-column: auto
    }

    .footer-links {
        grid-template-columns: 1fr 1fr
    }

    .footer-contact {
        max-width: none
    }
}

/* Slider: click anywhere on a banner to open its destination; swipe remains independent. */
.hero {
    cursor: pointer;
    touch-action: pan-y;
}

    .hero.is-dragging {
        cursor: grabbing;
    }

.slide {
    cursor: pointer;
}

.slide-reference img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.slide .cta {
    position: relative;
    z-index: 6;
    cursor: pointer;
}

.slide-arrow, .slide-dots {
    z-index: 8;
}
/* Real trust/permit badges are inserted in these clearly reserved footer slots. */
.footer-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    padding: 16px 0 18px;
    border-top: 1px solid #ffffff30;
}

.trust-heading {
    font-size: 13px;
    font-weight: 900;
    color: #fff;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-item {
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid #ffffff55;
    border-radius: 14px;
    background: linear-gradient(145deg,#ffffff24,#ffffff0d);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 5px 15px #101d5b22;
}

.trust-symbol {
    display: grid;
    place-items: center;
    min-width: 55px;
    height: 42px;
    padding: 0 9px;
    border-radius: 10px;
    background: #fff;
    color: #3447a3;
    font-size: 16px;
    font-weight: 950;
}

.trust-item small {
    font-size: 10px;
    color: #f0f4ff;
}

@media(max-width:700px) {
    .footer-trust {
        padding: 13px 0 15px;
        gap: 9px;
    }

    .trust-heading {
        font-size: 12px;
    }

    .trust-items {
        width: 100%;
        gap: 7px;
    }

    .trust-item {
        flex: 1 1 28%;
        min-width: 0;
        padding: 8px 5px;
        border-radius: 12px;
    }

    .trust-symbol {
        min-width: 45px;
        height: 36px;
        font-size: 14px;
    }

    .trust-item small {
        font-size: 8px;
        text-align: center;
        line-height: 1.6;
    }
}

/* Dedicated desktop drill-down navigation; the mobile dock is a separate component. */
.mobile-dock {
    display: none
}

@media(min-width:701px) {
    .desktop-menu {
        display: block !important;
        position: sticky !important;
        top: 10px !important;
        z-index: 600 !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        margin: 0 auto 24px !important;
        padding: 13px 18px 15px !important;
        border: 1px solid rgba(197,210,255,.9) !important;
        border-radius: 23px !important;
        background: rgba(255,255,255,.94) !important;
        box-shadow: 0 13px 34px rgba(49,68,145,.16),inset 0 1px 0 #fff !important;
        backdrop-filter: blur(20px) saturate(160%);
        -webkit-backdrop-filter: blur(20px) saturate(160%)
    }

    .desktop-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 27px;
        margin: 0 2px 9px;
        color: #6879b4;
        font-size: 11px;
        font-weight: 800
    }

    .menu-caption {
        letter-spacing: .1px
    }

    .menu-back {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        border: 1px solid #dce4ff;
        border-radius: 12px;
        padding: 7px 13px;
        background: linear-gradient(120deg,#f3efff,#edf6ff);
        color: #4c42ad;
        font: 800 12px var(--font);
        box-shadow: 0 3px 9px #5369b012
    }

        .menu-back[hidden] {
            display: none
        }

        .menu-back span {
            font-size: 17px;
            line-height: 12px
        }

    .desktop-menu-items {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 9px;
        min-height: 55px
    }

    .desktop-menu-item {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 11px 13px;
        border: 1px solid transparent;
        border-radius: 16px;
        background: transparent;
        color: #31529f;
        font: 800 13px var(--font);
        white-space: nowrap;
        transition: background .2s,border-color .2s,transform .2s,box-shadow .2s
    }

        .desktop-menu-item:hover {
            transform: translateY(-2px);
            background: linear-gradient(120deg,#f1edff,#edf6ff);
            border-color: #dce5ff;
            box-shadow: 0 7px 18px #566cc51c
        }

        .desktop-menu-item.active {
            background: linear-gradient(120deg,#eee8ff,#e7f2ff);
            border-color: #d9ddff;
            color: #5135bd;
            box-shadow: inset 0 1px 0 #fff
        }

    .desktop-menu-icon {
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        border-radius: 11px;
        background: linear-gradient(145deg,#eeeaff,#e4f2ff);
        color: #674bd0;
        font-size: 17px
    }

    .desktop-menu-label {
        overflow: hidden;
        text-overflow: ellipsis
    }

    .desktop-menu-chevron {
        font-size: 16px;
        color: #8999c7;
        margin-right: auto
    }
}

@media(max-width:700px) {
    .desktop-menu {
        display: none !important
    }

    .mobile-dock {
        position: fixed;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2px;
        right: 12px;
        left: 12px;
        bottom: max(9px,env(safe-area-inset-bottom));
        z-index: 650;
        width: auto;
        min-height: 79px;
        margin: 0;
        padding: 7px 10px 5px;
        border: 2px solid #e3ceff;
        border-radius: 25px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 7px 24px rgba(126,77,196,.16),inset 0 1px 0 #fff;
        backdrop-filter: blur(18px) saturate(155%);
        -webkit-backdrop-filter: blur(18px) saturate(155%)
    }

        .mobile-dock .nav-item {
            position: relative;
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            min-width: 0;
            padding: 0 1px;
            border: 0;
            background: transparent;
            color: #7d61c9;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent
        }

        .mobile-dock .dock-icon {
            width: 39px;
            height: 39px;
            display: grid;
            place-items: center;
            border-radius: 13px;
            background: #e6f8f2;
            color: #13b987;
            transition: transform .18s ease,box-shadow .18s ease
        }

            .mobile-dock .dock-icon svg {
                width: 20px;
                height: 20px;
                fill: none;
                stroke: currentColor;
                stroke-width: 1.9;
                stroke-linecap: round;
                stroke-linejoin: round
            }

        .mobile-dock .nav-item span:last-child {
            font-size: 9px;
            font-weight: 750;
            line-height: 1.35;
            white-space: nowrap;
            color: #85809a
        }

        .mobile-dock .dock-ads .dock-icon {
            background: #ffebf3;
            color: #f0529c
        }

        .mobile-dock .dock-history .dock-icon {
            background: #fff3dc;
            color: #f2a000
        }

        .mobile-dock .dock-new .dock-icon {
            background: #f2eaff;
            color: #9958e9
        }

        .mobile-dock .nav-item:active .dock-icon {
            transform: scale(.92)
        }

        .mobile-dock .nav-home {
            flex: 0 0 58px;
            margin-top: -22px;
            gap: 3px;
            color: #fff
        }

        .mobile-dock .home-circle {
            width: 48px;
            height: 48px;
            display: grid;
            place-items: center;
            border: 0;
            border-radius: 15px;
            background: linear-gradient(145deg,#69a7ff,#347cf0);
            box-shadow: 0 7px 16px rgba(57,126,241,.35),0 0 0 5px rgba(255,255,255,.94)
        }

            .mobile-dock .home-circle svg {
                width: 25px;
                height: 25px;
                fill: white;
                stroke: white;
                stroke-width: 1
            }

        .mobile-dock .nav-home span:last-child {
            font-size: 9px;
            font-weight: 900;
            color: #367df0
        }

        .mobile-dock .nav-home:active .home-circle {
            transform: translateY(1px) scale(.95)
        }
}

@media(max-width:380px) {
    .mobile-dock {
        right: 8px;
        left: 8px;
        padding-left: 7px;
        padding-right: 7px;
        min-height: 76px
    }

        .mobile-dock .dock-icon {
            width: 35px;
            height: 35px;
            border-radius: 12px
        }

        .mobile-dock .nav-item span:last-child {
            font-size: 8px
        }
}


/* MYDA v5: cleaner desktop navigation and near-full-width desktop canvas */
@media (min-width: 701px) {
    body {
        padding: 8px 6px 24px !important;
    }

    .page {
        width: calc(100vw - 12px) !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding-left: clamp(14px, 1.4vw, 24px) !important;
        padding-right: clamp(14px, 1.4vw, 24px) !important;
        border-radius: 20px !important;
    }

    .desktop-menu {
        padding: 7px 10px !important;
        margin-bottom: 18px !important;
        border: 1px solid #e7eaf3 !important;
        border-radius: 13px !important;
        background: rgba(255,255,255,.97) !important;
        box-shadow: 0 3px 12px rgba(25,45,90,.055) !important;
        backdrop-filter: blur(12px);
    }

    .desktop-menu-head {
        min-height: 20px !important;
        margin: 0 4px 5px !important;
        color: #8992a8 !important;
        font-size: 10px !important;
        font-weight: 600 !important;
    }

    .desktop-menu-items {
        gap: 5px !important;
        min-height: 42px !important;
    }

    .desktop-menu-item {
        padding: 7px 10px !important;
        gap: 8px !important;
        border-radius: 9px !important;
        border-color: transparent !important;
        box-shadow: none !important;
        background: transparent !important;
        color: #46536b !important;
        font-size: 12px !important;
        font-weight: 650 !important;
        transform: none !important;
        transition: background .16s ease, color .16s ease !important;
    }

        .desktop-menu-item:hover {
            background: #f4f6fb !important;
            color: #4334a2 !important;
            border-color: transparent !important;
            box-shadow: none !important;
        }

        .desktop-menu-item.active {
            background: #f0edff !important;
            color: #5639bd !important;
            border-color: transparent !important;
            box-shadow: none !important;
        }

    .desktop-menu-icon {
        width: 26px !important;
        height: 26px !important;
        flex-basis: 26px !important;
        border-radius: 8px !important;
        background: #f1effb !important;
        color: #6751bd !important;
        font-size: 14px !important;
    }

    .desktop-menu-chevron {
        color: #9aa3b6 !important;
        font-size: 13px !important;
    }
}


/* MYDA v6 refinement: balanced 30px desktop gutters + richer navigation */
@media (min-width: 701px) {
    body {
        padding: 10px 30px 28px !important;
    }

    .page {
        width: calc(100vw - 60px) !important;
        max-width: none !important;
        margin-inline: auto !important;
        padding-left: clamp(16px, 1.6vw, 28px) !important;
        padding-right: clamp(16px, 1.6vw, 28px) !important;
    }

    .desktop-menu {
        position: sticky !important;
        top: 10px !important;
        overflow: hidden !important;
        padding: 9px 13px 12px !important;
        margin: 0 auto 20px !important;
        border: 1px solid #dfe5fa !important;
        border-radius: 17px !important;
        background: radial-gradient(ellipse at 12% 0%, rgba(126, 92, 230, .10), transparent 42%), linear-gradient(110deg, rgba(255,255,255,.99), rgba(247,249,255,.98)) !important;
        box-shadow: 0 7px 22px rgba(57, 66, 130, .10), inset 0 1px 0 #fff !important;
    }

        .desktop-menu::before {
            content: "";
            position: absolute;
            inset: 0 0 auto;
            height: 3px;
            background: linear-gradient(90deg, #6e55d9 0%, #8c73ed 42%, #54a7e8 100%);
            opacity: .9;
        }

    .desktop-menu-head {
        min-height: 25px !important;
        margin: 1px 5px 7px !important;
        color: #7883a5 !important;
        font-size: 10px !important;
        font-weight: 750 !important;
    }

    .menu-caption {
        color: #737da0 !important;
        letter-spacing: .15px;
    }

    .menu-back {
        border: 1px solid #e0e4f7 !important;
        border-radius: 10px !important;
        padding: 6px 11px !important;
        background: linear-gradient(135deg, #f4f1ff, #eff7ff) !important;
        color: #5b48b5 !important;
        box-shadow: 0 2px 7px rgba(80, 86, 160, .06) !important;
        font-size: 11px !important;
    }

    .desktop-menu-items {
        gap: 7px !important;
        min-height: 47px !important;
    }

    .desktop-menu-item {
        justify-content: flex-start !important;
        padding: 8px 12px !important;
        gap: 9px !important;
        border: 1px solid transparent !important;
        border-radius: 12px !important;
        color: #394b79 !important;
        font-size: 12px !important;
        font-weight: 750 !important;
        transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease !important;
    }

        .desktop-menu-item:hover {
            background: linear-gradient(120deg, #f5f2ff, #f0f7ff) !important;
            border-color: #e5e5fb !important;
            color: #4f3cae !important;
            transform: translateY(-1px) !important;
            box-shadow: 0 4px 12px rgba(87, 78, 170, .07) !important;
        }

        .desktop-menu-item.active {
            background: linear-gradient(120deg, #eeeaff, #eaf3ff) !important;
            border-color: #dcdafa !important;
            color: #5037b5 !important;
            box-shadow: inset 0 1px 0 rgba(255,255,255,.9) !important;
        }

    .desktop-menu-icon {
        width: 29px !important;
        height: 29px !important;
        flex-basis: 29px !important;
        border: 1px solid rgba(112, 91, 202, .09) !important;
        border-radius: 10px !important;
        background: linear-gradient(145deg, #f0edff, #eaf4ff) !important;
        color: #6650c6 !important;
        font-size: 15px !important;
    }

    .desktop-menu-item.active .desktop-menu-icon {
        background: linear-gradient(145deg, #e3dcff, #dfeeff) !important;
        color: #4f38b4 !important;
    }

    .desktop-menu-chevron {
        color: #8794c0 !important;
        font-size: 15px !important;
    }
}

/* MYDA v7: show a floating menu trigger only after the original menu scrolls away. */
@media (min-width:701px) {
    .desktop-topbar .desktop-menu {
        position: relative !important;
        top: auto !important;
    }

    .desktop-menu-trigger {
        position: fixed;
        top: 18px;
        right: 34px;
        z-index: 1200;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-width: 104px;
        height: 46px;
        padding: 0 17px;
        border: 1px solid #d9ddfa;
        border-radius: 16px;
        background: linear-gradient(120deg,#704bd5,#3989df);
        color: #fff;
        font: 800 13px var(--font);
        box-shadow: 0 8px 24px rgba(73,70,165,.25);
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-9px) scale(.96);
        transition: opacity .22s ease,transform .22s ease,visibility .22s;
    }

        .desktop-menu-trigger.is-visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1)
        }

        .desktop-menu-trigger.is-hidden {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none
        }

    .trigger-menu-icon {
        font-size: 17px;
        line-height: 1
    }

    #desktopMenu.floating-open {
        position: fixed !important;
        top: 16px !important;
        right: 30px !important;
        left: 30px !important;
        z-index: 1190 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        overflow: visible !important;
        box-shadow: 0 18px 48px rgba(49,57,130,.22),inset 0 1px 0 #fff !important;
        animation: mydaMenuIn .2s ease-out both;
    }

        #desktopMenu.floating-open::after {
            content: "";
            position: absolute;
            inset: -2px;
            border-radius: 19px;
            padding: 2px;
            background: conic-gradient(from -90deg,#7251dc 0turn calc(var(--menu-progress,1)*1turn),#e3e8fa calc(var(--menu-progress,1)*1turn) 1turn);
            -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }

    @keyframes mydaMenuIn {
        from {
            opacity: 0;
            transform: translateY(-8px)
        }

        to {
            opacity: 1;
            transform: translateY(0)
        }
    }
}

@media(max-width:700px) {
    .desktop-menu-trigger {
        display: none !important
    }
}

/* MYDA v8: wider desktop gutters and draggable AI assistant launcher */
@media (min-width:701px) {
    body {
        padding: 10px 50px 28px !important
    }

    .page {
        width: calc(100vw - 100px) !important
    }
}

.myda-ai-fab {
    position: fixed;
    right: 18px;
    bottom: calc(112px + env(safe-area-inset-bottom,0px));
    z-index: 640;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(145deg,#7656e8 0%,#477fe5 55%,#31b8c4 100%);
    box-shadow: 0 9px 26px rgba(76,82,190,.30),inset 0 1px 0 rgba(255,255,255,.55);
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: box-shadow .2s ease,transform .2s ease;
    -webkit-tap-highlight-color: transparent;
}

    .myda-ai-fab:hover {
        transform: translateY(-3px);
        box-shadow: 0 13px 30px rgba(76,82,190,.36),inset 0 1px 0 rgba(255,255,255,.6)
    }

    .myda-ai-fab:active {
        cursor: grabbing;
        transform: scale(.96)
    }

    .myda-ai-fab svg {
        width: 34px;
        height: 34px;
        filter: drop-shadow(0 2px 2px rgba(31,35,95,.18))
    }

    .myda-ai-fab .ai-fab-halo {
        position: absolute;
        inset: -5px;
        border: 1px solid rgba(113,104,224,.22);
        border-radius: 24px;
        pointer-events: none
    }

    .myda-ai-fab.is-dragging {
        transition: none;
        cursor: grabbing;
        box-shadow: 0 16px 36px rgba(54,63,150,.38)
    }

@media(min-width:701px) {
    .myda-ai-fab {
        right: 26px;
        bottom: 26px
    }
}

@media(max-width:700px) {
    .myda-ai-fab {
        right: 14px;
        bottom: calc(112px + env(safe-area-inset-bottom,0px));
        width: 54px;
        height: 54px;
        border-radius: 18px;
        z-index: 640
    }

        .myda-ai-fab svg {
            width: 31px;
            height: 31px
        }
}

/* Keep inactive desktop menu levels hidden even when layout rules use flex. */
.desktop-menu-level[hidden] {
    display: none !important
}

.desktop-menu-level.is-active {
    display: flex
}

/* MYDA energetic navigation refresh — desktop menu + mobile dock */
@media (min-width:701px) {
    .desktop-menu {
        position: relative !important;
        overflow: visible !important;
        padding: 14px 16px 16px !important;
        margin: 0 auto 24px !important;
        border: 1px solid rgba(190,181,255,.8) !important;
        border-radius: 25px !important;
        background: radial-gradient(circle at 8% 0%,rgba(255,190,220,.35),transparent 32%),radial-gradient(circle at 92% 100%,rgba(129,196,255,.32),transparent 35%),linear-gradient(115deg,#fff 0%,#f8f5ff 48%,#f2f8ff 100%) !important;
        box-shadow: 0 14px 34px rgba(91,74,173,.13),0 4px 12px rgba(78,146,218,.08),inset 0 1px 0 #fff !important;
    }

        .desktop-menu::before {
            height: 4px !important;
            inset: 0 7% auto !important;
            border-radius: 0 0 20px 20px;
            background: linear-gradient(90deg,#ff78b7,#9467ff 36%,#4e9dff 70%,#37d5b0) !important;
            opacity: 1 !important
        }

    .desktop-menu-head {
        min-height: 26px !important;
        margin: 2px 5px 11px !important;
        color: #7767bd !important
    }

    .menu-caption {
        font-size: 11px !important;
        font-weight: 900 !important;
        color: #7662bd !important
    }

    .menu-back {
        border: 1px solid #e4dcff !important;
        border-radius: 13px !important;
        background: linear-gradient(135deg,#fff,#f0ebff) !important;
        color: #7650ca !important;
        font-weight: 850 !important;
        box-shadow: 0 5px 12px rgba(112,82,190,.10) !important
    }

    .desktop-menu-items {
        gap: 10px !important;
        min-height: 58px !important
    }

    .desktop-menu-level {
        gap: 10px !important
    }

    .desktop-menu-item {
        position: relative !important;
        isolation: isolate;
        overflow: hidden !important;
        min-height: 53px !important;
        padding: 9px 15px !important;
        gap: 11px !important;
        border: 1px solid rgba(224,220,250,.9) !important;
        border-radius: 18px !important;
        background: rgba(255,255,255,.76) !important;
        color: #4a4b78 !important;
        font-size: 13px !important;
        font-weight: 850 !important;
        box-shadow: 0 5px 13px rgba(83,83,151,.055) !important;
        transition: transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease !important;
    }

        .desktop-menu-item::after {
            content: "";
            position: absolute;
            z-index: -1;
            inset: auto 12px 0;
            height: 3px;
            border-radius: 5px;
            background: linear-gradient(90deg,#ff7bb8,#8e6aff,#4b9fff);
            transform: scaleX(0);
            transform-origin: center;
            transition: transform .22s ease
        }

        .desktop-menu-item:hover {
            transform: translateY(-4px) !important;
            border-color: #d7ceff !important;
            background: linear-gradient(135deg,#fff,#f5f0ff 55%,#eff8ff) !important;
            color: #5b3db9 !important;
            box-shadow: 0 11px 20px rgba(106,83,190,.14) !important
        }

            .desktop-menu-item:hover::after, .desktop-menu-item.active::after {
                transform: scaleX(1)
            }

        .desktop-menu-item.active {
            border-color: #d8ceff !important;
            background: linear-gradient(135deg,#f4edff,#edf5ff) !important;
            color: #5636b7 !important;
            box-shadow: 0 7px 17px rgba(115,82,197,.12) !important
        }

    .desktop-menu-icon {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
        border: 0 !important;
        border-radius: 13px !important;
        background: linear-gradient(145deg,#eee7ff,#e4f2ff) !important;
        color: #7453d0 !important;
        font-size: 18px !important;
        box-shadow: inset 0 1px 0 #fff,0 3px 7px rgba(93,88,170,.08) !important
    }

    .desktop-menu-item:nth-child(5n+1) .desktop-menu-icon {
        background: linear-gradient(145deg,#e1fbf2,#d5f5eb) !important;
        color: #16ad83 !important
    }

    .desktop-menu-item:nth-child(5n+2) .desktop-menu-icon {
        background: linear-gradient(145deg,#fff0f6,#ffe1ed) !important;
        color: #e94f98 !important
    }

    .desktop-menu-item:nth-child(5n+3) .desktop-menu-icon {
        background: linear-gradient(145deg,#fff5df,#ffebc5) !important;
        color: #d99313 !important
    }

    .desktop-menu-item:nth-child(5n+4) .desktop-menu-icon {
        background: linear-gradient(145deg,#e9f2ff,#dceaff) !important;
        color: #4287e8 !important
    }

    .desktop-menu-item.active .desktop-menu-icon {
        transform: rotate(-4deg) scale(1.04);
        box-shadow: 0 4px 10px rgba(94,83,183,.13) !important
    }

    .desktop-menu-chevron {
        font-size: 19px !important;
        color: #9276dc !important
    }
}

@media (max-width:700px) {
    .mobile-dock {
        border: 1px solid rgba(203,181,255,.95) !important;
        background: linear-gradient(110deg,rgba(255,255,255,.97),rgba(250,246,255,.97),rgba(243,249,255,.97)) !important;
        box-shadow: 0 12px 32px rgba(119,82,191,.19),0 3px 10px rgba(68,128,216,.08),inset 0 1px 0 #fff !important
    }

        .mobile-dock .nav-item {
            transition: transform .2s ease,filter .2s ease !important
        }

            .mobile-dock .nav-item:active {
                transform: translateY(-2px) scale(.97) !important
            }

            .mobile-dock .nav-item.active:not(.nav-home) .dock-icon {
                box-shadow: 0 0 0 3px rgba(255,255,255,.95),0 5px 14px rgba(105,91,190,.16);
                transform: translateY(-3px)
            }

            .mobile-dock .nav-item.active:not(.nav-home) span:last-child {
                color: #6949c8 !important;
                font-weight: 950 !important
            }

        .mobile-dock .home-circle {
            background: linear-gradient(145deg,#7b9cff,#4e7cf4 55%,#6a5be8) !important;
            box-shadow: 0 8px 18px rgba(83,112,237,.38),0 0 0 5px rgba(255,255,255,.96) !important
        }
}

/* Compact navigation: full labels, clean text underline, less vertical footprint */
@media (min-width:701px) {
    .desktop-menu {
        padding: 8px 12px 10px !important;
        margin: 0 auto 14px !important;
        border-radius: 19px !important;
    }

    .desktop-menu-head {
        min-height: 20px !important;
        margin: 0 4px 6px !important
    }

    .desktop-menu-items, .desktop-menu-level {
        gap: 7px !important;
        min-height: 0 !important;
        flex-wrap: wrap !important;
        align-items: center !important
    }

    .desktop-menu-item {
        min-height: 38px !important;
        height: auto !important;
        padding: 6px 10px !important;
        gap: 7px !important;
        border-radius: 13px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
        box-shadow: 0 3px 9px rgba(83,83,151,.045) !important;
    }

    .desktop-menu-icon {
        width: 25px !important;
        height: 25px !important;
        flex: 0 0 25px !important;
        border-radius: 9px !important;
        font-size: 14px !important
    }

    .desktop-menu-label {
        display: inline-block !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.5 !important;
        flex: 0 0 auto !important
    }

    .desktop-menu-item::after {
        z-index: 2 !important;
        inset: auto 10px 3px !important;
        height: 2px !important;
        transform: scaleX(0);
    }

    .desktop-menu-item:hover, .desktop-menu-item.active {
        transform: translateY(-1px) !important
    }

    .desktop-menu-chevron {
        font-size: 15px !important;
        margin-inline-start: 0 !important
    }
}



/* ==========================================
   MYDA PREMIUM SERVICE STORYBOARD
========================================== */

.myda-stories {
    --myda-green: #13a66b;
    --myda-dark: #193b2d;
    width: 100%;
    margin: 28px 0;
    padding: 23px;
    direction: rtl;
    background: linear-gradient(145deg, #ffffff 0%, #f9fcfa 100%);
    border: 1px solid #eaf1ed;
    border-radius: 23px;
    box-shadow: 0 12px 38px rgba(25, 70, 49, .055);
    overflow: hidden;
    box-sizing: border-box;
}

    .myda-stories *,
    .myda-stories *::before,
    .myda-stories *::after {
        box-sizing: border-box;
    }

.myda-stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.myda-stories-heading {
    min-width: 0;
}

.myda-stories-label {
    display: block;
    margin-bottom: 5px;
    color: #17a66e;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.myda-stories-heading h2 {
    margin: 0;
    color: var(--myda-dark);
    font-size: 21px;
    font-weight: 900;
}

    .myda-stories-heading h2 span {
        color: #f0b747;
    }

.myda-stories-heading p {
    margin: 7px 0 0;
    color: #8b9b91;
    font-size: 12px;
}

.myda-stories-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.myda-search {
    width: 215px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #f5f9f6;
    border: 1px solid #e8efea;
    border-radius: 13px;
    transition: .25s;
}

    .myda-search:focus-within {
        background: #fff;
        border-color: #39b985;
        box-shadow: 0 0 0 4px rgba(39, 180, 123, .09);
    }

    .myda-search > span {
        color: #20a875;
        font-size: 24px;
        line-height: 1;
    }

    .myda-search input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: #284638;
        font-family: inherit;
        font-size: 12px;
    }

.myda-nav-btn {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    border: 1px solid #e6eee9;
    border-radius: 12px;
    background: #f5f9f6;
    color: #25835b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: .22s ease;
}

    .myda-nav-btn:hover:not(:disabled) {
        color: #fff;
        background: #159e69;
        border-color: #159e69;
        transform: translateY(-2px);
    }

    .myda-nav-btn:disabled {
        opacity: .35;
        cursor: default;
    }

.myda-stories-viewport {
    width: 100%;
    overflow: hidden;
    direction: rtl;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

    .myda-stories-viewport.is-dragging {
        cursor: grabbing;
    }

.myda-stories-track {
    display: grid;
    grid-auto-flow: column;
    gap: 13px;
    width: 100%;
}

.myda-story-card {
    --accent: #15a66d;
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    height: 80px;
    padding: 10px 12px;
    overflow: hidden;
    border: 1px solid #edf2ee;
    border-radius: 17px;
    background: #fff;
    color: #244234;
    text-align: right;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(27, 71, 49, .035);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
    animation: mydaStoryEnter .35s ease both;
}

    .myda-story-card.green {
        --accent: #17a66d;
    }

    .myda-story-card.blue {
        --accent: #438de5;
    }

    .myda-story-card.purple {
        --accent: #9271dd;
    }

    .myda-story-card.orange {
        --accent: #ed9a3c;
    }

    .myda-story-card.pink {
        --accent: #df6e9d;
    }

    .myda-story-card.cyan {
        --accent: #25aab7;
    }

    .myda-story-card:hover {
        transform: translateY(-3px);
        border-color: var(--accent);
        box-shadow: 0 10px 25px rgba(30, 70, 49, .09);
    }

.myda-story-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 12%, white);
    font-size: 22px;
    transition: transform .25s ease;
}

.myda-story-card:hover .myda-story-icon {
    transform: scale(1.08) rotate(-4deg);
}

.myda-story-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 3px;
}

.myda-story-name {
    display: block;
    overflow: hidden;
    color: #263e32;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.7;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.myda-story-caption {
    display: block;
    color: #a0aca4;
    font-size: 10px;
    font-weight: 500;
}

.myda-story-arrow {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 19px;
    transition: transform .2s;
}

.myda-story-card:hover .myda-story-arrow {
    transform: translateX(-4px);
}

.myda-stories-progress {
    width: 100%;
    margin-top: 19px;
}

.myda-stories-progress-track {
    width: 100%;
    height: 4px;
    border-radius: 20px;
    overflow: hidden;
    background: #eaf0ec;
}

.myda-stories-progress-fill {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a66c, #66d5a4);
    transform: scaleX(1);
    transform-origin: right center;
}

    .myda-stories-progress-fill.running {
        animation: mydaStoryCountdown 15s linear forwards;
    }

.myda-stories-empty {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: #8c9c92;
    font-size: 13px;
}

    .myda-stories-empty[hidden],
    .myda-stories-track[hidden] {
        display: none !important;
    }

    .myda-stories-empty p {
        margin: 0;
    }

.myda-stories-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    color: #99a69e;
    font-size: 10px;
}

.myda-stories-hint b {
    color: #16a66c;
    font-size: 15px;
    margin-right: 4px;
}

@keyframes mydaStoryCountdown {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@keyframes mydaStoryEnter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width: 760px) {
    .myda-stories {
        padding: 16px;
        border-radius: 19px;
    }

    .myda-stories-header {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .myda-stories-heading h2 {
        font-size: 18px;
    }

    .myda-stories-actions {
        width: 100%;
    }

    .myda-search {
        flex: 1;
        width: auto;
    }

    .myda-story-card {
        height: 73px;
        gap: 8px;
        padding: 9px;
    }

    .myda-story-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 19px;
    }

    .myda-story-name {
        font-size: 11px;
    }

    .myda-story-caption {
        font-size: 9px;
    }
}

@media(prefers-reduced-motion: reduce) {
    .myda-story-card {
        animation: none !important;
        transition: none !important;
    }

    .myda-stories-progress-fill.running {
        animation: none !important;
    }
}


/* کارت‌های هم‌اندازه؛ دقیقاً ۵ کارت در عرض دسکتاپ جا می‌گیرد */
.myda-stories-track {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-template-rows: minmax(0, 1fr) !important;
    grid-auto-columns: calc((100% - 56px) / 5) !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

.myda-story-card {
    width: 100% !important;
    min-width: 0 !important;
    height: 135px !important;
    min-height: 135px !important;
    box-sizing: border-box;
    padding: 13px 14px !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 7px !important;
}

/* عنوان در بالای کارت */
.myda-story-content {
    order: 1;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
}

.myda-story-name {
    display: block !important;
    width: 100%;
    font-size: 12px !important;
    font-weight: 850;
    line-height: 1.5 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    overflow-wrap: anywhere;
    text-align: right;
}

/* آیکون و قیمت */
.myda-story-icon {
    order: 2;
    align-self: flex-start;
    flex: 0 0 25px !important;
    width: 25px !important;
    height: 25px !important;
    min-width: 25px;
    font-size: 13px !important;
    border-radius: 8px !important;
    margin-top: 2px;
}

.myda-story-price {
    order: 3;
    align-self: flex-end;
    font-size: 10px !important;
    font-weight: 900;
    white-space: nowrap;
    direction: rtl;
    margin-top: -24px;
    padding: 3px 7px;
    border-radius: 7px;
    background: rgba(255,255,255,.75);
    color: #176b46;
}

.myda-story-caption {
    display: none !important;
}

@media (max-width: 600px) {
    /* در موبایل دقیقاً ۲ کارت هم‌اندازه در عرض کادر جا می‌گیرد */
    .myda-stories-track {
        grid-auto-columns: calc((100% - 10px) / 2) !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .myda-story-card {
        width: 100% !important;
        height: 120px !important;
        min-height: 120px !important;
        padding: 10px !important;
    }

    .myda-story-name {
        font-size: 11px !important;
        line-height: 1.6 !important;
    }

    .myda-story-icon {
        flex-basis: 23px !important;
        width: 23px !important;
        height: 23px !important;
        min-width: 23px;
        font-size: 12px !important;
    }

    .myda-story-price {
        font-size: 10px !important;
        margin-top: -18px;
    }
}


/* ============================================
   MYDA API Services — Cards
   ============================================ */
.myda-api-services {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 32px auto 40px;
    padding: 0;
    direction: rtl;
}

.myda-api-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.myda-api-eyebrow {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #7771ed;
}

.myda-api-header h2 {
    margin: 6px 0 6px;
    font-size: clamp(1.35rem, 2.7vw, 1.9rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #191b35;
}

.myda-api-spark {
    color: #8d76ff;
}

.myda-api-header p {
    margin: 0;
    color: #85879d;
    font-size: 0.9rem;
}

.myda-api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* کارت */
.myda-api-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eceaf7;
    border-radius: 18px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 4px 14px rgba(42, 37, 97, 0.06);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

    .myda-api-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 4px;
        background: linear-gradient(90deg, #a78bfa, #7c3aed);
        opacity: 0.85;
    }

    .myda-api-card.purple::before {
        background: linear-gradient(90deg, #a78bfa, #7c3aed);
    }

    .myda-api-card.blue::before {
        background: linear-gradient(90deg, #60a5fa, #2563eb);
    }

    .myda-api-card.green::before {
        background: linear-gradient(90deg, #34d399, #059669);
    }

    .myda-api-card.orange::before {
        background: linear-gradient(90deg, #fb923c, #ea580c);
    }

    .myda-api-card.pink::before {
        background: linear-gradient(90deg, #f472b6, #db2777);
    }

    .myda-api-card.cyan::before {
        background: linear-gradient(90deg, #22d3ee, #0891b2);
    }

    .myda-api-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(42, 37, 97, 0.12);
        border-color: #ddd6fe;
    }

.myda-api-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.myda-api-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #f5f3ff;
    border: 1px solid #ede9fe;
}

.myda-api-card.blue .myda-api-icon {
    background: #eff6ff;
    border-color: #dbeafe;
}

.myda-api-card.green .myda-api-icon {
    background: #f0fdf4;
    border-color: #d1fae5;
}

.myda-api-card.orange .myda-api-icon {
    background: #fff7ed;
    border-color: #ffedd5;
}

.myda-api-card.pink .myda-api-icon {
    background: #fdf2f8;
    border-color: #fce7f3;
}

.myda-api-card.cyan .myda-api-icon {
    background: #ecfeff;
    border-color: #cffafe;
}

.myda-api-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    background: #ede9fe;
    color: #6d28d9;
    letter-spacing: 0.5px;
}

.myda-api-card.blue .myda-api-badge {
    background: #dbeafe;
    color: #1e40af;
}

.myda-api-card.green .myda-api-badge {
    background: #d1fae5;
    color: #065f46;
}

.myda-api-card.orange .myda-api-badge {
    background: #ffedd5;
    color: #9a3412;
}

.myda-api-card.pink .myda-api-badge {
    background: #fce7f3;
    color: #9f1239;
}

.myda-api-card.cyan .myda-api-badge {
    background: #cffafe;
    color: #155e75;
}

.myda-api-card-body {
    flex: 1;
    margin-bottom: 14px;
}

.myda-api-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.myda-api-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.85;
    margin: 0;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.myda-api-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.myda-api-price {
    font-size: 13px;
    font-weight: 800;
    color: #059669;
    font-variant-numeric: tabular-nums;
}

.myda-api-cta {
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .myda-api-cta b {
        font-size: 16px;
        transition: transform 0.2s ease;
    }

.myda-api-card:hover .myda-api-cta b {
    transform: translateX(-3px);
}

/* موبایل */
@media (max-width: 640px) {
    .myda-api-services {
        width: calc(100% - 24px);
        margin: 24px auto 28px;
    }

    .myda-api-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .myda-api-card {
        min-height: 170px;
        padding: 15px;
    }

    .myda-api-icon {
        width: 42px;
        height: 42px;
        font-size: 21px;
    }
}

/* کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
    .myda-api-card {
        transition: none !important;
    }
}