:root{
  --bg:#f5f7fb;
  --bg-2:#eef3ff;
  --surface:rgba(255,255,255,.82);
  --surface-strong:rgba(255,255,255,.96);
  --line:rgba(17,26,47,.08);
  --line-strong:rgba(17,26,47,.14);
  --text:#111a2f;
  --muted:#66738f;
  --brand:#4a72f5;
  --brand-2:#7f68ff;
  --mint:#59c7c7;
  --success:#19a974;
  --success-bg:#eafbf4;
  --shadow:0 18px 54px rgba(35,55,100,.10);
  --radius:28px;
  --radius-sm:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:
    radial-gradient(circle at top left, rgba(127,104,255,.14), transparent 36%),
    radial-gradient(circle at top right, rgba(89,199,199,.14), transparent 28%),
    var(--bg);
  color:var(--text);
}
body.modal-open{overflow:hidden}

img{max-width:100%;display:block}
button,input{font:inherit}
a{text-decoration:none;color:inherit}

.container{width:min(1180px,calc(100% - 32px));margin:0 auto}
.section{padding:56px 0}
.card{
  background:var(--surface);
  backdrop-filter:blur(18px);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:var(--radius);
}
.eyebrow,.soft-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(127,104,255,.10);
  color:var(--brand-2);
  font-size:.8rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.soft-pill{
  min-height:34px;
  background:rgba(89,199,199,.12);
  color:#258c8c;
  letter-spacing:0;
  text-transform:none;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  padding:0 22px;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  font-weight:700;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  color:#fff;
  background:linear-gradient(135deg,var(--brand),#698cff);
  box-shadow:0 14px 30px rgba(74,114,245,.24);
}
.btn-secondary{
  color:var(--text);
  background:rgba(255,255,255,.9);
  border-color:var(--line-strong);
}
.btn-full{width:100%}

.site-header{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(245,247,251,.82);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand-logo{
  width:64px;
  height:64px;
  object-fit:contain;
}
.brand-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand-copy strong{font-size:1.15rem;letter-spacing:.01em}
.brand-copy small{color:var(--muted);font-size:.96rem}
.main-nav{
  display:flex;
  align-items:center;
  gap:28px;
  color:#4d5d82;
  font-weight:700;
}
.main-nav a:hover{color:var(--brand)}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
  gap:28px;
  align-items:center;
}
.hero-copy h1{
  margin:18px 0 14px;
  font-size:clamp(2.8rem,6vw,4.8rem);
  line-height:.98;
  letter-spacing:-.05em;
}
.hero-copy p{
  max-width:720px;
  margin:0;
  color:var(--muted);
  font-size:1.1rem;
  line-height:1.8;
}
.hero-actions{
  display:flex;
  gap:14px;
  margin-top:28px;
  flex-wrap:wrap;
}
.hero-card{
  padding:28px;
}
.hero-points{
  display:grid;
  gap:14px;
  margin-top:18px;
}
.hero-point{
  display:flex;
  gap:14px;
  padding:14px;
  border-radius:22px;
  background:rgba(255,255,255,.72);
  border:1px solid var(--line);
}
.mini-icon{
  width:38px;height:38px;border-radius:14px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(74,114,245,.14),rgba(89,199,199,.2));
  color:var(--brand);
  font-weight:800;
  flex:none;
}
.hero-point strong{display:block;font-size:1rem}
.hero-point small{color:var(--muted)}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px;
}
.section-head h2{
  margin:16px 0 0;
  font-size:clamp(2rem,4vw,3.2rem);
  line-height:1.05;
  letter-spacing:-.04em;
}
.section-note{
  max-width:420px;
  color:var(--muted);
  line-height:1.8;
}

.category-toolbar{
  display:flex;
  gap:12px;
  overflow:auto hidden;
  padding-bottom:8px;
  margin-bottom:26px;
  scrollbar-width:none;
}
.category-toolbar::-webkit-scrollbar{display:none}
.category-chip{
  border:none;
  min-height:54px;
  padding:0 20px;
  border-radius:999px;
  background:rgba(255,255,255,.85);
  border:1px solid var(--line);
  color:#54627f;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
}
.category-chip.is-active{
  color:var(--text);
  background:linear-gradient(135deg,rgba(74,114,245,.10),rgba(89,199,199,.14));
  border-color:rgba(74,114,245,.20);
  box-shadow:0 10px 24px rgba(36,55,99,.08);
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.product-card{
  display:flex;
  flex-direction:column;
  padding:20px;
  border-radius:26px;
  background:rgba(255,255,255,.86);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.product-top,.product-footer,.product-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.product-top{margin-bottom:14px}
.product-group-badge,.product-tag{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
}
.product-group-badge{
  color:var(--brand);
  background:rgba(74,114,245,.10);
}
.product-tag{
  color:#d64a77;
  background:rgba(239,90,132,.10);
}
.product-visual{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}
.brand-badge{
  width:58px;height:58px;
  border-radius:18px;
  background:linear-gradient(135deg,rgba(74,114,245,.08),rgba(89,199,199,.14));
  border:1px solid rgba(74,114,245,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
  display:grid;
  place-items:center;
  flex:none;
}
.brand-badge.big{
  width:88px;
  height:88px;
  border-radius:24px;
}
.brand-badge img{
  width:30px;height:30px;object-fit:contain;
}
.brand-badge.big img{
  width:44px;height:44px;
}
.logo-fallback{
  display:none;
  width:100%;
  height:100%;
  place-items:center;
  font-weight:800;
  color:var(--brand);
  font-size:.95rem;
}
.product-title-wrap h3{
  margin:0;
  font-size:1.08rem;
  line-height:1.35;
}
.product-title-wrap small{
  display:block;
  margin-top:6px;
  color:var(--muted);
  line-height:1.6;
}
.product-desc{
  margin:0 0 16px;
  color:#576683;
  line-height:1.7;
  min-height:72px;
}
.product-meta{
  margin-bottom:18px;
}
.product-meta article{
  flex:1;
  padding:12px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.72);
  border:1px solid var(--line);
}
.product-meta small{
  display:block;
  color:var(--muted);
  margin-bottom:6px;
}
.product-meta strong{font-size:1rem}
.product-footer{
  margin-top:auto;
  align-items:end;
}
.product-footer small{
  display:block;
  color:var(--muted);
  margin-bottom:4px;
}
.product-price{
  font-size:1.5rem;
  letter-spacing:-.04em;
}
.product-footer-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.product-footer-actions .btn{
  flex:1 1 0;
  min-width:110px;
}

.benefit-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.benefit-card{
  display:flex;
  gap:16px;
  padding:24px;
}
.benefit-icon{
  width:54px;height:54px;border-radius:18px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(74,114,245,.10),rgba(89,199,199,.14));
  color:var(--brand);
  flex:none;
}
.benefit-icon.small{width:46px;height:46px;border-radius:16px}
.benefit-icon svg{width:24px;height:24px;fill:currentColor}
.benefit-card h3,.footer-title h4{
  margin:0 0 10px;
  font-size:1.05rem;
}
.benefit-card p,.footer-brand p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}

.footer-card{
  margin-top:22px;
  padding:28px;
  display:grid;
  grid-template-columns:1.25fr .8fr 1fr;
  gap:22px;
}
.footer-brand{
  display:flex;
  gap:18px;
}
.footer-logo{
  width:82px;height:82px;object-fit:contain;flex:none;
}
.footer-brand h3{margin:0 0 10px;font-size:1.8rem}
.footer-links,.footer-contact{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.footer-title{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:4px;
}
.footer-links a{
  color:#54627f;
  font-weight:700;
}
.footer-links a:hover{color:var(--brand)}
.contact-row{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
}
.contact-brand-icon{
  width:28px;height:28px;flex:none;
}
.contact-row span{display:flex;flex-direction:column;gap:2px}
.contact-row small{color:var(--muted)}

.floating-telegram{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:35;
  width:min(360px,calc(100% - 24px));
  padding:20px;
  border-radius:28px;
  border:1px solid var(--line);
  box-shadow:0 20px 56px rgba(35,55,100,.18);
  background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(241,246,255,.96));
}
.floating-badge{
  display:inline-flex;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  align-items:center;
  background:rgba(127,104,255,.10);
  color:var(--brand-2);
  font-weight:800;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.floating-telegram h3{
  margin:14px 0 12px;
  font-size:1.15rem;
  line-height:1.4;
}
.floating-telegram ul{
  margin:0 0 16px 18px;
  padding:0;
  color:var(--muted);
  line-height:1.8;
}
.floating-close{
  position:absolute;
  top:12px;
  right:12px;
  width:38px;height:38px;border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-size:1.25rem;
  color:#55647f;
}

.modal{
  position:fixed;
  inset:0;
  z-index:90;
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding:16px;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}
.modal.is-open{display:flex}
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(17,26,47,.48);
  backdrop-filter:blur(10px);
}
.modal-dialog{
  position:relative;
  width:min(840px,100%);
  margin:auto 0;
  background:var(--surface-strong);
  border:1px solid var(--line);
  box-shadow:0 30px 80px rgba(17,26,47,.25);
  border-radius:30px;
  overflow:hidden;
  max-height:calc(100dvh - 32px);
  display:flex;
  flex-direction:column;
  touch-action:pan-y;
}
.modal-dialog-wide{width:min(980px,100%)}
.modal-header,.modal-footer{
  position:sticky;
  background:rgba(255,255,255,.95);
  z-index:1;
  padding:18px 22px;
}
.modal-header{
  top:0;
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid var(--line);
}
.modal-header h3{
  margin:10px 0 0;
  font-size:clamp(1.45rem,3vw,2rem);
  line-height:1.15;
}
.modal-footer{
  bottom:0;
  display:flex;
  justify-content:flex-end;
  gap:12px;
  border-top:1px solid var(--line);
}
.modal-close{
  width:46px;height:46px;border-radius:16px;border:1px solid var(--line);
  background:#fff;cursor:pointer;font-size:1.5rem;color:#55647f;flex:none;
}
.modal-body{
  padding:24px 22px 26px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  max-height:calc(100dvh - 180px);
  touch-action:pan-y;
}
.detail-top{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:20px;
  align-items:start;
}
.detail-summary p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.8;
}
.detail-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.detail-metrics div{
  padding:16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
}
.detail-metrics small{display:block;color:var(--muted);margin-bottom:8px}
.detail-section{
  margin-top:22px;
  padding:20px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.70);
}
.detail-section h4{
  margin:0 0 12px;
  font-size:1.05rem;
}
.detail-section p,.detail-section ul{
  margin:0;
  color:var(--muted);
  line-height:1.8;
}
.detail-section ul{padding-left:18px}

.checkout-topbar{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:18px;
  align-items:start;
  margin-bottom:18px;
}
.checkout-price-card{
  padding:20px;
  border-radius:24px;
  background:rgba(255,255,255,.75);
  border:1px solid var(--line);
}
.checkout-price-card small,.checkout-price-card span{
  display:block;color:var(--muted)
}
.checkout-price-card strong{
  display:block;
  margin:8px 0;
  font-size:2.4rem;
  letter-spacing:-.05em;
}
.step-chips{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.step-chip{
  min-height:86px;
  border-radius:24px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
  padding:0 18px;
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  color:#607090;
}
.step-chip span{
  width:42px;height:42px;border-radius:999px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--brand),var(--mint));
  color:#fff;
  box-shadow:0 12px 28px rgba(74,114,245,.18);
}
.step-chip.is-active{
  color:var(--text);
  background:linear-gradient(135deg,rgba(74,114,245,.08),rgba(89,199,199,.10));
}
.step-panel{display:none}
.step-panel.is-visible{display:block}
.checkout-form{
  display:grid;
  gap:16px;
}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.checkout-form label{
  display:grid;
  gap:10px;
  font-weight:700;
}
.checkout-form label span{font-size:1.02rem}
.checkout-form input{
  min-height:62px;
  padding:0 18px;
  border-radius:18px;
  border:1px solid var(--line-strong);
  background:#fff;
  color:var(--text);
}
.checkout-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:6px;
}
.payment-grid{
  display:grid;
  grid-template-columns:1fr .95fr;
  gap:18px;
}
.payment-card,.payment-status-card,.success-card{
  padding:22px;
  border-radius:24px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.74);
}
.qr-box{
  width:100%;
  aspect-ratio:1/1;
  max-width:260px;
  border-radius:24px;
  background:
    linear-gradient(90deg, #fff 10px, transparent 10px) 0 0/22px 22px,
    linear-gradient(#fff 10px, transparent 10px) 0 0/22px 22px,
    linear-gradient(135deg, #111 25%, transparent 25%) 0 0/22px 22px,
    linear-gradient(225deg, #111 25%, transparent 25%) 0 0/22px 22px,
    linear-gradient(315deg, #111 25%, transparent 25%) 0 0/22px 22px,
    linear-gradient(45deg, #111 25%, transparent 25%) 0 0/22px 22px,
    #fff;
  border:12px solid #fff;
  box-shadow:0 12px 28px rgba(35,55,100,.12);
}
.payment-meta{
  margin-top:18px;
  display:grid;
  gap:14px;
}
.payment-meta div{
  padding:16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
}
.payment-meta small{
  display:block;color:var(--muted);margin-bottom:8px;
}
.status-badge{
  display:inline-flex;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  align-items:center;
  font-weight:800;
}
.status-badge.pending{
  background:rgba(74,114,245,.12);
  color:var(--brand);
}
.status-badge.success{
  background:var(--success-bg);
  color:var(--success);
}
.payment-status-card p{
  margin:14px 0 18px;
  color:var(--muted);
  line-height:1.7;
}
.status-bar{
  height:12px;
  border-radius:999px;
  background:rgba(74,114,245,.10);
  overflow:hidden;
  margin-bottom:18px;
}
#statusBarAnimated{
  height:100%;
  width:42%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--brand),var(--mint));
  animation:statusPulse 1.8s ease-in-out infinite alternate;
}
@keyframes statusPulse{
  from{width:28%}
  to{width:68%}
}
.success-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.success-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:18px 0;
}
.success-summary article,.order-detail-grid article{
  padding:16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
}
.success-summary small,.order-detail-grid small,.credential-block small{
  display:block;color:var(--muted);margin-bottom:8px;
}
.order-detail-card{
  margin-top:18px;
  padding:18px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.84);
}
.order-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.credential-block{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  margin-top:12px;
}
.copy-btn{
  min-width:78px;
  min-height:44px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid var(--line-strong);
  background:rgba(74,114,245,.08);
  color:var(--brand);
  font-weight:800;
  cursor:pointer;
}
.copy-btn.is-copied{
  background:var(--success-bg);
  color:var(--success);
}

@media (max-width:1100px){
  .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .footer-card{grid-template-columns:1fr}
}

@media (max-width:900px){
  .main-nav{display:none}
  .hero-grid,.benefit-grid,.product-grid,.detail-top,.payment-grid,.checkout-topbar,.step-chips,.form-grid,.detail-metrics,.success-summary,.order-detail-grid{
    grid-template-columns:1fr;
  }
  .section-head{align-items:start;flex-direction:column}
}

@media (max-width:640px){
  .section{padding:40px 0}
  .container{width:min(100% - 20px,1180px)}
  .header-inner{min-height:74px}
  .brand-logo{width:54px;height:54px}
  .brand-copy strong{font-size:1rem}
  .brand-copy small{font-size:.84rem}
  .hero-copy h1{font-size:clamp(2.15rem,12vw,3.5rem)}
  .hero-card,.product-card,.benefit-card,.footer-card,.payment-card,.payment-status-card,.success-card,.detail-section,.checkout-price-card{
    border-radius:24px;
  }
  .product-grid{grid-template-columns:1fr}
  .product-desc{min-height:auto}
  .modal{padding:10px}
  .modal-dialog,.modal-dialog-wide{border-radius:24px;max-height:calc(100dvh - 20px)}
  .modal-body{max-height:calc(100dvh - 156px)}
  .modal-header,.modal-footer,.modal-body{padding-left:16px;padding-right:16px}
  .modal-footer{justify-content:stretch}
  .modal-footer .btn,.checkout-actions .btn{flex:1}
  .step-chip{min-height:72px;padding:0 14px}
  .floating-telegram{right:10px;left:10px;bottom:10px;width:auto}
}

/* === Vichiz Store revamp overrides === */
:root{
  --danger:#ef5a84;
  --danger-bg:rgba(239,90,132,.12);
  --warning:#d89b00;
  --warning-bg:rgba(255,213,77,.18);
}

body.dark-theme{
  --bg:#0f1526;
  --bg-2:#171f36;
  --surface:rgba(19,27,47,.86);
  --surface-strong:rgba(19,27,47,.96);
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.14);
  --text:#eff3ff;
  --muted:#9daccc;
  --shadow:0 20px 56px rgba(0,0,0,.34);
}
body.dark-theme .site-header{background:rgba(15,21,38,.84)}
body.dark-theme .btn-secondary,
body.dark-theme .theme-toggle,
body.dark-theme .category-chip,
body.dark-theme .modal-close,
body.dark-theme .floating-close,
body.dark-theme .checkout-form input,
body.dark-theme .qty-btn,
body.dark-theme .qty-control,
body.dark-theme .payment-meta div,
body.dark-theme .summary-lines div,
body.dark-theme .success-summary article,
body.dark-theme .order-detail-grid article,
body.dark-theme .credential-item,
body.dark-theme .contact-row,
body.dark-theme .hero-point,
body.dark-theme .detail-section,
body.dark-theme .detail-metrics div,
body.dark-theme .product-meta article,
body.dark-theme .step-chip,
body.dark-theme .product-card,
body.dark-theme .payment-card,
body.dark-theme .payment-status-card,
body.dark-theme .payment-expired,
body.dark-theme .success-card,
body.dark-theme .checkout-price-card,
body.dark-theme .captcha-panel,
body.dark-theme .payment-summary,
body.dark-theme .checkout-note,
body.dark-theme .subtle-panel,
body.dark-theme .footer-card,
body.dark-theme .benefit-card,
body.dark-theme .expired-message,
body.dark-theme .warning-card,
body.dark-theme .modal-header,
body.dark-theme .modal-footer{
  background:rgba(18,27,48,.9);
}
body.dark-theme .floating-telegram{background:linear-gradient(135deg,rgba(19,27,47,.96),rgba(26,37,63,.96))}
body.dark-theme .warning-card{background:rgba(12,18,34,.9)}
body.dark-theme .warning-icon{background:linear-gradient(135deg,#ffd54d,#ff9f43); color:#111a2f}
body.dark-theme .warning-copy{color:#d4ddf4}
body.dark-theme .qr-preview-wrap{background:rgba(255,255,255,.94)}
body.dark-theme .payment-steps-mini strong{color:#111a2f}
body.dark-theme .payment-steps-mini div{background:rgba(255,255,255,.06)}
body.dark-theme .contact-row:hover,
body.dark-theme .product-card:hover{box-shadow:0 22px 58px rgba(0,0,0,.32)}
body.dark-theme .telegram-launcher{box-shadow:0 18px 42px rgba(0,0,0,.36)}
body.dark-theme .summary-footnotes,
body.dark-theme .payment-guidance,
body.dark-theme .credential-note,
body.dark-theme .success-head p,
body.dark-theme .warning-card li,
body.dark-theme .turnstile-placeholder{color:#b8c6e4}
body.dark-theme .warning-badge{color:#111a2f}
body.dark-theme .product-tag.is-muted,
body.dark-theme .stock-metric.is-empty strong{color:#f6c3d0}

.header-actions{
  display:flex;
  align-items:center;
  gap:14px;
  margin-left:auto;
}
.main-nav{order:1}
.header-cta{order:2}
.theme-toggle{order:3}
.main-nav{gap:18px}
.header-cta{min-width:172px}
.theme-toggle{
  width:52px;
  height:52px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.9);
  display:grid;
  place-items:center;
  cursor:pointer;
  position:relative;
  overflow:hidden;
}
.theme-icon{
  width:20px;
  height:20px;
  fill:var(--text);
  position:absolute;
  transition:transform .24s ease, opacity .24s ease;
}
.theme-sun{transform:translateY(0);opacity:1}
.theme-moon{transform:translateY(24px);opacity:0}
body.dark-theme .theme-sun{transform:translateY(-24px);opacity:0}
body.dark-theme .theme-moon{transform:translateY(0);opacity:1}

.hero-actions{margin-top:28px}
.hero-actions .btn{min-width:168px}

.product-card{
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.product-card:hover{transform:translateY(-2px)}
.product-card.is-sold-out{
  background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(246,248,252,.84));
  opacity:.88;
}
.product-card.is-sold-out .product-price,
.product-card.is-sold-out .product-title-wrap h3{color:#63718f}
.product-card.is-sold-out .product-desc,
.product-card.is-sold-out .product-title-wrap small{color:#7b89a5}
.product-tag.is-muted{
  background:rgba(160,167,184,.18);
  color:#8d98b2;
}
.stock-metric.is-empty{
  background:rgba(160,167,184,.12);
}
.stock-metric.is-empty strong{color:#9aa3b6}
.btn[disabled]{cursor:not-allowed;opacity:.68;transform:none;box-shadow:none}

.telegram-launcher{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:36;
  width:62px;
  height:62px;
  border-radius:999px;
  border:none;
  background:linear-gradient(135deg,#fff,#eef5ff);
  box-shadow:0 16px 40px rgba(35,55,100,.18);
  display:grid;
  place-items:center;
  cursor:pointer;
}
.telegram-launcher img{width:28px;height:28px}
.telegram-launcher[hidden]{display:none !important}
body.telegram-popup-open .telegram-launcher{display:none !important}

.modal-dialog-alert{width:min(760px,100%)}
.modal-dialog-compact{width:min(620px,100%)}
.warning-head{
  background:linear-gradient(135deg,rgba(255,213,77,.88),rgba(255,179,0,.9));
}
.warning-badge{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(17,26,47,.08);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.warning-body{
  display:grid;
  gap:18px;
}
.warning-icon{
  width:82px;
  height:82px;
  border-radius:22px;
  display:grid;
  place-items:center;
  font-size:2.6rem;
  font-weight:900;
  background:linear-gradient(135deg,#ffd54d,#ffb400);
  color:#111a2f;
}
.warning-copy{
  margin:0;
  font-size:1.24rem;
  line-height:1.55;
}
.warning-card{
  padding:18px 20px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
}
.warning-card h4{margin:0 0 10px;font-size:1rem}
.warning-card ul{margin:0;padding-left:18px;color:var(--muted);line-height:1.8}
.warning-actions{justify-content:flex-start}

.form-grid-qty{align-items:start}
.checkout-form label small{
  color:var(--muted);
  font-size:.86rem;
  font-weight:500;
}
.qty-control{
  min-height:62px;
  padding:6px;
  border-radius:18px;
  border:1px solid var(--line-strong);
  background:#fff;
  display:grid;
  grid-template-columns:52px 1fr 52px;
  align-items:center;
  gap:8px;
}
.qty-control input{
  min-height:48px;
  padding:0;
  text-align:center;
  border:none;
  background:transparent;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-control input[type=number]{-moz-appearance:textfield}
.qty-btn{
  height:48px;
  border:none;
  border-radius:14px;
  background:rgba(74,114,245,.10);
  color:var(--brand);
  font-size:1.6rem;
  font-weight:800;
  cursor:pointer;
}
.checkout-note{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 18px;
}
.checkout-note-icon{
  width:36px;
  height:36px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,rgba(74,114,245,.14),rgba(89,199,199,.2));
  color:var(--brand);
  font-weight:900;
}
.checkout-note p{margin:0;color:var(--muted);line-height:1.7}

.checkout-security-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:18px;
}
.captcha-panel,
.payment-summary,
.subtle-panel,
.payment-expired{
  padding:20px;
  border-radius:24px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.74);
}
.panel-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}
.panel-head.compact{margin-bottom:12px}
.panel-head small{display:block;margin-top:4px;color:var(--muted)}
.section-mini-icon{
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,rgba(74,114,245,.12),rgba(89,199,199,.16));
  color:var(--brand);
  font-weight:900;
  flex:none;
}
.turnstile-slot{min-height:110px;display:flex;align-items:center}
.turnstile-placeholder{
  width:100%;
  min-height:110px;
  border:1px dashed var(--line-strong);
  border-radius:18px;
  display:grid;
  place-items:center;
  padding:16px;
  text-align:center;
  line-height:1.7;
  color:var(--muted);
}
.turnstile-placeholder.warning{border-color:rgba(239,90,132,.36); color:#b54e71}
.summary-lines{display:grid;gap:14px;margin-bottom:16px}
.summary-lines div,
.payment-steps-mini div{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.68);
}
.summary-lines span{color:var(--muted)}
.summary-total{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:18px 20px;
  border-radius:22px;
  background:linear-gradient(135deg,rgba(74,114,245,.10),rgba(89,199,199,.12));
  margin-bottom:14px;
}
.summary-total span{font-weight:700}
.summary-total strong{font-size:1.8rem;letter-spacing:-.04em}
.summary-footnotes{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.8;
}

.payment-grid{
  grid-template-columns:1.05fr .95fr;
  align-items:start;
}
.qr-preview-wrap{
  width:min(340px,100%);
  aspect-ratio:1/1;
  display:grid;
  place-items:center;
  border-radius:24px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 14px 30px rgba(35,55,100,.08);
}
.qr-preview{
  width:86%;
  height:86%;
  object-fit:contain;
}
.qr-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.qr-action-btn{min-height:46px}
.payment-buttons .btn{min-width:180px}
.payment-buttons svg{
  width:18px;
  height:18px;
  fill:currentColor;
}
.status-badge.danger{background:var(--danger-bg); color:#cf4f77}
.payment-info{margin-top:18px}
.payment-steps-mini{
  display:grid;
  gap:12px;
}
.payment-steps-mini strong{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#ffd54d,#ffb400);
  color:#111a2f;
  flex:none;
}
.payment-steps-mini span{flex:1;color:var(--muted);line-height:1.65}
.payment-guidance{margin:14px 0 0;color:var(--muted);line-height:1.7}
.payment-expired{
  display:grid;
  gap:18px;
}
.expired-time{
  padding:18px;
  border-radius:20px;
  background:linear-gradient(135deg,rgba(255,159,67,.14),rgba(255,82,82,.10));
  border:1px solid rgba(255,159,67,.24);
  text-align:center;
}
.expired-time small,
.expired-time span{display:block;color:var(--muted)}
.expired-time strong{
  display:block;
  margin:6px 0 8px;
  font-size:2.8rem;
  letter-spacing:.08em;
  color:#ff6d00;
}
.expired-message{
  padding:22px;
  border-radius:22px;
  border:1px solid rgba(239,90,132,.18);
  background:rgba(255,255,255,.7);
}
.expired-icon{
  width:74px;
  height:74px;
  border-radius:22px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,rgba(255,159,67,.16),rgba(239,90,132,.16));
  font-size:2.1rem;
  margin-bottom:14px;
}
.expired-message h4{margin:0 0 10px;font-size:1.45rem}
.expired-message p{margin:0;color:var(--muted);line-height:1.75}

.success-banner{
  align-items:flex-start;
  justify-content:space-between;
}
.success-head p{margin:4px 0 0;max-width:420px;color:var(--muted);line-height:1.75}
.success-summary{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.order-detail-grid-strong{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.detail-alert,
.shipping-note{
  margin-bottom:16px;
}
.detail-alert strong,
.shipping-note strong{display:block;margin-bottom:6px}
.detail-alert p,
.shipping-note p{margin:0;color:var(--muted);line-height:1.7}
.order-detail-headline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:18px 0 14px;
}
.order-detail-headline small{display:block;color:var(--muted);margin-bottom:6px}
.credential-list{
  display:grid;
  gap:14px;
}
.credential-item{
  padding:18px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.82);
}
.credential-item-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:14px;
}
.credential-item-head small{display:block;color:var(--muted);margin-bottom:4px}
.credential-field{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(74,114,245,.06);
  border:1px solid rgba(74,114,245,.12);
  margin-top:10px;
}
.credential-field span{color:var(--muted)}
.credential-note{margin:12px 0 0;color:var(--muted);line-height:1.7}
.copy-btn.big{min-width:110px}

.qr-zoom-body{display:grid;place-items:center}
.qr-zoom-image{width:min(420px,100%);aspect-ratio:1/1;object-fit:contain}

@media (max-width:1100px){
  .header-actions{gap:10px}
  .checkout-security-grid{grid-template-columns:1fr}
  .order-detail-grid-strong{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:900px){
  .header-inner{justify-content:space-between}
  .header-actions{margin-left:auto}
  .payment-grid,.checkout-security-grid,.order-detail-grid-strong,.success-summary{grid-template-columns:1fr}
}

@media (max-width:640px){
  .header-inner{align-items:center}
  .header-actions{gap:8px}
  .header-cta{min-width:156px;padding:0 18px}
  .theme-toggle{width:46px;height:46px}
  .brand-copy small{display:none}
  .brand-logo{width:58px;height:58px}
  .hero-actions .btn{width:100%}
  .telegram-launcher{width:56px;height:56px;right:12px;bottom:12px}
  .floating-telegram{right:10px;left:10px;bottom:10px;width:auto}
  .warning-copy{font-size:1.05rem}
  .payment-buttons .btn,
  .qr-actions .btn,
  .warning-actions .btn,
  .order-detail-headline,
  .credential-item-head,
  .checkout-actions .btn{width:100%}
  .order-detail-headline,
  .credential-item-head{flex-direction:column;align-items:stretch}
  .credential-field{flex-direction:column}
  .checkout-topbar{margin-bottom:16px}
  .qty-control{grid-template-columns:46px 1fr 46px}
}

body.dark-theme .detail-metrics strong,
body.dark-theme .checkout-price-card strong,
body.dark-theme .summary-total strong,
body.dark-theme .payment-meta strong,
body.dark-theme .modal-header h3,
body.dark-theme .modal-footer,
body.dark-theme .success-summary strong,
body.dark-theme .payment-expired h4,
body.dark-theme .payment-card strong,
body.dark-theme .payment-summary strong{
  color:var(--text);
}
body.dark-theme .detail-metrics small,
body.dark-theme .checkout-form label small,
body.dark-theme .payment-meta small,
body.dark-theme .checkout-price-card small,
body.dark-theme .checkout-price-card span{
  color:var(--muted);
}

body.dark-theme .product-meta small,
body.dark-theme .product-footer small,
body.dark-theme .product-title-wrap small,
body.dark-theme .product-desc{
  color:var(--muted);
}
body.dark-theme .product-meta strong,
body.dark-theme .product-price,
body.dark-theme .product-title-wrap h3{
  color:var(--text);
}


/* r4 dark mode stat cards fix */
body.dark-theme .product-meta article{
  background: rgba(22, 33, 58, 0.96) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
body.dark-theme .product-meta article small{
  color: #9fb2d9 !important;
}
body.dark-theme .product-meta article strong{
  color: #eef3ff !important;
}
body.dark-theme .stock-metric.is-empty{
  background: rgba(86, 95, 118, 0.24) !important;
  border-color: rgba(255,255,255,0.08) !important;
}
body.dark-theme .stock-metric.is-empty small{
  color: #b7c3dc !important;
}
body.dark-theme .stock-metric.is-empty strong{
  color: #f2c7d4 !important;
}
