/* Portal v6: reference app area, excluding device status and home indicators. */
.superapp-portal {
    --tivka-navy: #061024; --tivka-green: #008d35; --tivka-muted: #697487;
    --portal-gutter: clamp(12px, 3.4vw, 18px); --superapp-bottom-nav-height: 70px;
    display:block; container-type: inline-size; width: min(100%, 560px); min-height: 100dvh;
    padding: env(safe-area-inset-top) var(--portal-gutter) calc(var(--superapp-bottom-nav-height) + env(safe-area-inset-bottom) + 14px);
    background: #fff; color: var(--tivka-navy); font-family: Arial, Helvetica, sans-serif;
}
.portal-symbols { position:absolute; pointer-events:none; }
.portal-icon { width:24px; height:24px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.portal-header { display:flex; align-items:center; gap:2.4cqw; min-height:10.5cqw; padding:.5cqw 0 1.7cqw; }
.portal-header a { color:inherit; text-decoration:none; }
.portal-brand { display:flex; flex:0 0 auto; align-items:center; gap:2cqw; font-size:5.3cqw; line-height:1; font-weight:900; letter-spacing:-.045em; }
.portal-brand svg { width:5.5cqw; height:7cqw; fill:#008e35; }.portal-brand svg circle { fill:white; }
.portal-address { display:flex; min-width:0; flex:1 1 auto; align-items:center; gap:1.3cqw; border-radius:99px; background:#f2f5f8; padding:2.5cqw; min-height:8.2cqw; }
.portal-address span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:2.85cqw; line-height:1.2; }
.portal-address>.portal-icon { width:3cqw; height:3.7cqw; }
.portal-address>.portal-down { margin-inline-start:auto; width:2.3cqw; height:2.3cqw; transform:rotate(90deg); }
.portal-header-action { display:grid; flex:0 0 auto; place-items:center; width:max(24px,5.2cqw); min-height:40px; }
.portal-header-action>.portal-icon { width:4.5cqw; height:4.9cqw; }
.portal-profile { display:grid; flex:0 0 auto; place-items:center; width:8cqw; height:8cqw; border-radius:50%; color:#008d35!important; background:#dcf6e8; }
.portal-profile>.portal-icon { width:4.7cqw; height:4.7cqw; }
.superapp-portal .superapp-service-grid { display:grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap:1.7cqw 1.9cqw; direction:inherit; }
.superapp-portal .superapp-service-grid,html[dir="rtl"] .superapp-portal .superapp-service-grid { grid-template-areas:none; }
.superapp-portal .superapp-service-card { position:relative; grid-area:auto; grid-column:span 5; min-width:0; min-height:0; height:38.9cqw; border:0; border-radius:3cqw; overflow:hidden; isolation:isolate; color:white; box-shadow:0 4px 8px rgba(12,92,112,.11), inset 0 0 0 1px rgba(255,255,255,.3); }
.superapp-portal .superapp-service-card::after { display:none; }
.superapp-portal .superapp-service-market { grid-column:span 6; height:46.3cqw; --card-accent:#009b45; background:linear-gradient(133deg,#009c3b 10%,#1abf64 58%,#92ecb4); }
.superapp-portal .superapp-service-restaurant { grid-column:span 4; height:46.3cqw; --card-accent:#f57608; background:linear-gradient(135deg,#ff9b3b,#ff7e21 63%,#ff8d3e); }
.superapp-portal .superapp-service-pickup { --card-accent:#5725df; background:linear-gradient(135deg,#b752ff,#9d4bfa 38%,#7761ff); }
.superapp-portal .superapp-service-trajet { --card-accent:#006d85; background:#08788f; }
.superapp-portal .superapp-service-taxi { height:33.3cqw; --card-accent:#0879f7; background:linear-gradient(130deg,#2081ff,#289cff 60%,#6fc7ff); }
.superapp-portal .superapp-service-services { height:33.3cqw; --card-accent:#006e71; background:linear-gradient(130deg,#079fa5,#04bea8 60%,#20d8b4); }
.portal-card-copy { position:relative; display:flex; flex-direction:column; align-items:flex-start; z-index:3; padding:2.75cqw 3.3cqw 0; text-align:start; }
.portal-card-copy strong { display:block; font-size:5.25cqw; font-weight:750; line-height:1.08; letter-spacing:-.035em; white-space:nowrap; }
.portal-card-copy small { display:block; font-size:2.8cqw; line-height:1.27; margin-top:.7cqw; max-width:30cqw; white-space:pre-line; }
.superapp-service-market .portal-card-copy small { max-width:29cqw; }
.superapp-service-restaurant .portal-card-copy { padding-inline:3.4cqw; }
.superapp-service-restaurant .portal-card-copy strong { font-size:4.8cqw; }
.superapp-service-restaurant .portal-card-copy small { max-width:26cqw; }
.superapp-service-pickup .portal-card-copy strong { font-size:4.85cqw; }
.superapp-service-pickup .portal-card-copy small { font-size:2.5cqw; max-width:28cqw; }
.superapp-service-trajet .portal-card-copy strong { font-size:4.6cqw; letter-spacing:-.04em; }
.superapp-service-trajet .portal-card-copy small { max-width:29cqw; font-size:2.75cqw; }
.superapp-service-taxi .portal-card-copy small { max-width:26cqw; }
.superapp-service-services .portal-card-copy small { max-width:25cqw; }
.portal-arrow { position:absolute; display:grid; z-index:4; top:3.3cqw; inset-inline-end:2.5cqw; place-items:center; width:6.7cqw; height:6.7cqw; border-radius:50%; background:rgba(0,0,0,.15); }
.portal-arrow .portal-icon { width:3.7cqw; height:3.7cqw; stroke-width:2.5; }
.portal-art { position:absolute; z-index:1; display:block; pointer-events:none; object-fit:contain; }
.portal-market-art { width:103%; height:73%; inset-inline-end:-1.5%; bottom:14%; object-position:bottom center; }
.portal-meal-art { width:109%; height:63%; inset-inline-end:-11%; bottom:12%; object-position:right bottom; }
.portal-parcel-art { width:59%; height:65%; inset-inline-end:0; bottom:3%; }
.portal-pickup-skyline { position:absolute; bottom:12%; inset-inline:0; width:100%; height:58%; opacity:.14; }
.portal-pickup-badge { margin-top:1cqw; padding:.25cqw 1.5cqw; border:1px solid #b7fa9c; border-radius:99px; background:linear-gradient(#05bc35,#00992a); box-shadow:inset 0 1px 3px #a5f589; color:white; font-size:2.9cqw; line-height:1.15; font-weight:650; font-style:normal; }
.portal-speed-lines { position:absolute; inset-inline-end:33%; bottom:32%; width:28%; height:1cqw; border-radius:100%; background:#ffdda2; box-shadow:0 2.2cqw 0 #ffd9b4, 0 4.4cqw 0 #ffebc9; filter:blur(1px); }
.superapp-portal .superapp-service-trajet>.portal-trajet-art { inset:0; width:100%; height:100%; object-fit:cover; object-position:center; mask-image:none; }
.superapp-service-trajet::before { position:absolute; z-index:2; content:""; inset:0; background:linear-gradient(180deg,rgba(0,66,87,.28),transparent 65%); pointer-events:none; }
.portal-trajet-pin { position:absolute; z-index:2; top:38%; inset-inline-end:35%; width:5.2cqw; height:7cqw; fill:white; }.portal-trajet-pin circle { fill:#65bcdf; }
.portal-taxi-scene { inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.portal-services-house { position:absolute; top:13%; inset-inline-end:5%; width:48%; height:61%; fill:none; stroke:#008f86; stroke-width:7; stroke-linejoin:round; stroke-linecap:round; opacity:.68; }
.portal-tools-art { width:56%; height:77%; inset-inline-end:1%; bottom:3%; object-position:bottom right; }
.portal-benefit { position:absolute; z-index:4; inset-inline-start:2.2cqw; bottom:1.8cqw; display:flex; align-items:center; gap:1.4cqw; max-width:77%; min-height:8.6cqw; padding:1.25cqw 2.1cqw; border-radius:3.5cqw; background:rgba(255,255,255,.88); color:var(--tivka-navy); font-size:2.1cqw; line-height:1.23; }
.portal-benefit .portal-icon { width:4.7cqw; height:5.6cqw; color:var(--card-accent); stroke-width:1.9; }.portal-benefit span { white-space:pre-line; }
.superapp-service-restaurant .portal-benefit { min-height:9.2cqw; bottom:2cqw; inset-inline-start:2cqw; max-width:79%; }
.superapp-service-pickup .portal-benefit { max-width:50%; color:#2819ba; }
.superapp-service-trajet .portal-benefit { background:rgba(72,172,183,.73); color:white; max-width:50%; }.superapp-service-trajet .portal-benefit .portal-icon { color:white; }
.superapp-service-taxi .portal-benefit { max-width:45%; }.superapp-service-services .portal-benefit { max-width:61%; }
.portal-market-categories { position:absolute; z-index:4; inset-inline:1.4cqw; bottom:1.25cqw; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); padding:1.7cqw .4cqw 1.4cqw; border-radius:3cqw; background:rgba(255,255,255,.96); }
.portal-category { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:.55cqw; min-width:0; text-align:center; padding:0 .2cqw; }
.portal-category+.portal-category { border-inline-start:1px solid #e6ecf2; }.portal-category>.portal-icon { width:4cqw; height:4.3cqw; stroke-width:2.4; }
.portal-category>span { color:#061024; font-size:1.55cqw; line-height:1.13; letter-spacing:-.055em; white-space:pre-line; }
.category-grocery { color:#009b3a; }.category-fruit{color:#f62d35}.category-appliance{color:#8553ff}.category-computer{color:#0083ff}.category-house{color:#ff9100}
.superapp-portal .superapp-current-activity { margin:4.4cqw 0 0; padding:0; scroll-margin-bottom:calc(var(--superapp-bottom-nav-height) + 20px); }
.portal-section-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 .8cqw; margin-bottom:2.1cqw; }
.superapp-portal .portal-section-heading h2 { margin:0; font-size:3.6cqw; font-weight:750; letter-spacing:-.025em; line-height:1.2; }
.portal-section-heading>a { display:flex; gap:1.3cqw; align-items:center; color:#657083; text-decoration:none; font-size:2.6cqw; white-space:nowrap; }.portal-section-heading .portal-icon { width:2.6cqw; height:2.6cqw; color:#07152c; }
.superapp-portal .superapp-activity-card { position:relative; display:flex; min-height:19.2cqw; gap:2.5cqw; padding:2cqw 3cqw; border:0; border-radius:3.2cqw; box-shadow:0 6px 12px rgba(53,73,87,.025); background:linear-gradient(120deg,#f4f6f9,#eff3f7); color:var(--tivka-navy); }
.superapp-portal .superapp-activity-empty { padding-inline-start:0; gap:0; }
.portal-empty-art { position:relative; display:block; align-self:stretch; flex:0 0 32%; min-height:15cqw; }.portal-empty-art img { position:absolute; width:125%; height:140%; bottom:-13%; inset-inline-start:-4%; object-fit:contain; }
.portal-empty-art>svg { position:absolute; inset-inline-start:23%; top:1cqw; width:4.2cqw; height:5.5cqw; fill:none; stroke:#008d35; stroke-width:2.5; stroke-linecap:round; }
.superapp-portal .superapp-activity-copy { flex:1; min-width:0; display:grid; gap:1cqw; }.superapp-portal .superapp-activity-copy strong { font-size:2.65cqw; line-height:1.25; font-weight:700; letter-spacing:-.03em; overflow-wrap:anywhere; }
.superapp-portal .superapp-activity-copy small { font-size:2.6cqw; line-height:1.25; color:var(--tivka-muted); }
.superapp-portal .superapp-activity-copy :is(strong,small) { white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; }
.superapp-portal .superapp-activity-icon { display:grid; place-items:center; width:9cqw; height:9cqw; border-radius:2cqw; background:#e5f7ed; color:#008d35; }
.superapp-portal .superapp-activity-status { max-width:25%; white-space:normal; font-size:2.6cqw; }
.superapp-portal .superapp-bottom-nav { position:fixed; z-index:30; inset-inline:0; bottom:0; direction:inherit; width:min(100%,560px); margin-inline:auto; min-height:calc(var(--superapp-bottom-nav-height) + env(safe-area-inset-bottom)); padding:9px 10px calc(10px + env(safe-area-inset-bottom)); border:0; border-radius:18px 18px 0 0; background:rgba(255,255,255,.98); box-shadow:0 -4px 16px rgba(9,43,65,.035); }
.superapp-portal .superapp-bottom-item { min-height:46px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; font-size:12px; line-height:1.1; color:#667082; font-weight:400; }
.superapp-portal .superapp-bottom-item .tivka-icon { width:26px; height:26px; color:#273347; stroke-width:1.6; }
.superapp-portal .superapp-bottom-item.is-active { color:#008d35; font-weight:650; }.superapp-portal .superapp-bottom-item.is-active .tivka-icon { fill:#008d35; color:#008d35; }.superapp-portal .superapp-bottom-item.is-active .tivka-icon path+path { fill:white; stroke:white; }.superapp-portal .superapp-bottom-item.is-active::after { display:none; }
.superapp-portal :is(a,button):focus-visible { outline:3px solid #061024; outline-offset:3px; }
html[dir="rtl"] .superapp-portal { font-family:Cairo,Tahoma,sans-serif; }.portal-brand { direction:ltr; }
html[dir="rtl"] .portal-card-copy strong { font-size:4.9cqw; letter-spacing:0; line-height:1.35; }html[dir="rtl"] .portal-card-copy small { line-height:1.5; font-size:2.65cqw; }
html[dir="rtl"] .superapp-service-trajet .portal-card-copy strong { font-family:Arial,Helvetica,sans-serif; font-size:4.55cqw; }
html[dir="rtl"] .portal-arrow>.portal-icon,html[dir="rtl"] .portal-section-heading .portal-icon,html[dir="rtl"] .superapp-activity-chevron { transform:scaleX(-1); }
html[dir="rtl"] .portal-category>span { letter-spacing:0; font-size:1.5cqw; line-height:1.4; }html[dir="rtl"] .portal-benefit { font-size:2.05cqw; line-height:1.4; }
html[dir="rtl"] .superapp-portal .superapp-activity-copy :is(strong,small) { letter-spacing:0; line-height:1.65; }
@media (max-width:380px) { .portal-header { gap:2cqw; }.portal-address { padding-inline:1.6cqw; }.portal-header-action { min-height:36px; }.superapp-portal .superapp-bottom-item { font-size:11px; } }
@media (prefers-reduced-motion:reduce) { .superapp-portal .superapp-service-card { transition:none; } }
