:root{--bg:#09090a;--surface:#111113;--surface2:#17171a;--line:rgba(255,255,255,.08);--line2:rgba(255,255,255,.14);--text:#f5f5f5;--muted:#8e8e96;--muted2:#66666d;--accent:#7c6cff;--accent2:#a49aff;--safe:#61d69b;--warn:#ffcb6b;--danger:#ff6f7d;--radius:22px;--nav:76px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}.app-shell{max-width:640px;min-height:100dvh;margin:auto;background:linear-gradient(180deg,#0d0d10 0,#09090a 40%);position:relative;padding-bottom:calc(var(--nav) + env(safe-area-inset-bottom))}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:12px 18px;position:sticky;top:0;z-index:20;background:rgba(9,9,10,.84);backdrop-filter:blur(18px);border-bottom:1px solid transparent}.brand{appearance:none;border:0;background:none;color:var(--text);font:800 17px/1 inherit;letter-spacing:.08em;display:flex;align-items:center;gap:10px;padding:0}.brand-mark{width:31px;height:31px;border-radius:10px;background:#f1f1f2;color:#0b0b0c;display:grid;place-items:center;font-weight:950;letter-spacing:-.05em}.top-actions{display:flex;gap:9px;align-items:center}.icon-btn,.profile-dot{width:40px;height:40px;border-radius:13px;border:1px solid var(--line);background:var(--surface);color:var(--text);display:grid;place-items:center}.profile-dot{font-weight:800;font-size:14px}.icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.view{padding:0 16px 30px}.hero{padding:22px 2px 18px}.kicker{font-size:11px;color:var(--accent2);letter-spacing:.14em;font-weight:800;text-transform:uppercase}.hero h1{font-size:42px;line-height:.98;letter-spacing:-.055em;margin:9px 0 13px;max-width:430px}.hero h1 span{color:#8c8c93}.hero p{color:var(--muted);font-size:15px;line-height:1.55;margin:0;max-width:460px}.hero-actions{display:flex;gap:10px;margin-top:20px}.primary,.secondary{height:48px;padding:0 18px;border-radius:15px;font-weight:800;border:0}.primary{background:#f2f2f3;color:#0b0b0c}.secondary{background:var(--surface);border:1px solid var(--line);color:var(--text)}.summary-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0 25px}.summary{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:14px}.summary strong{font-size:18px;display:block;letter-spacing:-.04em}.summary span{font-size:11px;color:var(--muted);display:block;margin-top:4px}.section-head{display:flex;align-items:end;justify-content:space-between;margin:24px 1px 12px}.section-head h2{font-size:20px;margin:0;letter-spacing:-.035em}.section-head button,.section-head span{border:0;background:none;color:var(--muted);font-size:12px}.chips{display:flex;gap:8px;overflow:auto;padding:2px 0 10px;scrollbar-width:none}.chip{white-space:nowrap;border:1px solid var(--line);background:var(--surface);color:var(--muted);padding:9px 13px;border-radius:999px;font-size:12px;font-weight:700}.chip.active{background:#eee;color:#0d0d0e;border-color:#eee}.product-list{display:grid;gap:10px}.product-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px;overflow:hidden}.product-card:active{transform:scale(.992)}.product-top{display:flex;justify-content:space-between;gap:14px}.country{font-size:10px;letter-spacing:.12em;color:var(--muted);font-weight:800;text-transform:uppercase}.product-card h3{font-size:17px;line-height:1.2;margin:7px 0 9px;letter-spacing:-.025em}.badges{display:flex;flex-wrap:wrap;gap:6px}.badge{font-size:10px;color:#b9b9bf;border:1px solid var(--line);border-radius:8px;padding:5px 7px;background:rgba(255,255,255,.025)}.availability{font-size:10px;color:var(--safe);font-weight:800}.product-bottom{display:flex;align-items:end;justify-content:space-between;margin-top:18px}.price{font-size:22px;font-weight:900;letter-spacing:-.04em}.price small{display:block;font-size:10px;color:var(--muted);font-weight:600;letter-spacing:0;margin-bottom:3px}.card-arrow{width:38px;height:38px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);color:var(--text);font-size:18px}.catalog-head{padding:18px 0 6px}.catalog-head h1,.page-title{font-size:30px;letter-spacing:-.045em;margin:0 0 7px}.catalog-head p,.page-sub{margin:0;color:var(--muted);font-size:13px}.inline-search{margin:16px 0 12px;height:48px;border:1px solid var(--line);background:var(--surface);border-radius:15px;display:flex;align-items:center;padding:0 14px;gap:9px}.inline-search input{width:100%;border:0;outline:0;background:none;color:var(--text);font-size:14px}.inline-search svg{width:18px;stroke:var(--muted);fill:none}.empty{border:1px dashed var(--line2);border-radius:20px;padding:36px 22px;text-align:center;color:var(--muted);margin-top:14px}.empty strong{display:block;color:var(--text);font-size:17px;margin-bottom:7px}.order-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:15px;margin-top:10px}.order-row{display:flex;justify-content:space-between;gap:12px}.order-card h3{font-size:15px;margin:5px 0}.order-meta{font-size:11px;color:var(--muted)}.status{font-size:10px;font-weight:800;padding:6px 8px;border-radius:8px;height:max-content;background:rgba(255,203,107,.08);color:var(--warn)}.status.paid,.status.processing,.status.completed{background:rgba(97,214,155,.08);color:var(--safe)}.profile-card{margin-top:16px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:18px}.profile-head{display:flex;align-items:center;gap:13px}.big-avatar{width:54px;height:54px;border-radius:18px;background:#ededee;color:#0c0c0d;display:grid;place-items:center;font-size:20px;font-weight:900}.profile-head h2{margin:0;font-size:18px}.profile-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.menu-list{margin-top:14px;border-top:1px solid var(--line)}.menu-row{display:flex;align-items:center;justify-content:space-between;padding:15px 1px;border-bottom:1px solid var(--line);font-size:13px}.menu-row span:last-child{color:var(--muted)}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(640px,100%);height:calc(var(--nav) + env(safe-area-inset-bottom));padding:8px 12px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(4,1fr);background:rgba(12,12,14,.94);backdrop-filter:blur(24px);border-top:1px solid var(--line);z-index:30}.nav-item{border:0;background:none;color:#66666d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px}.nav-item svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-item.active{color:#f4f4f5}.search-layer{position:fixed;inset:0;background:#0a0a0b;z-index:60;max-width:640px;margin:auto;padding:env(safe-area-inset-top) 16px 20px}.search-head{height:70px;display:flex;align-items:center;gap:9px}.search-field{flex:1;height:44px;border-radius:14px;background:var(--surface);border:1px solid var(--line);display:flex;align-items:center;gap:8px;padding:0 12px}.search-field svg{width:18px;stroke:var(--muted);fill:none}.search-field input{border:0;background:none;outline:0;color:var(--text);width:100%;font-size:14px}.search-results{padding-top:10px}.sheet-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:70;display:flex;align-items:flex-end;justify-content:center;backdrop-filter:blur(5px)}.sheet{width:min(640px,100%);max-height:88dvh;overflow:auto;background:#121214;border:1px solid var(--line2);border-bottom:0;border-radius:28px 28px 0 0;padding:10px 18px calc(24px + env(safe-area-inset-bottom));position:relative;animation:up .24s ease}.sheet-handle{width:42px;height:4px;background:#3d3d43;border-radius:10px;margin:0 auto 12px}.sheet-close{position:absolute;right:16px;top:15px;width:36px;height:36px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);color:var(--text);font-size:22px}.sheet h2{font-size:27px;letter-spacing:-.045em;margin:9px 42px 7px 0}.sheet p{font-size:13px;line-height:1.55;color:var(--muted)}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.detail{background:#18181b;border:1px solid var(--line);border-radius:15px;padding:13px}.detail small{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}.detail b{font-size:14px}.buybar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px}.buybar .price{font-size:24px}.pay{height:50px;flex:1;max-width:270px;border:0;border-radius:16px;background:#f2f2f3;color:#0b0b0c;font-weight:900}.pay:disabled{opacity:.5}.notice{font-size:10px!important;color:#696970!important;border-top:1px solid var(--line);padding-top:13px;margin-top:16px!important}.toast{position:fixed;left:50%;bottom:100px;transform:translate(-50%,15px);background:#eee;color:#111;border-radius:12px;padding:10px 14px;font-size:12px;font-weight:700;opacity:0;pointer-events:none;transition:.2s;z-index:90}.toast.show{opacity:1;transform:translate(-50%,0)}.skeleton{height:142px;border-radius:20px;background:linear-gradient(90deg,#111113,#19191c,#111113);background-size:200% 100%;animation:shine 1.3s infinite;margin-bottom:10px}@keyframes shine{to{background-position:-200% 0}}@keyframes up{from{transform:translateY(25px);opacity:.5}}[hidden]{display:none!important}@media(min-width:680px){body{background:#050506}.app-shell{border-left:1px solid var(--line);border-right:1px solid var(--line)}.hero{padding-top:34px}.hero h1{font-size:49px}.product-list{grid-template-columns:1fr 1fr}.summary-strip{gap:10px}}

/* TONIX 3.0 additions */
.splash{position:fixed;inset:0;z-index:200;background:#070708;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:hidden;transition:opacity .45s ease,transform .45s ease}.splash.out{opacity:0;transform:scale(1.02);pointer-events:none}.splash-grid{position:absolute;inset:-20%;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:28px 28px;transform:perspective(550px) rotateX(62deg) translateY(18%);mask-image:linear-gradient(to bottom,transparent,black 38%,transparent)}.splash-orbit{position:absolute;width:190px;height:190px;border:1px solid rgba(255,255,255,.08);border-radius:50%;animation:spin 5s linear infinite}.splash-orbit:before{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:#8d7dff;box-shadow:0 0 25px #8d7dff;top:18px;left:29px}.splash-core{width:76px;height:76px;border-radius:24px;background:linear-gradient(145deg,#f5f5f5,#b8b2ff);display:grid;place-items:center;color:#09090a;font-weight:950;font-size:31px;box-shadow:0 0 80px rgba(124,108,255,.24);position:relative}.splash-core:after{content:"";position:absolute;inset:-10px;border:1px solid rgba(255,255,255,.11);border-radius:31px}.splash-copy{text-align:center;margin-top:24px;position:relative}.splash-copy strong{display:block;letter-spacing:.18em;font-size:20px}.splash-copy small{display:block;color:#64646c;font-size:9px;letter-spacing:.24em;margin-top:7px}.splash-progress{width:154px;height:2px;background:#1d1d20;border-radius:4px;margin-top:25px;overflow:hidden}.splash-progress i{display:block;height:100%;width:45%;background:#9d91ff;animation:loadbar 1.15s ease-in-out infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes loadbar{0%{transform:translateX(-110%)}100%{transform:translateX(330%)}}
.bottom-nav{grid-template-columns:repeat(5,1fr)}.nav-item{font-size:9px}.nav-item svg{width:20px;height:20px}
.legal-card{display:grid;grid-template-columns:42px 1fr;gap:13px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:17px;margin-top:11px}.legal-icon{width:42px;height:42px;border-radius:13px;border:1px solid var(--line2);display:grid;place-items:center;color:var(--accent2);font-size:11px;font-weight:900}.legal-card h2{font-size:17px;margin:1px 0 8px;letter-spacing:-.03em}.legal-card p{font-size:12px;line-height:1.62;color:var(--muted);margin:0 0 10px}.legal-note{font-size:10px;line-height:1.5;color:var(--muted2);padding:16px 4px 8px}.menu-button{width:100%;background:none;border:0;color:var(--text);font:inherit;text-align:left}.admin-entry{width:100%;display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding:16px 17px;border-radius:18px;border:1px solid rgba(124,108,255,.3);background:linear-gradient(135deg,rgba(124,108,255,.12),rgba(124,108,255,.035));color:var(--text);text-align:left}.admin-entry small{display:block;color:var(--accent2);font-size:9px;letter-spacing:.12em;margin-bottom:4px}.admin-entry b{font-size:14px}.admin-entry>span:last-child{font-size:20px;color:var(--accent2)}
.promo-box{margin-top:16px;padding:13px;background:#0e0e10;border:1px solid var(--line);border-radius:16px}.promo-box label{display:block;font-size:10px;color:var(--muted);font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px}.promo-line{display:flex;gap:7px}.promo-line input{min-width:0;flex:1;height:43px;border:1px solid var(--line2);border-radius:12px;background:#17171a;color:var(--text);padding:0 12px;outline:none;text-transform:uppercase}.promo-line button{height:43px;border:0;border-radius:12px;background:#ececef;color:#0a0a0b;font-weight:850;padding:0 13px}.promo-result{min-height:16px;margin-top:8px;font-size:10px;color:var(--muted)}.promo-result.ok{color:var(--safe)}.promo-result.error{color:var(--danger)}.price s{color:var(--muted);font-weight:600}.price small{line-height:1.35}

/* ===== ДОПОЛНЕНИЯ ДЛЯ ОТОБРАЖЕНИЯ КОДА ===== */
#codeBlock {
  background: #1a1a1c;
  border-radius: 12px;
  border: 1px solid #2a2a2c;
  padding: 16px;
  margin-top: 20px;
}
#codeDisplay {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  background: #0d0d0e;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #3a3a3c;
  color: #fff;
  transition: all 0.2s;
}
#codeDisplay.ok {
  border-color: #4caf50;
  background: #0f1f0f;
}
#codeStatus {
  font-size: 13px;
  color: #8e8ea0;
  text-align: center;
  margin-top: 8px;
}
#refreshCodeBtn {
  background: none;
  border: none;
  color: #6c6c7a;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}
#refreshCodeBtn:hover {
  background: #2a2a2c;
}
.order-card {
  cursor: pointer;
}