*{box-sizing:border-box}
:root{
  --bg:#050b13;
  --bg2:#081323;
  --card:rgba(13,31,52,.78);
  --card2:rgba(19,49,81,.62);
  --line:rgba(115,200,255,.16);
  --text:#eef7ff;
  --muted:#8ba4ba;
  --accent:#37b7ff;
  --accent2:#6be7ff;
  --good:#53e09a;
  --shadow:0 20px 60px rgba(0,0,0,.38);
}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 20% -10%,rgba(40,169,255,.23),transparent 33%),
    radial-gradient(circle at 90% 20%,rgba(0,91,255,.18),transparent 25%),
    linear-gradient(180deg,#07111f 0%,#03070c 100%);
  min-height:100vh;
}
button,input,select{font:inherit}
button{cursor:pointer}
.app-shell{max-width:620px;margin:0 auto;min-height:100vh;padding:0 16px 96px}
.topbar{
  position:sticky;top:0;z-index:20;
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0 12px;
  background:linear-gradient(180deg,rgba(5,11,19,.96),rgba(5,11,19,.68),transparent);
  backdrop-filter:blur(12px);
}
.brand{display:flex;gap:10px;align-items:center}
.brand-mark{
  width:42px;height:42px;border-radius:13px;display:grid;place-items:center;
  font-weight:900;letter-spacing:-2px;color:#00101e;
  background:linear-gradient(135deg,var(--accent2),var(--accent));
  box-shadow:0 0 28px rgba(55,183,255,.28);
}
.brand-title{font-weight:900;letter-spacing:.4px}
.brand-subtitle{font-size:10px;color:var(--muted);margin-top:2px;letter-spacing:1.2px}
.icon-btn{
  width:40px;height:40px;border:1px solid var(--line);border-radius:13px;
  color:var(--text);background:rgba(15,33,53,.7);
}
.hero{
  position:relative;overflow:hidden;min-height:255px;margin-top:8px;padding:26px 20px;
  display:flex;align-items:center;
  border:1px solid var(--line);border-radius:28px;
  background:
    linear-gradient(135deg,rgba(17,59,94,.88),rgba(5,18,32,.92)),
    radial-gradient(circle at 78% 35%,rgba(91,216,255,.2),transparent 35%);
  box-shadow:var(--shadow);
}
.hero-glow{
  position:absolute;width:240px;height:240px;right:-80px;top:-80px;border-radius:50%;
  background:radial-gradient(circle,rgba(57,195,255,.22),transparent 67%);
}
.hero-copy{position:relative;z-index:2;max-width:62%}
.eyebrow{margin:0 0 6px;color:#64cfff;font-size:10px;font-weight:800;letter-spacing:1.6px}
.hero h1,.section h2,.sheet h2,.page-overlay h2{margin:0}
.hero h1{font-size:28px;line-height:1.05}
.hero p:not(.eyebrow){color:#adc1d4;font-size:13px;line-height:1.5}
.primary-btn,.secondary-btn{
  border:0;border-radius:14px;padding:12px 16px;font-weight:800;
}
.primary-btn{
  color:#00101d;background:linear-gradient(135deg,var(--accent2),var(--accent));
  box-shadow:0 8px 25px rgba(55,183,255,.18);
}
.secondary-btn{
  color:var(--text);border:1px solid var(--line);background:rgba(26,63,96,.55)
}
.primary-btn.full{width:100%;padding:14px}
.robot{
  position:absolute;right:20px;bottom:24px;width:112px;height:145px;filter:drop-shadow(0 14px 30px rgba(0,0,0,.38))
}
.robot-head{
  width:84px;height:66px;margin:0 auto;border-radius:26px 26px 18px 18px;
  background:linear-gradient(145deg,#dceeff,#6f98b7 58%,#25435a);
  border:3px solid #9ddcff;display:flex;align-items:center;justify-content:center;gap:16px;
  box-shadow:inset 0 -10px 18px rgba(0,0,0,.28),0 0 25px rgba(91,216,255,.28);
}
.robot-eye{width:9px;height:9px;border-radius:50%;background:#6be7ff;box-shadow:0 0 12px #6be7ff}
.robot-body{
  position:relative;width:98px;height:77px;margin:-4px auto 0;border-radius:22px 22px 28px 28px;
  display:grid;place-items:center;font-weight:1000;font-size:30px;letter-spacing:-4px;
  color:#6fe8ff;background:linear-gradient(145deg,#243f55,#0e1e2d);
  border:3px solid #719cba;box-shadow:inset 0 -10px 25px rgba(0,0,0,.35)
}
.robot-arm{position:absolute;width:22px;height:62px;bottom:7px;border-radius:20px;background:#234459;border:2px solid #79a7c6}
.robot-arm.left{left:-6px;transform:rotate(14deg)}
.robot-arm.right{right:-6px;transform:rotate(-14deg)}
.quick-stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 6px
}
.quick-stats div{
  padding:12px 8px;text-align:center;border:1px solid var(--line);border-radius:16px;background:rgba(9,25,42,.65)
}
.quick-stats strong{display:block;font-size:16px;color:#dff7ff}
.quick-stats span{font-size:10px;color:var(--muted)}
.section{margin-top:24px}
.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:12px}
.section h2{font-size:20px}
.status-dot{
  font-size:11px;color:var(--good);padding:6px 10px;border-radius:999px;
  border:1px solid rgba(83,224,154,.2);background:rgba(83,224,154,.08)
}
.category-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.category-card{
  min-height:125px;text-align:left;padding:16px;border:1px solid var(--line);border-radius:22px;
  color:var(--text);background:
    linear-gradient(150deg,rgba(19,49,81,.72),rgba(8,20,35,.85));
  box-shadow:0 12px 35px rgba(0,0,0,.16);
  transition:.18s transform,.18s border-color
}
.category-card:active{transform:scale(.98)}
.category-card:hover{border-color:rgba(107,231,255,.35)}
.category-icon{display:block;font-size:30px;margin-bottom:13px}
.category-name{display:block;font-weight:900;font-size:16px}
.category-desc{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.product-strip{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.product-card{
  border:1px solid var(--line);border-radius:20px;padding:14px;background:rgba(12,29,49,.72)
}
.product-card .logo{
  width:42px;height:42px;border-radius:13px;display:grid;place-items:center;margin-bottom:12px;
  font-size:20px;background:rgba(71,185,255,.12);border:1px solid rgba(103,208,255,.16)
}
.product-card h4{margin:0 0 4px;font-size:14px}
.product-card p{margin:0;color:var(--muted);font-size:10px}
.product-card button{width:100%;margin-top:12px;padding:9px;border:0;border-radius:12px;background:#102e49;color:#aee9ff;font-weight:800}
.support-card{
  margin:24px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:18px;border-radius:22px;border:1px solid var(--line);
  background:linear-gradient(135deg,rgba(19,57,92,.82),rgba(8,24,42,.76))
}
.support-card h3{margin:0 0 6px}
.support-card p:not(.eyebrow){margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.bottom-nav{
  position:fixed;z-index:25;bottom:10px;left:50%;transform:translateX(-50%);
  width:min(calc(100% - 24px),596px);
  display:grid;grid-template-columns:repeat(4,1fr);padding:8px;
  border:1px solid var(--line);border-radius:22px;
  background:rgba(6,16,28,.92);backdrop-filter:blur(18px);box-shadow:0 14px 45px rgba(0,0,0,.45)
}
.nav-item{border:0;background:transparent;color:#6f879a;padding:6px;border-radius:14px}
.nav-item span{display:block;font-size:18px}
.nav-item small{display:block;font-size:9px;margin-top:2px}
.nav-item.active{color:#7be8ff;background:rgba(76,188,255,.08)}
.sheet-backdrop{
  position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.62);opacity:0;pointer-events:none;transition:.2s
}
.sheet-backdrop.show{opacity:1;pointer-events:auto}
.sheet{
  position:fixed;z-index:50;left:50%;bottom:0;transform:translate(-50%,105%);
  width:min(100%,620px);max-height:82vh;overflow:auto;
  padding:10px 16px calc(24px + env(safe-area-inset-bottom));
  border:1px solid var(--line);border-bottom:0;border-radius:28px 28px 0 0;
  background:linear-gradient(180deg,#0b1a2b,#050b13);box-shadow:0 -30px 70px rgba(0,0,0,.55);
  transition:.26s ease
}
.sheet.show{transform:translate(-50%,0)}
.sheet-handle{width:46px;height:5px;border-radius:99px;background:#27445e;margin:2px auto 14px}
.sheet-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.close-btn{font-size:24px}
.sheet-products{display:grid;gap:9px}
.sheet-product{
  display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);border-radius:17px;
  background:rgba(17,39,64,.67)
}
.sheet-product .sp-icon{
  width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#102c47;font-size:22px
}
.sheet-product .sp-info{flex:1}
.sheet-product strong{display:block}
.sheet-product small{color:var(--muted)}
.sheet-product button{border:0;border-radius:11px;padding:9px 11px;background:#123c5d;color:#8cecff;font-weight:900}
.field{display:block;margin-bottom:14px}
.field span{display:block;font-size:11px;color:#9eb4c7;margin:0 0 7px}
.field input,.field select{
  width:100%;padding:14px 13px;border-radius:14px;border:1px solid var(--line);
  color:var(--text);background:#0b1c2e;outline:none
}
.field select option{background:#0b1c2e}
.order-summary{
  margin:8px 0 15px;padding:14px;border-radius:16px;border:1px solid var(--line);background:rgba(20,47,76,.45)
}
.order-summary div{display:flex;justify-content:space-between;gap:20px;padding:5px 0;font-size:12px}
.order-summary span{color:var(--muted)}
.form-note{color:var(--muted);font-size:10px;text-align:center;line-height:1.5}
.page-overlay{
  position:fixed;z-index:35;top:0;bottom:0;left:50%;
  width:min(100%,620px);padding:16px 16px 100px;
  overflow:auto;background:linear-gradient(180deg,#07111f,#04080d);
  transform:translateX(calc(-50% + 110vw));
  opacity:0;visibility:hidden;pointer-events:none;
  transition:transform .26s ease,opacity .18s ease,visibility 0s linear .26s
}
.page-overlay.show{
  transform:translateX(-50%);
  opacity:1;visibility:visible;pointer-events:auto;
  transition:transform .26s ease,opacity .18s ease
}
.page-overlay-head{display:flex;gap:12px;align-items:center;margin-bottom:22px}
.empty-state{padding:28px;text-align:center;border:1px solid var(--line);border-radius:22px;background:rgba(12,30,51,.6)}
.empty-state .big{font-size:38px;margin-bottom:10px}
.empty-state p{color:var(--muted);font-size:12px}
.order-row{padding:14px;border:1px solid var(--line);border-radius:17px;background:rgba(13,33,56,.7);margin-bottom:9px}
.order-row-top{display:flex;justify-content:space-between;gap:10px}
.order-row strong{font-size:13px}
.order-row small{display:block;color:var(--muted);margin-top:5px}
.badge{font-size:9px;padding:5px 8px;border-radius:999px;color:#ffd483;background:rgba(255,197,85,.08);border:1px solid rgba(255,197,85,.17)}
.toast{
  position:fixed;z-index:80;left:50%;bottom:100px;transform:translate(-50%,25px);
  opacity:0;pointer-events:none;white-space:nowrap;max-width:90%;
  padding:11px 14px;border-radius:13px;background:#dff8ff;color:#06111e;font-weight:800;font-size:11px;
  transition:.22s
}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media (max-width:390px){
  .hero{min-height:235px}
  .hero-copy{max-width:66%}
  .hero h1{font-size:24px}
  .robot{right:11px;transform:scale(.88);transform-origin:bottom right}
}


/* v2 polish */
.service-search{
  display:flex;align-items:center;gap:10px;
  margin:0 0 12px;padding:0 13px;height:48px;
  border:1px solid var(--line);border-radius:16px;
  background:rgba(8,24,41,.75)
}
.service-search span{font-size:20px;color:#67d8ff}
.service-search input{
  width:100%;border:0;outline:0;background:transparent;color:var(--text);
  font-size:12px
}
.service-search input::placeholder{color:#678095}

.category-icon{
  width:42px;height:42px;border-radius:13px;
  display:grid!important;place-items:center;
  font-weight:1000;font-size:15px!important;letter-spacing:-.4px;
  color:#dff9ff;background:linear-gradient(145deg,#174568,#0a263f);
  border:1px solid rgba(105,222,255,.24);
  box-shadow:inset 0 0 18px rgba(78,191,255,.08),0 9px 24px rgba(0,0,0,.18)
}
.country-badge{font-size:16px!important}
.icon-game{font-size:18px!important}
.icon-telegram{color:#67dcff}
.icon-digital{color:#67dcff}
.icon-support{color:#5ce6a3}

.category-card.hidden-search{display:none}
.support-category{
  background:linear-gradient(150deg,rgba(15,63,72,.72),rgba(8,25,35,.88))
}
.support-category .category-desc{color:#8fd9c2}

.order-actions{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px
}
.order-action-btn{
  border:1px solid var(--line);border-radius:13px;padding:11px;
  color:#bcecff;background:#0d2942;font-weight:800;font-size:11px
}

.order-row .order-actions{margin-top:11px}

@media (min-width:900px){
  body{
    background:
      radial-gradient(circle at 25% 0%,rgba(40,169,255,.18),transparent 28%),
      linear-gradient(90deg,#071525 0,#050b13 23%,#050b13 77%,#071525 100%)
  }
  .app-shell{
    border-left:1px solid rgba(100,205,255,.05);
    border-right:1px solid rgba(100,205,255,.05)
  }
}


/* v3 - country flag image */
.category-icon.flag-icon{
  width:50px;
  height:36px;
  padding:0;
  overflow:hidden;
  border-radius:10px;
  background:transparent;
  border:1px solid rgba(126,220,255,.28);
  box-shadow:0 8px 22px rgba(0,0,0,.22);
}

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


/* v4 - image icons for service categories */
.category-icon.image-icon{
  width:46px;
  height:46px;
  padding:0;
  overflow:hidden;
  border-radius:14px;
  background:rgba(14,43,69,.88);
  border:1px solid rgba(98,218,255,.28);
  box-shadow:0 8px 24px rgba(0,0,0,.22);
}

.category-icon.image-icon img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}

.category-icon.telegram-category-icon{
  border-radius:50%;
  background:transparent;
  border:0;
  box-shadow:0 8px 24px rgba(34,156,255,.22);
}

.category-icon.telegram-category-icon img{
  border-radius:50%;
}


/* v5 - product/logo images */
.product-card .logo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  border-radius:10px;
}

.sheet-product .sp-icon{
  overflow:hidden;
}

.sheet-product .sp-icon img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  border-radius:11px;
}


/* v6 - recognizable sourced product logos */
.product-card .logo, .sheet-product .sp-icon{background:#f7fbff;border:1px solid rgba(255,255,255,.18);}
.product-card .logo{width:82px;height:48px;padding:5px 7px;border-radius:13px;}
.product-card .logo img,.sheet-product .sp-icon img{width:100%;height:100%;object-fit:contain;border-radius:7px;}
.sheet-product .sp-icon{width:62px;height:50px;padding:5px;}
.product-card .logo img[src*="telegram-stars"],.sheet-product .sp-icon img[src*="telegram-stars"]{border-radius:50%;}


/* v7 - use exact user-provided logos/icons */
.product-card .logo,
.sheet-product .sp-icon{
  background:#ffffff;
  padding:4px;
}

.product-card .logo img,
.sheet-product .sp-icon img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  border-radius:8px;
}

.product-card .logo{
  overflow:hidden;
}

.sheet-product .sp-icon{
  overflow:hidden;
}


.primary-btn:disabled{opacity:.55;cursor:wait}
.transaction-success{margin-bottom:12px}
.transaction-success .big{color:#53e09a}

.secondary-btn.full{width:100%;padding:14px}
.secondary-payment-btn{margin-top:9px}
.wallet-text{max-width:58%;text-align:right;word-break:break-all}
.copyable{letter-spacing:.4px}
.payment-reference-field{margin-top:12px}

/* v10 transaction flow */
.flow-step{display:flex;align-items:center;gap:10px;margin:16px 0 12px}
.flow-step span{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#48c8ff;color:#00111e;font-weight:900}
.flow-grid,.payment-choice{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.flow-card{min-height:86px;padding:14px;text-align:left;border:1px solid var(--line);border-radius:17px;background:#0b2034;color:#fff}
.flow-card b,.flow-card small{display:block}.flow-card small{color:var(--muted);margin-top:5px}
.back-mini{border:0;background:transparent;color:#71dfff;padding:6px 0}
.selected-box,.order-created{padding:15px;border:1px solid var(--line);border-radius:16px;background:#0c2136;margin-bottom:14px}
.selected-box b,.selected-box small,.order-created small,.order-created strong{display:block}
.selected-box small{color:var(--muted);margin-top:5px}
.order-created{text-align:center}.order-created strong{font-size:23px;color:#69e1ff;margin-top:5px}
.validation-ok{color:#53e09a;font-size:12px}.validation-error{color:#ff7f8e;font-size:12px}
.status-hero{padding:20px;text-align:center;border:1px solid var(--line);border-radius:20px;background:#0a2035;margin-bottom:14px}
.status-hero small,.status-hero strong,.status-hero span{display:block}
.status-hero strong{font-size:20px;margin:4px 0;color:#72ddff}.status-hero span{font-size:12px;color:var(--muted)}
.timeline{margin-top:15px}.timeline div{padding:10px 0;border-bottom:1px solid var(--line)}.timeline b,.timeline small{display:block}.timeline small{color:var(--muted);margin-top:3px}
@media(max-width:390px){.flow-grid,.payment-choice{grid-template-columns:1fr}}

/* v11 payment details */
.payment-qr-card{
  margin-bottom:14px;
  padding:16px;
  text-align:center;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  color:#07111f;
}
.payment-qr-card img{
  width:min(240px,75vw);
  height:auto;
  display:block;
  margin:0 auto 10px;
}
.payment-qr-card strong,.payment-qr-card small{display:block}
.payment-qr-card small{margin-top:4px;color:#53687a}
.payment-copy-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.payment-warning{
  margin-bottom:14px;padding:11px 12px;border-radius:13px;
  border:1px solid rgba(255,199,86,.22);
  background:rgba(255,199,86,.08);
  color:#ffd58a;font-size:11px;line-height:1.45
}
@media(max-width:390px){.payment-copy-actions{grid-template-columns:1fr}}


/* v12 Telegram Stars checkout */
.product-disabled{opacity:.48;cursor:not-allowed}
.stars-pay-card{
  display:flex;align-items:center;gap:13px;margin:14px 0;padding:14px;
  border:1px solid rgba(255,215,75,.22);border-radius:17px;
  background:linear-gradient(135deg,rgba(255,205,61,.08),rgba(14,35,57,.78))
}
.stars-pay-card .stars-big{font-size:34px}
.stars-pay-card b,.stars-pay-card small{display:block}
.stars-pay-card small{color:var(--muted);font-size:10px;margin-top:4px}
.order-row-button{width:100%;text-align:left;color:var(--text);cursor:pointer}
