:root {
    --deep: #113f49;
    --jade: #126758;
    --line: #d6e3dd;
    --sand: #fbf8ee;
    --ink: #183c40
}

body {
    background: radial-gradient(ellipse at 90% 0%, #d9ebe0, transparent 58%), #eef1eb;
    color: var(--ink)
}

.app {
    max-width: 760px;
    padding: clamp(12px, 4vw, 30px) clamp(14px, 4vw, 32px) 116px;
    background: linear-gradient(#f6f9f1, #fffefa 38%, #faf9f3);
    box-shadow: 0 15px 65px #193e3615
}

.top {
    padding-bottom: 12px
}

.logo,
.btn,
button.primary,
.days a.on,
.slots input:checked+span {
    background: linear-gradient(145deg, #247b69, #12574e);
    color: white
}

.logo {
    box-shadow: inset 0 2px 2px #aff5d78a, 0 4px 0 #104d43
}

.hero,
.identity {
    background: radial-gradient(at 8% 40%, #25776a, transparent 54%), linear-gradient(120deg, #16565b, #0f3543);
    box-shadow: none
}

.hero {
    border-radius: 30px 12px 30px 30px;
    padding: 24px 5%;
    min-height: 202px
}

.hero img {
    width: 41%;
    left: 0;
    top: 50%;
    transform: translateY(-50%)
}

.hero .eyebrow {
    font: inherit;
    font-size: 12px;
    letter-spacing: 0;
    color: #b8f1d9
}

.hero h1 {
    font-size: clamp(24px, 5vw, 38px);
    line-height: 1.5
}

.hero a {
    background: #ffda86;
    color: #243e3a;
    font-weight: bold;
    padding: 9px 15px
}

.hero p {
    max-width: 58%
}

.tile,
.quick6 a i,
.quickGrid span {
    display: inline-grid;
    place-items: center;
    color: #204d48;
    background: radial-gradient(ellipse at 28% 14%, #fff 0%, var(--light, #dcf6e8) 37%, #a6cebf);
    border-radius: 32%;
    border: 1px solid #ffffff88;
    box-shadow: inset -2px -4px 4px #3667582a, inset 2px 2px 3px #fff, 0 3px 0 #659989, 0 6px 10px #113f491a;
    text-shadow: 0 1px #fff, 0 2px #90b8a4
}

.quick6 a i,
.quickGrid span {
    width: 38px;
    height: 38px;
    font-size: 18px
}

.quick6 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0
}

.quick6 a {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 9px 4px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--deep);
    font-size: 13px;
    font-weight: bold
}

.clay {
    width: 48px;
    height: 48px
}

.section h2 {
    border-color: #ddad5c
}

.hero,
.placebtn {
    border-color: #c4ddd1
}

.placebtn,
#cityDialog {
    background: #f6faf4
}

.sheet-head button,
.city-grid button {
    color: #23554c;
    border-color: #cadfd3
}

.brand small,
.eyebrow {
    color: #56766d
}

.trail a {
    min-height: 40px
}

.cats {
    display: flex;
    overflow: auto;
    padding: 5px 2px 10px;
    gap: 9px
}

.cat {
    flex: 1 0 82px
}

.panel,
details,
.card,
.cat,
.search,
.quickGrid>a,
.activity {
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 4px 16px #173e3410
}

.feature,
.wallet,
.balanceCard,
.wizard {
    background: linear-gradient(135deg, #f2f8ed, #fffdf6);
    border: 1px solid var(--line);
    color: var(--deep)
}

.service9 {
    align-items: stretch;
    padding: 8px;
    gap: 14px;
    border-radius: 22px
}

.serviceArt {
    width: clamp(74px, 22vw, 122px);
    min-height: 108px;
    flex: none;
    display: grid;
    place-items: center;
    background: radial-gradient(at 30% 10%, #f8f4cf, transparent 70%), #dcf0e6;
    border-radius: 16px;
    overflow: hidden;
    position: relative
}

.serviceArt .svcphoto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.service9 .info {
    padding: 5px 0 2px;
    overflow-wrap: anywhere
}

.kind9,
.section a,
.link,
.money,
.square,
.search button,
.placebtn,
.jump a,
.wallet summary {
    color: var(--jade)
}

.service9 h3 {
    font-size: 17px
}

.serviceFoot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-block: 5px;
    margin-top: 6px;
    font-size: 13px
}

.serviceFoot span {
    color: var(--jade);
    font-size: 12px
}

.badge,
.soft,
.days a,
.jump b,
.nav a.on {
    color: #145546;
    background: #e5f3e9;
    border-color: #bdd9cb
}

.shopCover {
    display: block;
    width: 100%;
    max-height: 245px;
    object-fit: cover;
    border-radius: 18px;
    aspect-ratio: 2.5
}

.feature .shopCover {
    margin-bottom: 8px
}

.card>.shopCover {
    width: 78px;
    height: 66px
}

.nav {
    max-width: 600px;
    border-color: var(--line)
}

.nav a,
.primary,
.placebtn,
.soft,
summary {
    min-height: 44px
}

.app :focus-visible {
    outline: 3px solid #178573;
    outline-offset: 3px
}

.wizard {
    border-radius: 22px;
    padding: clamp(14px, 4vw, 28px)
}

.wizard h2 {
    font-size: 24px
}

.wizard .trail {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 5px
}

.trail li {
    flex: 1;
    font-size: 12px;
    border-top: 4px solid #cadad0;
    padding-block: 8px;
    color: #485e58
}

.trail a {
    display: block
}

.trail li[aria-current] {
    font-weight: bold;
    color: #154f45;
    border-color: #267c67
}

.wizard fieldset {
    border: 1px solid var(--line);
    border-radius: 14px;
    margin: 14px 0
}

.wizard p,
.summary9 {
    font-size: 13px
}

.wizard .form>label {
    margin-top: 15px
}

.summary9 {
    background: #e0f0e5;
    padding: 12px;
    border-radius: 12px
}

.app input[type=file]::file-selector-button {
    background: #e0f1e9;
    color: var(--jade)
}

@media(max-width:370px) {
    .service9 {
        gap: 8px
    }

    .hero img {
        width: 35%
    }

    .quick6 a {
        font-size: 11px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::after,
    *::before {
        scroll-behavior: auto !important;
        transition: none !important
    }
}
.cats.service-cats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 2vw, 14px);
    padding: 6px 2px 14px;
    overflow: visible;
}

.service-cats > .cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: clamp(110px, 22vw, 150px);
    padding: clamp(12px, 3vw, 20px) 6px;
    border-radius: 20px;
    text-align: center;
    white-space: normal;
}

/* اندازهٔ آیکون برای دسته‌های بدون تصویر */
.service-cats > .cat > .tile {
    width: clamp(48px, 13vw, 72px);
    height: clamp(48px, 13vw, 72px);
    flex: none;
    font-size: clamp(24px, 6vw, 36px);
}

.service-cats > .cat > .tile i {
    font-size: inherit;
}

.service-cats .service-cat-name {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(13px, 3.5vw, 17px);
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

/* پیش از بارگذاری تصویر، آیکون دیده می‌شود */
.service-cats .cat-tile > [hidden] {
    display: none !important;
}

/* حذف باکس اطراف دسته، فقط بعد از بارگذاری موفق تصویر */


/* حذف باکس داخلی و استفاده از عرض ستون برای تصویر */
.service-cats > .cat > .cat-tile:has(> .cat-tile-img:not([hidden])) {
    display: block;
    width: min(100%, 128px);
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.service-cats .cat-tile > .cat-tile-img:not([hidden]) {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
