[hidden] {
    display: none !important;
}

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth;
    background:#dfe3ef
}

body {
    margin:0;
    min-height:100vh;
    font-family:"Trebuchet MS",Arial,sans-serif;
    background:#dfe3ef;
    color:#111627;
    -webkit-font-smoothing:antialiased
}

button,input {
    font:inherit
}

button,a {
    color:inherit
}

button {
    cursor:pointer
}

button:disabled {
    opacity:.42;
    cursor:not-allowed
}

.ambient {
    position:fixed;
    inset:0;
    pointer-events:none;
    overflow:hidden
}

.ambient i {
    position:absolute;
    border-radius:50%;
    filter:blur(45px);
    opacity:.55
}

.ambient i:nth-child(1) {
    width:280px;
    height:280px;
    left:-120px;
    top:7%;
    background:#8f79ff
}

.ambient i:nth-child(2) {
    width:300px;
    height:300px;
    right:-160px;
    top:42%;
    background:#6ff0cf
}

.ambient i:nth-child(3) {
    width:260px;
    height:260px;
    left:24%;
    bottom:-150px;
    background:#a5b9ff
}

.app-shell {
    width:min(100%,620px);
    min-height:100dvh;
    margin:auto;
    position:relative;
    padding-bottom:100px;
    background:rgba(229,233,244,.48);
    box-shadow:0 0 80px rgba(50,55,90,.08)
}

.brandbar {
    position:sticky;
    top:0;
    z-index:20;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:max(14px,env(safe-area-inset-top)) 18px 12px;
    background:rgba(235,238,248,.78);
    backdrop-filter:blur(24px) saturate(140%);
    border-bottom:1px solid rgba(17,22,39,.1);
    box-shadow:0 6px 20px rgba(73,78,117,.07)
}

.brand {
    display:flex;
    align-items:center;
    gap:10px;
    border:0;
    background:none;
    padding:0;
    text-align:left
}

.brand-mark {
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    background:linear-gradient(145deg,#7658ff,#5435df);
    color:#fff;
    border-radius:15px;
    font-weight:1000;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 8px 20px rgba(91,70,217,.24)
}

.brand-mark.large {
    width:64px;
    height:64px;
    border-radius:22px;
    font-size:26px;
    margin:auto
}

.brand small,.page-title small,.section-head small,.hero-kicker,.sheet>small,.gate-card>small,.blocking small {
    font-size:9px;
    letter-spacing:.15em;
    color:#687087;
    font-weight:900
}

.brand b {
    display:block;
    font-size:13px;
    margin-top:2px
}

.age-pill {
    border:1px solid rgba(17,22,39,.12);
    background:rgba(255,255,255,.58);
    border-radius:999px;
    padding:8px 10px;
    font-size:10px;
    font-weight:1000
}

.view {
    display:none;
    padding-bottom:24px
}

.view.active {
    display:block
}

.hero {
    position:relative;
    margin:18px;
    min-height:344px;
    padding:28px;
    border-radius:36px;
    overflow:hidden;
    background:linear-gradient(135deg,#f8f9ff 0%,#bfcaff 42%,#9bf0dc 100%);
    border:1px solid rgba(255,255,255,.82);
    box-shadow:0 24px 70px rgba(78,82,125,.2)
}

.hero:after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(115deg,rgba(255,255,255,.75),transparent 28%,transparent 67%,rgba(255,255,255,.26));
    pointer-events:none
}

.hero h1 {
    position:relative;
    z-index:2;
    font-family:Arial Black,Arial,sans-serif;
    font-size:clamp(48px,14vw,76px);
    line-height:.82;
    letter-spacing:-.075em;
    margin:20px 0 17px;
    max-width:400px
}

.hero p {
    position:relative;
    z-index:2;
    max-width:315px;
    color:#586177;
    font-size:12px;
    line-height:1.6
}

.cta {
    position:relative;
    z-index:3;
    border:1px solid rgba(255,255,255,.32);
    background:#15182a;
    color:#fff;
    border-radius:999px;
    padding:13px 17px;
    font-weight:1000;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 8px 18px rgba(45,38,87,.18);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:18px
}

.cta.wide,.ghost.wide {
    width:100%
}

.ghost {
    border:1px solid rgba(17,22,39,.13);
    background:rgba(255,255,255,.45);
    color:#20263a;
    border-radius:999px;
    padding:12px 15px;
    font-weight:900;
    margin-top:8px
}

.hero-object {
    position:absolute;
    z-index:1;
    right:-38px;
    bottom:-34px;
    width:235px;
    height:205px;
    border-radius:42% 58% 64% 36%/46% 36% 64% 54%;
    background:linear-gradient(145deg,#fbfdff,#a8b1c7 27%,#f6f8ff 48%,#8472ff 72%,#85e8d3);
    border:1px solid rgba(255,255,255,.95);
    transform:rotate(7deg);
    display:grid;
    place-items:center;
    box-shadow:inset 0 0 28px rgba(255,255,255,.82),0 25px 55px rgba(71,61,130,.26)
}

.hero-object span {
    font-family:Arial Black,Arial,sans-serif;
    font-size:96px;
    font-weight:1000;
    color:#111627;
    text-shadow:0 1px 0 #fff
}

.hero-object i {
    position:absolute;
    bottom:31px;
    font-size:8px;
    font-style:normal;
    letter-spacing:.16em;
    color:#222b48
}

.section {
    padding:4px 18px 22px
}

.section-head {
    display:flex;
    align-items:end;
    justify-content:space-between;
    margin:12px 0
}

.section-head h2 {
    font-family:Arial Black,Arial,sans-serif;
    font-size:25px;
    letter-spacing:-.04em;
    margin:3px 0 0
}

.section-head>button {
    border:0;
    background:none;
    color:#687087;
    font-size:10px
}

.category-grid,.product-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px
}

.category {
    min-height:120px;
    border:1px solid rgba(255,255,255,.9);
    background:rgba(250,251,255,.65);
    border-radius:26px;
    padding:15px;
    text-align:left;
    position:relative;
    box-shadow:0 12px 30px rgba(73,78,117,.1)
}

.category span {
    display:inline-grid;
    width:39px;
    height:39px;
    place-items:center;
    border-radius:50%;
    font-size:20px;
    background:rgba(255,255,255,.62);
    box-shadow:inset 0 1px 0 #fff
}

.category b,.category small {
    display:block;
    position:absolute;
    left:15px
}

.category b {
    bottom:30px;
    font-size:14px
}

.category small {
    bottom:13px;
    color:#687087;
    font-size:9px
}

.product-card {
    position:relative;
    background:rgba(250,251,255,.66);
    border:1px solid rgba(255,255,255,.92);
    border-radius:26px;
    padding:9px;
    overflow:hidden;
    box-shadow:0 12px 30px rgba(73,78,117,.1)
}

.card-main {
    display:block;
    width:100%;
    border:0;
    background:none;
    padding:0;
    text-align:left
}

.product-art {
    height:152px;
    border-radius:22px;
    background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(175,190,231,.5));
    position:relative;
    display:grid;
    place-items:center;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.96)
}

.product-card:nth-child(odd) .product-art {
    background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(178,164,255,.46))
}

.product-art:before {
    content:"";
    position:absolute;
    width:72%;
    height:72%;
    border-radius:50%;
    background:rgba(117,87,255,.28);
    filter:blur(22px)
}

.product-art img {
    position:relative;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
    background:rgba(255,255,255,.18)
}

.product-art .pack {
    position:relative;
    display:grid;
    place-items:center;
    width:62px;
    height:96px;
    border-radius:18px 18px 28px 28px;
    background:linear-gradient(160deg,#f8fbff 0%,#9fa9bd 23%,#e9edf7 48%,#7160db 74%,#79d8c6 100%);
    color:#111627;
    font-family:Arial Black,Arial,sans-serif;
    font-size:12px;
    font-weight:1000;
    letter-spacing:-.05em;
    transform:rotate(-6deg);
    box-shadow:inset 0 1px 0 #fff,0 16px 25px rgba(59,55,101,.25)
}

.product-art i {
    position:absolute;
    z-index:2;
    bottom:8px;
    right:9px;
    font-size:8px;
    font-style:normal;
    color:#5e6780;
    background:rgba(255,255,255,.55);
    padding:3px 6px;
    border-radius:999px;
    backdrop-filter:blur(8px)
}

.product-copy {
    padding:10px 2px 6px
}

.product-copy small {
    color:#687087;
    font-size:8px
}

.product-copy h3 {
    font-family:Arial Black,Arial,sans-serif;
    font-size:15px;
    letter-spacing:-.03em;
    margin:5px 0 10px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}

.card-foot {
    display:flex;
    align-items:end;
    justify-content:space-between
}

.card-foot b {
    font-size:13px
}

.card-foot em {
    font-size:7px;
    color:#687087;
    font-style:normal
}

.save {
    position:absolute;
    z-index:4;
    right:17px;
    top:17px;
    width:34px;
    height:34px;
    border-radius:50%;
    border:1px solid rgba(17,22,39,.12);
    background:rgba(255,255,255,.72);
    backdrop-filter:blur(12px)
}

.save.on {
    background:#7557ff;
    color:#fff
}

.quick-add {
    width:100%;
    border:0;
    border-radius:999px;
    padding:10px;
    background:#171a2c;
    color:#fff;
    font-size:9px;
    font-weight:1000
}

.quick-add:disabled {
    background:#a8adbc;
    color:#eceef3
}

.page-title {
    padding:30px 18px 15px
}

.page-title h1 {
    font-family:Arial Black,Arial,sans-serif;
    font-size:44px;
    letter-spacing:-.065em;
    margin:5px 0
}

.page-title p {
    color:#687087;
    font-size:11px;
    margin:0;
    line-height:1.55
}

.searchbox {
    margin:0 18px 12px;
    border:1px solid rgba(17,22,39,.12);
    background:rgba(255,255,255,.54);
    border-radius:999px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:0 14px
}

.searchbox input {
    width:100%;
    padding:13px 0;
    border:0;
    outline:0;
    background:transparent;
    color:#111627;
    font-size:12px
}

.chips {
    display:flex;
    gap:7px;
    overflow:auto;
    padding:0 18px 15px;
    scrollbar-width:none
}

.chip {
    white-space:nowrap;
    border:1px solid rgba(17,22,39,.12);
    background:rgba(255,255,255,.54);
    border-radius:999px;
    padding:8px 11px;
    color:#687087;
    font-size:9px
}

.chip.active {
    background:#7557ff;
    color:#fff;
    border-color:transparent;
    box-shadow:0 5px 16px rgba(117,87,255,.25)
}

.catalog-grid {
    padding:0 18px
}

.empty {
    padding:28px;
    border:1px dashed rgba(17,22,39,.18);
    border-radius:26px;
    text-align:center;
    color:#687087;
    font-size:11px
}

.page-empty {
    margin:0 18px
}

.cart-items {
    display:grid;
    gap:9px;
    padding:0 18px
}

.cart-row {
    position:relative;
    display:grid;
    grid-template-columns:82px minmax(0,1fr) auto;
    gap:11px;
    align-items:center;
    background:rgba(250,251,255,.66);
    border:1px solid rgba(255,255,255,.92);
    border-radius:26px;
    padding:9px;
    box-shadow:0 12px 30px rgba(73,78,117,.08)
}

.cart-row>.product-art {
    height:82px
}

.cart-row>.product-art .pack {
    width:36px;
    height:56px;
    font-size:8px;
    border-radius:11px 11px 16px 16px
}

.cart-row small {
    font-size:8px;
    color:#687087
}

.cart-row h3 {
    font-family:Arial Black,Arial,sans-serif;
    font-size:14px;
    margin:3px 0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}

.cart-row b {
    font-size:11px
}

.qty {
    display:flex;
    align-items:center;
    gap:7px;
    margin-top:8px
}

.qty button {
    width:29px;
    height:29px;
    border:1px solid rgba(17,22,39,.12);
    border-radius:999px;
    background:rgba(255,255,255,.54)
}

.qty span {
    font-size:10px;
    min-width:15px;
    text-align:center
}

.remove {
    border:0;
    background:none;
    font-size:20px;
    color:#d63f66
}

.summary {
    margin:12px 18px;
    padding:17px;
    border-radius:26px;
    border:1px solid rgba(255,255,255,.92);
    background:rgba(255,255,255,.58);
    box-shadow:0 12px 30px rgba(73,78,117,.1)
}

.summary>div {
    display:flex;
    justify-content:space-between;
    margin:8px 0;
    font-size:11px
}

.summary>div span {
    color:#687087
}

.summary .cta {
    margin-top:12px
}

.summary>small {
    display:block;
    margin-top:10px;
    color:#687087;
    font-size:8px;
    line-height:1.55
}

.profile-card {
    margin:0 18px;
    padding:18px;
    display:flex;
    align-items:center;
    gap:14px;
    border:1px solid rgba(255,255,255,.92);
    background:rgba(250,251,255,.66);
    border-radius:26px;
    position:relative;
    box-shadow:0 12px 30px rgba(73,78,117,.1)
}

.avatar {
    width:62px;
    height:62px;
    display:grid;
    place-items:center;
    border-radius:20px;
    background:linear-gradient(145deg,#7658ff,#5435df);
    color:#fff;
    font-size:22px;
    font-weight:1000
}

.profile-card h2 {
    font-family:Arial Black,Arial,sans-serif;
    margin:3px 0;
    font-size:20px
}

.profile-card p,.profile-card small {
    margin:0;
    color:#687087;
    font-size:9px
}

.verified {
    position:absolute;
    right:15px;
    top:15px;
    font-size:9px;
    color:#694cff;
    font-weight:1000
}

.profile-menu {
    display:grid;
    gap:8px;
    padding:12px 18px
}

.profile-menu button,.profile-menu a {
    width:100%;
    display:grid;
    grid-template-columns:34px 1fr auto;
    align-items:center;
    text-align:left;
    text-decoration:none;
    border:1px solid rgba(255,255,255,.92);
    background:rgba(250,251,255,.66);
    border-radius:26px;
    padding:13px
}

.profile-menu>button>span,.profile-menu>a>span {
    font-size:18px
}

.profile-menu b,.profile-menu small {
    display:block
}

.profile-menu small {
    font-size:8px;
    color:#687087;
    margin-top:3px
}

.profile-menu em {
    font-style:normal
}

.bottom-nav {
    position:fixed;
    z-index:30;
    bottom:12px;
    left:50%;
    transform:translateX(-50%);
    width:min(calc(100% - 20px),600px);
    display:grid;
    grid-template-columns:repeat(5,1fr);
    padding:7px max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left));
    background:rgba(245,247,255,.78);
    border:1px solid rgba(255,255,255,.95);
    border-radius:28px;
    backdrop-filter:blur(24px) saturate(145%);
    box-shadow:0 15px 45px rgba(62,68,109,.2)
}

.bottom-nav button {
    position:relative;
    border:0;
    background:none;
    border-radius:20px;
    padding:6px 2px;
    color:#707993;
    display:grid;
    justify-items:center;
    gap:3px
}

.bottom-nav button span {
    font-size:17px
}

.bottom-nav button b {
    font-size:7px
}

.bottom-nav button.active {
    background:#171a2c;
    color:#fff
}

.bottom-nav i {
    position:absolute;
    right:9px;
    top:3px;
    min-width:15px;
    height:15px;
    border-radius:10px;
    background:#7557ff;
    color:#fff;
    font-size:7px;
    font-style:normal;
    font-weight:900;
    display:grid;
    place-items:center;
    padding:0 3px
}

.overlay {
    position:fixed;
    inset:0;
    z-index:60;
    background:rgba(39,44,67,.42);
    backdrop-filter:blur(11px);
    display:none;
    align-items:end
}

.overlay.open {
    display:flex
}

.sheet {
    position:relative;
    width:min(100%,620px);
    max-height:92dvh;
    overflow:auto;
    margin:auto;
    padding:16px 18px calc(24px + env(safe-area-inset-bottom));
    background:linear-gradient(#f1f3fa,#dfe4f2);
    border:1px solid rgba(255,255,255,.84);
    border-radius:34px 34px 0 0;
    box-shadow:0 -25px 80px rgba(48,52,88,.28)
}

.sheet-close {
    position:absolute;
    z-index:5;
    right:20px;
    top:20px;
    width:38px;
    height:38px;
    border-radius:50%;
    border:1px solid rgba(17,22,39,.12);
    background:rgba(255,255,255,.72);
    font-size:21px
}

.sheet>#detailArt .product-art {
    height:270px;
    margin-bottom:17px
}

.sheet>#detailArt .pack {
    width:90px;
    height:142px;
    font-size:17px
}

.sheet h2 {
    font-family:Arial Black,Arial,sans-serif;
    font-size:30px;
    letter-spacing:-.05em;
    margin:5px 0
}

.sheet p {
    color:#687087;
    font-size:11px;
    line-height:1.55
}

.detail-specs {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin:14px 0
}

.detail-specs>div {
    padding:13px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.92);
    background:rgba(255,255,255,.54)
}

.detail-specs span,.detail-specs b {
    display:block
}

.detail-specs span {
    font-size:8px;
    color:#687087
}

.detail-specs b {
    font-size:14px;
    margin-top:4px
}

.attributes {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin:10px 0 15px
}

.attributes span {
    font-size:8px;
    padding:7px 9px;
    border:1px solid rgba(17,22,39,.1);
    border-radius:999px;
    background:rgba(255,255,255,.5)
}

.age-sheet {
    text-align:center
}

.age-big {
    width:92px;
    height:92px;
    margin:10px auto 16px;
    border-radius:31px;
    display:grid;
    place-items:center;
    background:linear-gradient(145deg,#f8fbff,#9fa9bd 25%,#e9edf7 48%,#7160db 74%,#79d8c6);
    border:1px solid white;
    box-shadow:inset 0 2px 0 #fff,0 20px 35px rgba(59,55,101,.22);
    font-family:Arial Black,Arial,sans-serif;
    font-size:26px
}

.gate,.blocking,.splash {
    position:fixed;
    inset:0;
    z-index:90;
    display:grid;
    place-items:center;
    padding:20px;
    background:rgba(224,229,241,.86);
    backdrop-filter:blur(22px)
}

.gate.hide {
    display:none
}

.gate-card,.blocking section {
    width:min(100%,390px);
    padding:24px;
    border:1px solid rgba(255,255,255,.9);
    background:rgba(249,250,255,.75);
    border-radius:32px;
    text-align:center;
    box-shadow:0 30px 80px rgba(50,54,92,.2)
}

.gate-card h2,.blocking h2 {
    font-family:Arial Black,Arial,sans-serif;
    font-size:27px;
    letter-spacing:-.05em;
    margin:8px 0
}

.gate-card p,.blocking p {
    font-size:11px;
    line-height:1.55;
    color:#687087
}

.gate-error {
    margin:12px 0;
    padding:10px;
    border-radius:16px;
    background:rgba(214,63,102,.1);
    color:#a72c50;
    font-size:10px
}

.blocking {
    z-index:100
}

.blocking[hidden] {
    display:none
}

.splash {
    z-index:110;
    background:linear-gradient(135deg,#eff2fb,#d9dfea)
}

.splash.hide {
    opacity:0;
    visibility:hidden;
    transition:.35s
}

.splash>div {
    text-align:center
}

.chrome-logo {
    width:104px;
    height:104px;
    margin:auto;
    display:grid;
    place-items:center;
    border-radius:40% 60% 55% 45%/45% 42% 58% 55%;
    background:linear-gradient(145deg,#f8fbff,#9fa9bd 23%,#eef1fa 48%,#7160db 74%,#79d8c6);
    border:1px solid #fff;
    box-shadow:inset 0 0 25px rgba(255,255,255,.85),0 25px 50px rgba(65,60,120,.24);
    font-family:Arial Black,Arial,sans-serif;
    font-size:46px
}

.splash small {
    display:block;
    margin-top:18px;
    letter-spacing:.18em;
    color:#697187
}

.splash h2 {
    font-family:Arial Black,Arial,sans-serif;
    margin:5px 0;
    font-size:27px
}

.loader {
    width:110px;
    height:4px;
    border-radius:99px;
    background:rgba(17,22,39,.1);
    overflow:hidden;
    margin:17px auto
}

.loader i {
    display:block;
    height:100%;
    width:38%;
    background:#7557ff;
    animation:load .95s infinite;
    border-radius:99px
}

@keyframes load {
    from {
        transform:translateX(-120%)
    }
    to {
        transform:translateX(300%)
    }
}

.toast {
    position:fixed;
    z-index:130;
    left:50%;
    bottom:100px;
    transform:translate(-50%,14px);
    opacity:0;
    max-width:calc(100% - 36px);
    background:#171a2c;
    color:#fff;
    border-radius:999px;
    padding:11px 15px;
    font-size:10px;
    font-weight:900;
    text-align:center;
    box-shadow:0 12px 35px rgba(30,32,53,.24);
    transition:.2s;
    pointer-events:none
}

.toast.show {
    opacity:1;
    transform:translate(-50%,0)
}

@media(max-width:390px) {
    .hero {
        min-height:320px;
        padding:23px
    }
    .hero h1 {
        font-size:48px
    }
    .hero-object {
        width:195px;
        height:178px
    }
    .product-art {
        height:136px
    }
    .page-title h1 {
        font-size:39px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation:none!important;
        transition:none!important;
        scroll-behavior:auto!important
    }
}

/* Telegram theme adaptation: Liquid Chrome keeps its identity in both schemes. */
html[data-tg-scheme="dark"],html[data-tg-scheme="dark"] body {
    background:#121522;
    color:#f4f6ff
}

html[data-tg-scheme="dark"] .ambient i:nth-child(1) {
    background:#694fff;
    opacity:.38
}

html[data-tg-scheme="dark"] .ambient i:nth-child(2) {
    background:#32cbb0;
    opacity:.28
}

html[data-tg-scheme="dark"] .app-shell {
    background:rgba(18,21,34,.72);
    box-shadow:0 0 80px rgba(0,0,0,.18)
}

html[data-tg-scheme="dark"] .brandbar {
    background:rgba(24,28,44,.84);
    border-color:rgba(255,255,255,.08)
}

html[data-tg-scheme="dark"] .brand,html[data-tg-scheme="dark"] .age-pill {
    color:#f4f6ff
}

html[data-tg-scheme="dark"] .age-pill,html[data-tg-scheme="dark"] .searchbox,html[data-tg-scheme="dark"] .chip,html[data-tg-scheme="dark"] .ghost {
    background:rgba(37,42,61,.78);
    border-color:rgba(255,255,255,.1)
}

html[data-tg-scheme="dark"] .searchbox input {
    color:#f4f6ff
}

html[data-tg-scheme="dark"] .category,html[data-tg-scheme="dark"] .product-card,html[data-tg-scheme="dark"] .cart-row,html[data-tg-scheme="dark"] .summary,html[data-tg-scheme="dark"] .profile-card,html[data-tg-scheme="dark"] .profile-menu button,html[data-tg-scheme="dark"] .profile-menu a {
    background:rgba(34,39,57,.82);
    border-color:rgba(255,255,255,.1);
    box-shadow:0 14px 34px rgba(0,0,0,.18)
}

html[data-tg-scheme="dark"] .page-title p,html[data-tg-scheme="dark"] .section-head>button,html[data-tg-scheme="dark"] .product-copy small,html[data-tg-scheme="dark"] .card-foot em,html[data-tg-scheme="dark"] .summary>div span,html[data-tg-scheme="dark"] .summary>small,html[data-tg-scheme="dark"] .profile-card p,html[data-tg-scheme="dark"] .profile-card small,html[data-tg-scheme="dark"] .profile-menu small,html[data-tg-scheme="dark"] .empty {
    color:#aab1c5
}

html[data-tg-scheme="dark"] .bottom-nav {
    background:rgba(24,28,44,.88);
    border-color:rgba(255,255,255,.1);
    box-shadow:0 16px 48px rgba(0,0,0,.28)
}

html[data-tg-scheme="dark"] .bottom-nav button {
    color:#aeb5c8
}

html[data-tg-scheme="dark"] .bottom-nav button.active {
    background:#f3f5ff;
    color:#171a2c
}

html[data-tg-scheme="dark"] .sheet {
    background:linear-gradient(#252a3d,#171b2b);
    border-color:rgba(255,255,255,.12);
    color:#f4f6ff
}

html[data-tg-scheme="dark"] .sheet-close,html[data-tg-scheme="dark"] .detail-specs>div,html[data-tg-scheme="dark"] .attributes span {
    background:rgba(255,255,255,.08);
    border-color:rgba(255,255,255,.1);
    color:#f4f6ff
}

html[data-tg-scheme="dark"] .sheet p,html[data-tg-scheme="dark"] .detail-specs span {
    color:#aab1c5
}

html[data-tg-scheme="dark"] .gate,html[data-tg-scheme="dark"] .blocking {
    background:rgba(15,18,30,.88)
}

html[data-tg-scheme="dark"] .gate-card,html[data-tg-scheme="dark"] .blocking section {
    background:rgba(29,34,51,.9);
    border-color:rgba(255,255,255,.1)
}

html[data-tg-scheme="dark"] .gate-card p,html[data-tg-scheme="dark"] .blocking p {
    color:#aab1c5
}

/* Readability floor for compact mobile labels. */
.brand small,.page-title small,.section-head small,.hero-kicker,.sheet>small,.gate-card>small,.blocking small {
    font-size:10px
}

.category small {
    font-size:10px
}

.product-copy small {
    font-size:10px
}

.card-foot em {
    font-size:9px
}

.bottom-nav button b {
    font-size:9px
}

.summary>small {
    font-size:10px
}

.profile-card p,.profile-card small {
    font-size:10px
}

.profile-menu small {
    font-size:10px
}

.product-art i {
    font-size:9px
}

.cart-row small {
    font-size:10px
}

html[data-tg-scheme="dark"] .hero {
    color:#111627
}

html[data-tg-scheme="dark"] .ghost {
    color:#f4f6ff
}

html[data-tg-scheme="dark"] .qty button {
    background:rgba(255,255,255,.08);
    border-color:rgba(255,255,255,.1);
    color:#f4f6ff
}

html[data-tg-scheme="dark"] .save {
    background:rgba(24,28,44,.7);
    border-color:rgba(255,255,255,.12);
    color:#f4f6ff
}

html[data-tg-scheme="dark"] .save.on {
    background:#7557ff;
    color:#fff
}

/* ==========================================================================
   Motion & micro-interactions
   Added for a smoother Telegram Mini App experience.
   ========================================================================== */

:root {
    --motion-fast: 160ms;
    --motion-medium: 280ms;
    --motion-slow: 520ms;
    --motion-spring: cubic-bezier(.2, .8, .2, 1);
    --motion-soft: cubic-bezier(.22, .61, .36, 1);
}

/* Page entrance */
.view.active {
    animation: view-enter var(--motion-medium) var(--motion-soft) both;
}

@keyframes view-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.995);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ambient liquid-chrome movement */
.ambient i {
    will-change: transform;
}

.ambient i:nth-child(1) {
    animation: ambient-float-a 11s ease-in-out infinite alternate;
}

.ambient i:nth-child(2) {
    animation: ambient-float-b 13s ease-in-out infinite alternate;
}

.ambient i:nth-child(3) {
    animation: ambient-float-c 15s ease-in-out infinite alternate;
}

@keyframes ambient-float-a {
    to {
        transform: translate3d(34px, 24px, 0) scale(1.08);
    }
}

@keyframes ambient-float-b {
    to {
        transform: translate3d(-32px, -28px, 0) scale(.94);
    }
}

@keyframes ambient-float-c {
    to {
        transform: translate3d(22px, -30px, 0) scale(1.06);
    }
}

/* Brand and hero */
.brand-mark {
    transition:
        transform var(--motion-medium) var(--motion-spring),
        box-shadow var(--motion-medium) ease;
}

.brand:active .brand-mark {
    transform: scale(.92) rotate(-5deg);
}

.hero {
    animation: hero-enter var(--motion-slow) var(--motion-spring) both;
}

.hero-object {
    animation: hero-object-float 4.8s ease-in-out infinite;
    will-change: transform;
}

.hero-object::after {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: inherit;
    background: linear-gradient(
        120deg,
        transparent 25%,
        rgba(255, 255, 255, .55) 44%,
        transparent 62%
    );
    transform: translateX(-140%) rotate(8deg);
    animation: chrome-sheen 5.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-object-float {
    0%,
    100% {
        transform: rotate(7deg) translateY(0);
    }

    50% {
        transform: rotate(4deg) translateY(-9px);
    }
}

@keyframes chrome-sheen {
    0%,
    64% {
        transform: translateX(-140%) rotate(8deg);
        opacity: 0;
    }

    72% {
        opacity: .9;
    }

    92%,
    100% {
        transform: translateX(145%) rotate(8deg);
        opacity: 0;
    }
}

/* Buttons */
.cta,
.ghost,
.quick-add,
.chip,
.category,
.save,
.qty button,
.profile-menu button,
.profile-menu a,
.bottom-nav button,
.sheet-close {
    -webkit-tap-highlight-color: transparent;
    transition:
        transform var(--motion-fast) var(--motion-spring),
        box-shadow var(--motion-medium) ease,
        background-color var(--motion-medium) ease,
        border-color var(--motion-medium) ease,
        color var(--motion-medium) ease,
        opacity var(--motion-fast) ease;
}

.cta {
    overflow: hidden;
    isolation: isolate;
}

.cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -70%;
    left: -35%;
    width: 28%;
    height: 240%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .32),
        transparent
    );
    transform: rotate(18deg) translateX(-260%);
    transition: transform 650ms ease;
    pointer-events: none;
}

.cta:hover::after {
    transform: rotate(18deg) translateX(650%);
}

.cta:active,
.ghost:active,
.quick-add:active,
.chip:active,
.category:active,
.save:active,
.qty button:active,
.profile-menu button:active,
.profile-menu a:active,
.bottom-nav button:active,
.sheet-close:active {
    transform: scale(.96);
}

/* Search focus */
.searchbox {
    transition:
        border-color var(--motion-medium) ease,
        box-shadow var(--motion-medium) ease,
        background-color var(--motion-medium) ease,
        transform var(--motion-medium) var(--motion-spring);
}

.searchbox:focus-within {
    border-color: rgba(117, 87, 255, .52);
    background: rgba(255, 255, 255, .72);
    box-shadow:
        0 0 0 4px rgba(117, 87, 255, .10),
        0 12px 30px rgba(73, 78, 117, .08);
    transform: translateY(-1px);
}

/* Category and product cards */
.category,
.product-card,
.cart-row,
.profile-card,
.profile-menu button,
.profile-menu a,
.summary {
    transition:
        transform var(--motion-medium) var(--motion-spring),
        box-shadow var(--motion-medium) ease,
        border-color var(--motion-medium) ease,
        background-color var(--motion-medium) ease;
}

.category-grid .category,
.product-grid .product-card,
.catalog-grid .product-card {
    animation: card-enter 440ms var(--motion-spring) both;
}

.category-grid > :nth-child(2),
.product-grid > :nth-child(2),
.catalog-grid > :nth-child(2) {
    animation-delay: 45ms;
}

.category-grid > :nth-child(3),
.product-grid > :nth-child(3),
.catalog-grid > :nth-child(3) {
    animation-delay: 90ms;
}

.category-grid > :nth-child(4),
.product-grid > :nth-child(4),
.catalog-grid > :nth-child(4) {
    animation-delay: 135ms;
}

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (hover: hover) and (pointer: fine) {
    .category:hover,
    .product-card:hover,
    .cart-row:hover,
    .profile-menu button:hover,
    .profile-menu a:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 38px rgba(73, 78, 117, .16);
    }

    .product-card:hover .product-art img,
    .product-card:hover .product-art .pack {
        transform: scale(1.035);
    }

    .bottom-nav button:hover {
        transform: translateY(-2px);
    }
}

.product-art img,
.product-art .pack {
    transition:
        transform var(--motion-slow) var(--motion-spring),
        filter var(--motion-medium) ease;
}

/* Favourite pulse */
.save.on {
    animation: save-pop 320ms var(--motion-spring);
}

@keyframes save-pop {
    0% {
        transform: scale(.72);
    }

    55% {
        transform: scale(1.16) rotate(-7deg);
    }

    100% {
        transform: scale(1);
    }
}

/* Bottom navigation */
.bottom-nav button.active {
    animation: nav-pop 300ms var(--motion-spring);
}

.bottom-nav i {
    animation: badge-pop 300ms var(--motion-spring);
}

@keyframes nav-pop {
    from {
        transform: translateY(3px) scale(.9);
    }

    to {
        transform: translateY(0) scale(1);
    }
}

@keyframes badge-pop {
    from {
        transform: scale(.4);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Bottom sheet / modal */
.overlay.open {
    animation: overlay-fade 180ms ease-out both;
}

.overlay.open .sheet {
    animation: sheet-up 380ms var(--motion-spring) both;
}

@keyframes overlay-fade {
    from {
        background: rgba(39, 44, 67, 0);
        backdrop-filter: blur(0);
    }

    to {
        background: rgba(39, 44, 67, .42);
        backdrop-filter: blur(11px);
    }
}

@keyframes sheet-up {
    from {
        opacity: 0;
        transform: translateY(36px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Splash */
.chrome-logo {
    animation: logo-float 3.8s ease-in-out infinite;
}

@keyframes logo-float {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-7px) rotate(2deg);
    }
}

/* Toast keeps its existing transition, with a tiny pop on show */
.toast.show {
    animation: toast-pop 220ms var(--motion-spring);
}

@keyframes toast-pop {
    from {
        transform: translate(-50%, 9px) scale(.96);
    }

    to {
        transform: translate(-50%, 0) scale(1);
    }
}

/* Dark-mode focus treatment */
html[data-tg-scheme="dark"] .searchbox:focus-within {
    background: rgba(45, 50, 72, .92);
    border-color: rgba(132, 108, 255, .62);
    box-shadow:
        0 0 0 4px rgba(117, 87, 255, .13),
        0 14px 32px rgba(0, 0, 0, .18);
}

/* Reduced motion remains fully respected. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   PRODUCT DETAIL — responsive v2
   Keeps catalog cards unchanged and only redesigns #detail.
   ========================================================================== */

#detail {
    --detail-inline: clamp(14px, 4vw, 22px);
    --detail-surface: rgba(255, 255, 255, .58);
    --detail-surface-strong: rgba(255, 255, 255, .76);
    --detail-border: rgba(255, 255, 255, .9);
    --detail-muted: #687087;
    --detail-accent: #7557ff;
}

/* Product bottom sheet */
#detail .sheet {
    width: min(100%, 620px);
    max-height: min(94dvh, 920px);

    padding:
        18px
        var(--detail-inline)
        calc(24px + env(safe-area-inset-bottom));

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;

    border-radius: 32px 32px 0 0;
    background:
        radial-gradient(
            circle at 12% 4%,
            rgba(117, 87, 255, .12),
            transparent 30%
        ),
        radial-gradient(
            circle at 92% 26%,
            rgba(111, 240, 207, .11),
            transparent 34%
        ),
        linear-gradient(180deg, #f3f5fb 0%, #e3e8f4 100%);

    border: 1px solid rgba(255, 255, 255, .86);
    box-shadow:
        0 -24px 80px rgba(48, 52, 88, .24),
        inset 0 1px 0 rgba(255, 255, 255, .75);

    scrollbar-width: none;
}

#detail .sheet::-webkit-scrollbar {
    display: none;
}

/* Small grabber gives the sheet a native mobile feel. */
#detail .sheet::before {
    content: "";
    display: block;

    width: 42px;
    height: 4px;
    margin: -4px auto 14px;

    border-radius: 999px;
    background: rgba(17, 22, 39, .16);
}

/* Floating close button */
#detail .sheet-close {
    position: absolute;
    z-index: 10;
    top: 30px;
    right: calc(var(--detail-inline) + 10px);

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .78);

    background: rgba(20, 24, 42, .62);
    color: #fff;

    font-size: 24px;
    line-height: 1;

    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);

    box-shadow:
        0 8px 24px rgba(19, 23, 43, .18),
        inset 0 1px 0 rgba(255, 255, 255, .2);
}

/* --------------------------------------------------------------------------
   Product image
   -------------------------------------------------------------------------- */

#detailArt {
    width: 100%;
    margin: 0 0 18px;
}

/*
   The catalog can keep object-fit: cover.
   In detail view the image always fits completely and never gets cropped.
*/
#detail #detailArt .product-art {
    width: min(100%, 480px);
    height: auto;
    aspect-ratio: 1 / 1;

    margin: 0 auto;

    position: relative;
    overflow: hidden;

    border-radius: clamp(22px, 6vw, 30px);
    border: 1px solid rgba(255, 255, 255, .92);

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(117, 87, 255, .13),
            transparent 62%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .9),
            rgba(197, 207, 232, .62)
        );

    box-shadow:
        0 16px 42px rgba(66, 72, 111, .14),
        inset 0 1px 0 rgba(255, 255, 255, .92);
}

/* Remove the catalog glow from covering the detail image background. */
#detail #detailArt .product-art::before {
    width: 58%;
    height: 58%;
    opacity: .58;
    filter: blur(30px);
}

#detail #detailArt .product-art img {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transform: none;
}

/* Product placeholder / generated pack */
#detail #detailArt .product-art .pack {
    position: relative;
    z-index: 1;

    width: clamp(76px, 24vw, 108px);
    height: clamp(120px, 36vw, 166px);

    font-size: clamp(14px, 4vw, 19px);
}

/* Category pill drawn on the image by productArt(). */
#detail #detailArt .product-art i {
    z-index: 4;
    right: 12px;
    bottom: 12px;

    padding: 7px 11px;

    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;

    background: rgba(245, 247, 255, .76);
    color: #586177;

    font-size: 10px;
    font-weight: 800;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow: 0 6px 18px rgba(54, 61, 96, .10);
}

/* --------------------------------------------------------------------------
   Product typography
   -------------------------------------------------------------------------- */

#detail #detailCat {
    display: inline-flex;
    align-items: center;

    min-height: 24px;
    margin: 0 0 7px;

    color: #6657d9;

    font-size: 10px;
    font-weight: 1000;
    letter-spacing: .14em;
    text-transform: uppercase;
}

#detail #detailName {
    max-width: 560px;

    margin: 0;

    font-family: "Arial Black", Arial, sans-serif;
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.02;
    letter-spacing: -.055em;

    overflow-wrap: anywhere;
    text-wrap: balance;
}

/* Make the raw SKU look intentional instead of a loose line of text. */
#detail #detailSku {
    display: inline-flex;
    align-items: center;

    width: fit-content;
    max-width: 100%;

    margin: 11px 0 0;
    padding: 6px 9px;

    border: 1px solid rgba(17, 22, 39, .09);
    border-radius: 999px;

    background: rgba(255, 255, 255, .42);
    color: var(--detail-muted);

    font-size: 9px;
    font-weight: 800;
    line-height: 1;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#detail #detailSku::before {
    content: "SKU · ";
    margin-right: 3px;
    opacity: .72;
}

/* --------------------------------------------------------------------------
   Price / stock
   -------------------------------------------------------------------------- */

#detail .detail-specs {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 10px;

    margin: 18px 0 12px;
}

#detail .detail-specs > div {
    min-width: 0;
    min-height: 78px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 14px 15px;

    border-radius: 22px;
    border: 1px solid var(--detail-border);

    background: var(--detail-surface);

    box-shadow:
        0 10px 28px rgba(65, 71, 108, .08),
        inset 0 1px 0 rgba(255, 255, 255, .75);
}

#detail .detail-specs > div:first-child {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .78),
            rgba(226, 221, 255, .62)
        );
}

#detail .detail-specs span {
    margin-bottom: 6px;

    color: var(--detail-muted);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
}

#detail .detail-specs b {
    margin: 0;

    color: #171a2c;

    font-family: "Arial Black", Arial, sans-serif;
    font-size: clamp(17px, 4.8vw, 22px);
    line-height: 1.1;
    letter-spacing: -.035em;

    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Description / attributes
   -------------------------------------------------------------------------- */

#detail .detail-copy {
    margin: 0;
    padding: 15px 16px;

    border-radius: 21px;
    border: 1px solid rgba(255, 255, 255, .76);

    background: rgba(255, 255, 255, .34);
    color: #596178;

    font-size: 11px;
    line-height: 1.65;

    overflow-wrap: anywhere;
}

#detail .attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin: 10px 0 18px;
}

#detail .attributes:empty {
    display: none;
}

#detail .attributes span {
    max-width: 100%;

    padding: 7px 10px;

    border: 1px solid rgba(17, 22, 39, .09);
    border-radius: 999px;

    background: rgba(255, 255, 255, .46);
    color: #5d657a;

    font-size: 9px;
    font-weight: 800;

    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */

#detail #addDetailToCart,
#detail #saveDetail {
    min-height: 52px;

    margin-left: 0;
    margin-right: 0;

    border-radius: 18px;

    font-size: 12px;
    letter-spacing: -.01em;
}

#detail #addDetailToCart {
    margin-top: 2px;

    background:
        linear-gradient(135deg, #171a2c 0%, #242846 100%);

    border: 1px solid rgba(255, 255, 255, .14);

    box-shadow:
        0 12px 26px rgba(27, 30, 52, .18),
        inset 0 1px 0 rgba(255, 255, 255, .16);
}

#detail #saveDetail {
    margin-top: 9px;

    background: rgba(255, 255, 255, .38);

    border: 1px solid rgba(17, 22, 39, .11);

    color: #252b40;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

#detail.open #detailArt {
    animation: detail-art-enter 420ms cubic-bezier(.2, .8, .2, 1) both;
}

#detail.open #detailCat,
#detail.open #detailName,
#detail.open #detailSku,
#detail.open .detail-specs,
#detail.open .detail-copy,
#detail.open .attributes,
#detail.open #addDetailToCart,
#detail.open #saveDetail {
    animation: detail-content-enter 380ms cubic-bezier(.2, .8, .2, 1) both;
}

#detail.open #detailName {
    animation-delay: 35ms;
}

#detail.open .detail-specs {
    animation-delay: 70ms;
}

#detail.open .detail-copy,
#detail.open .attributes {
    animation-delay: 100ms;
}

#detail.open #addDetailToCart,
#detail.open #saveDetail {
    animation-delay: 125ms;
}

@keyframes detail-art-enter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.975);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes detail-content-enter {
    from {
        opacity: 0;
        transform: translateY(9px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Compact phones
   -------------------------------------------------------------------------- */

@media (max-width: 390px) {
    #detail {
        --detail-inline: 13px;
    }

    #detail .sheet {
        max-height: 95dvh;
        padding-top: 15px;
        border-radius: 28px 28px 0 0;
    }

    #detail .sheet-close {
        top: 27px;
        right: 23px;

        width: 36px;
        height: 36px;

        font-size: 21px;
    }

    #detail #detailArt {
        margin-bottom: 15px;
    }

    #detail #detailArt .product-art {
        border-radius: 23px;
    }

    #detail #detailName {
        font-size: clamp(25px, 8vw, 31px);
    }

    #detail .detail-specs {
        gap: 8px;
        margin-top: 15px;
    }

    #detail .detail-specs > div {
        min-height: 72px;
        padding: 12px;
        border-radius: 19px;
    }

    #detail .detail-copy {
        padding: 13px 14px;
        border-radius: 19px;
    }
}

/* Very narrow devices: stack the price and stock cards. */
@media (max-width: 320px) {
    #detail .detail-specs {
        grid-template-columns: 1fr;
    }
}

/* Wider phones/tablets: do not let the product photo become comically large. */
@media (min-width: 520px) {
    #detail #detailArt .product-art {
        width: min(100%, 440px);
    }

    #detail #detailName,
    #detail #detailCat,
    #detail #detailSku,
    #detail .detail-specs,
    #detail .detail-copy,
    #detail .attributes,
    #detail #addDetailToCart,
    #detail #saveDetail {
        width: min(100%, 520px);
        margin-left: auto;
        margin-right: auto;
    }

    #detail #detailCat {
        display: flex;
    }
}

/* --------------------------------------------------------------------------
   Telegram dark theme
   -------------------------------------------------------------------------- */

html[data-tg-scheme="dark"] #detail {
    --detail-surface: rgba(37, 42, 61, .76);
    --detail-surface-strong: rgba(43, 48, 69, .9);
    --detail-border: rgba(255, 255, 255, .10);
    --detail-muted: #aab1c5;
}

html[data-tg-scheme="dark"] #detail .sheet {
    background:
        radial-gradient(
            circle at 12% 4%,
            rgba(105, 79, 255, .17),
            transparent 31%
        ),
        radial-gradient(
            circle at 92% 26%,
            rgba(50, 203, 176, .10),
            transparent 34%
        ),
        linear-gradient(180deg, #24293c 0%, #171b2b 100%);

    border-color: rgba(255, 255, 255, .10);

    box-shadow:
        0 -24px 80px rgba(0, 0, 0, .32),
        inset 0 1px 0 rgba(255, 255, 255, .06);
}

html[data-tg-scheme="dark"] #detail .sheet::before {
    background: rgba(255, 255, 255, .17);
}

html[data-tg-scheme="dark"] #detail #detailArt .product-art {
    border-color: rgba(255, 255, 255, .12);

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(117, 87, 255, .20),
            transparent 62%
        ),
        linear-gradient(
            145deg,
            rgba(44, 49, 70, .95),
            rgba(27, 31, 48, .95)
        );

    box-shadow:
        0 18px 46px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

html[data-tg-scheme="dark"] #detail #detailArt .product-art i {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(22, 26, 42, .72);
    color: #d7dced;
}

html[data-tg-scheme="dark"] #detail #detailCat {
    color: #a99aff;
}

html[data-tg-scheme="dark"] #detail #detailName {
    color: #f6f7ff;
}

html[data-tg-scheme="dark"] #detail #detailSku {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .05);
    color: #aab1c5;
}

html[data-tg-scheme="dark"] #detail .detail-specs > div {
    border-color: rgba(255, 255, 255, .10);
    background: rgba(37, 42, 61, .76);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .16),
        inset 0 1px 0 rgba(255, 255, 255, .05);
}

html[data-tg-scheme="dark"] #detail .detail-specs > div:first-child {
    background:
        linear-gradient(
            135deg,
            rgba(49, 54, 78, .92),
            rgba(64, 54, 115, .56)
        );
}

html[data-tg-scheme="dark"] #detail .detail-specs span {
    color: #aab1c5;
}

html[data-tg-scheme="dark"] #detail .detail-specs b {
    color: #f6f7ff;
}

html[data-tg-scheme="dark"] #detail .detail-copy {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: #c5cada;
}

html[data-tg-scheme="dark"] #detail .attributes span {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .055);
    color: #c1c7d8;
}

html[data-tg-scheme="dark"] #detail #saveDetail {
    border-color: rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .055);
    color: #f1f3fb;
}

/* Keep accessibility preference authoritative even though this section is last. */
@media (prefers-reduced-motion: reduce) {
    #detail *,
    #detail *::before,
    #detail *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ==========================================================================
   PRODUCT DETAIL IMAGE — hard no-crop fix
   This block must stay at the VERY END of styles.css.
   ========================================================================== */

#detail #detailArt {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 18px;
}

#detail #detailArt .product-art {
    /*
       Important:
       the base .product-art has a fixed height and the old detail rule had
       height: 270px. Both are force-disabled here.
    */
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    aspect-ratio: auto !important;

    display: block !important;
    overflow: hidden;

    margin: 0 auto !important;
    padding: 0 !important;

    border-radius: clamp(22px, 6vw, 30px);
}

/*
   Let the uploaded picture define its own height.
   No fixed-height box = nothing can be cropped by object-fit.
*/
#detail #detailArt .product-art img {
    position: relative !important;
    z-index: 1;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    aspect-ratio: auto !important;

    object-fit: contain !important;
    object-position: center center !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;
}

/* Keep fallback generated product art centered when there is no uploaded image. */
#detail #detailArt .product-art:has(.pack) {
    min-height: clamp(280px, 75vw, 440px) !important;

    display: grid !important;
    place-items: center !important;
}

/* Category badge remains pinned to the picture. */
#detail #detailArt .product-art i {
    position: absolute !important;
    z-index: 5;
    right: 12px;
    bottom: 12px;
}

/*
   On larger screens do not artificially force a square photo.
   Natural image proportions are preserved everywhere.
*/
@media (min-width: 520px) {
    #detail #detailArt .product-art {
        width: min(100%, 520px) !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: auto !important;
    }

    #detail #detailArt .product-art img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }
}

/* Dark theme background remains visible around transparent images. */
html[data-tg-scheme="dark"] #detail #detailArt .product-art {
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(117, 87, 255, .20),
            transparent 62%
        ),
        linear-gradient(
            145deg,
            rgba(44, 49, 70, .95),
            rgba(27, 31, 48, .95)
        );
}
/* ==========================================================
   PREMIUM CATEGORY CARDS
   ========================================================== */

.category {
    position: relative;

    min-height: 135px;

    overflow: hidden;

    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);

    background: #171d2d;

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    isolation: isolate;

    transition:
        transform 220ms cubic-bezier(.2, .8, .2, 1),
        box-shadow 220ms ease,
        border-color 220ms ease;
}


/* Фотография */

.category::before {
    content: "";

    position: absolute;
    inset: -3px;

    z-index: -2;

    background-size: cover;
    background-position: center;

    transform: scale(1.035);

    transition:
        transform 500ms cubic-bezier(.2, .8, .2, 1);
}


/* Затемнение снизу, чтобы текст читался */

.category::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    background:
        linear-gradient(
            180deg,
            rgba(5, 8, 15, 0.02) 15%,
            rgba(5, 8, 15, 0.12) 48%,
            rgba(5, 8, 15, 0.86) 100%
        );
}


/* Название */

.category b {
    position: absolute;

    z-index: 3;

    left: 15px;
    right: 15px;
    bottom: 31px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 900;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.55);
}


/* Количество товаров */

.category small {
    position: absolute;

    z-index: 3;

    left: 15px;
    right: 15px;
    bottom: 13px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 10px;
    font-weight: 700;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.55);
}


/* Убираем старые иконки, если они где-то ещё появились */

.category > span {
    display: none !important;
}


/* Каждой категории своё изображение */

.category--liquid::before {
    background-image:
        url("/static/categories/liquid.webp");
}

.category--snus::before {
    background-image:
        url("/static/categories/snus.webp");
}

.category--pods::before {
    background-image:
        url("/static/categories/pods.webp");
}

.category--disposable::before {
    background-image:
        url("/static/categories/disposable.webp");
}

.category--parts::before {
    background-image:
        url("/static/categories/parts.webp");
}


/* Комплектующие делаем широкой карточкой */

.category--parts {
    grid-column: 1 / -1;

    min-height: 150px;
}


/* Hover на компьютере */

@media (hover: hover) and (pointer: fine) {

    .category:hover {
        transform: translateY(-3px);

        border-color:
            rgba(255, 255, 255, 0.20);

        box-shadow:
            0 20px 42px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }

    .category:hover::before {
        transform: scale(1.075);
    }
}


/* Нажатие в Telegram */

.category:active {
    transform: scale(0.975);
}


/* Анимация Подов */

.category--pods::before {
    transform-origin: 50% 65%;

    animation:
        pod-category-motion
        5.2s
        ease-in-out
        infinite;
}

@keyframes pod-category-motion {

    0%,
    100% {
        transform:
            scale(1.04)
            rotate(0deg)
            translateY(0);
    }

    50% {
        transform:
            scale(1.065)
            rotate(-1deg)
            translateY(-3px);
    }
}


/* Анимация Одноразки */

.category--disposable::before {
    animation:
        disposable-category-motion
        4.6s
        ease-in-out
        infinite;
}

@keyframes disposable-category-motion {

    0%,
    100% {
        transform:
            scale(1.04)
            translateY(0);
    }

    50% {
        transform:
            scale(1.065)
            translateY(-6px);
    }
}


/* Очень маленькие телефоны */

@media (max-width: 390px) {

    .category {
        min-height: 122px;
        border-radius: 24px;
    }

    .category--parts {
        min-height: 140px;
    }

    .category b {
        left: 13px;
        bottom: 29px;
    }

    .category small {
        left: 13px;
        bottom: 12px;
    }
}


/* Accessibility */

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

    .category::before {
        animation: none !important;
    }
}

/* ==========================================================
   SHREK-BOT
   CATALOG V2
   CATEGORY -> SUBCATEGORY -> PRODUCTS
   ========================================================== */


/* ==========================================================
   CATALOG BACK BUTTON
   ========================================================== */

.catalog-back-row {
    display: flex;
    align-items: center;

    min-height: 42px;

    margin: 4px 0 10px;
}


.catalog-back {
    appearance: none;

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 16px;

    padding: 10px 15px;

    background:
        rgba(255, 255, 255, 0.08);

    color: inherit;

    font: inherit;
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}


.catalog-back:active {
    transform: scale(0.96);
}


.catalog-back[hidden] {
    display: none !important;
}



/* ==========================================================
   CATEGORY CARDS V2
   ========================================================== */

/*
   Внутрь категории теперь JS вставляет настоящее <img>.
   Поэтому отключаем старый ::before с background-image.
*/

.category.dynamic-card {
    position: relative;

    min-height: 145px;

    padding: 0;

    overflow: hidden;

    isolation: isolate;

    border-radius: 26px;

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    background:
        #171c2b;

    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    text-align: left;

    cursor: pointer;

    transition:
        transform 200ms cubic-bezier(.2, .8, .2, 1),
        box-shadow 200ms ease,
        border-color 200ms ease;
}


.category.dynamic-card::before {
    display: none !important;

    content: none !important;

    background: none !important;

    animation: none !important;
}


/*
   Градиент поверх фотографии.
*/

.category.dynamic-card::after {
    content: "";

    display: block !important;

    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(7, 10, 17, 0.02) 8%,
            rgba(7, 10, 17, 0.08) 39%,
            rgba(7, 10, 17, 0.82) 100%
        );
}


/*
   Настоящая фотография категории.
*/

.category.dynamic-card .category-photo {
    position: absolute;

    inset: 0;

    z-index: 1;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: scale(1.02);

    transition:
        transform 500ms cubic-bezier(.2, .8, .2, 1),
        filter 300ms ease;
}


/*
   Название категории.
*/

.category.dynamic-card > b {
    position: absolute !important;

    z-index: 4 !important;

    left: 15px !important;
    right: 15px !important;
    bottom: 31px !important;

    margin: 0 !important;

    color: #fff;

    font-size: 16px;
    line-height: 1.08;
    font-weight: 900;

    letter-spacing: -0.02em;

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.55);
}


/*
   Количество подразделов.
*/

.category.dynamic-card > small {
    position: absolute !important;

    z-index: 4 !important;

    left: 15px !important;
    right: 15px !important;
    bottom: 13px !important;

    margin: 0 !important;

    color:
        rgba(255, 255, 255, 0.70);

    font-size: 10px;
    line-height: 1;
    font-weight: 750;

    letter-spacing: 0.02em;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.5);
}


/*
   Старые emoji / icon больше не нужны.
*/

.category.dynamic-card > span {
    display: none !important;
}


/*
   Комплектующие оставляем широкой карточкой.
*/

.category.dynamic-card.category--parts {
    grid-column: 1 / -1;

    min-height: 155px;
}



/* ==========================================================
   CATEGORY CARD INTERACTION
   ========================================================== */

@media (hover: hover) and (pointer: fine) {

    .category.dynamic-card:hover {
        transform:
            translateY(-3px);

        border-color:
            rgba(255, 255, 255, 0.22);

        box-shadow:
            0 20px 42px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }


    .category.dynamic-card:hover .category-photo {
        transform:
            scale(1.065);
    }
}


.category.dynamic-card:active {
    transform:
        scale(0.975);
}



/* ==========================================================
   SUBCATEGORY GRID
   ========================================================== */

.subcategory-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 15px;

    width: 100%;

    margin-top: 8px;
}



/* ==========================================================
   SUBCATEGORY CARD
   ========================================================== */

.subcategory-card {
    appearance: none;

    position: relative;

    display: grid;

    grid-template-columns:
        minmax(118px, 38%)
        minmax(0, 1fr);

    width: 100%;

    min-height: 142px;

    padding: 0;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 25px;

    background:
        rgba(255, 255, 255, 0.07);

    color: inherit;

    text-align: left;

    cursor: pointer;

    box-shadow:
        0 13px 32px rgba(0, 0, 0, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    transition:
        transform 200ms cubic-bezier(.2, .8, .2, 1),
        box-shadow 200ms ease,
        border-color 200ms ease;
}



/* ==========================================================
   SUBCATEGORY IMAGE
   ========================================================== */

.subcategory-media {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 142px;

    overflow: hidden;

    background:
        rgba(16, 20, 31, 0.9);
}


.subcategory-media::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.02),
            rgba(0, 0, 0, 0.16)
        );
}


.subcategory-media img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 142px;

    object-fit: cover;
    object-position: center;

    transform: scale(1.015);

    transition:
        transform 520ms cubic-bezier(.2, .8, .2, 1);
}



/* ==========================================================
   SUBCATEGORY WITHOUT IMAGE
   ========================================================== */

.subcategory-placeholder {
    display: grid;

    place-items: center;

    width: 100%;
    height: 100%;

    min-height: 142px;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255, 255, 255, 0.18),
            rgba(255, 255, 255, 0.02) 44%
        ),
        linear-gradient(
            145deg,
            #242b40,
            #111521
        );

    color:
        rgba(255, 255, 255, 0.88);

    font-size: 48px;
    line-height: 1;
    font-weight: 950;

    letter-spacing: -0.08em;

    text-shadow:
        0 8px 26px rgba(0, 0, 0, 0.42);
}



/* ==========================================================
   SUBCATEGORY TEXT
   ========================================================== */

.subcategory-copy {
    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: center;

    min-width: 0;

    padding:
        15px
        16px
        15px
        15px;
}


.subcategory-copy > small {
    display: block;

    margin-bottom: 5px;

    color:
        var(
            --tg-hint-color,
            rgba(100, 105, 120, 0.75)
        );

    font-size: 9px;
    line-height: 1.1;
    font-weight: 850;

    letter-spacing: 0.075em;

    text-transform: uppercase;
}


.subcategory-copy h3 {
    margin:
        0
        0
        7px;

    overflow: hidden;

    color: inherit;

    font-size: 17px;
    line-height: 1.08;
    font-weight: 950;

    letter-spacing: -0.035em;

    text-overflow: ellipsis;
}


.subcategory-copy p {
    display: -webkit-box;

    margin:
        0
        0
        10px;

    overflow: hidden;

    color:
        var(
            --tg-hint-color,
            rgba(95, 100, 117, 0.82)
        );

    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


.subcategory-copy > span {
    margin-top: auto;

    color:
        var(
            --tg-link-color,
            #5564ef
        );

    font-size: 11px;
    line-height: 1;
    font-weight: 900;
}



/* ==========================================================
   SUBCATEGORY INTERACTION
   ========================================================== */

@media (hover: hover) and (pointer: fine) {

    .subcategory-card:hover {
        transform:
            translateY(-3px);

        border-color:
            rgba(255, 255, 255, 0.20);

        box-shadow:
            0 20px 42px rgba(0, 0, 0, 0.23),
            inset 0 1px 0 rgba(255, 255, 255, 0.07);
    }


    .subcategory-card:hover .subcategory-media img {
        transform:
            scale(1.07);
    }
}


.subcategory-card:active {
    transform:
        scale(0.982);
}



/* ==========================================================
   PRODUCT SECTION
   ========================================================== */

#productWrap {
    width: 100%;
}


#productWrap .searchbox {
    margin-bottom: 15px;
}


#subcategoryWrap,
#productWrap {
    animation:
        catalog-stage-in
        330ms
        cubic-bezier(.2, .8, .2, 1)
        both;
}


@keyframes catalog-stage-in {

    from {
        opacity: 0;

        transform:
            translateY(9px)
            scale(0.992);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}



/* ==========================================================
   EMPTY STATES
   ========================================================== */

#subcategoryEmpty {
    margin-top: 18px;
}


#catalogEmpty {
    margin-top: 18px;
}



/* ==========================================================
   PAGE TITLE FOR CATALOG LEVELS
   ========================================================== */

[data-view="catalog"] .page-title {
    margin-bottom: 16px;
}


[data-view="catalog"] .page-title h1 {
    overflow-wrap: anywhere;
}


[data-view="catalog"] #catalogDescription {
    max-width: 640px;
}



/* ==========================================================
   TABLET / DESKTOP
   ========================================================== */

@media (min-width: 720px) {

    .subcategory-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .subcategory-card {
        min-height: 158px;
    }


    .subcategory-media,
    .subcategory-media img,
    .subcategory-placeholder {
        min-height: 158px;
    }
}



/* ==========================================================
   SMALL PHONE
   ========================================================== */

@media (max-width: 390px) {

    .category.dynamic-card {
        min-height: 124px;

        border-radius: 23px;
    }


    .category.dynamic-card.category--parts {
        min-height: 138px;
    }


    .category.dynamic-card > b {
        left: 13px !important;

        bottom: 29px !important;

        font-size: 15px;
    }


    .category.dynamic-card > small {
        left: 13px !important;

        bottom: 11px !important;
    }


    .subcategory-card {
        grid-template-columns:
            112px
            minmax(0, 1fr);

        min-height: 132px;

        border-radius: 22px;
    }


    .subcategory-media,
    .subcategory-media img,
    .subcategory-placeholder {
        min-height: 132px;
    }


    .subcategory-copy {
        padding:
            13px
            13px
            13px
            12px;
    }


    .subcategory-copy h3 {
        font-size: 16px;
    }


    .subcategory-copy p {
        font-size: 10px;

        -webkit-line-clamp: 3;
    }
}



/* ==========================================================
   VERY SMALL PHONE
   ========================================================== */

@media (max-width: 340px) {

    .subcategory-card {
        grid-template-columns: 1fr;
    }


    .subcategory-media,
    .subcategory-media img,
    .subcategory-placeholder {
        height: 145px;

        min-height: 145px;
    }


    .subcategory-copy {
        min-height: 118px;
    }
}



/* ==========================================================
   TELEGRAM DARK THEME
   ========================================================== */

html[data-tg-scheme="dark"]
.subcategory-card {
    border-color:
        rgba(255, 255, 255, 0.09);

    background:
        rgba(255, 255, 255, 0.045);

    box-shadow:
        0 15px 36px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
}


html[data-tg-scheme="dark"]
.subcategory-copy > small {
    color:
        rgba(205, 210, 225, 0.55);
}


html[data-tg-scheme="dark"]
.subcategory-copy p {
    color:
        rgba(215, 220, 235, 0.62);
}



/* ==========================================================
   REDUCED MOTION
   ========================================================== */

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

    .category.dynamic-card,
    .category.dynamic-card .category-photo,
    .subcategory-card,
    .subcategory-media img,
    #subcategoryWrap,
    #productWrap {
        animation: none !important;

        transition: none !important;
    }
}
/* ==========================================================================
   PERSONAL CABINET V2
   ========================================================================== */

.profile-page-title {
    padding-bottom: 14px;
}

.profile-card-v2 {
    align-items: flex-start;
    padding: 20px;
    overflow: hidden;
}

.profile-card-v2::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -70px;
    bottom: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(117, 87, 255, .20), transparent 68%);
    pointer-events: none;
}

.profile-identity {
    min-width: 0;
    padding-right: 48px;
}

.profile-identity h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-identity #profileSince {
    margin-top: 5px;
}

.profile-stats {
    margin: 12px 18px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.profile-stats button,
.profile-stats > div {
    min-width: 0;
    border: 1px solid rgba(255,255,255,.92);
    background: rgba(250,251,255,.66);
    border-radius: 22px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(73,78,117,.08);
}

.profile-stats button {
    color: inherit;
}

.profile-stats b {
    display: block;
    font-family: Arial Black, Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
}

.profile-stats span {
    display: block;
    margin-top: 7px;
    color: #687087;
    font-size: 9px;
    font-weight: 900;
}

.profile-feature {
    margin: 12px 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 18px;
    border-radius: 25px;
    border: 1px solid rgba(117,87,255,.22);
    background: linear-gradient(135deg, rgba(117,87,255,.13), rgba(111,240,207,.13));
    box-shadow: 0 12px 30px rgba(73,78,117,.09);
}

.profile-feature small,
.profile-section-head small {
    color: #687087;
    font-size: 9px;
    letter-spacing: .12em;
    font-weight: 1000;
}

.profile-feature h3 {
    margin: 4px 0 3px;
    font-size: 16px;
}

.profile-feature p {
    margin: 0;
    color: #687087;
    font-size: 10px;
}

.profile-feature-action {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 10px 12px;
    background: #171a2c;
    color: #fff;
    font-size: 9px;
    font-weight: 1000;
}

.profile-section {
    margin: 12px 18px 0;
    padding: 16px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.92);
    background: rgba(250,251,255,.54);
    box-shadow: 0 12px 30px rgba(73,78,117,.08);
    overflow: hidden;
}

.profile-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-section-head h3 {
    margin: 4px 0 0;
    font-size: 16px;
}

.profile-section-head button {
    border: 0;
    background: none;
    color: #6248df;
    padding: 4px 0;
    font-size: 10px;
    font-weight: 1000;
}

.profile-product-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 72%);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    padding: 2px 2px 8px;
    scrollbar-width: none;
}

.profile-product-strip::-webkit-scrollbar {
    display: none;
}

.profile-product-strip .product-card {
    scroll-snap-align: start;
}

.profile-section-empty {
    margin: 2px 0;
    color: #687087;
    font-size: 10px;
    line-height: 1.5;
}

.profile-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: -2px 18px 12px;
}

.profile-toolbar .ghost {
    margin: 0;
    padding: 10px 13px;
    font-size: 10px;
}

.my-inquiries-list {
    display: grid;
    gap: 10px;
    padding: 0 18px 12px;
}

.my-inquiry-card {
    padding: 17px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.92);
    background: rgba(250,251,255,.66);
    box-shadow: 0 12px 30px rgba(73,78,117,.09);
}

.my-inquiry-head,
.my-inquiry-summary,
.my-inquiry-items > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.my-inquiry-head {
    align-items: flex-start;
}

.my-inquiry-head small {
    color: #687087;
    font-size: 9px;
    font-weight: 900;
}

.my-inquiry-head h3 {
    margin: 4px 0 0;
    font-size: 17px;
}

.inquiry-status {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 9px;
    font-size: 8px;
    font-weight: 1000;
    background: rgba(104,112,135,.10);
    color: #687087;
}

.inquiry-status.success {
    background: rgba(35,165,113,.12);
    color: #1b865e;
}

.inquiry-status.warning {
    background: rgba(235,157,52,.13);
    color: #a66c17;
}

.inquiry-status.danger {
    background: rgba(214,63,102,.12);
    color: #a72c50;
}

.my-inquiry-summary {
    margin: 13px 0 8px;
    padding: 10px 12px;
    border-radius: 17px;
    background: rgba(17,22,39,.045);
    font-size: 10px;
}

.my-inquiry-summary span {
    color: #687087;
}

.my-inquiry-items {
    display: grid;
    gap: 0;
}

.my-inquiry-items > div {
    padding: 10px 2px;
    border-top: 1px solid rgba(17,22,39,.07);
    font-size: 10px;
}

.my-inquiry-items > div > span {
    min-width: 0;
    font-weight: 900;
}

.my-inquiry-items small {
    display: block;
    margin-top: 3px;
    color: #687087;
    font-size: 8px;
    font-weight: 700;
}

html[data-tg-scheme="dark"] .profile-stats button,
html[data-tg-scheme="dark"] .profile-stats > div,
html[data-tg-scheme="dark"] .profile-section,
html[data-tg-scheme="dark"] .my-inquiry-card {
    background: rgba(34,39,57,.82);
    border-color: rgba(255,255,255,.1);
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

html[data-tg-scheme="dark"] .profile-feature {
    border-color: rgba(122,140,255,.20);
    background: linear-gradient(135deg, rgba(122,140,255,.14), rgba(55,211,154,.10));
}

html[data-tg-scheme="dark"] .profile-stats span,
html[data-tg-scheme="dark"] .profile-feature p,
html[data-tg-scheme="dark"] .profile-feature small,
html[data-tg-scheme="dark"] .profile-section-head small,
html[data-tg-scheme="dark"] .profile-section-empty,
html[data-tg-scheme="dark"] .my-inquiry-head small,
html[data-tg-scheme="dark"] .my-inquiry-summary span,
html[data-tg-scheme="dark"] .my-inquiry-items small {
    color: #aab1c5;
}

html[data-tg-scheme="dark"] .my-inquiry-summary {
    background: rgba(255,255,255,.05);
}

html[data-tg-scheme="dark"] .my-inquiry-items > div {
    border-color: rgba(255,255,255,.08);
}

@media (max-width: 390px) {
    .profile-stats b {
        font-size: 18px;
    }

    .profile-stats span {
        font-size: 8px;
    }

    .profile-product-strip {
        grid-auto-columns: 82%;
    }
}

/* ==========================================================
   CATALOG V3 / TELEGRAM AVATAR / DESKTOP EXPANSION
   ========================================================== */

.avatar {
    overflow: hidden;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar.has-photo > span {
    display: none;
}

.line-card .subcategory-media {
    min-height: 152px;
}

.line-placeholder {
    background: linear-gradient(145deg, rgba(119,92,255,.86), rgba(101,222,193,.72));
    color: #fff;
}

@media (min-width: 900px) {
    .app-shell {
        width: min(100%, 1320px);
        padding-left: 22px;
        padding-right: 22px;
    }

    .brandbar {
        margin-left: -22px;
        margin-right: -22px;
        padding-left: 34px;
        padding-right: 34px;
    }

    .hero {
        min-height: 420px;
    }

    .category-grid,
    .subcategory-grid,
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-card-v2,
    .profile-stats,
    .profile-feature,
    .profile-section,
    .profile-menu,
    .my-inquiries-list {
        max-width: 1040px;
        margin-left: auto;
        margin-right: auto;
    }

    .profile-product-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
    }

    .profile-product-strip .product-card {
        min-width: 0;
        width: auto;
    }
}

@media (min-width: 1200px) {
    .category-grid,
    .subcategory-grid,
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* ==========================================================
   CATALOG ALL-PRODUCTS FILTERS / RESERVATIONS V4
   ========================================================== */
.catalog-filterbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:8px;margin:10px 0 18px}.catalog-filterbar select{min-width:0;border:1px solid rgba(17,22,39,.12);background:rgba(255,255,255,.58);color:inherit;border-radius:16px;padding:12px 11px;font-weight:800;outline:none}.catalog-filterbar .catalog-clear{margin:0;white-space:nowrap}.inquiry-cancel-button{margin-top:14px;color:#a52c43;border-color:rgba(190,63,89,.22);background:rgba(255,111,139,.08)}html[data-tg-scheme="dark"] .catalog-filterbar select{background:rgba(37,42,61,.78);border-color:rgba(255,255,255,.1);color:#f4f6ff}
@media(max-width:720px){.catalog-filterbar{grid-template-columns:1fr 1fr}.catalog-filterbar select:first-child{grid-column:1/-1}.catalog-filterbar .catalog-clear{width:100%}}
@media(min-width:900px){html.desktop-webapp .app-shell{width:100%;max-width:none}html.desktop-webapp main{max-width:1500px;margin:0 auto}html.desktop-webapp .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}html.desktop-webapp .category-grid,html.desktop-webapp .subcategory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ==========================================================
   V5 · PRODUCT MEDIA — NEVER CROP THE PRODUCT
   ========================================================== */

.product-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 5px;
}

.cart-row > .product-art img {
    padding: 4px;
}

/* ==========================================================
   V5.3 · GIVEAWAYS · PREMIUM EVENT EXPERIENCE
   ========================================================== */

.giveaways-view {
    position: relative;
    padding-bottom: 38px;
}

.giveaways-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 16px 14px 18px;
    min-height: 238px;
    padding: 24px 22px 20px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(120,255,190,.2), transparent 28%),
        radial-gradient(circle at 5% 110%, rgba(132,92,255,.38), transparent 42%),
        linear-gradient(135deg,#111526 0%,#1d1a3d 52%,#0c2926 100%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 26px 70px rgba(36,35,71,.24), inset 0 1px 0 rgba(255,255,255,.12);
}

.giveaways-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .3;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom,black,transparent 92%);
}

.giveaways-hero-glow {
    position: absolute;
    z-index: -1;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(52px);
    opacity: .5;
    pointer-events: none;
}

.giveaways-hero-glow.glow-a {
    right: -70px;
    top: -80px;
    background: #7dffbf;
}

.giveaways-hero-glow.glow-b {
    left: 30%;
    bottom: -130px;
    background: #815cff;
}

.giveaways-hero-content {
    position: relative;
    z-index: 2;
}

.giveaways-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.66);
    font-size: 8px;
    font-weight: 1000;
    letter-spacing: .19em;
}

.giveaways-kicker i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #75ffbc;
    box-shadow: 0 0 0 5px rgba(117,255,188,.1), 0 0 18px rgba(117,255,188,.8);
}

.giveaways-hero h1 {
    margin: 12px 0 8px;
    font-family: Arial Black,Arial,sans-serif;
    font-size: clamp(35px,10vw,54px);
    line-height: .94;
    letter-spacing: -.055em;
}

.giveaways-hero p {
    max-width: 520px;
    margin: 0;
    color: rgba(240,244,255,.68);
    font-size: 10px;
    line-height: 1.6;
}

.giveaways-summary {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 7px;
    margin-top: 20px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 21px;
    background: rgba(255,255,255,.065);
    backdrop-filter: blur(18px);
}

.giveaways-summary > span {
    min-width: 0;
    display: grid;
    gap: 2px;
    text-align: center;
}

.giveaways-summary b {
    font-size: 17px;
    line-height: 1;
}

.giveaways-summary small {
    overflow: hidden;
    color: rgba(255,255,255,.52);
    font-size: 7px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giveaways-summary > i {
    width: 1px;
    background: rgba(255,255,255,.1);
}

.giveaways-list {
    display: grid;
    gap: 17px;
    padding: 0 14px;
}

.giveaway-card {
    overflow: hidden;
    position: relative;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,.88);
    background: rgba(248,250,255,.78);
    box-shadow: 0 18px 52px rgba(51,56,98,.13), inset 0 1px 0 rgba(255,255,255,.75);
    backdrop-filter: blur(18px);
}

.giveaway-card.featured {
    box-shadow: 0 22px 65px rgba(51,56,98,.18), inset 0 1px 0 rgba(255,255,255,.78);
}

.giveaway-card.joined {
    border-color: rgba(52,203,129,.28);
}

.giveaway-visual {
    position: relative;
    height: 292px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #141528;
}

.giveaway-visual-backdrop {
    position: absolute;
    inset: -22px;
    width: calc(100% + 44px);
    height: calc(100% + 44px);
    object-fit: cover;
    filter: blur(28px) saturate(1.3) brightness(.72);
    transform: scale(1.1);
    opacity: .86;
}

.giveaway-visual-prize {
    position: relative;
    z-index: 2;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 17px 25px rgba(0,0,0,.28));
}

.giveaway-visual-shade {
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom,rgba(8,10,20,.54),transparent 32%,transparent 62%,rgba(8,10,20,.78)),
        linear-gradient(115deg,rgba(116,80,255,.13),transparent 38%,rgba(80,255,196,.08));
}

.giveaway-placeholder {
    position: relative;
    z-index: 2;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    border-radius: 27px;
    color: #fff;
    background:
        radial-gradient(circle at 50% 40%,rgba(121,255,193,.18),transparent 25%),
        radial-gradient(circle at 50% 50%,rgba(125,86,255,.28),transparent 42%),
        #121426;
    border: 1px solid rgba(255,255,255,.08);
}

.giveaway-placeholder span {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    color: #0d1c16;
    background: linear-gradient(145deg,#c8ff8a,#6effd0);
    font-size: 33px;
    box-shadow: 0 18px 45px rgba(89,255,193,.2);
}

.giveaway-placeholder b {
    margin-top: 3px;
    font-family: Arial Black,Arial,sans-serif;
    font-size: 13px;
    letter-spacing: .08em;
}

.giveaway-placeholder small {
    color: rgba(255,255,255,.42);
    font-size: 7px;
    letter-spacing: .19em;
}

.giveaway-visual-top,
.giveaway-visual-bottom {
    position: absolute;
    z-index: 5;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.giveaway-visual-top {
    top: 14px;
    align-items: flex-start;
}

.giveaway-visual-bottom {
    bottom: 15px;
    display: grid;
    gap: 3px;
    color: #fff;
}

.giveaway-visual-bottom small {
    color: rgba(255,255,255,.55);
    font-size: 7px;
    font-weight: 1000;
    letter-spacing: .18em;
}

.giveaway-visual-bottom b {
    overflow: hidden;
    max-width: 90%;
    font-size: 17px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

.giveaway-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 999px;
    color: #f0eaff;
    background: rgba(89,62,205,.38);
    border: 1px solid rgba(255,255,255,.17);
    backdrop-filter: blur(15px);
    font-size: 7px;
    font-weight: 1000;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: 0 8px 28px rgba(0,0,0,.15);
}

.giveaway-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.giveaway-status.live {
    color: #85ffd0;
    background: rgba(18,99,70,.42);
}

.giveaway-status.upcoming {
    color: #e0d4ff;
}

.giveaway-status.ended {
    color: #d3d6df;
    background: rgba(52,56,67,.48);
}

.giveaway-countdown {
    min-width: 78px;
    display: grid;
    gap: 2px;
    padding: 7px 9px;
    border-radius: 14px;
    text-align: right;
    color: #fff;
    background: rgba(10,12,22,.38);
    border: 1px solid rgba(255,255,255,.13);
    backdrop-filter: blur(15px);
}

.giveaway-countdown small {
    color: rgba(255,255,255,.48);
    font-size: 6px;
    font-weight: 1000;
    letter-spacing: .13em;
}

.giveaway-countdown b {
    font-size: 12px;
}

.giveaway-copy {
    padding: 18px 17px 17px;
}

.giveaway-eyebrow {
    min-height: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.giveaway-eyebrow > span {
    color: #777f96;
    font-size: 7px;
    font-weight: 1000;
    letter-spacing: .16em;
}

.giveaway-eyebrow strong {
    padding: 6px 8px;
    border-radius: 999px;
    color: #158a53;
    background: rgba(49,203,126,.1);
    font-size: 6px;
    letter-spacing: .08em;
}

.giveaway-copy h2 {
    margin: 0;
    max-width: 92%;
    font-family: Arial Black,Arial,sans-serif;
    font-size: 25px;
    line-height: 1.02;
    letter-spacing: -.04em;
}

.giveaway-description {
    margin: 9px 0 0;
    color: #6b7389;
    font-size: 10px;
    line-height: 1.55;
    white-space: pre-line;
}

.giveaway-stats {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 7px;
    margin-top: 15px;
}

.giveaway-stats > div {
    min-width: 0;
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 18px;
    background: rgba(255,255,255,.64);
    border: 1px solid rgba(20,25,47,.065);
}

.giveaway-stat-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #6047e7;
    background: rgba(111,82,244,.1);
    font-size: 12px;
    font-weight: 1000;
}

.giveaway-stats p {
    min-width: 0;
    display: grid;
    gap: 2px;
    margin: 0;
}

.giveaway-stats b {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giveaway-stats small {
    overflow: hidden;
    color: #858ca0;
    font-size: 6px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giveaway-capacity {
    display: grid;
    gap: 7px;
    margin-top: 11px;
    padding: 11px 12px;
    border-radius: 17px;
    background: rgba(99,79,219,.055);
    border: 1px solid rgba(99,79,219,.08);
}

.giveaway-capacity > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #7e8599;
    font-size: 7px;
    font-weight: 900;
}

.giveaway-capacity > div:first-child b {
    color: #5f49d7;
}

.giveaway-capacity-track,
.giveaway-access-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(56,61,87,.085);
}

.giveaway-capacity-track i,
.giveaway-access-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,#7053f1,#59d8bd);
    box-shadow: 0 0 14px rgba(96,82,227,.2);
    transition: width .35s ease;
}

.giveaway-access {
    margin-top: 12px;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(145deg,rgba(242,241,255,.8),rgba(239,249,248,.76));
    border: 1px solid rgba(93,75,202,.09);
}

.giveaway-access.ready {
    background: linear-gradient(145deg,rgba(235,251,243,.9),rgba(235,249,250,.78));
    border-color: rgba(41,188,111,.14);
}

.giveaway-access-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.giveaway-access-head > div {
    display: grid;
    gap: 3px;
}

.giveaway-access-head small {
    color: #8a90a4;
    font-size: 6px;
    font-weight: 1000;
    letter-spacing: .14em;
}

.giveaway-access-head b {
    font-size: 11px;
}

.giveaway-access-head > span {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #5d45d6;
    background: rgba(101,73,223,.08);
    border: 1px solid rgba(101,73,223,.09);
    font-size: 11px;
    font-weight: 1000;
}

.giveaway-access.ready .giveaway-access-head > span {
    color: #168b54;
    background: rgba(42,189,111,.1);
    border-color: rgba(42,189,111,.13);
}

.giveaway-access-progress {
    margin-top: 10px;
}

.giveaway-access.ready .giveaway-access-progress i {
    background: linear-gradient(90deg,#2ac072,#66d9bc);
}

.giveaway-conditions {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.giveaway-condition {
    display: grid;
    grid-template-columns: 36px minmax(0,1fr) auto;
    gap: 9px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    border-radius: 17px;
    background: rgba(255,255,255,.63);
    border: 1px solid rgba(20,25,47,.06);
}

.giveaway-condition-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #7560d9;
    background: rgba(106,82,216,.095);
    font-size: 13px;
    font-weight: 1000;
}

.giveaway-condition.ok .giveaway-condition-icon {
    color: #13894f;
    background: rgba(42,190,108,.12);
}

.giveaway-condition-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.giveaway-condition-copy b {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giveaway-condition-copy small {
    overflow: hidden;
    color: #81889c;
    font-size: 7px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giveaway-condition-state {
    padding: 5px 7px;
    border-radius: 999px;
    color: #8c829c;
    background: rgba(97,76,120,.055);
    font-size: 5px;
    font-weight: 1000;
    letter-spacing: .08em;
}

.giveaway-condition.ok .giveaway-condition-state {
    color: #17864f;
    background: rgba(39,183,103,.09);
}

.giveaway-dates {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 18px;
    background: rgba(255,255,255,.56);
    border: 1px solid rgba(20,25,47,.06);
}

.giveaway-dates > span {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.giveaway-dates > span:last-child {
    text-align: right;
}

.giveaway-dates > i {
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg,transparent,#a5aabc,transparent);
}

.giveaway-dates small {
    color: #959bad;
    font-size: 6px;
    font-weight: 1000;
    letter-spacing: .14em;
}

.giveaway-dates b {
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giveaway-rules {
    margin-top: 10px;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,.48);
    border: 1px solid rgba(20,25,47,.06);
}

.giveaway-rules summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    cursor: pointer;
    color: #4b5267;
    font-size: 8px;
    font-weight: 900;
}

.giveaway-rules summary::-webkit-details-marker {
    display: none;
}

.giveaway-rules summary b {
    color: #7256e6;
    font-size: 13px;
    transition: transform .2s ease;
}

.giveaway-rules[open] summary b {
    transform: rotate(45deg);
}

.giveaway-rules p {
    margin: 0;
    padding: 0 13px 13px;
    color: #737a90;
    font-size: 9px;
    line-height: 1.55;
    white-space: pre-line;
}

.giveaway-actions {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 8px;
    margin-top: 12px;
}

.giveaway-actions button {
    min-width: 0;
    min-height: 49px;
    border-radius: 17px;
    border: 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 8px;
    font-weight: 1000;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.giveaway-actions button:active:not(:disabled) {
    transform: translateY(1px) scale(.988);
}

.giveaway-actions button > span {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    border-radius: 10px;
}

.giveaway-telegram {
    color: #34394d;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(20,25,47,.07) !important;
}

.giveaway-telegram > span {
    color: #268acb;
    background: rgba(38,139,204,.09);
}

.giveaway-join {
    color: #fff;
    background: linear-gradient(135deg,#171a2c 0%,#292344 55%,#14352f 100%);
    box-shadow: 0 11px 25px rgba(36,35,70,.17), inset 0 1px 0 rgba(255,255,255,.12);
}

.giveaway-join > span {
    color: #13241c;
    background: linear-gradient(145deg,#c8ff8c,#72ffd0);
    box-shadow: 0 0 18px rgba(111,255,205,.15);
}

.giveaway-card.joined .giveaway-join {
    color: #147a49;
    background: rgba(44,190,108,.1);
    border: 1px solid rgba(44,190,108,.14) !important;
    box-shadow: none;
}

.giveaway-actions button:disabled {
    opacity: .58;
    cursor: default;
}

.giveaway-hint {
    display: block;
    margin: 8px 2px 0;
    color: #8a91a4;
    font-size: 7px;
    line-height: 1.45;
    text-align: center;
}

.giveaways-empty {
    margin: 0 14px;
    min-height: 250px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 7px;
    padding: 32px;
    text-align: center;
    border-radius: 30px;
    color: #596077;
    background: rgba(255,255,255,.52);
    border: 1px solid rgba(255,255,255,.85);
}

.giveaways-empty > span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 5px;
    border-radius: 23px;
    color: #fff;
    background: linear-gradient(145deg,#7357ee,#4c34bd);
    box-shadow: 0 14px 35px rgba(84,61,201,.22);
    font-size: 25px;
}

.giveaways-empty b {
    color: #20253a;
    font-size: 14px;
}

.giveaways-empty p {
    max-width: 260px;
    margin: 0;
    color: #858ca0;
    font-size: 9px;
    line-height: 1.5;
}

/* Home entry */
.giveaway-home-section {
    padding-top: 0;
    padding-bottom: 4px;
}

.giveaway-home-card {
    width: 100%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.94);
    background: linear-gradient(135deg,#171a2d,#2c2550 57%,#103f37);
    color: #fff;
    border-radius: 28px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: left;
    box-shadow: 0 16px 38px rgba(50,47,93,.17);
}

.giveaway-home-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 130px;
    height: 130px;
    right: -50px;
    top: -60px;
    border-radius: 50%;
    background: #7dffc3;
    filter: blur(42px);
    opacity: .2;
}

.giveaway-home-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg,#d2ff92,#72ffd1);
    color: #18231c;
    font-size: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8),0 10px 25px rgba(95,255,198,.1);
}

.giveaway-home-card > span:last-child {
    display: grid;
    min-width: 0;
}

.giveaway-home-card small {
    color: rgba(255,255,255,.54);
    font-size: 7px;
    letter-spacing: .17em;
    font-weight: 900;
}

.giveaway-home-card b {
    margin-top: 3px;
    font-family: Arial Black,Arial,sans-serif;
    font-size: 16px;
}

.giveaway-home-card em {
    margin-top: 4px;
    color: rgba(255,255,255,.7);
    font-style: normal;
    font-size: 9px;
}

/* Dark Telegram scheme */
html[data-tg-scheme="dark"] .giveaway-card {
    background: rgba(28,32,49,.86);
    border-color: rgba(255,255,255,.075);
    box-shadow: 0 18px 52px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.045);
}

html[data-tg-scheme="dark"] .giveaway-copy h2,
html[data-tg-scheme="dark"] .giveaway-access-head b,
html[data-tg-scheme="dark"] .giveaway-condition-copy b,
html[data-tg-scheme="dark"] .giveaway-stats b,
html[data-tg-scheme="dark"] .giveaway-dates b {
    color: #eef1ff;
}

html[data-tg-scheme="dark"] .giveaway-description,
html[data-tg-scheme="dark"] .giveaway-condition-copy small,
html[data-tg-scheme="dark"] .giveaway-hint,
html[data-tg-scheme="dark"] .giveaway-rules p,
html[data-tg-scheme="dark"] .giveaway-eyebrow > span {
    color: #9fa8c0;
}

html[data-tg-scheme="dark"] .giveaway-stats > div,
html[data-tg-scheme="dark"] .giveaway-dates,
html[data-tg-scheme="dark"] .giveaway-rules,
html[data-tg-scheme="dark"] .giveaway-condition,
html[data-tg-scheme="dark"] .giveaway-telegram {
    color: #e8ebf7;
    background: rgba(255,255,255,.045);
    border-color: rgba(255,255,255,.07) !important;
}

html[data-tg-scheme="dark"] .giveaway-access {
    background: linear-gradient(145deg,rgba(58,52,91,.42),rgba(31,68,63,.28));
    border-color: rgba(255,255,255,.06);
}

html[data-tg-scheme="dark"] .giveaway-access.ready {
    background: linear-gradient(145deg,rgba(31,77,57,.34),rgba(29,66,63,.28));
}

html[data-tg-scheme="dark"] .giveaways-empty {
    color: #aab1c8;
    background: rgba(34,38,55,.64);
    border-color: rgba(255,255,255,.07);
}

html[data-tg-scheme="dark"] .giveaways-empty b {
    color: #eef1ff;
}

@media (min-width: 760px) {
    .giveaways-hero,
    .giveaways-list,
    .giveaways-empty {
        max-width: 1220px;
        margin-left: auto;
        margin-right: auto;
    }

    .giveaways-hero {
        min-height: 275px;
        padding: 34px 36px 26px;
    }

    .giveaways-hero p {
        font-size: 11px;
    }

    .giveaways-summary {
        width: min(560px,100%);
    }

    .giveaways-list {
        grid-template-columns: repeat(2,minmax(0,1fr));
        padding-left: 18px;
        padding-right: 18px;
    }

    .giveaway-card.featured {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(330px,.92fr) minmax(390px,1.08fr);
    }

    .giveaway-card.featured .giveaway-visual {
        height: 100%;
        min-height: 570px;
    }

    .giveaway-card.featured .giveaway-copy {
        padding: 28px 26px 24px;
    }

    .giveaway-card.featured .giveaway-copy h2 {
        font-size: 34px;
    }

    .giveaway-card:not(.featured) .giveaway-visual {
        height: 330px;
    }
}

@media (min-width: 1100px) {
    html.desktop-webapp .giveaways-view {
        padding-left: 22px;
        padding-right: 22px;
    }

    html.desktop-webapp .giveaways-hero {
        margin-top: 24px;
        border-radius: 38px;
    }

    html.desktop-webapp .giveaway-card.featured {
        grid-template-columns: minmax(420px,.95fr) minmax(470px,1.05fr);
    }

    html.desktop-webapp .giveaway-card.featured .giveaway-visual {
        min-height: 620px;
    }

    html.desktop-webapp .giveaway-stats > div {
        padding: 12px;
    }
}

/* ==========================================================
   V6 · FINAL FRONTEND POLISH
   ========================================================== */

/* Catalog: compact, starts immediately below the app header. */
[data-view="catalog"] .page-title {
    padding: 12px 18px 10px;
    margin-bottom: 6px;
}

[data-view="catalog"] .page-title h1 {
    margin: 2px 0 5px;
    font-size: clamp(36px, 10vw, 48px);
}

.catalog-back-row[hidden] {
    display: none !important;
}

.catalog-back-row {
    min-height: 0;
    margin: 6px 18px 8px;
}

.catalog-filterbar {
    width: min(calc(100% - 36px), 760px);
    margin: 8px 18px 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
}

.catalog-filterbar select,
.catalog-filterbar .catalog-clear {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 15px;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.catalog-filterbar select:focus {
    border-color: rgba(105,78,255,.5);
    box-shadow: 0 0 0 3px rgba(105,78,255,.1);
}

.catalog-filterbar .catalog-clear {
    justify-self: start;
    max-width: 190px;
}

@media (min-width: 700px) {
    .catalog-filterbar {
        grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
        width: min(calc(100% - 36px), 920px);
    }
    .catalog-filterbar .catalog-clear { max-width: 150px; }
}

@media (max-width: 460px) {
    .catalog-filterbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .catalog-filterbar select:first-child { grid-column: auto; }
    .catalog-filterbar .catalog-clear { width: 100%; max-width: none; }
}

/* Product media: preserve the complete source image everywhere. */
.product-art {
    aspect-ratio: 1 / 1.02;
    height: auto !important;
    min-height: 0;
    padding: 8px;
}

.product-art img,
.product-card .product-art img,
.profile-product-strip .product-art img {
    position: relative;
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 94% !important;
    max-height: 94% !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 0 !important;
    transform: none;
}

.cart-row > .product-art img,
#detail #detailArt .product-art img {
    width: auto !important;
    height: auto !important;
    max-width: 94% !important;
    max-height: 94% !important;
    object-fit: contain !important;
    padding: 0 !important;
}

/* Two useful profile statistics only. */
.profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Consultation confirmation modal. */
body.modal-open { overflow: hidden; }
.consultation-confirm {
    z-index: 120;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    background: rgba(11,14,27,.48);
    backdrop-filter: blur(16px);
}
.consultation-confirm.open { display: flex; animation: fadeIn .18s ease both; }
.consultation-confirm-sheet {
    width: min(100%, 520px);
    max-height: min(84vh, 760px);
    overflow: auto;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.92);
    background: linear-gradient(155deg, rgba(250,250,255,.97), rgba(233,246,247,.96));
    box-shadow: 0 32px 90px rgba(30,34,68,.28);
    transform-origin: bottom center;
    animation: sheetIn .24s cubic-bezier(.2,.85,.25,1) both;
}
.consult-confirm-summary { margin: 14px 0; }
.consult-confirm-lines { display: grid; gap: 7px; }
.consult-confirm-lines > div {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 12px; border-radius: 16px;
    border: 1px solid rgba(17,22,39,.08); background: rgba(255,255,255,.58);
}
.consult-confirm-lines span { min-width: 0; }
.consult-confirm-lines b, .consult-confirm-lines small { display: block; }
.consult-confirm-lines small { margin-top: 3px; color: #788096; font-size: 10px; }
.consult-confirm-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px; padding: 13px 14px; border-radius: 17px;
    background: #171a2c; color: #fff;
}
.consultation-confirm textarea {
    width: 100%; min-height: 100px; resize: vertical;
    border: 1px solid rgba(17,22,39,.12); border-radius: 18px;
    background: rgba(255,255,255,.64); color: inherit; padding: 13px 14px; outline: none;
}
.consultation-confirm textarea:focus { border-color: rgba(105,78,255,.5); box-shadow: 0 0 0 3px rgba(105,78,255,.1); }
.my-inquiry-comment {
    margin-top: 10px; padding: 11px 12px; border-radius: 15px;
    background: rgba(105,78,255,.07); border: 1px solid rgba(105,78,255,.13);
}
.my-inquiry-comment small { color: #747c93; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.my-inquiry-comment p { margin: 5px 0 0; font-size: 12px; line-height: 1.45; }

/* Small tactile motion without turning the UI into a toy. */
.product-card,
.category,
.subcategory-card,
.line-card,
.profile-menu > button,
.profile-menu > a,
.giveaway-card,
.cta,
.ghost {
    transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
@media (hover:hover) {
    .product-card:hover,
    .category:hover,
    .subcategory-card:hover,
    .line-card:hover { transform: translateY(-3px); }
}
.cta:active,
.ghost:active,
.profile-menu > button:active,
.profile-menu > a:active { transform: scale(.975); }

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes sheetIn { from { opacity:0; transform: translateY(24px) scale(.98) } to { opacity:1; transform:none } }

html[data-tg-scheme="dark"] .consultation-confirm-sheet {
    border-color: rgba(255,255,255,.1);
    background: linear-gradient(155deg, rgba(25,29,44,.98), rgba(18,38,40,.98));
}
html[data-tg-scheme="dark"] .consult-confirm-lines > div,
html[data-tg-scheme="dark"] .consultation-confirm textarea {
    background: rgba(255,255,255,.045);
    border-color: rgba(255,255,255,.09);
}

@media (prefers-reduced-motion: reduce) {
    .consultation-confirm.open,
    .consultation-confirm-sheet,
    .product-card,
    .category,
    .subcategory-card,
    .line-card,
    .cta,
    .ghost { animation: none !important; transition: none !important; }
}
.consult-comment-field { display:grid;gap:7px;margin-top:12px; }
.consult-comment-field > span { font-size:11px;font-weight:900;color:#4f5870; }
.consult-comment-field em { font-style:normal;font-weight:700;color:#8a91a3; }
.consult-confirm-actions { display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;margin-top:14px; }
.consult-confirm-actions .ghost,.consult-confirm-actions .cta { margin:0;min-height:48px; }
@media(max-width:420px){.consult-confirm-actions{grid-template-columns:1fr}.consult-confirm-actions .ghost{order:2}}
html[data-tg-scheme="dark"] .consult-comment-field > span{color:#d6dbea}

/* ==========================================================
   V6.1 — LARGE CATALOG PERFORMANCE + DARK THEME POLISH
   ========================================================== */

.catalog-load-state {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 4px;
    color: #697188;
    font-size: 12px;
    font-weight: 850;
}

.catalog-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(104, 78, 255, .16);
    border-top-color: #7257ff;
    animation: catalog-spin .7s linear infinite;
}

.catalog-load-more {
    display: block;
    width: min(100%, 280px);
    min-height: 46px;
    margin: 14px auto 6px;
    padding: 0 18px;
    border: 1px solid rgba(30, 38, 66, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .62);
    color: #171b2e;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(61, 68, 110, .08);
}

.catalog-load-more:active { transform: scale(.98); }
.catalog-sentinel { width: 100%; height: 2px; }

@keyframes catalog-spin { to { transform: rotate(360deg); } }

/* A calmer, higher-contrast Telegram dark palette. */
html[data-tg-scheme="dark"],
html[data-tg-scheme="dark"] body {
    background:
        radial-gradient(circle at 10% -10%, rgba(110, 82, 255, .18), transparent 34%),
        radial-gradient(circle at 100% 35%, rgba(42, 214, 176, .10), transparent 32%),
        #070b12;
    color: #f7f8fc;
}

html[data-tg-scheme="dark"] .ambient i:nth-child(1) {
    background: #7657ff;
    opacity: .23;
}
html[data-tg-scheme="dark"] .ambient i:nth-child(2) {
    background: #35d7b5;
    opacity: .15;
}
html[data-tg-scheme="dark"] .ambient i:nth-child(3) {
    background: #5985ff;
    opacity: .12;
}

html[data-tg-scheme="dark"] .app-shell {
    background: rgba(7, 11, 18, .72);
    box-shadow: 0 0 90px rgba(0, 0, 0, .34);
}

html[data-tg-scheme="dark"] .brandbar {
    background: rgba(9, 14, 24, .88);
    border-color: rgba(149, 164, 194, .12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

html[data-tg-scheme="dark"] .brand-mark {
    background: linear-gradient(145deg, #8b6cff, #5b3de8 58%, #3158cf);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 26px rgba(88, 62, 220, .32);
}

html[data-tg-scheme="dark"] .page-title h1,
html[data-tg-scheme="dark"] .section-head h2,
html[data-tg-scheme="dark"] .product-copy h3,
html[data-tg-scheme="dark"] .subcategory-copy h3,
html[data-tg-scheme="dark"] .profile-card h2,
html[data-tg-scheme="dark"] .profile-menu b {
    color: #f8f9fd;
}

html[data-tg-scheme="dark"] .page-title p,
html[data-tg-scheme="dark"] .section-head > button,
html[data-tg-scheme="dark"] .product-copy small,
html[data-tg-scheme="dark"] .card-foot em,
html[data-tg-scheme="dark"] .summary > div span,
html[data-tg-scheme="dark"] .summary > small,
html[data-tg-scheme="dark"] .profile-card p,
html[data-tg-scheme="dark"] .profile-card small,
html[data-tg-scheme="dark"] .profile-menu small,
html[data-tg-scheme="dark"] .empty,
html[data-tg-scheme="dark"] .catalog-load-state {
    color: #97a4ba;
}

html[data-tg-scheme="dark"] .searchbox,
html[data-tg-scheme="dark"] .catalog-filterbar select,
html[data-tg-scheme="dark"] .chip,
html[data-tg-scheme="dark"] .ghost,
html[data-tg-scheme="dark"] .age-pill {
    background: rgba(16, 24, 38, .92);
    border-color: rgba(126, 146, 180, .18);
    color: #eef2f8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

html[data-tg-scheme="dark"] .searchbox:focus-within,
html[data-tg-scheme="dark"] .catalog-filterbar select:focus {
    border-color: rgba(132, 104, 255, .68);
    box-shadow: 0 0 0 3px rgba(112, 82, 255, .12), 0 12px 30px rgba(0,0,0,.18);
}

html[data-tg-scheme="dark"] .searchbox input,
html[data-tg-scheme="dark"] .catalog-filterbar select {
    color: #f4f7fb;
}

html[data-tg-scheme="dark"] .searchbox input::placeholder {
    color: #77869e;
}

html[data-tg-scheme="dark"] .category,
html[data-tg-scheme="dark"] .subcategory-card,
html[data-tg-scheme="dark"] .line-card,
html[data-tg-scheme="dark"] .product-card,
html[data-tg-scheme="dark"] .cart-row,
html[data-tg-scheme="dark"] .summary,
html[data-tg-scheme="dark"] .profile-card,
html[data-tg-scheme="dark"] .profile-menu button,
html[data-tg-scheme="dark"] .profile-menu a {
    background: linear-gradient(155deg, rgba(19, 28, 44, .96), rgba(12, 19, 31, .94));
    border-color: rgba(124, 145, 179, .15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255,255,255,.025);
}

html[data-tg-scheme="dark"] .product-art,
html[data-tg-scheme="dark"] .subcategory-media {
    background:
        radial-gradient(circle at 50% 30%, rgba(117, 86, 255, .10), transparent 42%),
        linear-gradient(145deg, #0d1421, #101b2b);
    border-color: rgba(125, 145, 180, .10);
}

html[data-tg-scheme="dark"] .product-art i {
    background: rgba(8, 13, 22, .82);
    color: #b8c4d8;
    border-color: rgba(137, 155, 187, .16);
    backdrop-filter: blur(12px);
}

html[data-tg-scheme="dark"] .save {
    background: rgba(9, 14, 23, .84);
    border-color: rgba(145, 163, 194, .18);
    color: #e7ebf3;
    box-shadow: 0 8px 22px rgba(0,0,0,.22);
}

html[data-tg-scheme="dark"] .save.on {
    background: rgba(112, 82, 255, .20);
    border-color: rgba(137, 111, 255, .45);
    color: #b6a6ff;
}

html[data-tg-scheme="dark"] .bottom-nav {
    background: rgba(9, 14, 23, .92);
    border-color: rgba(130, 149, 181, .16);
    box-shadow: 0 18px 54px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.025);
}

html[data-tg-scheme="dark"] .bottom-nav button { color: #8998b0; }
html[data-tg-scheme="dark"] .bottom-nav button.active {
    background: linear-gradient(145deg, #8064ff, #6046ea);
    color: #fff;
    box-shadow: 0 8px 22px rgba(91, 64, 220, .28);
}

html[data-tg-scheme="dark"] .catalog-load-more {
    background: linear-gradient(145deg, rgba(24,34,52,.98), rgba(15,23,37,.98));
    border-color: rgba(129, 149, 184, .18);
    color: #eef2f8;
    box-shadow: 0 14px 34px rgba(0,0,0,.24);
}

html[data-tg-scheme="dark"] .catalog-spinner {
    border-color: rgba(144, 118, 255, .18);
    border-top-color: #9a83ff;
}

html[data-tg-scheme="dark"] .consultation-confirm-sheet {
    background: linear-gradient(155deg, #121b2a, #0b141e);
    border-color: rgba(130,149,181,.16);
    box-shadow: 0 34px 100px rgba(0,0,0,.52);
}

html[data-tg-scheme="dark"] .consult-confirm-lines > div,
html[data-tg-scheme="dark"] .consultation-confirm textarea {
    background: rgba(20, 30, 46, .78);
    border-color: rgba(129, 148, 180, .16);
}

html[data-tg-scheme="dark"] .consult-confirm-total {
    background: linear-gradient(145deg, #7e61ff, #573bd8);
}

@media (min-width: 900px) {
    html.desktop-webapp .catalog-load-more { max-width: 240px; }
}

/* V6.3 — line image inheritance + strength badge */
.card-strength-overlay {
  position:absolute;
  z-index:6;
  top:8px;
  left:9px;
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:5px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.72);
  background:rgba(20,24,39,.78);
  color:#fff;
  font-size:8px;
  font-weight:950;
  letter-spacing:.02em;
  box-shadow:0 7px 18px rgba(22,25,47,.18);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
#detail #detailArt .card-strength-overlay {
  top:12px;
  left:12px;
  min-height:30px;
  padding:7px 11px;
  font-size:10px;
}
html[data-tg-scheme="dark"] .card-strength-overlay {
  border-color:rgba(255,255,255,.18);
  background:rgba(7,11,18,.82);
}
