/* MyiShop — a dark, compact catalogue built around the original app icons. */
:root {
  color-scheme:dark;
  --bg:#0b0d12;
  --paper:#151922;
  --ink:#f3f5fa;
  --muted:#a5aebd;
  --line:#303847;
  --accent:#90b0ff;
  --accent-dark:#2852b0;
  --accent-soft:#1b2948;
  --pale:#202634;
  --success:#8fdab7;
  --success-bg:#16372c;
  --amber:#edca85;
  --amber-bg:#362c18;
  --red:#ffaca9;
  --red-bg:#3b2226;
  --shadow:0 10px 32px #19202b08;
  --focus:#b2c7ff;
  --radius:18px;
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; background:var(--bg); color:var(--ink); font:17px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
button,input { font:inherit; touch-action:manipulation; outline-offset:4px; }
button { cursor:pointer; border:0; }
a,summary { touch-action:manipulation; outline-offset:4px; }
a { color:var(--accent); text-underline-offset:3px; }
button:disabled { cursor:default; opacity:.5; }
:where(button,a,input,summary):focus-visible { outline:3px solid var(--focus); }
p,h1,h2,h3 { margin:0; }
h1 { font-size:44px; line-height:1.12; letter-spacing:-.045em; font-weight:720; }
h2 { font-size:28px; line-height:1.2; letter-spacing:-.035em; font-weight:700; }
h3 { font-size:21px; line-height:1.3; letter-spacing:-.025em; font-weight:650; }
img { display:block; }
svg { pointer-events:none; }
.icon { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
[hidden] { display:none!important; }
.skip-link { position:fixed; left:16px; top:-80px; z-index:200; background:var(--paper); padding:14px 18px; border-radius:12px; }
.skip-link:focus { top:16px; }
.muted { color:var(--muted); }
.shell { max-width:1280px; margin:0 auto; padding:0 40px; }

/* Identity and navigation stay quiet so the catalogue has the first read. */
.topbar { min-height:92px; display:flex; align-items:center; justify-content:space-between; gap:28px; border-bottom:1px solid var(--line); min-width:0; }
.brand { display:inline-flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); background:none; padding:0; white-space:nowrap; min-height:48px; }
.brand-mark { width:39px; height:39px; background:#315fc6; color:#fff; border-radius:12px; display:grid; place-items:center; font-size:27px; line-height:1; letter-spacing:-.12em; padding-right:3px; font-weight:800; }
.brand-name { font-size:24px; font-weight:750; letter-spacing:-.055em; }
.brand-name span { font-weight:500; }
.main-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; gap:26px; min-width:0; align-self:stretch; }
.nav-link { position:relative; display:flex; align-items:center; justify-content:center; gap:4px; font-size:15px; color:var(--muted); background:transparent; padding:18px 0; min-height:48px; white-space:nowrap; font-weight:550; line-height:1.4; }
.nav-link[aria-current=page] { color:var(--ink); }
.nav-link[aria-current=page]:after { content:""; position:absolute; bottom:-1px; left:0; right:0; height:3px; border-radius:3px 3px 0 0; background:var(--accent); }
.nav-count { font-size:12px; border-radius:20px; display:inline-flex; flex:none; align-items:center; justify-content:center; min-width:22px; height:22px; background:var(--accent-soft); color:var(--accent); margin-left:0; padding:0 6px; }
.account { display:flex; align-items:center; gap:9px; min-height:44px; color:var(--ink); font-size:14px; line-height:1.35; background:var(--paper); border:1px solid var(--line); padding:10px 14px; border-radius:12px; max-width:238px; flex:none; }
.account[href] { text-decoration:none; }
.account span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.account .icon { width:19px; height:19px; }
.account.logged { padding:6px 12px 6px 7px; }
.account.logged .avatar { width:30px; height:30px; border-radius:8px; background:var(--accent-soft); display:grid; place-items:center; font-size:14px; font-weight:650; color:var(--accent); flex:none; }
.account-title { max-width:145px; }
.account-label { display:none; }
.demo-bar { padding:9px 24px; text-align:center; font-size:13px; background:#1a2841; color:#cad9f5; border-bottom:1px solid #303e58; display:flex; gap:7px; align-items:center; justify-content:center; flex-wrap:wrap; }
.demo-bar span:last-child { color:#aabddc; }
.demo-dot { height:6px; width:6px; background:#527dc1; border-radius:50%; flex:none; }
.showcase-bar { flex-wrap:wrap; }

/* A compact introduction: real icons, direct language and a visible next step. */
.hero { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr); gap:52px; align-items:center; padding:42px 0 36px; }
.eyebrow { font-size:12px; text-transform:uppercase; letter-spacing:.09em; color:var(--muted); font-weight:650; display:flex; align-items:center; gap:7px; margin-bottom:14px; line-height:1.5; }
.eyebrow .icon { width:17px; height:17px; }
.hero h1 { font-size:52px; line-height:1.06; letter-spacing:-.055em; max-width:650px; }
.hero h1 em { font-style:normal; color:var(--accent); }
.hero-copy { max-width:560px; color:var(--muted); font-size:17px; line-height:1.6; margin-top:18px; }
.hero-benefits { display:flex; gap:10px 20px; margin-top:20px; flex-wrap:wrap; }
.hero-benefits span { display:inline-flex; align-items:center; gap:7px; font-size:14px; color:var(--muted); }
.hero-benefits .icon { width:17px; height:17px; color:var(--accent); }
.hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; margin-top:22px; }
.hero-actions .button { min-height:46px; font-size:15px; padding:11px 16px; }
.hero-art { display:grid; grid-template-columns:repeat(3,68px); grid-auto-rows:68px; gap:17px; justify-content:center; align-content:center; min-height:260px; padding:10px 0; }
.hero-tile { border-radius:18px; box-shadow:0 5px 10px #19202b0b; background:var(--paper); overflow:hidden; }
.hero-tile:nth-child(3n+2) { transform:translateY(-9px); }
.hero-tile .app-icon { width:100%; height:100%; border-radius:18px; box-shadow:none; }
.journey { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:22px 0; margin:0 0 28px; list-style:none; border-top:1px solid var(--line); border-bottom:1px solid var(--line); gap:28px; }
.journey li { display:flex; gap:12px; align-items:flex-start; min-width:0; }
.step-number { width:30px; height:30px; display:grid; place-items:center; background:var(--accent-soft); border-radius:9px; font-size:12px; color:var(--accent); flex:none; font-weight:700; }
.journey strong { display:block; font-size:15px; font-weight:650; letter-spacing:-.015em; line-height:1.4; }
.journey p { font-size:13px; color:var(--muted); margin-top:4px; line-height:1.5; }

/* Catalog and installation card foundations. */
.workspace { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; align-items:start; }
.workspace>section { min-width:0; }
#main-content>.workspace:first-child { margin-top:28px; }
.catalog-intro { padding:30px 0 22px; }
.catalog-intro h1 { font-size:34px; }
.catalog-intro p { color:var(--muted); font-size:16px; line-height:1.6; margin-top:7px; max-width:680px; }
.catalog-kicker { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--accent); font-weight:650; }
.catalog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
.catalog-toolbar .section-head { margin:0; }
.section-head h2,.catalog-toolbar h1 { font-size:28px; }
.count { font-size:13px; color:var(--muted); white-space:nowrap; }
.search { position:relative; max-width:260px; flex:1; min-width:200px; }
.search>.icon { position:absolute; top:13px; left:14px; width:19px; height:19px; color:var(--muted); }
.search input { width:100%; height:46px; border:1px solid var(--line); background:var(--paper); border-radius:12px; padding:11px 14px 11px 41px; font-size:16px; color:var(--ink); appearance:none; }
.search input::placeholder { color:#9aa6b8; opacity:1; }
.catalog-grid,.library-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:stretch; }
.app-card { border:1px solid var(--line); background:var(--paper); border-radius:var(--radius); transition:border-color .16s,background .16s,box-shadow .16s; min-width:0; position:relative; display:flex; overflow:hidden; }
.app-card.selected { border-color:var(--accent); background:#19253d; box-shadow:0 0 0 1px var(--accent); }
.app-choice,.owned-app { display:flex; padding:18px; min-height:172px; width:100%; height:100%; flex-direction:column; position:relative; }
.app-choice { cursor:pointer; }
.owned-app { text-align:left; color:inherit; background:transparent; border-radius:var(--radius); }
.app-top { display:flex; align-items:center; gap:12px; min-width:0; }
.app-icon { width:54px; height:54px; flex:none; border-radius:14px; background:var(--pale); overflow:hidden; position:relative; display:grid; place-items:center; box-shadow:inset 0 0 0 1px #19202b0a; font-size:24px; font-weight:700; color:var(--muted); }
.app-icon img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.app-icon .initial { padding:5px; }
.app-text { min-width:0; flex:1; display:flex; align-items:baseline; gap:6px; width:100%; }
.app-title { display:block; min-width:0; font-size:20px; font-weight:650; line-height:1.25; letter-spacing:-.025em; overflow-wrap:anywhere; }
.app-text .app-title { flex:1; }
.app-version { font-size:12px; color:var(--muted); flex:none; white-space:nowrap; line-height:1.4; }
.app-description { display:block; font-size:14px; line-height:1.5; color:var(--muted); margin-top:12px; overflow-wrap:anywhere; }
.app-description:empty { display:none; }
.app-bottom { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:auto; width:100%; padding-top:14px; }
.app-price { font-size:23px; letter-spacing:-.04em; font-weight:650; line-height:1.25; }
.tiered-price { display:flex; flex-direction:column; gap:4px; min-width:0; }
.tiered-price .app-price { display:flex; align-items:baseline; gap:7px; font-size:22px; flex-wrap:wrap; }
.tiered-price small { font-size:12px; letter-spacing:0; font-weight:400; color:var(--muted); }
.price-followup { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.app-price-detail { font-size:13px; color:var(--muted); line-height:1.4; }
.discount-badge { display:inline-flex; align-self:flex-start; align-items:center; padding:2px 6px; border-radius:5px; background:var(--accent-soft); color:var(--accent); font-size:12px; line-height:1.5; font-weight:650; white-space:nowrap; letter-spacing:0; }
.choice-toggle { position:relative; display:block; width:44px; height:44px; flex:0 0 44px; }
.app-choice .choice-toggle input { position:absolute; inset:0; appearance:none; width:44px; height:44px; margin:0; border:0; border-radius:50%; background:var(--pale); cursor:pointer; z-index:1; }
.choice-toggle .select-symbol { position:absolute; inset:0; width:44px; height:44px; color:var(--accent); pointer-events:none; display:grid; place-items:center; z-index:2; }
.choice-toggle .select-symbol .icon { width:21px; height:21px; stroke-width:1.8; }
.app-choice input:checked { background:var(--accent); }
.app-choice input:checked+.select-symbol { color:#fff; }
.app-choice input:disabled { cursor:default; opacity:.5; }
.owned-app .app-bottom { font-size:15px; color:var(--accent); text-align:left; }
.owned-app .app-bottom .icon { width:20px; height:20px; }
.pricing-banner { margin:0 0 18px; padding:12px 15px; border-left:3px solid var(--accent); border-radius:0 9px 9px 0; background:var(--accent-soft); color:#bdcefa; font-size:14px; line-height:1.6; }

/* Reusable actions and the basket. */
.button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:48px; padding:12px 18px; border-radius:12px; background:#315fc6; color:#fff; font-size:16px; line-height:1.4; text-decoration:none; font-weight:600; transition:background .16s,color .16s; text-align:center; overflow-wrap:break-word; }
.button .icon { width:19px; height:19px; }
.button.secondary { background:var(--paper); color:var(--ink); border:1px solid var(--line); }
.button.soft { background:var(--accent-soft); color:var(--accent); }
.button.wide { width:100%; }
.button.small { min-height:44px; padding:10px 15px; font-size:15px; }
.button.link { background:none; color:var(--accent); padding-left:0; padding-right:0; justify-content:flex-start; font-weight:550; }
.button.danger { color:var(--red); background:var(--red-bg); }
.cart { position:sticky; top:24px; border:1px solid var(--line); border-radius:20px; padding:22px; background:var(--paper); box-shadow:var(--shadow); max-height:calc(100dvh - 48px); overflow:auto; }
.cart-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px; }
.cart-head h2 { font-size:22px; }
.cart-head .icon { width:20px; color:var(--muted); }
.cart-pricing { font-size:14px; line-height:1.6; color:var(--muted); margin-bottom:18px; }
.cart-empty { font-size:15px; line-height:1.6; color:var(--muted); padding:12px 0 24px; min-height:90px; }
.cart-list { margin:0 0 16px; padding:0; list-style:none; max-height:340px; overflow:auto; overscroll-behavior:contain; }
.cart-item { display:flex; gap:10px; align-items:center; padding:9px 0; }
.cart-item .app-icon { width:40px; height:40px; border-radius:11px; font-size:16px; }
.cart-item .app-title { font-size:15px; flex:1; }
.remove { width:44px; height:44px; display:grid; place-items:center; color:var(--muted); background:none; border-radius:50%; flex:0 0 44px; }
.remove .icon { width:18px; height:18px; }
.cart-total { display:flex; align-items:baseline; justify-content:space-between; gap:10px; border-top:1px solid var(--line); padding:18px 0; font-size:15px; }
.cart-total strong { font-size:30px; font-weight:700; letter-spacing:-.05em; white-space:nowrap; }
.cart-note { font-size:12px; color:var(--muted); line-height:1.6; text-align:center; margin-top:12px; }
.cart-note.demo { color:var(--amber); }
.cart-trust { margin-top:16px; display:flex; align-items:flex-start; gap:9px; padding-top:16px; border-top:1px solid var(--line); font-size:13px; line-height:1.55; color:var(--muted); }
.cart-trust .icon { width:18px; height:18px; color:var(--accent); margin-top:1px; }
.mobile-dock { display:none; }

/* Checkout and cabinet share the same spacing and feedback vocabulary. */
.page-head { padding:36px 0 28px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.page-head h1 { font-size:38px; overflow-wrap:break-word; }
.page-head p { font-size:16px; line-height:1.6; color:var(--muted); max-width:780px; margin-top:10px; }
.page-head .eyebrow { margin-bottom:10px; }
.page-head>div { min-width:0; }
.page-head>.button { flex:none; }
.page-content { max-width:100%; padding-bottom:12px; width:100%; }
.review-layout { display:grid; grid-template-columns:minmax(0,1fr) 332px; gap:28px; align-items:start; }
.review-panel { border:1px solid var(--line); border-radius:20px; background:var(--paper); padding:24px; }
.review-list { list-style:none; margin:0; padding:0; }
.review-item { display:grid; align-items:center; gap:16px; padding:20px 0; border-bottom:1px solid var(--line); grid-template-columns:58px minmax(0,1fr) auto; }
.review-item:first-child { padding-top:0; }
.review-item:last-child { border-bottom:0; padding-bottom:0; }
.review-item .app-icon { width:58px; height:58px; border-radius:15px; }
.review-item .app-title { font-size:20px; }
.review-price { text-align:right; display:flex; flex-direction:column; gap:4px; flex:none; min-width:116px; }
.review-price .app-price { font-size:22px; white-space:nowrap; }
.review-price small { font-size:12px; color:var(--muted); font-weight:400; white-space:nowrap; }
.review-price .discount-badge { align-self:flex-end; }
.review-info { display:flex; align-items:flex-start; gap:10px; color:var(--muted); font-size:14px; line-height:1.7; margin:22px 0; }
.review-info .icon { width:20px; color:var(--accent); margin-top:1px; height:20px; }
.review-cart .cart-total { padding-top:0; border:0; }
.terms { border-top:1px solid var(--line); margin-top:20px; padding-top:4px; }
.terms summary { cursor:pointer; min-height:48px; padding:14px 0; font-size:16px; font-weight:600; line-height:1.5; }
.terms-copy { font-size:14px; line-height:1.75; color:var(--muted); white-space:pre-line; margin:0 0 16px; }
.accept { display:grid; grid-template-columns:22px minmax(0,1fr); align-items:start; gap:10px; font-size:14px; line-height:22px; cursor:pointer; margin:16px 0; padding:11px 0; min-height:44px; }
.accept input { accent-color:var(--accent); width:22px; height:22px; margin:0; }
.accept>span { min-width:0; }
.accept .button.link { display:inline; min-height:0; padding:0; font:inherit; line-height:inherit; vertical-align:baseline; border-radius:3px; text-align:left; }

/* One order stays in focus from the Mini App to installation and support. */
.install-back.button { min-height:40px; padding:4px 0; font-size:14px; margin-bottom:4px; }
.install-order-meta { color:var(--muted); font-size:13px; margin:-12px 0 22px; }
.install-paid-note { max-width:680px; margin:0 auto 16px; padding:12px 16px; color:#91d6b5; background:#142c24; border:1px solid #305242; border-radius:14px; font-size:14px; }
.install-progress { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; max-width:680px; margin:0 auto 22px; padding:0; list-style:none; }
.install-progress li { min-width:0; padding-top:10px; border-top:3px solid var(--line); color:var(--muted); font-size:12px; }
.install-progress li.complete { border-color:#527c70; color:#99c9b5; }
.install-progress li.active { border-color:#91afff; color:#b9ccff; font-weight:650; }
.install-journey { display:grid; gap:16px; max-width:680px; margin:0 auto; }
.install-stage { border:1px solid var(--line); border-radius:20px; background:var(--paper); padding:20px; }
.install-stage.ready { border-color:#5478b8; }
.install-stage-title { display:flex; align-items:center; gap:10px; }
.install-stage-title h2 { font-size:20px; line-height:1.3; }
.install-step { display:grid; place-items:center; width:28px; height:28px; flex:none; border-radius:9px; background:var(--accent-soft); color:var(--accent); font-size:13px; font-weight:650; }
.install-step.complete { background:var(--success-bg); color:var(--success); }
.install-step .icon { width:17px; height:17px; }
.install-app-list { list-style:none; margin:16px 0 20px; padding:0; }
.install-app-row { display:flex; align-items:center; gap:12px; min-width:0; padding:12px 0; }
.install-app-row+.install-app-row { border-top:1px solid var(--line); }
.install-app-row .app-icon { width:46px; height:46px; border-radius:12px; }
.install-app-name { display:flex; flex-direction:column; min-width:0; flex:1; gap:3px; }
.install-app-name strong { font-size:16px; line-height:1.35; overflow-wrap:anywhere; }
.install-app-name span { color:var(--muted); font-size:12px; }
.install-app-row .button { min-height:44px; padding:8px 0 8px 4px; font-size:12px; flex:none; }
.install-done { display:flex; align-items:center; gap:4px; color:var(--success); font-size:12px; flex:none; }
.install-done .icon { width:15px; height:15px; }
.install-hint { color:var(--muted); font-size:13px; line-height:1.55; margin:12px 0; }
.install-stage>.install-hint:last-child { margin-bottom:0; text-align:center; }
.install-start { min-height:50px; }
.install-help.button { justify-content:center; font-size:14px; min-height:44px; }
.install-selection,.install-retry { margin-top:12px; font-size:14px; }
.install-selection summary,.install-retry summary { display:flex; align-items:center; justify-content:space-between; min-height:44px; cursor:pointer; color:var(--accent); }
.install-selection>div { display:grid; gap:2px; }
.install-selection label { display:flex; align-items:center; gap:10px; min-height:44px; }
.install-selection input { width:20px; height:20px; margin:0; flex:none; accent-color:var(--accent); }
.install-order-choice { display:grid; gap:12px; max-width:680px; margin:auto; }
.install-order-link { display:flex; align-items:center; justify-content:space-between; padding:18px; border:1px solid var(--line); border-radius:16px; color:var(--ink); background:var(--paper); text-align:left; }
.install-order-link>span { display:flex; flex-direction:column; gap:6px; }
.install-order-link small { color:var(--muted); }
@media(max-width:360px) { .install-stage { padding:16px; } .install-stage-title h2 { font-size:18px; } .install-app-row { gap:9px; } }
.info-note { font-size:14px; line-height:1.6; color:var(--muted); padding:14px 16px; background:var(--pale); border-radius:12px; }
.demo-note { background:var(--amber-bg); color:var(--amber); }
.showcase-note { margin-bottom:16px; }
.orders { display:grid; gap:20px; }
.order { border:1px solid var(--line); border-radius:20px; padding:24px; background:var(--paper); }
.order.current { border-color:#90afea; box-shadow:0 0 0 3px var(--accent-soft); }
.order-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:22px; min-width:0; }
.order-head>div:first-child { min-width:0; }
.order-head h2 { font-size:25px; line-height:1.3; overflow-wrap:anywhere; }
.order-head h3 { font-size:23px; line-height:1.3; overflow-wrap:anywhere; }
.order-date { display:block; color:var(--muted); font-size:14px; margin-top:6px; line-height:1.5; }
.order-badges { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; flex:none; max-width:42%; align-items:flex-start; }
.badge { display:inline-flex; gap:5px; align-items:center; border-radius:7px; padding:6px 9px; background:var(--pale); color:var(--muted); font-size:13px; font-weight:550; white-space:normal; text-align:center; line-height:1.4; }
.badge.success { background:var(--success-bg); color:var(--success); }
.badge.waiting { background:var(--amber-bg); color:var(--amber); }
.badge.warning { background:var(--red-bg); color:var(--red); }
.badge.gift { background:#2c2544; color:#c3b3f2; }
.badge .icon { width:15px; height:15px; }
.order-apps { display:grid; align-items:center; gap:12px 28px; margin-bottom:22px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.order-app-chip { display:flex; gap:12px; align-items:center; font-size:16px; color:var(--ink); max-width:100%; overflow-wrap:anywhere; line-height:1.4; min-width:0; }
.order-app-chip .app-icon { width:46px; height:46px; border-radius:12px; font-size:20px; }
.order-bottom { border-top:1px solid var(--line); padding-top:20px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.order-bottom .app-price { font-size:24px; white-space:nowrap; }
.actions { display:flex; flex-wrap:wrap; gap:10px; }
.order-bottom .actions { justify-content:flex-end; }
.order-actions { margin-top:16px; }
.order-actions .button { min-width:180px; }
.payment-note { margin-top:14px; font-size:14px; line-height:1.65; color:var(--muted); }
.payment-note.warning { color:var(--amber); background:var(--amber-bg); padding:12px 14px; border-radius:10px; }
.download-window { display:flex; align-items:flex-start; gap:8px; font-size:14px; color:var(--success); margin-top:8px; line-height:1.6; }
.download-window .icon { width:17px; height:17px; margin-top:3px; }
.download-window.expired { color:var(--amber); }
.library-group+.library-group { margin-top:40px; padding-top:32px; border-top:1px solid var(--line); }
.library-group .order-head { margin-bottom:18px; }
.library-card { border:1px solid var(--line); background:var(--paper); border-radius:var(--radius); padding:18px; display:flex; flex-direction:column; min-width:0; }
.library-card .app-top { margin-bottom:18px; }
.library-card.batch-selected { border-color:#aac2f2; }
.library-actions { display:grid; gap:9px; margin-top:auto; grid-template-columns:1fr; }
.library-actions .button { min-height:46px; font-size:15px; padding:11px 14px; }
.library-actions .button.link { justify-content:center; }
.installed-mark { display:flex; align-items:center; justify-content:center; gap:7px; color:var(--success); font-size:14px; min-height:46px; line-height:1.5; padding:9px; text-align:center; }
.installed-mark .icon { width:17px; height:17px; }
.inline-note { font-size:14px; line-height:1.65; color:var(--muted); }
.activation-panel { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-top:24px; }
.activation-panel h3 { font-size:22px; }
.activation-panel p { margin-top:7px; font-size:15px; line-height:1.6; color:var(--muted); max-width:580px; }
.activation-panel .button { flex:none; }
.progress { display:flex; gap:10px; align-items:center; margin-top:20px; font-size:14px; color:var(--muted); line-height:1.6; }
.progress .icon { width:19px; color:var(--accent); height:19px; }
.batch-panel { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px 24px; padding:22px; margin:0 0 20px; background:var(--accent-soft); border:1px solid #344869; border-radius:18px; }
.batch-summary h3 { font-size:21px; }
.batch-summary p { font-size:15px; color:var(--muted); margin-top:7px; line-height:1.6; }
.batch-start { min-height:52px; max-width:100%; gap:10px; font-size:16px; }
.batch-count { display:inline-grid; place-items:center; min-width:26px; height:26px; border-radius:7px; background:#ffffff24; font-size:14px; padding:0 6px; flex:none; }
.batch-note { grid-column:1/-1; max-width:850px; font-size:13px; line-height:1.65; color:var(--muted); }
.batch-choice { display:flex; align-items:center; gap:10px; min-height:44px; margin:-6px 0 12px; font-size:14px; color:var(--muted); cursor:pointer; }
.batch-choice input { width:22px; height:22px; margin:0; accent-color:var(--accent); flex:none; cursor:pointer; }
.batch-choice input:checked+span { color:var(--accent); }
.batch-retry { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; padding-top:16px; border-top:1px solid #344869; }
.batch-retry p { font-size:14px; line-height:1.6; flex:1 1 240px; }
.batch-retry .button { flex:none; white-space:normal; }

/* States use visible text and an available recovery action, not color alone. */
.initial-loading { min-height:65vh; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:14px; }
.initial-loading h1 { font-size:28px; }
.initial-loading h1 span { font-weight:500; }
.initial-loading p { color:var(--muted); font-size:15px; }
.initial-loading .brand-mark { width:52px; height:52px; border-radius:16px; font-size:35px; }
.noscript { margin:30px; text-align:center; }
.notice { border:1px solid #344869; background:#18263f; border-radius:12px; padding:14px 17px; display:flex; align-items:flex-start; gap:10px; font-size:14px; margin:20px 0; }
.notice>.icon { width:20px; height:20px; color:var(--accent); margin-top:1px; }
.notice.error { border-color:#66522a; background:var(--amber-bg); color:var(--amber); }
.notice.error>.icon { color:var(--amber); }
.notice-copy { flex:1; min-width:0; line-height:1.6; overflow-wrap:anywhere; }
.notice .remove { flex:none; margin-top:-10px; margin-right:-9px; }
.empty { padding:56px 24px; text-align:center; border:1px dashed #445066; background:#151922; border-radius:18px; grid-column:1/-1; }
.empty-mark { width:48px; height:48px; border-radius:14px; background:var(--accent-soft); display:grid; place-items:center; color:var(--accent); margin:0 auto 16px; }
.empty-mark .icon { width:23px; height:23px; }
.empty h2 { font-size:27px; }
.empty p { max-width:480px; margin:10px auto 20px; font-size:16px; line-height:1.65; color:var(--muted); }
.notification-panel { border-left:2px solid #aac2ed; padding:12px 16px; font-size:14px; line-height:1.65; color:var(--muted); margin-top:18px; }
.loading-line { height:3px; background:linear-gradient(90deg,var(--accent-soft),var(--accent),var(--accent-soft)); background-size:200% 100%; animation:loading 1.5s ease-in-out infinite; }
.help { scroll-margin-top:24px; margin-top:36px; padding:12px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.help summary { cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:48px; font-size:16px; font-weight:600; list-style:none; line-height:1.5; }
.help summary::-webkit-details-marker { display:none; }
.help summary .icon { width:19px; color:var(--muted); height:19px; transition:transform .16s; }
.help[open] summary .icon { transform:rotate(180deg); }
.help ol { max-width:850px; margin:14px 0 0; padding-left:24px; font-size:15px; line-height:1.75; color:var(--muted); }
.help li { padding:6px 0; }
.help .inline-note { margin:12px 0 8px; }
.footer { display:flex; align-items:center; justify-content:space-between; gap:12px 24px; padding:24px 0 30px; margin-top:36px; border-top:1px solid var(--line); font-size:14px; color:var(--muted); flex-wrap:wrap; }
.footer-support { display:flex; align-items:center; gap:8px; text-decoration:none; font-size:15px; color:var(--ink); min-height:44px; }
.footer-support .icon { width:19px; height:19px; }
.footer-brand { font-size:18px; color:var(--ink); font-weight:650; letter-spacing:-.04em; }
.footer-note { text-align:right; font-size:13px; line-height:1.6; }
.footer-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px 24px; flex-basis:100%; padding-top:16px; border-top:1px solid var(--line); }
.footer-nav a { display:flex; align-items:center; min-height:44px; font-size:13px; line-height:1.5; color:var(--muted); text-decoration:none; overflow-wrap:break-word; }
.footer-nav a:focus-visible { border-radius:4px; }
@keyframes loading { to { background-position:-200% 0; } }
@media (hover:hover) {
  .nav-link:hover,.footer-nav a:hover,.footer-support:hover { color:var(--accent); }
  .account:hover,.button.secondary:hover:not(:disabled),.remove:hover { background:var(--pale); }
  .app-card:not(.selected):hover { border-color:#627ca7; box-shadow:0 4px 16px #19202b06; }
  .button:hover:not(:disabled) { background:var(--accent-dark); }
  .button.soft:hover:not(:disabled) { background:#24385b; }
  .button.link:hover { background:none; color:var(--accent-dark); }
  .button.danger:hover:not(:disabled) { background:#573038; }
  .footer-nav a:hover { text-decoration:underline; }
}

/* Tablet: preserve card width and move only the basket into a purchase dock. */
@media (max-width:1080px) {
  .shell { padding:0 28px; }
  .topbar { gap:20px; }
  .main-nav { gap:20px; }
  .account { max-width:210px; }
  .hero { grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr); gap:30px; }
  .hero h1 { font-size:46px; }
  .hero-art { grid-template-columns:repeat(3,60px); grid-auto-rows:60px; gap:15px; }
  .workspace { grid-template-columns:minmax(0,1fr); gap:0; }
  .workspace>.cart { display:none; }
  .review-layout { grid-template-columns:minmax(0,1fr) 300px; gap:22px; }
  .review-item { grid-template-columns:50px minmax(0,1fr); gap:10px 14px; }
  .review-item .app-icon { width:50px; height:50px; border-radius:13px; }
  .review-price { grid-column:2; text-align:left; align-items:flex-start; min-width:0; }
  .review-price .discount-badge { align-self:flex-start; }
  .mobile-dock { display:flex; align-items:center; justify-content:space-between; gap:24px; position:fixed; z-index:20; left:0; right:0; bottom:0; padding:13px max(28px,calc((100vw - 1024px)/2)) calc(13px + env(safe-area-inset-bottom)); background:#11151ff5; backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-top:1px solid var(--line); box-shadow:0 -4px 22px #19202b06; }
  .mobile-dock>div { min-width:0; flex:1; }
  .mobile-dock strong { display:block; font-size:25px; line-height:1.2; letter-spacing:-.04em; font-weight:700; }
  .mobile-dock span { display:block; font-size:13px; line-height:1.4; color:var(--muted); margin-top:3px; }
  .mobile-dock .button { min-width:200px; }
  .with-dock { padding-bottom:calc(106px + env(safe-area-inset-bottom)); }
}
@media (max-width:760px) {
  .shell { padding:0 20px; }
  .topbar { min-height:0; padding:10px 0 0; flex-wrap:wrap; gap:4px 12px; }
  .brand { order:0; min-height:44px; }
  .account { order:1; margin-left:auto; max-width:54%; font-size:13px; padding:8px 10px; }
  .account span { white-space:normal; }
  .account .account-title { white-space:nowrap; max-width:130px; }
  .main-nav { order:2; width:100%; gap:8px; justify-content:stretch; }
  .nav-link { flex:1; font-size:14px; min-height:44px; padding:7px 4px; line-height:20px; white-space:normal; }
  .nav-count { margin-left:3px; min-width:20px; height:19px; padding:0 5px; vertical-align:middle; white-space:nowrap; }
  .hero { display:block; padding:24px 0 20px; }
  .hero h1 { font-size:36px; line-height:1.08; max-width:560px; }
  .hero .eyebrow { margin-bottom:10px; }
  .hero-copy { font-size:16px; margin-top:12px; line-height:1.5; }
  .hero-art { display:none; }
  .hero-benefits { gap:8px 16px; margin-top:12px; }
  .hero-benefits span { font-size:13px; }
  .hero-actions { margin-top:12px; }
  .hero-actions .button { min-height:44px; padding:10px 14px; }
  .journey { gap:16px; padding:16px 0; margin-bottom:20px; }
  .journey li { display:block; }
  .step-number { width:26px; height:26px; border-radius:8px; margin-bottom:9px; }
  .journey strong { font-size:14px; }
  .journey p { font-size:12px; line-height:1.45; }
  .catalog-toolbar { flex-wrap:wrap; gap:14px; }
  .catalog-toolbar .section-head { width:100%; justify-content:space-between; }
  .search { min-width:0; max-width:none; flex-basis:100%; }
  .catalog-intro { padding:24px 0 18px; }
  .catalog-intro h1 { font-size:30px; }
  .catalog-intro p { font-size:15px; }
  .page-head { padding:28px 0 22px; gap:14px; flex-wrap:wrap; align-items:flex-start; }
  .page-head h1 { font-size:32px; }
  .page-head>div { flex:1 1 260px; }
  .page-head>.button { min-height:44px; }
  .review-layout { grid-template-columns:1fr; gap:20px; }
  .review-cart { position:static; max-height:none; overflow:visible; }
  .batch-panel { grid-template-columns:1fr; gap:14px; padding:20px; }
  .batch-start { width:100%; }
  .batch-retry .button { width:100%; }
  .activation-panel { flex-direction:column; align-items:flex-start; gap:18px; }
  .activation-panel .button { width:100%; }
  .order-head { flex-wrap:wrap; gap:12px; }
  .order-badges { max-width:100%; justify-content:flex-start; }
  .order-head h2 { font-size:23px; }
  .order-head h3 { font-size:21px; }
  .order-bottom .actions { width:100%; justify-content:flex-start; }
  .order-bottom .actions .button { flex:1 1 190px; }
  .footer-note { width:100%; text-align:left; }
  .footer-nav { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 24px; }
}
@media (max-width:640px) {
  .shell { padding:0 18px; }
  .hero { padding:20px 0; }
  .hero .eyebrow,.journey { display:none; }
  .catalog-grid,.library-grid { gap:10px; }
  .app-card,.library-card { border-radius:15px; }
  .app-choice,.owned-app { min-height:0; padding:13px; }
  .catalog-grid .app-top,.library-card .app-top { flex-direction:column; align-items:flex-start; gap:9px; }
  .catalog-grid .app-icon,.library-card .app-icon { width:50px; height:50px; border-radius:13px; }
  .catalog-grid .app-text,.library-card .app-text { flex-wrap:wrap; column-gap:6px; row-gap:2px; }
  .catalog-grid .app-title,.library-card .app-title { flex:0 0 auto; width:max-content; max-width:100%; font-size:18px; line-height:1.25; overflow-wrap:break-word; word-break:normal; }
  .catalog-grid .app-version,.library-card .app-version { flex:0 0 auto; font-size:11px; max-width:100%; white-space:nowrap; overflow-wrap:normal; margin-left:auto; }
  .catalog-grid .app-description { margin-top:6px; font-size:13px; line-height:1.4; }
  .catalog-grid .app-bottom { padding-top:11px; gap:0; }
  .catalog-grid .tiered-price .app-price { font-size:21px; gap:5px; }
  .catalog-grid .tiered-price small { font-size:12px; }
  .catalog-grid .app-price-detail { font-size:12px; }
  .catalog-grid .price-followup { gap:4px; }
  .catalog-grid .discount-badge { font-size:11px; padding:1px 4px; }
  .catalog-grid .choice-toggle { position:absolute; top:12px; right:9px; }
  .catalog-grid .owned-app .app-bottom { font-size:14px; gap:5px; line-height:1.4; }
  .library-card { padding:13px; }
  .library-card .app-top { margin-bottom:14px; }
  .library-actions { gap:8px; }
  .library-actions .button { min-height:44px; font-size:14px; padding:10px 6px; gap:4px; line-height:1.35; }
  .library-actions .button>.icon { display:none; }
  .library-card .installed-mark { font-size:13px; padding:6px 0; gap:5px; }
  .library-card .batch-choice { font-size:13px; line-height:1.35; gap:7px; margin:0 0 12px; }
  .library-card .batch-choice input { width:20px; height:20px; }
  .pricing-banner { padding:11px 13px; font-size:13px; margin-bottom:15px; }
  .review-panel,.order { padding:20px; }
  .review-item .app-text { gap:5px; }
  .review-item .app-title { font-size:18px; }
  .review-price small { white-space:normal; }
  .order-apps { grid-template-columns:1fr; }
  .order-actions .button { min-width:0; width:100%; }
  .order-bottom .actions .button { flex-basis:100%; }
  .mobile-dock { gap:14px; padding:12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .mobile-dock .button { min-width:0; width:49%; padding:12px 10px; font-size:15px; }
  .mobile-dock .button>.icon { display:none; }
  .mobile-dock span { font-size:12px; }
  .with-dock { padding-bottom:calc(112px + env(safe-area-inset-bottom)); }
  .notice { margin:16px 0; padding:12px 14px; font-size:13px; }
  .footer { margin-top:28px; }
  .empty { padding:40px 20px; }
  .empty h2 { font-size:25px; }
}
@media (max-width:380px) {
  .shell { padding:0 12px; }
  .brand { gap:8px; }
  .brand-mark { width:35px; height:35px; border-radius:10px; font-size:25px; }
  .brand-name { font-size:21px; }
  .account { max-width:52%; padding:8px; gap:6px; font-size:12px; }
  .account.logged .avatar { width:27px; height:27px; }
  .account .account-title { max-width:74px; }
  .account.logged .icon { display:none; }
  .main-nav { gap:4px; }
  .nav-link { font-size:13px; padding:8px 2px; }
  .hero h1 { font-size:33px; }
  .hero .eyebrow { font-size:11px; margin-bottom:11px; }
  .hero-benefits { gap:8px 12px; }
  .hero-actions { gap:8px; }
  .hero-actions .button { font-size:14px; padding:10px; gap:7px; }
  .hero-actions .button.link { padding-inline:0; }
  .journey { gap:10px; }
  .journey strong { font-size:13px; }
  .journey p { font-size:12px; }
  .section-head h2,.catalog-toolbar h1 { font-size:26px; }
  .catalog-grid,.library-grid { gap:8px; }
  .app-choice,.owned-app,.library-card { padding:10px; }
  .catalog-grid .app-text,.library-card .app-text { gap:4px; }
  .catalog-grid .app-icon,.library-card .app-icon { width:46px; height:46px; border-radius:12px; }
  .catalog-grid .choice-toggle { top:9px; right:5px; }
  .catalog-grid .tiered-price .app-price { font-size:20px; }
  .catalog-grid .app-price-detail { font-size:11px; }
  .catalog-grid .discount-badge { font-size:10px; }
  .page-head h1 { font-size:29px; }
  .review-panel,.order,.batch-panel { padding:16px; }
  .review-item { gap:9px 12px; }
  .mobile-dock { gap:10px; padding-left:12px; padding-right:12px; }
  .mobile-dock strong { font-size:23px; }
  .mobile-dock .button { font-size:14px; }
  .footer-nav { gap:6px 16px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*:before,*:after { animation:none!important; transition:none!important; }
}

/* Owner shortcut stays separate from customer navigation on narrow screens. */
.admin-toolbar { display:flex; justify-content:flex-end; padding-top:6px; }
.admin-toolbar a { display:flex; align-items:center; gap:8px; min-height:44px; color:var(--accent); font-size:14px; font-weight:600; text-decoration:none; }

/* Telegram content must remain clear of native chrome and bottom gestures. */
.telegram-miniapp body { padding-top:calc(var(--tg-safe-area-inset-top,0px) + var(--tg-content-safe-area-inset-top,0px)); padding-left:var(--tg-safe-area-inset-left,0px); padding-right:var(--tg-safe-area-inset-right,0px); padding-bottom:calc(var(--bottom-space) + 16px); }
.telegram-miniapp .mobile-dock { bottom:calc(var(--tg-safe-area-inset-bottom,0px) + var(--tg-content-safe-area-inset-bottom,0px)); }
.telegram-account { border-color:transparent; background:transparent; }
.safari-panel { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:20px; margin-bottom:24px; border:1px solid var(--line); border-radius:16px; background:var(--paper); }
.safari-panel h2 { font-size:20px; }
.safari-panel p { max-width:650px; margin-top:6px; color:var(--muted); font-size:14px; }
.safari-panel .button { flex:none; }
@media(max-width:640px) { .safari-panel { flex-direction:column; align-items:stretch; padding:16px; gap:14px; } }

/* Content-sized catalog cards: keep icons square and allow full titles to wrap. */
.catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.catalog-square { width:100%; border-radius:16px; min-height:0; }
.catalog-square .app-choice,.catalog-square .owned-app { display:grid; grid-template-rows:auto 1fr auto; padding:14px; min-height:0; height:auto; align-items:center; justify-items:center; gap:5px; text-align:center; }
.catalog-square .app-icon { width:32%; height:auto; min-width:26px; max-width:72px; aspect-ratio:1; border-radius:24%; }
.catalog-name { display:block; min-width:0; width:100%; min-height:2.4em; font-size:18px; line-height:1.2; font-weight:650; letter-spacing:-.02em; overflow-wrap:anywhere; }
.catalog-price { font-size:20px; font-weight:650; line-height:1.1; white-space:nowrap; letter-spacing:-.025em; }
.catalog-select { appearance:none; position:absolute; width:100%; height:100%; inset:0; padding:0; margin:0; border:0; opacity:0; cursor:pointer; }
.catalog-square:focus-within { outline:3px solid var(--focus); outline-offset:3px; }
.catalog-square.already-owned { border-color:var(--success); }
.catalog-square:has(.catalog-select:disabled) { opacity:.55; }
@media(max-width:640px) {
  .catalog-grid { gap:8px; }
  .catalog-square { border-radius:12px; }
  .catalog-square .app-choice,.catalog-square .owned-app { padding:7px 5px; gap:3px; }
  .catalog-square .app-icon { width:32%; min-width:26px; max-width:44px; }
  .catalog-name { font-size:14px; }
  .catalog-price { font-size:16px; }
}
@media(max-width:360px) {
  .catalog-grid { gap:6px; }
  .catalog-square .app-choice,.catalog-square .owned-app { padding:5px 3px; gap:2px; }
  .catalog-name { font-size:12px; }
  .catalog-price { font-size:14px; }
}

/* Catalog categories and quiet account shortcuts. */
.account-nav { display:flex; justify-content:flex-end; gap:24px; border-bottom:1px solid var(--line); }
.account-nav .nav-link { padding:12px 0; min-height:44px; }
.pricing-banner { padding:0; border:0; border-radius:0; background:none; color:var(--muted); font-size:13px; margin-bottom:16px; }
.codes-section { padding-top:28px; min-height:50vh; }
.codes-section .empty-state { padding:40px 20px; text-align:center; border:1px solid var(--line); background:var(--paper); border-radius:var(--radius); }
.codes-section .empty-state p { color:var(--muted); margin-top:10px; }
@media(max-width:640px) { .main-nav { gap:24px; } .account-nav { justify-content:flex-start; gap:24px; } .catalog-toolbar h1 { font-size:28px; } }

:root { --bottom-space:calc(72px + max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px)) + var(--tg-content-safe-area-inset-bottom,0px)); }
body { padding-bottom:calc(var(--bottom-space) + 16px); }
.bottom-nav { position:fixed; z-index:40; left:0; right:0; bottom:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; padding:8px max(12px,calc((100vw - 640px)/2)) calc(var(--bottom-space) - 64px); height:var(--bottom-space); background:#11151ff5; border-top:1px solid var(--line); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.bottom-nav-item { background:transparent; color:var(--muted); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; font-size:12px; line-height:1.2; min-height:52px; border-radius:12px; padding:5px 2px; }
.bottom-nav-item .icon { width:23px; height:23px; }
.bottom-nav-item[aria-current=page] { color:var(--accent); background:var(--accent-soft); }
.mobile-dock,.telegram-miniapp .mobile-dock { bottom:var(--bottom-space); padding-bottom:12px; }
.profile-section { padding-top:28px; }
.profile-card { max-width:560px; padding:16px; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); display:flex; flex-direction:column; gap:16px; }
.profile-avatar { display:grid; place-items:center; width:60px; height:60px; border-radius:18px; color:var(--accent); background:var(--accent-soft); }
.profile-avatar .icon { width:30px; height:30px; }
.profile-actions { display:flex; flex-direction:column; gap:10px; }

/* Codes and subscriptions: compact product rows. */
.subscription-list { list-style:none; padding:0; margin:0; border:1px solid var(--line); border-radius:18px; overflow:hidden; background:var(--paper); }
.subscription-row { display:flex; align-items:center; gap:16px; padding:18px 20px; min-height:84px; }
.subscription-row + .subscription-row { border-top:1px solid var(--line); }
.subscription-icon { width:48px; height:48px; flex:none; display:grid; place-items:center; border-radius:14px; color:#fff; }
.subscription-icon .icon { width:27px; height:27px; }
.subscription-icon.telegram,.subscription-icon.apple,.subscription-icon.chatgpt,.subscription-icon.claude { background:transparent; }
.subscription-icon img { width:100%; height:100%; object-fit:contain; }
.subscription-name { font-size:18px; line-height:1.3; font-weight:600; overflow-wrap:anywhere; }
@media(max-width:360px) { .subscription-row { padding:16px; gap:12px; } .subscription-name { font-size:17px; } }

/* Two equal segments and the shared catalog search. */
.topbar { border-bottom:0; min-height:76px; padding-bottom:10px; }
.main-nav { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; align-self:auto; padding:6px; border:1px solid #292c32; border-radius:18px; background:#111315; margin:12px 0 24px; }
.main-nav .nav-link { flex:none; min-width:0; min-height:48px; padding:10px 8px; color:#92959e; font-size:16px; line-height:1.3; font-weight:650; border-radius:13px; white-space:nowrap; }
.main-nav .nav-link[aria-current=page] { background:#ededee; color:#18191d; }
.main-nav .nav-link[aria-current=page]:after { display:none; }
.category-search { width:100%; max-width:none; min-width:0; margin-bottom:24px; }
.category-search input { height:52px; border-radius:16px; background:#14171c; border-color:#292c32; padding-left:48px; font-size:16px; }
.category-search>.icon { left:17px; top:16px; width:21px; height:21px; }
.category-search input::placeholder { color:#858b98; }
.codes-section { padding-top:0; }
.codes-section .page-head { padding-top:4px; }
.subscription-row:has(.subscription-link) { padding:0; }
.subscription-link { display:flex; align-items:center; width:100%; gap:16px; padding:18px 20px; background:transparent; color:var(--ink); text-align:left; }
.subscription-link>.icon { margin-left:auto; color:var(--muted); }
.subscription-link:hover { background:var(--pale); }
.subscription-no-results { padding:28px 20px; color:var(--muted); text-align:center; }
.premium-section { padding-top:20px; }
.premium-section>.button { padding-left:0; }
.premium-plans { border:0; padding:0; margin:0; display:grid; gap:12px; max-width:600px; }
.premium-plans legend { font-size:16px; color:var(--muted); margin-bottom:16px; }
.premium-plan { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px; min-height:72px; cursor:pointer; background:var(--paper); border:1px solid var(--line); border-radius:16px; font-size:18px; font-weight:600; }
.premium-plan:has(input:checked) { border-color:#ededee; background:#20242c; }
.premium-plan input { width:22px; height:22px; margin:0; accent-color:#ededee; flex:none; }
@media(max-width:360px) { .main-nav .nav-link { font-size:14px; padding:10px 4px; } .category-search input { font-size:15px; } .subscription-link { padding:16px; gap:12px; } }

.premium-plan-price { margin-left:auto; font-size:18px; white-space:nowrap; font-weight:650; }
@media(max-width:360px) { .premium-plan { padding:16px; gap:12px; font-size:16px; } .premium-plan-price { font-size:17px; } }

.gift-rate-note { color:var(--muted); font-size:13px; line-height:1.6; margin:-10px 0 24px; }

/* Original subscription artwork on consistent rounded-square tiles. */
.subscription-icon { width:50px; height:50px; padding:9px; border-radius:14px; overflow:hidden; border:1px solid #ffffff12; box-shadow:inset 0 1px 0 #ffffff0a,0 3px 8px #00000020; }
.subscription-icon.telegram { background:linear-gradient(145deg,#332546,#201b36); }
.subscription-icon.apple { background:#f6f6f4; border-color:#ffffff28; }
.subscription-icon.chatgpt { background:#0d0d0d; border-color:#ffffff20; }
.subscription-icon.claude { background:#f3e9de; border-color:#ffffff28; }
.subscription-icon img { display:block; width:100%; height:100%; object-fit:contain; }

.subscription-icon.chatgpt { padding:5px; }
.subscription-icon.apple { background:#0d0d0d; border-color:#ffffff20; }
.subscription-icon.apple .icon { width:29px; height:34px; fill:#fff; stroke:none; }

/* Keep the complete Apple silhouette centered within the fixed square tile. */
.subscription-icon.apple { display:flex; align-items:center; justify-content:center; padding:7px; }
.subscription-icon.apple .icon { display:block; width:26px; height:30px; flex:none; }

/* Each subscription is its own card, with clear space between services. */
.subscription-list { display:grid; gap:12px; border:0; background:transparent; border-radius:0; overflow:visible; }
.subscription-row { border:1px solid var(--line); border-radius:18px; background:var(--paper); overflow:hidden; }
.subscription-row + .subscription-row { border-top:1px solid var(--line); }

.subscription-copy { display:flex; flex-direction:column; gap:5px; min-width:0; }
.subscription-subtitle { font-size:13px; line-height:1.4; font-weight:450; color:var(--muted); }

/* Circular service icons, retaining the original artwork. */
.subscription-icon { border-radius:50%; }
.subscription-icon.telegram { padding:0; background:#2aabee; border-color:transparent; }
.subscription-icon.telegram img { object-fit:cover; }
.subscription-icon.telegram { display:flex; align-items:center; justify-content:center; border:0; box-shadow:none; }
.subscription-icon.telegram img { width:118%; height:118%; max-width:none; flex:none; }

/* Optical alignment and original white service marks. */
.subscription-icon.apple .icon { transform:translate(-.5px,-2px); }
.subscription-icon.chatgpt { display:flex; align-items:center; justify-content:center; padding:0; }
.subscription-icon.chatgpt .icon { width:34px; height:34px; flex:none; fill:#fff; stroke:none; }
.subscription-icon.claude { padding:0; background:#d77757; border-color:transparent; }
.subscription-icon.claude img { object-fit:cover; }

.subscription-icon.chatgpt { background:#f5f5f2; border-color:#ffffff28; }
.subscription-icon.chatgpt .icon,.subscription-icon.chatgpt .icon path { fill:#171717; stroke:none; }

.subscription-icon.chatgpt .icon { width:38px; height:38px; }

.product-description { color:var(--muted); line-height:1.65; max-width:650px; font-size:15px; margin:-10px 0 24px; }
button.premium-plan { width:100%; color:var(--ink); text-align:left; }
button.premium-plan>.icon { color:var(--muted); width:20px; height:20px; }
button.premium-plan:hover:not(:disabled) { border-color:var(--accent); background:var(--pale); }
.product-checkout { padding:0; width:min(460px,calc(100% - 28px)); max-height:calc(100dvh - 32px); overflow:auto; background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:24px; box-shadow:0 24px 100px #00000090; font:inherit; }
.product-checkout::backdrop { background:#000000b0; backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); }
.product-modal-content { display:flex; flex-direction:column; gap:20px; padding:24px; }
.product-modal-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.product-modal-header h2 { font-size:24px; }
.product-modal-header .remove { display:grid; place-items:center; width:36px; height:36px; flex:none; padding:8px; border-radius:50%; background:var(--pale); color:var(--muted); }
.product-modal-product { display:flex; align-items:center; gap:14px; padding:16px; border:1px solid var(--line); border-radius:16px; background:var(--bg); min-width:0; }
.product-modal-product>div { min-width:0; }
.product-modal-product .subscription-icon { width:46px; height:46px; }
.product-modal-product h3 { font-size:19px; overflow-wrap:anywhere; }
.product-modal-product p { margin-top:4px; color:var(--muted); font-size:14px; }
.product-modal-description { color:var(--muted); font-size:13px; line-height:1.6; text-align:center; }
.product-modal-total { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:2px 0 20px; border-bottom:1px solid var(--line); }
.product-modal-total>div { display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.product-modal-total .product-modal-price { align-items:flex-end; }
.product-modal-total strong { font-size:30px; line-height:1.2; letter-spacing:-.04em; white-space:nowrap; }
.product-modal-total del { font-size:14px; color:var(--muted); }
.product-modal-discount { font-size:12px; color:var(--accent); background:var(--accent-soft); border-radius:6px; padding:2px 7px; white-space:nowrap; }
.product-modal-actions { display:flex; flex-direction:column; gap:10px; }
.product-modal-actions .accept { margin:0; padding:4px 0 12px; min-height:38px; }
.product-modal-actions .accept>span { white-space:nowrap; }
.product-modal-actions>.button:not(.link) { min-height:50px; }
.product-modal-status { font-size:13px; line-height:1.5; color:var(--muted); text-align:center; }
.product-modal-status[role=alert] { color:var(--red); text-align:left; padding:12px; border-radius:12px; background:var(--red-bg); }
.product-modal-provider { display:flex; align-items:center; justify-content:center; gap:6px; color:var(--muted); font-size:12px; }
.product-modal-provider .icon { width:15px; height:15px; }
.product-modal-back.button.link { justify-content:center; color:var(--muted); min-height:44px; padding:8px; }
html:has(.product-checkout[open]) { overflow:hidden; }

/* Reference catalogue: one summary, three quiet tiles, clear selection rings. */
.catalog-workspace { display:block; max-width:900px; margin-left:auto; margin-right:auto; }
.catalog-workspace .catalog-toolbar { margin-bottom:18px; }
.catalog-workspace .section-head { align-items:center; }
.catalog-workspace .count { white-space:nowrap; }
.catalog-basket { padding:22px; margin-bottom:18px; border:1px solid #363940; border-radius:22px; background:#1c1e24; }
.catalog-basket h2 { font-size:23px; line-height:1.3; letter-spacing:-.025em; }
.basket-discounts { margin-top:8px; color:#bbc0c9; font-size:15px; line-height:1.5; }
.basket-access { color:var(--muted); font-size:12px; margin-top:5px; }
.basket-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:22px; }
.basket-actions .button { border-radius:16px; min-height:48px; padding:10px 8px; }
.basket-actions .button.secondary { background:#191b20; border-color:#41454e; font-weight:500; }
.catalog-workspace .catalog-grid { gap:12px; }
.catalog-workspace .catalog-square { background:#111317; border-color:#292c33; border-radius:22px; }
.catalog-workspace .catalog-square.selected { background:#182233; border-color:var(--accent); }
.catalog-workspace .app-choice,.catalog-workspace .owned-app { padding:28px 10px 16px; gap:8px; }
.catalog-workspace .app-icon { width:64px; height:64px; min-width:0; max-width:none; flex:none; }
.catalog-workspace .catalog-name { font-size:18px; line-height:1.2; }
.catalog-workspace .catalog-price { font-size:23px; }
.catalog-check { position:absolute; top:10px; right:10px; width:22px; height:22px; display:grid; place-items:center; border:1.5px solid #717782; border-radius:50%; color:var(--bg); pointer-events:none; }
.catalog-check .icon { width:14px; height:14px; opacity:0; stroke-width:2.6; }
.catalog-select:checked+.catalog-check { border-color:var(--accent); background:var(--accent); }
.catalog-select:checked+.catalog-check .icon,.owned-check .icon { opacity:1; }
.owned-check { background:var(--success); border-color:var(--success); }
.review-page-head { padding:0 0 14px; flex-wrap:nowrap; align-items:center; gap:8px; }
.review-page-head>div { flex:1 1 auto; min-width:0; }
.review-page-head>.button { font-size:13px; flex:none; min-height:44px; }
.review-page-head h1 { font-size:28px; }
body:has(.review-page-head) .main-nav { margin-bottom:12px; }
.review-page-head p { font-size:14px; margin-top:8px; }
.compact-review .review-panel { padding:16px; }
.review-count { font-size:16px; margin-bottom:12px; }
.review-name-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-content:start; gap:8px; list-style:none; padding:0; margin:0; max-height:240px; overflow-y:auto; overscroll-behavior:contain; }
.review-name-list li { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; aspect-ratio:1; padding:9px 5px; background:#20232b; border:1px solid #363b46; border-radius:12px; min-width:0; font-size:12px; line-height:1.3; text-align:center; overflow:hidden; }
.review-name-list .app-icon { width:34px; height:34px; border-radius:9px; flex:none; }
.review-name-list li>span:not(.app-icon) { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; max-width:100%; }
.compact-review .terms { margin-top:16px; }
.compact-review .review-info { margin:14px 0; font-size:13px; }
.compact-review .review-cart { padding:18px; }
@media(max-width:640px) {
  .compact-review { display:flex; flex-direction:column; gap:12px; }
  .compact-review>section { display:contents; }
  .compact-review .review-panel { order:0; width:100%; }
  .compact-review .review-cart { order:1; width:100%; }
  .compact-review .review-info { order:2; }
  .compact-review .info-note:not(.review-cart .info-note) { order:3; }
  .catalog-basket { padding:16px; border-radius:18px; margin-bottom:14px; }
  .catalog-basket h2 { font-size:20px; }
  .basket-discounts { font-size:13px; }
  .basket-actions { margin-top:17px; gap:8px; }
  .basket-actions .button { font-size:14px; min-height:46px; border-radius:14px; }
  .catalog-workspace .catalog-grid { gap:8px; }
  .catalog-workspace .catalog-square { border-radius:18px; }
  .catalog-workspace .app-choice,.catalog-workspace .owned-app { padding:28px 5px 12px; gap:8px; }
  .catalog-workspace .app-icon { width:44px; height:44px; }
  .catalog-workspace .catalog-name { font-size:14px; }
  .catalog-workspace .catalog-price { font-size:18px; }
  .catalog-check { width:18px; height:18px; top:7px; right:7px; }
  .catalog-check .icon { width:12px; height:12px; }
}
@media(max-width:360px) {
  .catalog-workspace .catalog-name { font-size:12px; }
  .catalog-workspace .catalog-price { font-size:16px; }
  .basket-discounts { font-size:12px; }
}
@media(max-width:360px) { .product-modal-content { padding:20px; gap:18px; } .product-modal-total strong { font-size:25px; } }

/* Compact proportions shared with the owner's iShop/AppNest storefront. */
body { font-size:15px; }
.shell { max-width:1000px; }
.topbar { min-height:64px; padding-top:12px; padding-bottom:8px; }
.brand { gap:8px; min-height:40px; }
.brand-mark { width:32px; height:32px; border-radius:10px; font-size:23px; }
.brand-name { font-size:22px; }
.account { font-size:12px; min-height:36px; padding:7px 10px; }
.main-nav { padding:5px; margin:8px 0 18px; border-radius:15px; }
.main-nav .nav-link { min-height:42px; padding:9px 6px; font-size:13px; border-radius:10px; }
.category-search { margin-bottom:18px; }
.category-search input { height:44px; padding-left:38px; font-size:13px; border-radius:13px; }
.category-search>.icon { top:13px; left:13px; width:17px; height:17px; }
.admin-toolbar { padding-top:0; }
.admin-toolbar a { min-height:32px; font-size:11px; gap:5px; }
.admin-toolbar .icon { width:15px; height:15px; }
.page-head { padding:20px 0 18px; }
.page-head h1 { font-size:26px; }
.page-head p { font-size:13px; }
.section-head h2,.catalog-toolbar h1,.codes-section .page-head h1 { font-size:18px; }
.catalog-workspace .catalog-toolbar { margin-bottom:12px; }
.catalog-workspace .count { font-size:10px; }
.catalog-basket { padding:13px; border-radius:15px; margin-bottom:14px; }
.catalog-basket h2 { font-size:15px; }
.basket-discounts { font-size:11px; margin-top:5px; }
.basket-access { font-size:10px; margin-top:3px; }
.basket-actions { margin-top:14px; gap:8px; }
.basket-actions .button { min-height:36px; padding:8px 6px; font-size:12px; border-radius:10px; }
.catalog-workspace .catalog-grid { gap:8px; }
.catalog-workspace .catalog-square { display:block; border-radius:15px; }
/* The in-flow spacer sets a true square even in Telegram's WebKit.
   Its contents cannot stretch the grid track or squash the icon. */
.catalog-workspace .catalog-square::before { content:""; display:block; padding-top:100%; }
.catalog-workspace .app-choice,.catalog-workspace .owned-app {
  position:absolute; inset:0; width:100%; height:100%; min-width:0;
  padding:clamp(10px,3vw,20px) clamp(6px,1.8vw,16px) clamp(4px,1.1vw,12px); gap:2px;
  grid-template-rows:auto minmax(0,1fr) auto;
}
.catalog-workspace .app-icon { width:clamp(36px,10.8vw,64px); height:clamp(36px,10.8vw,64px); }
.catalog-workspace .catalog-name { min-height:0; font-size:clamp(11px,3.1vw,14px); line-height:1.2; }
.catalog-workspace .catalog-price { font-size:clamp(12px,3.5vw,16px); line-height:1.2; }
.catalog-check { width:16px; height:16px; top:6px; right:6px; }
.catalog-check .icon { width:10px; height:10px; }
.subscription-row { min-height:76px; border-radius:15px; }
.subscription-link { padding:14px 16px; gap:12px; }
.subscription-icon { width:42px; height:42px; }
.subscription-name { font-size:16px; }
.subscription-subtitle { font-size:11px; }
:root { --bottom-space:calc(60px + max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px)) + var(--tg-content-safe-area-inset-bottom,0px)); }
.bottom-nav { padding:6px max(12px,calc((100vw - 640px)/2)) calc(var(--bottom-space) - 54px); }
.bottom-nav-item { min-height:42px; gap:4px; font-size:10px; border-radius:10px; padding:4px 2px; }
.bottom-nav-item .icon { width:20px; height:20px; }
.review-page-head h1 { font-size:24px; }
.profile-card { padding:18px; gap:12px; }
@media(max-width:640px) {
  .shell { padding-left:18px; padding-right:18px; }
  .catalog-workspace .catalog-grid { gap:6px; }
}
@media(max-width:360px) {
  .catalog-workspace .app-choice,.catalog-workspace .owned-app { padding-top:10px; padding-bottom:4px; }
  .catalog-workspace .app-icon { width:clamp(30px,10vw,36px); height:clamp(30px,10vw,36px); }
  .catalog-workspace .catalog-name { font-size:clamp(10.5px,3vw,11px); line-height:1.15; }
}

/* Compact order list: summary first, contents and actions on expansion. */
.orders { gap:10px; }
.orders-page-head { margin-bottom:18px; align-items:center; }
.order.order-compact { padding:0; border-radius:16px; overflow:hidden; }
.order-summary { display:grid; grid-template-columns:minmax(0,1fr) auto 18px; gap:10px; align-items:center; padding:14px 16px; min-height:76px; cursor:pointer; list-style:none; }
.order-summary::-webkit-details-marker { display:none; }
.order-summary:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; border-radius:15px; }
.order-summary-copy { display:flex; flex-direction:column; gap:4px; min-width:0; }
.order-summary-copy strong { font-size:15px; line-height:1.3; }
.order-summary-copy>span { color:var(--muted); font-size:13px; line-height:1.35; overflow-wrap:anywhere; }
.order-summary .order-badges { max-width:130px; gap:4px; justify-content:flex-end; }
.order-summary .badge { font-size:11px; padding:5px 7px; white-space:normal; text-align:center; }
.order-summary .badge .icon { width:13px; height:13px; }
.order-chevron { display:grid; place-items:center; color:var(--muted); }
.order-chevron .icon { width:18px; height:18px; }
.order-compact[open]>.order-summary .order-chevron { transform:rotate(180deg); }
.order-details { padding:0 16px 16px; border-top:1px solid var(--line); }
.order-details>.order-date { margin:12px 0; font-size:12px; }
.order-product { display:flex; flex-direction:column; gap:5px; margin:12px 0 16px; font-size:14px; }
.order-product>span { color:var(--muted); }
.order-details .order-apps { display:grid; grid-template-columns:repeat(auto-fill,minmax(82px,1fr)); gap:8px; margin:12px 0 16px; }
.order-details .order-app-chip { display:flex; flex-direction:column; justify-content:center; gap:7px; aspect-ratio:1; padding:8px; border:1px solid var(--line); border-radius:12px; font-size:12px; line-height:1.25; text-align:center; }
.order-details .order-app-chip .app-icon { width:34px; height:34px; border-radius:9px; font-size:16px; }
.order-details .order-bottom { padding-top:12px; gap:12px; }
.order-details .order-bottom .app-price { font-size:18px; }
.order-details .order-bottom>.button,.order-details .actions>.button { display:flex; align-items:center; justify-content:center; gap:8px; }
.order-details .payment-note { font-size:12px; }
.profile-actions { gap:10px; width:100%; }
.profile-actions .button { display:grid; grid-template-columns:28px minmax(0,1fr) 28px; align-items:center; justify-items:center; gap:10px; width:100%; min-height:50px; margin:0; padding:12px; font-size:14px; line-height:1.3; }
.profile-actions .button>.icon { display:block; width:20px; height:20px; margin:0; }
.profile-actions .button>span:not(.profile-tail) { text-align:center; }
.profile-tail { display:grid; place-items:center; justify-self:center; }
.profile-tail .icon { width:16px; height:16px; color:var(--muted); }
@media(max-width:380px) {
  .order-summary { gap:7px; padding:12px; }
  .order-summary .order-badges { max-width:100px; }
  .order-details { padding:0 12px 12px; }
  .profile-actions .button { padding:11px 9px; gap:7px; font-size:13px; }
}

.profile-actions .button>* { grid-row:1; }
.profile-actions [data-chat-entry][data-unread]:not([data-unread=""]) .profile-tail { visibility:hidden; }
.profile-actions [data-chat-entry][data-unread]:not([data-unread=""])::after { grid-column:3; grid-row:1; justify-self:center; margin:0; }

/* Selection is shown by the card border, downloads are reached through orders. */
.catalog-square .catalog-check { display:none; }

.basket-icons { display:flex; align-items:center; gap:6px; list-style:none; padding:0; margin:8px 0; min-width:0; }
.basket-icons li { flex:none; display:grid; place-items:center; }
.basket-icons .app-icon { width:28px; height:28px; border-radius:7px; font-size:12px; }
.basket-more { color:var(--muted); font-size:12px; min-width:24px; }

.catalog-basket h2 { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.basket-amount { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
.basket-saving { display:inline-flex; align-items:center; padding:4px 6px; border-radius:7px; font-size:11px; line-height:1.2; color:#bce5c9; background:#254235; letter-spacing:0; }
.catalog-square.already-owned .catalog-price { font-size:12px; color:var(--muted); }

/* Stable selection panel: reserve the same space before and after discount thresholds. */
.catalog-basket h2 { min-height:26px; flex-wrap:nowrap; }
.basket-saving { min-width:43px; justify-content:center; }
.basket-saving.is-empty { visibility:hidden; }
.basket-icons { min-height:28px; height:28px; }
.basket-access { white-space:nowrap; }
.catalog-basket { overflow-anchor:none; }

.basket-slot { width:28px; height:28px; border:1px dashed #596a89; border-radius:7px; color:#91a9d2; background:#1a2333; }
.basket-slot .icon { display:block; width:14px; height:14px; margin:0; }
@media(max-width:380px) {
 .basket-icons { gap:5px; }
 .basket-icons .app-icon,.basket-slot { width:24px; height:24px; border-radius:6px; }
}

/* Keep the total at the right edge; show the discount on its left. */
.basket-amount { flex-direction:row-reverse; }

.service-price-old { display:flex; align-items:center; justify-content:flex-end; gap:7px; font-size:12px; font-weight:400; color:var(--muted); margin-bottom:3px; }
.service-price-old small { color:#bce5c9; background:#254235; border-radius:5px; padding:2px 4px; font-size:10px; }

.order-filters { display:flex; gap:10px; margin:0 0 20px; }
.order-filters button { border:1px solid var(--line); background:var(--surface); color:var(--muted); border-radius:999px; padding:10px 17px; min-height:42px; font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.order-filters button[aria-selected="true"] { color:#fff; background:var(--accent); border-color:var(--accent); }
.order-filters button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

#main-content > .catalog-workspace:first-child { margin-top:0; padding-top:4px; }

/* One header geometry for orders, referrals and profile. */
.profile-section { padding-top:0; }
.page-head.account-page-head { padding:4px 0 8px; margin:0 0 8px; min-height:56px; align-items:flex-start; flex-wrap:nowrap; gap:12px; }
.page-head.account-page-head h1 { margin:0; font-size:26px; line-height:1.12; }

.support-toolbar { display:flex; justify-content:flex-end; padding:0; }
.support-toolbar .button { display:inline-flex; align-items:center; min-height:32px; padding:4px 0; gap:6px; font-size:12px; color:var(--accent); }
.support-toolbar .icon { width:16px; height:16px; }
.account-page-head > .button { min-height:44px; padding-top:8px; padding-bottom:8px; }
.profile-documents { max-width:560px; margin-top:20px; }
.profile-documents h2 { font-size:18px; line-height:1.3; margin:0 0 12px; }
.document-list { border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--paper); }
.document-row { display:grid; grid-template-columns:20px minmax(0,1fr) 16px; align-items:center; gap:10px; min-height:56px; padding:12px 14px; font-size:13px; line-height:1.4; text-decoration:none; color:var(--ink); }
.document-row + .document-row { border-top:1px solid var(--line); }
.document-row .icon { width:20px; height:20px; color:var(--accent); }
.document-row .icon:last-child { width:16px; height:16px; color:var(--muted); }
.document-row:hover { background:var(--accent-soft); }
.document-row:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }

.document-row { width:100%; text-align:left; background:var(--paper); border:0; }
.document-panel { position:fixed; inset:0; width:min(100%,800px); height:100dvh; max-width:none; max-height:100dvh; margin:auto; padding:0; border:1px solid var(--line); border-radius:0; background:var(--bg); color:var(--ink); overflow:hidden; }
.document-panel[open] { display:flex; flex-direction:column; }
.document-panel::backdrop { background:#000b; }
.document-bar { display:flex; align-items:center; flex:none; padding:12px 16px; border-bottom:1px solid var(--line); background:var(--bg); }
.document-return { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:10px 16px; gap:9px; border:1px solid #3b5687; border-radius:13px; background:var(--accent-soft); color:var(--ink); font:inherit; font-size:14px; font-weight:650; cursor:pointer; }
.document-return .icon { width:20px; height:20px; }
.document-return:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.document-body { min-height:0; overflow:auto; overscroll-behavior:contain; padding:20px; font-size:14px; line-height:1.7; }
.document-body h1 { font-size:24px; line-height:1.2; margin:0 0 16px; }
.document-body h2 { font-size:18px; line-height:1.35; margin:24px 0 12px; }
.document-body h3 { font-size:15px; margin:16px 0 8px; }
.document-body p { margin:0 0 14px; }
.document-body ul,.document-body ol { margin:0 0 16px; padding-left:22px; }
.document-body li + li { margin-top:8px; }
.document-body a { color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.document-meta { color:var(--muted); font-size:12px; }
.document-body .notice { background:var(--accent-soft); border:1px solid var(--line); color:var(--ink); border-radius:13px; padding:14px; margin:18px 0; }
.document-body .price-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:16px 0; }
.document-body .price-card { background:var(--paper); border:1px solid var(--line); border-radius:13px; padding:14px; }
.document-body .price-card strong,.document-body .price-card span { display:block; }
.document-body .examples { display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); }
@media(max-width:560px) { .document-return { width:100%; } .document-body { padding:18px; } }

/* The guide stays in the order context and has an explicit return action. */
.activation-guide-entry{margin:12px 0;justify-content:center}
.activation-guide-note{flex:none;margin:0;padding:12px 18px;color:var(--muted);font-size:14px;line-height:1.5;border-bottom:1px solid var(--line)}
.activation-guide-frame{display:block;flex:1;min-height:0;width:100%;border:0;background:var(--bg)}
.activation-guide-actions{flex:none;margin:0;padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bg)}
.activation-guide-panel .document-return{font-size:14px}

/* Separate and center purchase actions in the order summary. */
.review-cart > .button{justify-content:center;text-align:center;white-space:normal}
.review-cart > .button + .button{margin-top:12px}

/* Emphasize the activation guide before purchase. */
#review-activation-guide{background:#351820;border-color:#b84356;color:#ff9ba6}
#review-activation-guide:hover{background:#48202b;border-color:#e56375}
#review-activation-guide:focus-visible{outline-color:#ff9ba6}
#review-activation-guide > span{flex:1;min-width:0;overflow-wrap:normal}

#review-activation-guide{display:grid;grid-template-columns:20px minmax(0,1fr) 20px}
#review-activation-guide > span{grid-column:2;text-align:center}

.gift-delivery-note{margin:16px 0;padding:14px 16px;border:1px solid #495b80;border-radius:13px;background:#17243b;color:#bdcdeb;font-size:14px;line-height:1.6}.gift-delivery-box{display:grid;gap:13px;margin:18px 0;padding:17px;border:1px solid #5378b5;border-radius:15px;background:#14223b}.gift-delivery-box>strong{font-size:14px}.gift-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}.gift-code-row output{font:18px/1.6 ui-monospace,monospace;overflow-wrap:anywhere;min-width:0;user-select:text}@media(max-width:430px){.gift-code-row{grid-template-columns:1fr}.gift-code-row .button{width:100%}}

/* An order keeps its support thread next to its contents. */
.order-support{margin-top:14px;border:1px solid #365846;border-radius:14px;overflow:hidden;min-width:0}
.order-support-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:62px;padding:12px 14px;background:#142c22;color:#b4e8ca;text-align:left}
.order-support-toggle:hover{background:#1b382b}.order-support-toggle:focus-visible{outline-offset:-4px}
.order-support-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#224532}.order-support-icon .icon{width:20px;height:20px}
.order-support-copy{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.order-support-copy strong{font-size:13px;line-height:1.4;letter-spacing:0}.order-support-copy small{font-size:11px;color:#a5bcae;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.order-support-unread{display:grid;place-items:center;min-width:20px;height:20px;flex:none;padding:0 5px;border-radius:20px;background:#9cdeb8;color:#143021;font-size:11px;font-weight:750}.order-support-unread[hidden]{display:none}.order-support-sign{width:20px;flex:none;text-align:center;font-size:23px;line-height:1}
[data-order-chat-slot]:empty{display:none}

/* A quiet owner-service promotion below the catalogue, never a floating layer. */
.vpn-promo{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:18px;margin:28px 0 12px;padding:22px 24px;border:1px solid #384253;border-radius:var(--radius);background:#141c27;color:var(--ink)}
.vpn-promo-mark{display:block;width:52px;height:52px;flex:none;overflow:hidden;border-radius:15px;background:#2d101b}.vpn-promo-mark img{display:block;width:100%;height:100%;object-fit:cover}
.vpn-promo-copy{min-width:0}.vpn-promo-label{display:block;color:#abb8ca;font-size:11px;line-height:1.4;margin-bottom:4px}.vpn-promo h2{font-size:23px;line-height:1.25;letter-spacing:-.035em}.vpn-promo p{color:var(--muted);font-size:13px;line-height:1.5;margin-top:5px}
.vpn-promo-link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 20px;border:1px solid #567391;border-radius:12px;background:#233c50;color:#d7eee8;text-align:center;white-space:nowrap;text-decoration:none;font-size:13px;font-weight:650;touch-action:manipulation;transition:background .15s,border-color .15s}.vpn-promo-link:hover{background:#2a4a60;border-color:#7899b7}.vpn-promo-link:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
@media(max-width:560px){.vpn-promo{grid-template-columns:46px minmax(0,1fr);gap:14px;margin-top:24px;padding:18px}.vpn-promo-mark{width:46px;height:46px}.vpn-promo h2{font-size:21px}.vpn-promo-label{font-size:10px}.vpn-promo p{font-size:12px}.vpn-promo-link{grid-column:1/-1;width:100%;min-height:44px;font-size:13px;margin-top:2px}}
@media(prefers-reduced-motion:reduce){.vpn-promo-link{transition:none}}

.catalog-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;color:var(--muted);line-height:1.35;max-width:100%;margin-top:3px}

/* A dedicated guide entry above the existing order support dialog. */
.order-instruction{margin-top:14px}.order-instruction .order-instruction-button{min-height:60px;width:100%;justify-content:center;text-align:center;white-space:normal;font-size:15px;line-height:1.4;padding:14px 18px}

/* Compact account summary and full-width list rows. */
.profile-card { padding:16px; gap:14px; }
.profile-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.profile-info { min-width:0; }
.profile-info h2 { margin:0 0 3px; font-size:21px; line-height:1.25; overflow-wrap:anywhere; }
.profile-info p { margin:0; font-size:12px; overflow-wrap:anywhere; }
.profile-avatar { position:relative; flex:none; width:48px; height:48px; border-radius:15px; overflow:hidden; }
.profile-avatar .icon { width:28px; height:28px; }
.profile-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.profile-actions { gap:0; border-top:1px solid var(--line); }
.profile-actions .button { grid-template-columns:20px minmax(0,1fr) 20px; justify-items:start; gap:12px; min-height:48px; padding:10px 0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.profile-actions .button+.button { border-top:1px solid var(--line); }
.profile-actions .button>span:not(.profile-tail) { text-align:left; }
.profile-actions .button>.icon { color:var(--muted); }
