:root{color-scheme:dark;font:16px/1.45 system-ui,-apple-system,sans-serif;background:#0c0d0f;color:#e8e9eb;--panel:#17181b;--secondary:#a2a4aa;--accent:#475769}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}main{max-width:580px;margin:auto;padding:14px 12px calc(96px + env(safe-area-inset-bottom))}header{display:flex;align-items:center;justify-content:space-between;padding:3px 5px 15px;font-size:.82rem;letter-spacing:.14em}header small{color:var(--secondary)}svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linejoin:round;stroke-linecap:round}button,input{font:inherit;color:inherit}button{cursor:pointer;background:#202125;border:0;border-radius:12px;padding:11px 14px}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible{outline:2px solid #9baab8;outline-offset:2px}
.search{display:flex;align-items:center;gap:10px;padding:0 13px;background:var(--panel);border-radius:13px;color:var(--secondary)}.search input{height:42px;width:100%;background:none;border:0}#rail{display:flex;overflow:auto;gap:4px;padding:12px 0;scrollbar-width:none}.shortcut{flex:none;border-radius:20px;padding:6px 14px;color:var(--secondary);background:none;font-size:.89rem}.shortcut[aria-current=true]{background:#30363e;color:#eee}
.identity,.line,.item,.option,.sheethead{display:flex;align-items:center;justify-content:space-between;gap:14px}.identity{justify-content:flex-start;background:var(--panel);border-radius:17px;padding:20px;margin:2px 0 14px}.category-icon{display:inline-grid;place-items:center;color:#9daebe}.identity svg{width:30px;height:30px}.line,.item,.option{width:100%;padding:16px;text-align:left;background:var(--panel);border-radius:16px}.line+.line,.item+.item{border-top:1px solid #27282b}.line strong,.item .detail{font-weight:500;text-align:right}.line.select:first-of-type,.item:first-child,.option:first-child{border-radius:16px}.item:last-child,.option:last-child,.line:has(.step){border-radius:16px}.line.total{margin:14px 0 22px;border:0;border-radius:16px}.total strong{font-size:1.36rem;color:#d6dfe7}.step{display:flex;gap:6px;align-items:center}.step button,.step input{height:39px;text-align:center;border:0;border-radius:10px;background:#26282c}.step input{width:48px;color:#d4e0eb;background:#303842;appearance:textfield}.step input::-webkit-inner-spin-button{appearance:none}.primary{width:100%;background:var(--accent);color:white;font-weight:650;padding:15px}.item span:first-child,.select strong,.option span:first-child{overflow-wrap:anywhere}.item .category-icon+span{flex:1}.detail,.option span:last-child{white-space:nowrap;color:#cfd2d8}p{white-space:pre-wrap;overflow-wrap:anywhere}#status{color:var(--secondary)}#status:empty{display:none}h1,h2{font-size:1.35rem;font-weight:600}#back{margin-top:12px}
nav{position:fixed;z-index:2;bottom:calc(10px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;width:min(85%,370px);padding:4px;border:1px solid #414247;border-radius:25px;background:#202125f5}nav button{display:grid;justify-items:center;gap:2px;flex:1;padding:6px;background:none;font-size:.73rem;color:#9b9da3}nav button[aria-current=page]{color:#dae3ed;background:#323942;border-radius:20px}
dialog{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,580px);max-width:100%;max-height:80dvh;overflow:auto;background:#101113;color:inherit;border:0;border-radius:23px;padding:10px 13px calc(24px + env(safe-area-inset-bottom))}dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}.handle{width:44px;height:4px;border-radius:2px;background:#44454a;margin:4px auto 15px}.sheethead{margin-bottom:10px}.sheethead h2{margin:4px}.sheethead button{background:transparent;color:var(--secondary);font-size:22px}.option:hover,.select:hover{background:#212328}.option{min-height:54px}.option:only-child,.item:only-child{border-radius:16px}
#profile{flex:0 0 52px;align-content:center}#avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#404e60;color:#e9edf2;font-size:13px;font-weight:700;overflow:hidden}#avatar img{width:100%;height:100%;object-fit:cover}.wallet-form{display:grid;gap:12px;background:var(--panel);padding:16px;border-radius:16px}.wallet-form input,.wallet-form select{box-sizing:border-box;width:100%;padding:12px;border:1px solid #40454b;border-radius:9px;background:#232529;color:inherit;font:inherit}.wallet-form label{display:grid;gap:5px}.invoice{background:var(--panel);padding:16px;border-radius:16px;overflow-wrap:anywhere}.invoice button,.invoice a{display:block;margin:10px 0;color:inherit}
.wallet-identity{display:flex;align-items:center;gap:14px;margin:12px 0 18px}.portrait{display:grid;place-items:center;background:#353e49;width:50px;height:50px;border-radius:50%;overflow:hidden}.portrait img{width:100%;height:100%;object-fit:cover}.wallet-identity small,.balance-card>span,.pay-card small,#options>small,.wallet-form small{display:block;color:#adb1b8}.wallet-identity small{margin-top:4px}.balance-card{background:var(--panel);padding:18px;border-radius:18px;margin-bottom:12px}.balance-card>strong,.deposit-total{display:block;font-size:2.5rem;letter-spacing:-.04em}.balance-card button{margin-top:14px}.presets,.pay-grid{display:grid;gap:8px}.presets{grid-template-columns:repeat(4,1fr)}.presets button{padding:10px 2px}.presets button[aria-pressed=true]{background:var(--accent);color:white}.pay-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px}.pay-card{text-align:left;min-height:108px;background:var(--panel);display:grid;align-content:start;gap:4px}.sheet-back{margin-right:8px;padding:4px 12px}.pay-note:empty{display:none}

.line+.line,.item+.item,.option+.option{margin-top:4px;border-top:0}
button,.presets button,.step button,.step input,.wallet-form input,.wallet-form select,.search input{border-radius:14px}
.pay-card{border-radius:19px;min-height:130px;grid-template-rows:auto 1fr auto}
.pay-badge{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#505f70}
.pay-badge svg{width:30px;height:30px;stroke:none}
.pay-card .pay-badge{justify-self:end;align-self:end}
.pay-badge[data-mark=crypto]{background:linear-gradient(150deg,#16c5f4,#158ec8)}
.pay-badge[data-mark=xrocket]{background:linear-gradient(150deg,#73c7ff,#168add)}
.pay-badge[data-mark=ton]{background:#0098ea}
.pay-badge[data-mark=trc20]{background:#d92e39}
.pay-badge[data-mark=bep20]{background:#292820}
.invoice>.pay-badge{margin-right:10px;vertical-align:middle}

/* Matte graphite surfaces; translucent glass is reserved for overlays. */
:root { --panel:#191b1e; --accent:#414e5e; background:#101113 }
body { min-height:100vh }
.balance-card,.identity { background:linear-gradient(135deg,#23262a,#1b1d20) }
nav,dialog {
  background:#232529;
  border:1px solid #ffffff1a;
  box-shadow:0 6px 18px #0004,inset 0 1px 0 #ffffff09;
}
.primary,.shortcut[aria-current=true],nav button[aria-current=page],.presets button[aria-pressed=true] {
  background:#3b4755;
  color:#f3f5f7;
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  nav,dialog {
    background:#202226eb;
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
  }
}
@media (prefers-reduced-transparency:reduce) {
  nav,dialog { background:#232529; -webkit-backdrop-filter:none; backdrop-filter:none }
}

.order-card{display:grid;gap:12px;padding:20px;border-radius:24px;background:var(--card,#15181d);margin-bottom:12px}.order-card small{opacity:.65}.connection-result{width:100%;box-sizing:border-box;resize:vertical;padding:14px;border-radius:16px;background:#101215;color:#e5e7eb;border:1px solid #363c44;font:13px monospace}.wallet-form input[type=checkbox]{width:24px;height:24px;display:block;margin-top:10px}

/* Product card: one grouped parameter panel and a compact checkout. */
.product-parameters{overflow:hidden;border-radius:22px;background:var(--panel)}
.product-parameters>.line{border-radius:0!important;margin:0;min-height:64px;padding:14px 20px;background:transparent}
.product-parameters>.line+.line{border-top:1px solid #ffffff0a}
.product-parameters>.line>span:first-child{flex:1;min-width:0}
.product-parameters>.line>strong{max-width:62%;font-weight:600}
.product-parameters .step{gap:9px;flex-shrink:0}
.product-parameters .step button{width:46px;height:48px;padding:0;font-size:24px;background:#22262b}
.product-parameters .step input{width:70px;height:48px;border:1px solid #52677d;background:#20262d;font-size:22px;font-weight:600}
.product-checkout{display:grid;gap:10px;margin-top:14px}
.product-checkout .line.total{margin:0;border-radius:22px;padding:16px 20px;min-height:64px}
.product-checkout .total strong{font-size:26px;font-weight:650;color:#c2d1e0}
.product-checkout>.primary,.cart-secondary{width:100%;min-height:54px;border-radius:18px;font-size:18px}
.cart-secondary{background:var(--panel);font-weight:600}
@media(max-width:360px){.product-parameters>.line{padding:13px}.product-parameters .step{gap:5px}.product-parameters .step button{width:38px}.product-parameters .step input{width:54px}}

/* The category rail is the catalog navigation, shared by all screens. */
#rail{gap:8px;padding:18px 0;scroll-snap-type:x proximity}
.shortcut{display:grid;justify-items:center;align-content:start;gap:9px;min-width:78px;max-width:124px;padding:10px 9px;border-radius:18px;scroll-snap-align:start;color:#d4d7dd;font-size:12px;white-space:normal}
.shortcut .category-icon svg{width:29px;height:29px}
.shortcut[aria-current=true]{background:#252e38}
/* Detailed SVG symbols use their own palette and highlight layers. */
.category-icon{padding:0;background:none;border-radius:0;flex-shrink:0}
.category-icon svg{stroke-width:1;overflow:visible;filter:drop-shadow(0 2px 3px #0002)}
.shortcut .category-icon{width:38px;height:38px}
.shortcut .category-icon svg{width:32px;height:32px}
.identity .category-icon svg,.home-service .category-icon svg{width:36px;height:36px}
.home-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.home-service{display:grid;justify-items:start;text-align:left;gap:13px;padding:20px;background:var(--panel);border-radius:22px}.home-service svg{width:32px;height:32px}.home-service>span:last-child{font-size:13px;color:var(--secondary)}

/* Simple capsule navigation with a separate Telegram avatar. */
nav {
  display:flex;align-items:center;gap:10px;width:min(calc(100% - 24px),400px);
  padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
.nav-pill {
  display:flex;flex:1;min-width:0;height:66px;padding:4px;
  border:1px solid #39393c;border-radius:36px;background:#1e1e20;
}
nav .nav-pill button {
  flex:1;min-width:0;align-content:center;gap:3px;padding:6px 4px;
  border-radius:30px;background:transparent;color:#99999f;font-size:12px;
  box-shadow:none;
}
nav .nav-pill button[aria-current=page] {background:#2c2c2f;color:#32aaff;border-radius:30px}
nav button[aria-current=page] svg {filter:none}
nav .nav-pill svg {width:24px;height:24px;stroke-width:2}
nav #profile {
  display:grid;place-items:center;flex:0 0 66px;width:66px;height:66px;
  padding:7px;border:1px solid #39393c;border-radius:50%;background:#1e1e20;
  box-shadow:none;
}
nav #profile[aria-current=page] {border-color:#32aaff;background:#27282c}
nav #avatar {width:50px;height:50px;border-radius:50%;background:#303238;box-shadow:none;color:#c9cdd3}
nav #avatar img {width:100%;height:100%;object-fit:cover;border-radius:50%}

/* Compact system typography, matching the reference's title/label hierarchy. */
:root {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:16px;
  line-height:1.35;
  -webkit-font-smoothing:antialiased;
}
button,input,select {font-family:inherit}
h1,h2,.identity strong,.home-service strong,.order-card>strong {
  font-weight:700;
  letter-spacing:-.025em;
  line-height:1.2;
}
.identity strong,.home-service strong,.order-card>strong {font-size:20px}
.item>span:not(.category-icon):not(.detail) {font-size:18px;font-weight:700;letter-spacing:-.02em;line-height:1.25}
.home-service>span:last-child,.wallet-identity small,.pay-card small {
  font-size:15px;font-weight:400;letter-spacing:0;line-height:1.3;color:#929aa5;
}
.item .detail {font-size:16px;font-weight:400;color:#929aa5;letter-spacing:-.01em}
nav .nav-pill button {font-size:12px;font-weight:600;line-height:1.15;letter-spacing:-.015em}
.shortcut {font-weight:600;letter-spacing:-.015em}

.service-form{border-radius:24px;padding:18px;gap:16px}
.service-form input,.service-form button{border-radius:20px;min-height:50px}
.service-choice{width:100%;padding:14px 16px;text-align:left;background:#232529;border:1px solid #40454b;line-height:1.4;overflow-wrap:anywhere}
#options .option{border-radius:18px;margin-top:6px}

/* Provider purchases share the catalog product layout. */
.service-purchase{margin:0}
.service-purchase .recipient-row input{min-width:0;width:60%;padding:12px;border:1px solid #52677d;border-radius:14px;background:#20262d;color:inherit;font:inherit;text-align:right}
.service-purchase .self-recipient{justify-content:center;color:#c2d1e0;font-weight:600}
.service-purchase .step input{width:96px;font-size:20px}
.service-orders{margin-top:10px}
@media(max-width:380px){
  .service-purchase .step{gap:5px}
  .service-purchase .step input{width:80px;font-size:18px}
  .service-purchase .step button{width:34px}
  .service-purchase .product-parameters>.line{padding:13px;gap:8px}
}

.banner-placement{display:grid;gap:14px;width:100%;padding:28px 24px;text-align:left;border:1px dashed #536376;border-radius:24px;background:#191e25;color:#e8edf4}
.banner-placement strong{font-size:28px;line-height:1.2;letter-spacing:-.025em}
.banner-placement .banner-eyebrow{font-size:12px;color:#9bafc3;text-transform:uppercase;letter-spacing:.08em}
.banner-placement>span:last-child{font-size:14px;color:#adb9c7}
.banner-placement:hover{background:#202832}

/* Top-up amount sheet follows the compact reference layout. */
dialog.amount-sheet{width:min(calc(100% - 16px),440px);padding:0 12px calc(8px + env(safe-area-inset-bottom));background:#0e1114;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:24px 24px 0 0}
.amount-sheet>.handle{display:none}
.amount-sheet .sheethead{min-height:44px;margin:0 0 8px;gap:8px}
.amount-sheet .sheethead h2{margin:0;font-size:25px;font-weight:800;line-height:30px;letter-spacing:-.7px}
.amount-sheet #dismiss{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;border-radius:50%;background:#1d2329;color:#e5e9ee;font-size:28px;font-weight:300;line-height:1}
.deposit-form{margin:0}
.deposit-amount-card{padding:16px;border-radius:22px;background:#171b20}
.deposit-amount-card label{display:block;color:#929da9;font-size:17px;font-weight:400;line-height:22px;letter-spacing:-.2px}
.deposit-value{display:flex;align-items:baseline;gap:5px;margin:6px 0 12px;font-size:40px;font-weight:500;line-height:48px;letter-spacing:-1px}
.deposit-currency{color:#93b6d7;font-weight:500}
.deposit-value input{display:block;min-width:0;width:100%;padding:0;border:0;border-radius:0;background:transparent;color:#ecf0f6;font:inherit;line-height:inherit;outline-offset:4px}
.deposit-amount-card .presets{gap:10px}
.deposit-amount-card .presets button{height:42px;padding:0;border-radius:15px;background:#20262d;color:#dce2e9;font-size:20px;font-weight:500;line-height:24px;letter-spacing:-.3px}
.deposit-amount-card .presets button[aria-pressed=true]{background:#7898b8;color:#101820;font-weight:500}
.deposit-balance-note{margin:12px 0 8px;color:#929da9;font-size:17px;font-weight:400;line-height:22px;letter-spacing:-.2px}
.deposit-form>.primary{display:block;width:calc(100% - 16px);margin:0 auto;min-height:48px;padding:12px 18px;border-radius:999px;background:#7898b8;color:#101820;font-size:18px;font-weight:700;line-height:24px;letter-spacing:-.3px}
@media(max-width:360px){.amount-sheet .sheethead h2{font-size:24px}.deposit-amount-card{padding:16px}.deposit-amount-card .presets{gap:7px}}

.amount-sheet{font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.amount-sheet button,.amount-sheet input{font-family:inherit}

.purchase-review,.delivery-heading{display:flex;align-items:center;gap:16px;padding:22px;border-radius:24px;background:var(--panel)}
.purchase-review strong,.delivery-heading strong{font-size:20px;line-height:1.3;overflow-wrap:anywhere}
.purchase-review .category-icon svg,.delivery-heading .category-icon svg{width:36px;height:36px}
.purchase-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.purchase-tile{display:grid;gap:16px;text-align:left;align-content:start;padding:20px;border-radius:24px;background:var(--panel)}
.purchase-tile-heading{display:flex;align-items:center;justify-content:space-between}.purchase-tile .category-icon svg{width:32px;height:32px}
.purchase-chevron{font-size:24px;color:#95a6b8}.purchase-tile strong{font-size:18px;line-height:1.3;overflow-wrap:anywhere}.purchase-status{font-size:13px;color:#a2b2c2}
.delivery-content{display:grid;gap:12px;margin:16px 0;padding:14px;border-radius:24px;background:var(--panel)}
.delivery-content .connection-result{min-height:180px;max-height:50dvh;resize:none;border-radius:18px;padding:18px;line-height:1.65;font-size:14px;border-color:#344453;color:#d7eaf9;background:#11171d}
.delivery-content.proxy-delivery {min-width:0;gap:8px;padding:10px}
.proxy-lines {
  margin:0;min-width:0;max-height:50dvh;overflow:auto;white-space:pre-wrap;
  overflow-wrap:anywhere;padding:9px 12px;border-radius:13px;background:#211d36;
  color:#ece5ff;font:13px/1.45 ui-monospace,monospace;user-select:text;
}
.proxy-delivery button {margin:0;min-height:40px}
.delivery-content .primary,.delivery-actions button,.proxy-settings .primary{border-radius:20px;min-height:52px}
.delivery-actions{display:grid;gap:10px;margin-top:16px}.delivery-note{font-size:14px;color:#a2b2c2}.delivery-note:empty{display:none}
.proxy-settings .product-parameters>.line{min-height:64px}.proxy-settings .select strong{font-size:16px;max-width:62%}
.proxy-settings .proxy-next{flex:none;color:var(--secondary);line-height:1}
.proxy-settings .line.proxy-format{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;
  gap:clamp(4px,1.5vw,9px);white-space:nowrap;
}
.proxy-settings .line.proxy-format strong{
  max-width:none;font-size:clamp(12px,3.6vw,16px);overflow-wrap:normal;
}
.switch-track{position:relative;width:48px;height:28px;border-radius:20px;background:#353a42;flex-shrink:0;transition:background .15s}
.switch-track::after{content:'';position:absolute;left:4px;top:4px;width:20px;height:20px;border-radius:50%;background:#dbe2eb;transition:transform .15s}
.anonymity-toggle[aria-checked=true] .switch-track{background:#537c9d}.anonymity-toggle[aria-checked=true] .switch-track::after{transform:translateX(20px)}
@media(max-width:360px){.purchase-grid{grid-template-columns:1fr}.purchase-tile{gap:12px}}
@media(prefers-reduced-motion:reduce){.switch-track,.switch-track::after{transition:none}}

.picker-search{display:block;position:sticky;top:0;z-index:1;width:100%;min-height:48px;padding:12px 16px;margin-bottom:12px;border:1px solid #394653;border-radius:17px;background:#1c232b;color:#e8edf4;font:inherit}
.picker-search::placeholder{color:#91a0af}.picker-group{margin:18px 4px 8px;font-size:13px;font-weight:600;color:#94a9bc}.picker-empty{padding:12px 4px;color:#94a9bc}

/* Violet storefront palette. */
:root{background:#0c0a1d;color:#f0eef9;--panel:#171529;--secondary:#9e9ab5;--accent:#8969ff}
body{background:#0c0a1d}
button{background:#242039}.primary,.product-checkout>.primary{background:#8969ff;color:#fff}
.identity,.home-service,.purchase-tile,.purchase-review,.delivery-heading,.order-card,.invoice,.cart-secondary{background:#171529}
.line,.item,.option,.search{background:#171529}.option:hover,.select:hover{background:#25203e}
.shortcut[aria-current=true]{background:#292144;color:#e0d5ff}
.nav-pill,nav #profile{background:#171529;border-color:#36304d}nav .nav-pill button[aria-current=page]{background:#30264f;color:#b89dff}nav #profile[aria-current=page]{border-color:#9d7fff}
.product-parameters .step input,.service-purchase .recipient-row input{background:#242039;border-color:#635187;color:#eee5ff}.product-parameters .step button{background:#242039}
.product-checkout .total strong,.delivery-note,.picker-group{color:#c5b3ed}.picker-search,.connection-result,.delivery-content .connection-result{background:#211d36;border-color:#403653;color:#ece5ff}
.wallet-form input,.wallet-form select{background:#242039;border-color:#403653}.anonymity-toggle[aria-checked=true] .switch-track{background:#8969ff}
.wallet-identity{padding:20px 16px;border:1px solid #302a45;border-radius:18px;background:#171529}.wallet-identity strong{font-size:20px}.wallet-identity small{color:#b1a7ce}
.balance-card{position:relative;overflow:hidden;padding:20px;border-radius:22px;background:linear-gradient(115deg,#8767f5,#564099);isolation:isolate}
.balance-card::after{content:'$';position:absolute;right:-5px;top:-28px;z-index:-1;transform:rotate(14deg);font-size:200px;font-weight:800;line-height:1.2;color:#b99aff55;text-shadow:2px 2px 0 #e0caff33}
.balance-card>span{color:#f2eaff;font-weight:600}.balance-card>strong{font-size:36px;letter-spacing:-.03em;margin:16px 0}.balance-card .primary{background:#9474ff;border-radius:18px;padding:12px}
dialog{background:#171529;border-color:#36304d}
dialog.topup-sheet{width:min(100%,580px);max-height:90dvh;padding:22px 18px calc(24px + env(safe-area-inset-bottom));border:1px solid #36304d;border-bottom:0;border-radius:32px 32px 0 0;background:#171529;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 -12px 40px #0004}
.topup-sheet>.handle{display:none}.topup-sheet .sheethead{margin:0;min-height:40px}.topup-sheet .sheethead h2{margin:0;font-size:28px;font-weight:750;letter-spacing:-.025em}
.topup-sheet #dismiss{display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:50%;background:#242039;color:#aaa3bd}
.topup-intro{margin:8px 0 24px;color:#aaa3bd;font-size:16px}.topup-form h3{font-size:20px;letter-spacing:-.025em;margin:0 0 16px}
.topup-form .presets{gap:10px}.topup-form .presets button{min-height:48px;border:1px solid #302a47;border-radius:17px;background:#242039;font-weight:600}
.topup-form .presets button[aria-pressed=true]{border-color:#9875ff;background:#2a2245;color:#f4efff}
.topup-input{display:flex;align-items:center;gap:10px;margin:14px 0 20px;padding:16px 18px;border:1px solid #302a47;border-radius:18px;background:#242039;font-size:20px}.topup-input>span{color:#9890ad}.topup-input input{min-width:0;width:100%;padding:0;border:0;background:transparent;color:#f3eefc;outline-offset:5px}
.topup-form .payment-heading{border-top:1px solid #29233c;padding-top:22px;margin-top:0}
.topup-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.topup-method{display:flex;align-items:center;gap:12px;min-height:76px;padding:14px;text-align:left;border:1px solid #302a47;border-radius:20px;background:#242039}.topup-method strong{font-size:16px;overflow-wrap:anywhere}.topup-method[aria-pressed=true]{border-color:#9875ff;background:#2a2245;box-shadow:inset 0 0 0 1px #9875ff22}.topup-method .pay-badge{flex-shrink:0}
.topup-networks{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.network-choice{flex:1;padding:10px 8px;border:1px solid #403653;border-radius:14px;font-size:13px;background:#242039}.network-choice[aria-pressed=true]{border-color:#9875ff;background:#382a59}
.topup-form>.primary{min-height:58px;border-radius:20px;background:#8969ff;font-size:18px;margin-top:22px}.topup-form .pay-note{margin:12px 0 0;color:#b7aecb}
@media(max-width:360px){.topup-method{padding:10px;gap:8px}.topup-method strong{font-size:14px}.topup-method .pay-badge{width:32px;height:36px}.topup-method .pay-badge svg{width:26px;height:26px}.topup-sheet .sheethead h2{font-size:25px}}

/* Small promotional banners echo the balance card. */
.home-service.promo-banner{position:relative;isolation:isolate;overflow:hidden;min-height:184px;padding:20px;border:1px solid #ffffff12;background:linear-gradient(120deg,#7857d9,#463177);box-shadow:inset 0 1px 0 #ffffff0c;gap:14px}
.promo-banner[data-promo=stars]{background:linear-gradient(120deg,#8b65d8,#5c3c88)}
.promo-banner[data-promo=premium]{background:linear-gradient(120deg,#8460eb,#503581)}
.promo-banner[data-promo=advertising]{background:linear-gradient(120deg,#7054b8,#403065)}
.home-service.promo-banner>strong{position:relative;z-index:1;color:#fff;max-width:100%;font-size:20px;line-height:1.2;text-shadow:0 1px 6px #28194d33}
.home-service.promo-banner{grid-template-rows:1fr auto;align-items:start}
.home-service.promo-banner>.banner-cta{position:relative;z-index:1;align-self:end;display:block;width:100%;padding:10px 12px;border-radius:15px;background:#ffffff19;color:#f3ebff;font-size:13px;font-weight:600;line-height:1.3}
.home-service.promo-banner>.promo-art{position:absolute;right:-22px;top:10px;width:130px;height:130px;opacity:.2;transform:rotate(16deg);filter:grayscale(1) brightness(1.8);pointer-events:none;z-index:0}
.home-service.promo-banner>.promo-art svg{width:130px;height:130px;filter:none}
.home-service.promo-banner:hover>.banner-cta{background:#ffffff28}
@media(max-width:360px){.home-service.promo-banner{padding:16px;min-height:180px}.home-service.promo-banner>strong{font-size:18px}.home-service.promo-banner>.banner-cta{padding:9px;font-size:12px}}

/* Welcome banner in the same family as the balance and quick-access cards. */


.category-icon shop-emoji{display:block;position:relative;width:100%;height:100%;min-width:1em;min-height:1em}.category-icon shop-emoji :is(img,video,span,svg){position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}

/* Give image and SVG icons the same footprint in the catalog. */
.shortcut { --catalog-icon-size: 38px }
.identity, .item:has(> .category-icon) {
  --catalog-icon-size: 28px;
  padding-inline: 16px;
  gap: 10px;
}
:is(.shortcut,.identity,.item) > .category-icon {
  width: var(--catalog-icon-size);
  height: var(--catalog-icon-size);
}
:is(.shortcut,.identity,.item) > .category-icon > svg {
  width: 100%;
  height: 100%;
}
/* The Telegram thumbnail has more transparent padding than the other files. */
:is(.shortcut,.identity,.item) > .category-icon[data-brand=telegram] img {
  transform: translate(6%, -5%) scale(1.18);
}

/* Cart uses the same panels and accent as the product screen. */
.basket-panel,.basket-notice {display:grid;gap:12px;min-width:0;margin:0;padding:0;border:0}
.basket-product,.basket-total,.basket-notice {padding:18px;border-radius:20px;background:var(--panel)}
.basket-heading,.basket-controls,.basket-total {display:flex;align-items:center;justify-content:space-between;gap:12px}
.basket-heading strong {min-width:0;overflow-wrap:anywhere;font-size:1.05rem}
.basket-heading b,.basket-total b {flex:none;color:var(--accent);font-variant-numeric:tabular-nums}
.basket-controls {margin-top:16px}
.basket-step {display:inline-flex;align-items:center;gap:4px;padding:3px;border-radius:14px;background:#ffffff0a}
.basket-step button,.basket-remove {min-height:40px;padding:0 12px;border-radius:11px;background:transparent}
.basket-step span {min-width:2ch;text-align:center;font-variant-numeric:tabular-nums}
.basket-remove {color:var(--secondary)}
.basket-total b {font-size:1.25rem}
.basket-notice {gap:20px}

/* Top-up uses the same card spacing and controls as the shop cart. */
dialog.topup-sheet {width:min(100%,480px);box-sizing:border-box;background:var(--shop-sheet-bg,#100e20);padding:16px 14px calc(16px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;overflow-y:auto}
.topup-sheet .sheethead {margin-bottom:12px}
.topup-sheet .sheethead h2 {font-size:23px;line-height:1.2}
.topup-form {display:grid;gap:12px;margin:0}
.topup-card {min-width:0;padding:16px;border-radius:20px;background:var(--panel)}
.topup-card h3 {margin:0 0 12px;font-size:17px}
.topup-card .topup-input {margin:0 0 10px;padding:12px 14px;font-size:23px;font-weight:650}
.topup-input:focus-within {border-color:var(--accent)}
.topup-input input {font:inherit}
.topup-card .presets {gap:6px}
.topup-card .presets button {min-height:40px;border-radius:13px}
.topup-card .topup-method {min-height:54px;padding:9px;gap:8px;border-radius:15px}
.topup-card .topup-method strong {font-size:14px}
.topup-card .pay-badge {width:30px;height:30px}
.topup-card .pay-badge svg {width:24px;height:24px}
.topup-card .topup-networks[hidden] {display:none}
.topup-form>.primary {margin:0;min-height:48px;padding:12px;border-radius:16px;font-size:16px;background:var(--accent)}
.topup-form .pay-note {margin:0}

.topup-card .topup-methods {grid-template-columns:1fr;gap:6px}
.topup-card .topup-method {display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:12px;width:100%;padding:9px 12px}
.topup-card .topup-method .pay-badge,.bill-heading .pay-badge {width:36px;height:36px;border-radius:12px}
.topup-method .method-label {display:grid;gap:2px;min-width:0}
.topup-method .method-label strong {font-weight:750;font-size:16px;overflow-wrap:normal}
.method-label small,.bill-title small,.bill-field small {color:var(--secondary);font-size:13px}
.topup-networks {display:grid;grid-template-columns:repeat(auto-fit,minmax(94px,1fr));gap:6px}
.topup-networks .network-choice {display:grid;justify-items:center;align-content:center;gap:5px;min-height:54px;padding:6px 2px}
.network-choice strong {font-size:13px;font-weight:750;white-space:nowrap}
.topup-card .network-choice .pay-badge {width:20px;height:20px;border-radius:7px}
.topup-card .network-choice svg {width:16px;height:16px}
.invoice {display:grid;gap:12px;padding:16px;border-radius:20px}
.bill-heading {display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px}
.bill-title {display:grid;gap:2px}
.bill-heading b {color:var(--accent);font-variant-numeric:tabular-nums}
.invoice p {margin:0}
.bill-status {color:var(--secondary);line-height:1.4}
.bill-details {border-radius:16px;background:#242039}
.bill-field {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center;padding:12px}
.bill-field+.bill-field {border-top:1px solid #ffffff10}
.bill-field code {grid-column:1/-1;overflow-wrap:anywhere;user-select:all}
.invoice button,.invoice a {margin:0;text-align:center;padding:12px;border-radius:15px;font-weight:700}
.invoice .bill-field button {padding:6px 9px;font-size:12px;background:var(--panel)}
.invoice a {background:var(--accent);color:white;text-decoration:none}

.manual-contact a {display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:52px;padding:14px 20px;border-radius:20px;overflow:hidden;text-align:center;text-decoration:none;font-weight:700}

.account-delivery { display: grid; gap: 12px; padding: 20px; border-radius: 24px; }
.account-credentials { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-variant-numeric: tabular-nums; }
.account-delivery .purchase-status { color: #b6a4f5; }

/* Purchased Telegram accounts: one rounded card per account. */
.account-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.account-number{display:grid;place-items:center;min-width:40px;height:40px;padding:0 10px;border-radius:14px;background:rgba(139,108,255,.18);color:#c6b6ff;font-size:20px;font-weight:800}
.account-details{display:grid;gap:10px;min-width:0}
.account-value{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:14px;border-radius:18px;background:rgba(139,108,255,.07);min-width:0}
.account-label{color:var(--secondary);font-size:13px;font-weight:600;grid-column:1/-1}
.account-value strong,.account-value code{align-self:center;overflow-wrap:anywhere;user-select:text;font-size:17px;min-width:0}
.account-copy{padding:8px 10px;border-radius:12px;font-size:12px;font-weight:600;background:rgba(139,108,255,.13)}
.account-code-actions{display:grid;gap:10px;padding:16px;border-radius:18px;background:rgba(139,108,255,.13)}
.account-code-actions .account-credentials{font-size:30px;font-weight:800;letter-spacing:.15em;user-select:text;color:#d4c7ff}
.account-status{margin:0;color:var(--secondary);font-size:13px;overflow-wrap:anywhere}.account-status:empty{display:none}
.account-code-button{border-radius:18px!important;min-height:48px;font-weight:700}
@media(max-width:360px){.account-delivery{padding:14px}.account-value{grid-template-columns:minmax(0,1fr)}.account-copy{justify-self:start}}

/* Purchase confirmation stays above the selected product, without navigation. */
dialog.purchase-sheet{box-sizing:border-box;width:min(100%,480px);max-height:85dvh;padding:10px 16px calc(20px + env(safe-area-inset-bottom));border:1px solid #36304d;border-bottom:0;border-radius:28px 28px 0 0;background:var(--shop-sheet-bg,#100e20);box-shadow:0 -12px 40px #0004}
.purchase-sheet[open]{animation:purchase-rise .22s ease-out}
.purchase-sheet .sheethead h2{margin:0;font-size:23px;font-weight:750;line-height:1.2}
#purchase-dismiss{flex:0 0 36px;width:36px;height:36px;padding:0;border-radius:50%;background:#242039;color:#bdb6cf;font-size:26px}
.purchase-amount{display:block;margin-top:18px;font-size:36px;letter-spacing:-.03em}
.purchase-note{margin:4px 0 18px;color:var(--secondary);font-size:14px}
.purchase-sheet .purchase-review{margin:0 0 16px;padding:16px;border-radius:20px}
.purchase-sheet .primary{border-radius:20px;min-height:54px;font-weight:750}
.purchase-status:empty{display:none}.purchase-status{font-size:14px;line-height:1.4}
@keyframes purchase-rise{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.purchase-sheet[open]{animation:none}}

.purchase-sheet .purchase-review{display:flex;flex-direction:column;align-items:stretch;gap:16px}.purchase-review-entry{display:flex;align-items:center;gap:12px}.purchase-review-label{display:grid;gap:5px;min-width:0}.purchase-review-label small{color:var(--secondary);overflow-wrap:anywhere}.category-icon[hidden]{display:none}

.purchase-details{background:var(--panel);border:1px solid #ffffff08;border-radius:22px;padding:6px 16px;margin:12px 0 18px}
.purchase-detail{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;font-size:15px}
.purchase-detail+.purchase-detail{border-top:1px solid #ffffff09}
.purchase-detail>span{color:var(--secondary)}.purchase-detail time{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}.purchase-detail strong{font-size:18px;color:#c4adff}

.profile-links{display:grid;gap:10px;margin:18px 0}.profile-link{display:flex;align-items:center;gap:13px;width:100%;padding:16px;border-radius:21px;background:var(--panel);border:1px solid #ffffff08;text-align:left;min-height:74px}.profile-link strong{flex:1;font-size:16px;font-weight:650}.profile-link-icon{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:13px;background:#30264b;color:#bba1ff}.profile-link-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.profile-link-arrow{color:var(--secondary);font-size:25px}
.history-tabs{display:flex;gap:7px;margin:6px 0 18px;overflow-x:auto;padding:4px;background:#171529;border-radius:19px}.history-tabs button{flex:1;white-space:nowrap;border-radius:15px;padding:12px 10px;background:transparent;color:var(--secondary);font-size:13px;font-weight:650}.history-tabs button[aria-pressed=true]{background:#342750;color:#cbb6ff}.purchase-history{display:grid;gap:12px}.history-card{display:flex;align-items:center;gap:12px;width:100%;min-height:94px;padding:17px 15px;border-radius:22px;background:var(--panel);border:1px solid #ffffff08;text-align:left}.history-card-content{flex:1;min-width:0}.history-card-content>strong{display:block;font-size:16px;line-height:1.4;overflow-wrap:anywhere}.history-card-details{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;margin-top:8px;font-size:12px;color:var(--secondary)}.history-card-details b{font-size:14px;color:#c4adff}.history-card .category-icon{flex-shrink:0}.history-empty{padding:32px 20px;text-align:center;color:var(--secondary);background:var(--panel);border-radius:22px}


/* Allow scrolling, but no double-tap or pinch scaling. */
html,body{touch-action:pan-x pan-y}
button,a,input,textarea,select{touch-action:manipulation}
input,textarea,select{font-size:max(16px,1em)}
html.keyboard-open nav{display:none!important}
html.keyboard-open main{padding-bottom:20px}
html.keyboard-open dialog[open]{max-height:calc(var(--visible-height,100dvh) - 16px);scroll-padding-bottom:20px}
input,textarea{scroll-margin-block:24px}

 .ad-form{display:grid;gap:16px}
.ad-placements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:0;padding:0;margin:0;min-width:0}
.ad-placements legend,.ad-field{font-weight:650;font-size:15px}.ad-placements legend{padding:0;margin-bottom:8px}
.ad-choice,.ad-upload{position:relative;cursor:pointer}
.ad-choice input,.ad-upload input{position:absolute;width:1px;height:1px;opacity:0}
.ad-choice span{display:flex;align-items:center;min-height:50px;padding:8px 12px;box-sizing:border-box;border:1px solid #373046;border-radius:16px;background:var(--panel);font-size:14px;font-weight:600}
.ad-choice input:checked+span{border-color:var(--accent);color:#dfd4ff;background:#322548}
.ad-choice input:focus-visible+span,.ad-upload:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.ad-field{display:grid;gap:6px}.ad-field input{width:100%;min-width:0;box-sizing:border-box;padding:13px 15px;border:1px solid #403650;border-radius:16px;background:var(--panel);color:inherit;font:inherit;font-size:16px;font-weight:450}
.ad-field input:focus{outline:1px solid var(--accent)}
.ad-upload,.ad-success{display:grid;grid-template-columns:40px minmax(0,1fr);gap:4px 12px;align-items:center;padding:15px;border-radius:19px;background:var(--panel)}
.ad-upload{border:1px dashed #665480}.ad-plus,.ad-success .category-icon{grid-row:span 2;display:grid;place-items:center;width:40px;height:40px;border-radius:13px;color:#c4adff;background:#30264b}
.ad-upload strong,.ad-success strong{overflow-wrap:anywhere}.ad-upload small,.ad-success small{color:var(--secondary)}
.ad-form .primary,.ad-done{min-height:49px;border-radius:17px}.ad-success{margin-bottom:16px}.ad-status{margin:0;font-size:14px}.ad-status:empty{display:none}


#rail{align-items:center;gap:4px;padding:10px 0}
#rail .shortcut{
  border:0;background:transparent;box-shadow:none;color:var(--secondary);
}
#rail:not(.home-drift) .shortcut{
  display:block;min-width:0;max-width:none;padding:9px 11px;
  white-space:nowrap;font-size:15px;font-weight:500;line-height:1.25;
}
#rail:not(.home-drift) .shortcut[aria-current=true]{color:#fff;font-weight:650}
#rail.home-drift .shortcut{color:#dedce6}
#rail.home-drift{scroll-snap-type:none;scroll-behavior:auto}


.home-welcome-banner {display:block;width:100%;height:auto;border-radius:20px}
