:root {
  --blue: #276be9;
  --text: #29354c;
  --muted: #7d889c;
  --line: #e3e8ef;
  --bg: #f5f7fa;
  --green: #25ab69;
}
html { scroll-behavior:smooth; }
:root { --footer-float-offset:0px; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    13px Inter,
    Arial,
    sans-serif;
}
.support-chat { position:fixed; right:24px; bottom:24px; z-index:80; }
.support-new-alert { position:absolute; right:0; bottom:72px; display:flex; width:245px; align-items:center; gap:11px; padding:12px 14px; border:1px solid #dce7f8; border-radius:13px; background:#fff; color:#26364e; text-align:left; cursor:pointer; box-shadow:0 14px 38px rgba(31,50,81,.2); opacity:0; transform:translateY(14px) scale(.96); pointer-events:none; transition:opacity .28s ease,transform .28s ease; }
.support-new-alert[hidden] { display:none; }
.support-new-alert.show { opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.support-new-alert > i { width:10px; height:10px; flex:0 0 10px; border-radius:50%; background:#2acb72; box-shadow:0 0 0 5px #e4f8ed; }
.support-new-alert span,.support-new-alert b,.support-new-alert small { display:block; }.support-new-alert b{font-size:12px}.support-new-alert small{margin-top:3px;color:#7e899b;font-size:10px}
.support-chat-toggle { position:relative; display:grid; width:58px; height:58px; place-items:center; border:0; border-radius:18px; background:linear-gradient(145deg,#347df1,#1763d5); color:#fff; cursor:pointer; box-shadow:0 14px 34px rgba(23,105,224,.32); transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .2s,border-radius .3s; }
.support-chat-toggle:hover { transform:translateY(-2px); box-shadow:0 18px 38px rgba(23,105,224,.38); }
.support-chat-icon { width:24px; height:19px; border:2px solid #fff; border-radius:7px; font-size:0; transition:transform .32s cubic-bezier(.2,.8,.2,1),opacity .2s; }
.support-chat-icon:after { content:""; display:block; width:6px; height:6px; margin:13px 0 0 3px; border-left:2px solid #fff; transform:skew(-28deg); }
.support-chat-toggle i { position:absolute; right:-3px; top:-4px; width:15px; height:15px; border:3px solid #fff; border-radius:50%; background:#ff4d62; }
.support-chat-panel { position:absolute; right:0; bottom:72px; width:min(370px,calc(100vw - 28px)); height:520px; overflow:hidden; border:1px solid #dce4ef; border-radius:17px; background:#fff; box-shadow:0 22px 60px rgba(25,43,72,.22); opacity:0; visibility:hidden; pointer-events:none; transform:translateY(22px) scale(.92); transform-origin:bottom right; transition:opacity .24s ease,transform .34s cubic-bezier(.2,.85,.25,1),visibility 0s linear .34s; }
.support-chat-panel.open { opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0) scale(1); transition:opacity .24s ease,transform .34s cubic-bezier(.2,.85,.25,1),visibility 0s; }
.support-chat.chat-open .support-chat-toggle { border-radius:50%; transform:rotate(8deg) scale(.94); box-shadow:0 9px 24px rgba(23,105,224,.27); }
.support-chat.chat-open .support-chat-icon { transform:rotate(-8deg) scale(.88); }
.support-chat-head { position:static; display:flex; height:74px; align-items:center; justify-content:space-between; padding:0 16px 0 18px; border:0; background:linear-gradient(135deg,#276be9,#165dc9); color:#fff; }
.support-chat-head > div { display:flex; align-items:center; gap:10px; }
.support-online { width:10px; height:10px; border:2px solid rgba(255,255,255,.7); border-radius:50%; background:#46d889; }
.support-chat-head p,.support-chat-head b,.support-chat-head small { display:block; margin:0; }
.support-chat-head b { font-size:13px; }.support-chat-head small { margin-top:4px; color:#dceaff; font-size:9px; }
.support-chat-head button { border:0; background:transparent; color:#fff; cursor:pointer; font-size:25px; }
.support-chat-messages { height:calc(100% - 140px); padding:16px; overflow-y:auto; background:#f6f8fc; }
.support-welcome { max-width:82%; padding:12px 14px; border:1px solid #e1e7f0; border-radius:5px 13px 13px 13px; background:#fff; color:#526078; line-height:1.5; }
.support-welcome b,.support-welcome span { display:block; }.support-welcome b { margin-bottom:3px; color:#26364e; }
.support-message { display:flex; margin-top:10px; }.support-message.client { justify-content:flex-end; }
.support-message div { max-width:82%; padding:10px 12px; border-radius:5px 13px 13px 13px; background:#fff; color:#35435a; line-height:1.5; box-shadow:0 2px 8px rgba(39,55,83,.06); }
.support-message.client div { border-radius:13px 5px 13px 13px; background:#276be9; color:#fff; }
.support-message small { display:block; margin-top:4px; color:#9aa5b6; font-size:8px; }.support-message.client small { color:#cfe0ff; text-align:right; }
.support-chat-form { display:grid; grid-template-columns:1fr 42px; gap:8px; height:66px; padding:10px 11px; border-top:1px solid #e5eaf2; background:#fff; }
.support-chat-form textarea { width:100%; height:44px; resize:none; padding:12px; border:1px solid #dce4ef; border-radius:10px; outline:0; font:12px Inter,sans-serif; }.support-chat-form textarea:focus { border-color:#276be9; box-shadow:0 0 0 3px rgba(39,107,233,.1); }
.support-chat-form button { width:42px; height:42px; border:0; border-radius:11px; background:#276be9; color:#fff; cursor:pointer; font-size:17px; }
@media(max-width:520px){.support-chat{right:14px;bottom:14px}.support-chat-panel{position:fixed;inset:12px;width:auto;height:auto;bottom:82px}.support-chat-toggle{width:54px;height:54px}}
button,
input {
  font: inherit;
}
.shell {
  width: min(1240px, calc(100% - 30px));
  margin: auto;
}
header {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #17243c;
  text-decoration: none;
  font-size: 17px;
}
.logo i,
.auth > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font: bold 24px Arial;
  font-style: normal;
}
.logo span {
  color: var(--blue);
}
.toplinks {
  display: flex;
  align-items: center;
  gap: 9px;
}
.toplinks a,
.toplinks button {
  border: 0;
  background: none;
  padding: 12px;
  color: #69758a;
  text-decoration: none;
  font-size: 11px;
  cursor: pointer;
}
.toplinks a b {
  color: var(--blue);
}
.toplinks .support-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  color: #fff;
  background: var(--blue);
  border-radius: 7px;
  font-weight: 700;
}
.toplinks .support-top:hover {
  background: #176fc5;
}
.toplinks .support-top span {
  font-size: 12px;
}
#header-account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
#header-account:hover {
  background: #f2f6fc;
  color: var(--blue);
}
#header-account.authenticated {
  padding: 6px 11px 6px 7px;
  background: #eef5ff;
  color: #17243c;
}
.header-balance-menu { position:relative; }
/* Guest users have no withdrawal action: hide the dropdown shell itself. */
.header-balance-menu:has(.header-withdraw[hidden]) .header-balance-dropdown { display: none !important; }
.header-balance-dropdown { position:absolute; z-index:45; top:calc(100% + 8px); left:50%; width:190px; padding:7px; border:1px solid #dfe6f0; border-radius:11px; background:#fff; box-shadow:0 14px 34px rgba(31,50,81,.16); opacity:0; visibility:hidden; pointer-events:none; transform:translate(-50%,-7px) scale(.96); transform-origin:top center; transition:opacity .2s,transform .24s cubic-bezier(.2,.8,.2,1),visibility 0s linear .24s; }
.header-balance-dropdown:before { content:""; position:absolute; left:0; right:0; top:-9px; height:9px; }
.header-balance-menu:hover .header-balance-dropdown,
.header-balance-menu:focus-within .header-balance-dropdown { opacity:1; visibility:visible; pointer-events:auto; transform:translate(-50%,0) scale(1); transition:opacity .2s,transform .24s cubic-bezier(.2,.8,.2,1),visibility 0s; }
.header-balance-menu.dropdown-dismissed .header-balance-dropdown { opacity:0; visibility:hidden; pointer-events:none; transform:translate(-50%,-7px) scale(.96); }
.toplinks .header-withdraw { display:flex; width:100%; align-items:center; gap:10px; padding:10px!important; border-radius:8px!important; background:#f2f7ff!important; color:#26364e!important; text-align:left; }
.toplinks .header-withdraw[hidden] { display:none!important; }
.toplinks .header-withdraw:hover { background:#e7f1ff!important; }
.toplinks .header-withdraw:disabled, .toplinks .header-withdraw[aria-disabled="true"] { cursor:not-allowed!important; opacity:.52; background:#f1f3f7!important; color:#778194!important; box-shadow:none!important; }
.toplinks .header-withdraw:disabled:hover { background:#f1f3f7!important; transform:none!important; }
.toplinks .header-withdraw:disabled *, .toplinks .header-withdraw[aria-disabled="true"] * { cursor:not-allowed!important; }
.header-withdraw > span:first-child { display:grid; width:32px; height:32px; flex:0 0 32px; place-items:center; border-radius:8px; background:#dceaff; color:var(--blue); font-size:16px; font-weight:800; }
.header-withdraw span,.header-withdraw b,.header-withdraw small { display:block; }.header-withdraw b{font-size:11px}.header-withdraw small{margin-top:3px;color:#8490a3;font-size:9px;font-weight:600}
.header-account-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 7px;
  background: #dceaff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}
.header-account-copy {
  display: grid;
  text-align: left;
  line-height: 1.15;
}
.header-account-copy small {
  color: #7b8799;
  font-size: 9px;
}
.header-account-copy b {
  margin-top: 2px;
  color: #17243c;
  font-size: 12px;
}
.carthead {
  position: relative !important;
  background: #edf3fe !important;
  border-radius: 6px !important;
}
.carthead em {
  position: absolute;
  right: -6px;
  top: -7px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  background: #e45151;
  color: #fff;
  font-size: 9px;
  font-style: normal;
}
.hamb {
  display: none;
  border: 0;
  background: none;
  font-size: 20px;
}
.site-footer {
  padding: 22px 0;
  color: #8b96a8;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.footer-links button {
  padding: 0;
  color: #53627a;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.footer-links button:hover {
  color: var(--blue);
}
.footer-links span {
  color: #c1c8d3;
}
.footer-content p {
  margin: 0;
  text-align: right;
}
.layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 27px;
  padding: 24px 0 55px;
}
aside#sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 16px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.aside-title,
aside#sidebar > small {
  display: flex;
  justify-content: space-between;
  padding: 2px 17px 10px;
  color: #9da7b8;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.aside-title button {
  display: none;
}
.navitem {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-left: 3px solid transparent;
  background: none;
  color: #69758b;
  text-align: left;
  font-size: 10px;
  cursor: pointer;
}
.navitem:hover,
.navitem.active {
  border-left-color: var(--blue);
  background: #f0f5ff;
  color: var(--blue);
  font-weight: 600;
}
aside hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 13px 17px;
}
.help {
  margin: 17px 12px 0;
  padding: 12px;
  border-radius: 6px;
  background: #f3f6fb;
  font-size: 9px;
}
.help p {
  color: #909aac;
  line-height: 1.5;
  margin: 4px 0 0;
}
.help .support-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 9px;
  padding: 9px 10px;
  color: #fff;
  background: #2787d9;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.help .support-link:hover {
  background: #1674c2;
  transform: translateY(-1px);
}
.help .support-link span {
  font-size: 11px;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.note,
.promo {
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 9px;
}
.note {
  background: #fff;
  border: 1px solid var(--line);
  color: #667187;
}
.note .manager-link {
  display: inline-block;
  margin-left: 8px;
  padding: 5px 9px;
  color: var(--blue);
  background: #edf3fe;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
}
.note .manager-link:hover {
  background: #dfeafe;
}
.note span {
  color: #9ba5b6;
}
.promo {
  background: linear-gradient(90deg, #2268e4, #3580f2);
  color: #fff;
}
.promo code {
  padding: 3px 6px;
  background: #ffffff26;
  border-radius: 4px;
}
.promo button {
  float: right;
  border: 0;
  background: #ffffff20;
  color: #fff;
  border-radius: 4px;
  font-size: 8px;
  padding: 3px 8px;
}
.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 27px 0 16px;
}
.heading small,
.box > small {
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 1.4px;
}
.heading h1 {
  margin: 5px 0 0;
  font-size: 24px;
}
.search {
  display: flex;
  gap: 7px;
  width: 250px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #a6afbd;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 10px;
}
.group {
  margin-bottom: 17px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.category-info {
  margin-top: 18px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #69758a;
  font-size: 13px;
  line-height: 1.8;
}
.category-info h2 {
  margin: 0 0 8px;
  color: #17243c;
  font-size: 24px;
  line-height: 1.3;
}
.category-info h3 {
  margin: 24px 0 8px;
  color: #25344f;
  font-size: 17px;
}
.category-info p {
  margin: 0 0 14px;
}
.category-info p:last-child {
  margin-bottom: 0;
}
.category-faq {
  margin-top: 14px;
  padding-top: 4px;
}
.category-faq h4 {
  margin: 18px 0 5px;
  color: #26344f;
  font-size: 14px;
}
.category-faq p {
  margin-bottom: 0;
}
.category-info .search-terms {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #8a95a7;
  font-size: 11px;
  line-height: 1.7;
}
.grouphead {
  display: flex;
  justify-content: space-between;
  padding: 13px 15px;
  background: #fbfcfd;
  border-bottom: 1px solid var(--line);
}
.grouphead h2 {
  margin: 0;
  font-size: 11px;
}
.grouphead button {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 8px;
  cursor: pointer;
}
.thead,
.row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 85px 100px 160px;
  column-gap: 12px;
  align-items: center;
}
.thead {
  padding: 8px 15px;
  background: #f7f9fb;
  color: #9ca6b6;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}
.thead > span:first-child {
  padding-right: 12px;
}
.thead > span:nth-child(2) {
  justify-self: center;
  text-align: center;
}
.thead > span:nth-child(3),
.row > .price {
  justify-self: center;
  text-align: center;
}
.row {
  min-height: 76px;
  padding: 10px 15px;
  border-top: 1px solid #edf0f4;
}
.pname {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 12px;
}
.flag {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f3f8;
  font-size: 21px;
  overflow: hidden;
}
.product-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flag.product-picture.square-picture {
  border-radius: 7px;
}
.pname button {
  border: 0;
  background: none;
  text-align: left;
  color: #344057;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}
.pname button:hover {
  color: var(--blue);
}
.stock {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  line-height: 1;
  color: var(--green);
  font-size: 9px;
}
.stock:before {
  content: "";
  display: block;
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
}
.price {
  font-size: 11px;
  font-weight: 700;
}
.price small {
  display: block;
  margin-top: 3px;
  color: #99a3b4;
  font-size: 7px;
  font-weight: 400;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}
.actions button,
.secondary {
  border: 0;
  border-radius: 5px;
  padding: 8px 9px;
  font-size: 8px;
  font-weight: 600;
  cursor: pointer;
}
.buy,
.primary {
  border: 0;
  border-radius: 5px;
  padding: 11px 14px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.add,
.secondary {
  background: #edf3fe;
  color: var(--blue);
}
.empty {
  padding: 65px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
}
.back {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 9px;
  cursor: pointer;
  padding: 7px 0;
}
.detailgrid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 20px;
  margin-top: 15px;
}
.box,
.detailinfo,
.buybox,
.auth,
.article {
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.detailinfo .bigflag {
  font-size: 42px;
}
.detailinfo .bigflag.product-picture {
  display: block;
  width: 72px;
  height: 72px;
  margin-top: 18px;
  border-radius: 50%;
  overflow: hidden;
}
.detailinfo .bigflag.product-picture.square-picture {
  border-radius: 12px;
}
.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: #edf3fe;
  color: var(--blue);
  font-size: 8px;
}
.detailinfo h1 {
  font-size: 20px;
  line-height: 1.45;
}
.detailinfo p,
.box p,
.article p {
  color: #727d90;
  font-size: 10px;
  line-height: 1.8;
}
.product-full-description {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #dce5f3;
  border-radius: 12px;
  background: #f8faff;
  color: #43516a;
  font-size: 11px;
  line-height: 1.85;
  white-space: pre-line;
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.features span {
  padding: 10px;
  background: #f5f7fa;
  font-size: 8px;
}
.bigprice {
  font-size: 25px;
  font-weight: 800;
}
.available {
  display: block;
  color: var(--green);
  font-size: 8px;
  margin: 7px 0 18px;
}
.qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 8px;
}
.qty button {
  width: 38px;
  height: 36px;
  border: 0;
  background: #f6f8fb;
}
.buybox .primary,
.buybox .secondary {
  width: 100%;
  margin-top: 7px;
}
.cartbox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.cartrow {
  display: grid;
  grid-template-columns: 1fr 130px 90px 30px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.cartproduct {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
}
.cartproduct > span:not(.product-picture) {
  font-size: 21px;
}
.cartproduct .product-picture {
  flex: 0 0 40px;
}
.cartrow .qty {
  margin: 0;
}
.remove {
  border: 0;
  background: none;
  color: #df5050;
  cursor: pointer;
}
.cartbottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  margin-top: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.cartbottom span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}
.cartbottom b {
  font-size: 19px;
}
.checkout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 20px;
  margin-top: 14px;
}
.checkout-account-note {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 14px 15px;
  border: 1px solid #cfe0fa;
  border-radius: 9px;
  background: #f2f7ff;
  color: #40506a;
  font-size: 12px;
  line-height: 1.55;
}
.checkout-account-note[hidden] {
  display: none !important;
}
.checkout-account-note b {
  color: var(--blue);
  font-size: 13px;
}
.checkout-account-note small {
  padding-top: 7px;
  border-top: 1px solid #dce8fa;
  color: #6d7890;
  font-size: 11px;
  font-weight: 600;
}
.checkout-pay-button {
  min-height: 46px;
  margin-top: 5px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 7px 16px rgba(23, 105, 224, 0.18);
}
.checkout-field {
  position: relative;
}
.checkout-field input {
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.checkout-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}
.checkout-field.has-error input {
  border-color: #dc3545;
  background: #fff7f8;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.09);
}
.checkout-field-error {
  display: block;
  margin-top: 6px;
  color: #dc3545;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
.checkout-field-error[hidden] {
  display: none;
}
.checkout-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0 8px;
  padding: 0;
  border: 0;
}
.checkout-payment-methods[hidden] {
  display: none;
}
.checkout-payment-methods legend {
  margin-bottom: 8px;
  color: #5f6a7e;
  font-size: 11px;
  font-weight: 700;
}
.checkout-payment-methods label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.checkout-payment-methods label:has(input:checked) {
  border-color: var(--blue);
  background: #f2f7ff;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.09);
}
.checkout-payment-methods input {
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
}
.checkout-payment-methods span {
  display: grid;
  gap: 3px;
}
.checkout-payment-methods b {
  color: #344056;
  font-size: 12px;
}
.checkout-payment-methods small {
  color: #7a8598;
  font-size: 10px;
}
.email-confirm-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 31, 50, 0.48);
  backdrop-filter: blur(4px);
  animation: email-modal-fade 0.2s ease both;
}
body.modal-open {
  overflow: hidden;
}
.email-confirm-modal[hidden] {
  display: none;
}
.email-confirm-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid rgba(205, 220, 244, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 38, 70, 0.24);
  text-align: center;
  animation: email-dialog-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.email-confirm-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--blue);
  font-size: 23px;
}
.email-confirm-dialog > small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.email-confirm-dialog h2 {
  margin: 8px 30px 9px;
  color: #27344a;
  font-size: 21px;
}
.email-confirm-dialog > p {
  margin: 0 auto 18px;
  color: #6e7a8e;
  font-size: 12px;
  line-height: 1.6;
}
.email-confirm-addresses {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
  background: #f7f9fc;
  text-align: left;
}
.email-confirm-addresses span {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
}
.email-confirm-addresses span + span {
  border-top: 1px solid #e4eaf3;
}
.email-confirm-addresses small {
  color: #8a95a7;
  font-size: 9px;
}
.email-confirm-addresses b {
  overflow-wrap: anywhere;
  color: #35435a;
  font-size: 12px;
}
.email-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 9px;
  margin-top: 18px;
}
.email-confirm-actions button {
  min-height: 43px;
  border-radius: 8px;
  font-size: 11px;
}
.email-confirm-close {
  position: absolute;
  top: 12px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f2f5f9;
  color: #6f7b8e;
  font-size: 19px;
  cursor: pointer;
}
@keyframes email-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes email-dialog-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.97); }
  to { opacity: 1; transform: translateY(-4vh) scale(1); }
}
@media (max-width: 600px) {
  .checkout-payment-methods {
    grid-template-columns: 1fr;
  }
  .email-confirm-dialog {
    padding: 25px 18px 20px;
  }
  .email-confirm-actions {
    grid-template-columns: 1fr;
  }
}
.payment-page {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 35px;
}
.payment-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 8px 0 42px;
}
.payment-steps:before {
  content: "";
  position: absolute;
  top: 17px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: #dce3ed;
}
.payment-steps div {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #8a96a8;
  font-size: 11px;
}
.payment-steps span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid #dce3ed;
  border-radius: 50%;
  background: #fff;
  font-weight: 800;
}
.payment-steps .active {
  color: var(--blue);
}
.payment-steps .active span {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 5px #eaf2ff;
}
.payment-steps .complete span {
  border-color: #26ad61;
  background: #26ad61;
  color: #fff;
}
.payment-steps .complete span:before {
  content: "✓";
}
.payment-steps .complete span {
  font-size: 0;
}
.payment-steps .complete span:before { font-size: 14px; }
.payment-heading {
  margin-bottom: 18px;
  text-align: center;
}
.payment-heading small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.payment-heading h1 {
  margin: 7px 0 0;
  font-size: 27px;
}
.payment-heading-icon {
  width: 29px;
  height: 29px;
  margin-left: 5px;
  vertical-align: -6px;
}
.payment-heading-coin {
  color: #17243c;
}
.payment-card {
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 15px 42px rgba(28, 50, 82, 0.1);
}
.payment-hero {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 27px;
  background: linear-gradient(135deg, #1769e0, #144d9e);
  color: #fff;
}
.payment-hero strong {
  font-size: 34px;
}
.payment-hero span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  opacity: 0.85;
}
.payment-body {
  padding: 25px;
}
.payment-body h2 {
  margin: 0;
  font-size: 18px;
}
.payment-body > p {
  margin: 6px 0 19px;
  color: var(--muted);
  font-size: 12px;
}
.payment-timer {
  margin: -4px 0 22px;
  padding: 13px 15px;
  border: 1px solid #d8e6fa;
  border-radius: 9px;
  background: #f2f7ff;
}
.payment-timer > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #5f6f87;
  font-size: 11px;
}
.payment-timer b {
  color: var(--blue);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.payment-timer-track {
  overflow: hidden;
  height: 7px;
  border-radius: 5px;
  background: #dbe5f2;
}
.payment-timer-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1769e0, #44a0ff);
  transition: width 1s linear, background 0.2s;
}
.payment-timer.expired {
  border-color: #f1c7cb;
  background: #fff3f4;
}
.payment-timer.expired b { color: #d44858; }
.payment-timer.expired .payment-timer-track i { background: #d44858; }
.coin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.coin-option {
  display: grid;
  min-height: 112px;
  padding: 13px 8px;
  place-items: center;
  gap: 5px;
  border: 1px solid #e3e8f0;
  border-radius: 9px;
  background: #f8f9fc;
  color: #17243c;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.coin-option:hover {
  transform: translateY(-2px);
  border-color: #a9c8f5;
  background: #fff;
}
.coin-option.active {
  border-color: var(--blue);
  background: #f2f7ff;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}
.coin-option img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.coin-option b { font-size: 12px; }
.coin-option small { color: #8a96a8; font-size: 9px; }
.coin-eth { background: #6152d9; }
.coin-usdt { background: #36ad8d; }
.coin-btc { background: #f59b23; }
.coin-doge { background: #c9a52b; }
.coin-ltc { background: #3469b4; }
.coin-bch { background: #75bf44; }
.coin-trx { background: #ee3344; }
.coin-ton { background: #159ddd; }
.payment-amount-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 15px 16px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f7f9fc;
}
.payment-amount-box span,
.payment-line span { color: #718096; font-size: 12px; }
.payment-amount-box b { font-size: 16px; }
.payment-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px;
  border-bottom: 1px solid #e8edf4;
  font-size: 12px;
}
.payment-total {
  align-items: center;
  border-bottom: 0;
}
.payment-total span,
.payment-total b {
  color: #17243c;
  font-size: 15px;
  font-weight: 800;
}
.payment-continue {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border-radius: 8px;
  font-size: 14px;
}
.payment-continue:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.payment-back {
  display: block;
  margin: 13px auto 0;
  border: 0;
  background: none;
  color: #7d899b;
  font-size: 11px;
  cursor: pointer;
}
.payment-invoice label {
  display: block;
  margin: 19px 0 7px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}
.invoice-coin {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8edf4;
}
.invoice-coin img {
  width: 45px;
  height: 45px;
}
.invoice-coin small {
  color: #7b8799;
  font-size: 10px;
}
.invoice-coin h2 {
  margin: 3px 0 0;
  font-size: 20px;
}
.invoice-value,
.invoice-address {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 8px 0 15px;
  border: 1px solid #dbe4ef;
  border-radius: 8px;
  background: #f7f9fc;
}
.invoice-value strong {
  overflow: hidden;
  flex: 1;
  color: #17243c;
  font-size: 20px;
  text-overflow: ellipsis;
}
.invoice-value > b {
  margin: 0 10px;
  color: var(--blue);
  font-size: 12px;
}
.invoice-value button,
.invoice-address button {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 0;
  border-radius: 6px;
  background: #e6effd;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.invoice-address code {
  overflow-wrap: anywhere;
  flex: 1;
  padding: 12px 10px 12px 0;
  color: #26364e;
  font: 600 12px/1.45 Inter, sans-serif;
}
.invoice-warning {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #f3d29a;
  border-radius: 8px;
  background: #fff8e9;
  color: #805a18;
  font-size: 11px;
  line-height: 1.55;
}
.invoice-qr {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 0 20px;
}
.invoice-qr img {
  width: 190px;
  height: 190px;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(28, 50, 82, 0.12);
}
.invoice-qr span {
  color: #7b8799;
  font-size: 10px;
}
.invoice-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #eef8f3;
}
.invoice-status i {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 3px solid #b9e5ce;
  border-top-color: #25aa61;
  border-radius: 50%;
  animation: invoice-spin 1s linear infinite;
}
.invoice-status b,
.invoice-status span { display: block; }
.invoice-status b { color: #23784b; font-size: 12px; }
.invoice-status span { margin-top: 3px; color: #5e806d; font-size: 10px; }
@keyframes invoice-spin { to { transform: rotate(360deg); } }
.payment-expired { padding: 6px 4px 12px; animation: expired-panel-enter .36s ease-out both; }
@keyframes expired-panel-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.expired-summary { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin: 4px auto 22px; }
.expired-clock { display: grid; place-items: center; width: 66px; height: 66px; background: #fff0f1; color: #cf5662; border-radius: 50%; animation: expired-clock-pop .5s cubic-bezier(.2,1.5,.4,1) both; }
.expired-clock svg { width: 31px; height: 31px; }
@keyframes expired-clock-pop { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
.payment-expired .expired-summary h2 { margin: 0; font-size: 22px; line-height: 1.3; color: #24334b; }
.payment-expired .expired-summary p { margin: 0; font-size: 12px; line-height: 1.65; color: #617087; max-width: 430px; }
.expired-details { padding: 5px 16px; background: #f5f8fc; border: 1px solid #e6ecf5; border-radius: 10px; }
.expired-details > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; font-size: 12px; }
.expired-details > div + div { border-top: 1px solid #e5ebf2; }
.expired-details span { color: #708095; }
.expired-details strong { color: #293b54; text-align: right; }
.payment-expired .expired-next-step { margin: 19px 0 0; font-size: 12px; line-height: 1.7; color: #536176; }
@media (prefers-reduced-motion: reduce) { .payment-expired, .expired-clock { animation: none; } }
#txid-form {
  position: relative;
  margin-top: 22px;
}
#txid-form label {
  display: block;
  margin-bottom: 8px;
  color: #34435a;
  font-size: 12px;
  font-weight: 700;
}
#txid-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 72px 0 14px;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  outline: 0;
  color: #26364e;
  font: 600 12px Inter, sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
#txid-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, .11);
}
#txid-form > small {
  position: absolute;
  top: 41px;
  right: 14px;
  color: #8a96a8;
  font-size: 10px;
}
#txid-form .primary {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border-radius: 8px;
}
#txid-form .primary:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.expired-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 27px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #169bd5;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(22, 155, 213, .2);
  gap: 9px;
}
.expired-telegram span { display: inline-block; }
.payment-success {
  padding: 48px 24px;
  text-align: center;
}
.payment-success-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: #e8f8ef;
  color: #20a55a;
  font-size: 34px;
  font-weight: 900;
}
.payment-success h2 { margin: 0 0 10px; color: #20304a; }
.payment-success p { margin: 0 auto 22px; max-width: 470px; color: #657187; line-height: 1.65; }
.payment-result-note {
  padding: 12px 16px;
  border-radius: 8px;
  background: #f4f7fb;
}
.payment-result-support {
  display: block;
  margin-top: 16px;
  color: #169bd5;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.payment-rejected .payment-success-icon { background: #fff0f2; color: #d44858; }
.payment-result-support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
@media (max-width: 600px) {
  .payment-steps { margin-bottom: 28px; }
  .payment-steps b { font-size: 9px; }
  .payment-heading h1 { font-size: 22px; }
  .payment-body { padding: 17px; }
  .coin-grid { grid-template-columns: repeat(2, 1fr); }
  .coin-option { min-height: 102px; }
  .withdrawal-form { grid-template-columns: 1fr; }
}
.box h1 {
  font-size: 22px;
}
.box label,
.auth label {
  display: block;
  margin: 13px 0;
  color: #5f6a7e;
  font-size: 8px;
  font-weight: 600;
}
.box input,
.auth input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
}
.sum,
.total,
.summaryrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
}
.total {
  border: 0;
  font-size: 12px;
}
.auth {
  max-width: 390px;
  margin: 50px auto;
  text-align: center;
}
.auth > i {
  margin: auto;
  width: 45px;
  height: 45px;
}
.auth p,
.auth > small {
  color: var(--muted);
  font-size: 8px;
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f0f3f8;
  padding: 3px;
  margin: 20px 0;
}
.tabs button {
  border: 0;
  background: none;
  padding: 8px;
  color: var(--muted);
  font-size: 8px;
}
.tabs .active {
  background: #fff;
  color: var(--blue);
}
.auth form {
  text-align: left;
}
.auth .auth-view {
  display: none;
}
.auth .auth-view.active {
  display: block;
}
.auth-link {
  display: block;
  margin: 12px auto 0;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
}
.form-message {
  min-height: 20px;
  margin: 15px 0 0;
  color: #d44858 !important;
}
.account-dashboard {
  width: 100%;
  max-width: none;
  margin: 0;
}
.security-verification {
  --security-accent: #d99b20;
  --security-soft: #fff9e9;
  --security-border: #efd18c;
  margin-bottom: 18px;
  padding: 21px;
  border: 1px solid var(--security-border);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--security-soft), #fff);
  box-shadow: 0 12px 32px rgba(30, 54, 91, .08);
}
.security-verification[hidden],
.security-verification-details[hidden],
.security-verification-info[hidden],
.security-verification-actions > [hidden],
.security-verification-footnote[hidden],
.account-balance-availability[hidden] { display: none !important; }
.security-verification.status-active,
.security-verification.status-verified {
  --security-accent: #2e9a5c;
  --security-soft: #f1fbf5;
  --security-border: #bfe4cd;
}
.security-verification.status-review {
  --security-accent: #2474df;
  --security-soft: #f2f7ff;
  --security-border: #bfd4f3;
}
.security-verification.status-restricted {
  --security-accent: #d54858;
  --security-soft: #fff3f5;
  --security-border: #efb8c0;
}
.security-verification-head {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: start;
  gap: 15px;
}
.security-verification-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 13px;
  background: var(--security-accent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--security-accent) 24%, transparent);
}
.security-verification-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.security-verification-kicker {
  display: block;
  margin: 1px 0 5px;
  color: var(--security-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
}
.security-verification h2 {
  margin: 0 0 6px;
  color: #1f2d45;
  font-size: 18px;
}
.security-verification-head p {
  max-width: 620px;
  margin: 0;
  color: #657187;
  font-size: 12px;
  line-height: 1.6;
}
.security-verification-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--security-accent) 34%, #fff);
  border-radius: 999px;
  background: #fff;
  color: var(--security-accent);
  font-size: 10px;
  white-space: nowrap;
}
.security-verification-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--security-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--security-accent) 12%, transparent);
}
.security-verification-details {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}
.security-verification-details > div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(154, 169, 192, .25);
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
}
.security-verification-details span,
.security-verification-details strong,
.security-verification-details code { display: block; }
.security-verification-details span {
  margin-bottom: 6px;
  color: #8a96a8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.security-verification-details strong,
.security-verification-details code {
  color: #26344d;
  font-size: 12px;
  font-weight: 700;
}
#security-verification-countdown {
  color: var(--security-accent);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.security-verification-details code {
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.45;
}
.security-verification-reason {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--security-accent);
  border-radius: 7px;
  background: rgba(255, 255, 255, .72);
  color: #526078;
  font-size: 11px;
  line-height: 1.55;
}
.security-verification-info {
  margin-top: 14px;
  padding: 16px 17px;
  border: 1px solid #d8e4f5;
  border-radius: 11px;
  background: #f7faff;
}
.security-verification-info h3 {
  margin: 0 0 9px;
  color: #263a5c;
  font-size: 14px;
}
.security-verification-info p {
  margin: 7px 0 0;
  color: #5d6b81;
  font-size: 11px;
  line-height: 1.65;
}
.security-verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.security-verification-actions button {
  min-height: 39px;
  padding: 0 15px;
  border-radius: 9px;
  cursor: pointer;
  font: 700 11px Inter, sans-serif;
}
.security-verification-actions .primary { width: auto; }
.security-secondary,
.security-support {
  border: 1px solid #cfdaea;
  background: #fff;
  color: #3a4b66;
}
.security-secondary:hover,
.security-support:hover { border-color: #9eb7dc; color: var(--blue); }
.security-verification-footnote {
  margin: 12px 0 0;
  color: #7c8799;
  font-size: 10px;
  line-height: 1.55;
}
.account-balance-availability {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e8edf4;
}
.account-balance-availability span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  font-size: 10px;
}
.account-balance-availability b { font-size: 11px; }
.security-payment .coin-grid { grid-template-columns: minmax(190px, 280px); }
.security-payment .coin-option:not(.active) { display: none; }
.security-payment .coin-option.active { cursor: default; }
.account-frozen-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 18px;
  margin-top: 11px;
  font-size: 11px;
  font-weight: 700;
}
.account-frozen-meta span { display: inline-flex; align-items: center; gap: 6px; }
.account-frozen-meta i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #ecf8ee;
  color: #299653;
  font-size: 10px;
  font-style: normal;
}
.account-frozen-meta b {
  display: inline-block;
  min-width: 43px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #f4dfaa;
  color: #684703;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.account-frozen-meta[hidden] { display: none !important; }
.account-blocked-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid #efb1ba;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff3f5, #fff8f8);
  color: #992b3a;
  box-shadow: 0 10px 28px rgba(184, 43, 61, 0.1);
}
.account-blocked-banner.is-frozen {
  border-color: #f0cf83;
  background: linear-gradient(135deg, #fff9e9, #fffdf7);
  color: #75510b;
  box-shadow: 0 10px 28px rgba(181, 127, 16, 0.1);
}
.account-blocked-banner.is-frozen .account-blocked-icon {
  background: #e2a92f;
  box-shadow: 0 7px 16px rgba(190, 134, 18, 0.22);
}
.account-blocked-banner.is-frozen p { color: #866523; }
.account-blocked-banner[hidden] { display: none !important; }
.account-blocked-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
  background: #dc3545;
  box-shadow: 0 7px 16px rgba(220, 53, 69, 0.22);
}
.account-blocked-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-access-copy { min-width: 0; flex: 1; }
.account-blocked-banner strong { display: block; margin-bottom: 5px; font-size: 17px; }
.account-blocked-banner p { margin: 0; color: #ad4553; font-size: 13px; line-height: 1.55; }
.account-is-restricted #account-balance-card {
  border-color: #efb1ba;
  background: #fff7f8;
}
.account-is-frozen #account-balance-card {
  border-color: #f0cf83;
  background: #fffdf7;
}
#account-balance-freeze {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #ffe5e8;
  color: #c72e42;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
}
#account-balance-freeze[hidden] { display: none !important; }
.account-is-restricted #withdrawal-form { opacity: .55; }
.account-is-restricted #topup-form :disabled,
.account-is-restricted #withdrawal-form :disabled { cursor: not-allowed; }
body.account-operation-locked .checkout-pay-button:disabled,
body.account-operation-locked #payment-continue:disabled,
body.account-operation-locked .coin-option:disabled,
body.account-operation-locked #txid-form :disabled {
  cursor: not-allowed;
  opacity: .58;
}
.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.account-head small,
.account-stats span {
  color: var(--muted);
  font-size: 11px;
}
.account-head h1 {
  margin: 5px 0 0;
  font-size: 25px;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.account-stats article,
.account-box {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.account-stats span {
  display: block;
  margin-bottom: 7px;
}
.account-stats b {
  font-size: 24px;
}
.account-box {
  margin-top: 14px;
}
#withdrawal-section {
  scroll-margin-top: 100px;
}
.account-box h2 {
  margin: 0 0 8px;
}
.account-box > p,
.account-empty {
  color: var(--muted);
}
.withdrawal-limit-alert {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: -28px 0;
  padding: 14px 16px;
  border: 1px solid #efb4bc;
  border-radius: 10px;
  background: #fff3f5;
  color: #a42838;
  box-shadow: 0 5px 16px rgba(185, 45, 63, 0.08);
}
.withdrawal-limit-alert[hidden] {
  display: none !important;
}
.withdrawal-limit-alert-icon {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  align-self: center;
}
.withdrawal-limit-alert-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: #dc3545;
}
.withdrawal-limit-alert-icon .withdrawal-limit-alert-mark {
  fill: none;
  stroke: #fff;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.withdrawal-limit-alert p {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}
.withdrawal-limit-alert.is-pulsing {
  animation: withdrawal-alert-pulse 0.42s ease;
}
@keyframes withdrawal-alert-pulse {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  65% { transform: translateX(4px); }
}
.topup-form {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 170px;
  align-items: end;
  gap: 14px;
  max-width: 464px;
  margin-top: 18px;
  margin-bottom: 20px;
}
.topup-form label {
  min-width: 0;
}
.topup-amount-label > span:first-child {
  display: block;
  margin-bottom: 7px;
  color: #5f6a7e;
  font-size: 12px;
  font-weight: 700;
}
.amount-warning {
  position: absolute;
  z-index: 3;
  top: calc(100% + 6px);
  left: 0;
  display: block;
  width: max-content;
  max-width: min(420px, 90vw);
  margin: 0;
  color: #dc3545;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.amount-warning[hidden] { display: none !important; }
.topup-amount-label,
.withdraw-wallet-label { position: relative; }
.topup-amount-label.has-error .money-input {
  border-color: #dc3545 !important;
  background: #fff7f8 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.09);
}
.withdraw-wallet-label.has-error > input {
  border-color: #dc3545 !important;
  background: #fff7f8 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.09);
}
.field-error-pulse { animation: field-error-pulse 0.46s ease; }
@keyframes field-error-pulse {
  0% { transform: translateX(0); }
  22% { transform: translateX(-5px); }
  44% { transform: translateX(4px); }
  66% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}
#topup-form .money-input {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 14px 0 8px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  background: #f7f9fd;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
#topup-form .money-input:focus-within {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}
#topup-form .money-currency {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #e7f0ff;
  color: var(--blue);
  font-size: 18px;
  line-height: 34px;
}
#topup-form .money-input input[type="number"] {
  min-width: 0;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 11px;
  border: 0 !important;
  border-radius: 0;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #17243c;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}
#topup-form .money-input input[type="number"]::-webkit-inner-spin-button,
#topup-form .money-input input[type="number"]::-webkit-outer-spin-button {
  display: none;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
#topup-form .money-input small {
  color: #8a96a8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
#topup-form > .primary {
  height: 50px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 7px 16px rgba(23, 105, 224, 0.18);
}
.withdrawal-form {
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  row-gap: 46px;
  max-width: 760px;
  margin-bottom: 22px;
}
.withdrawal-form label > span:first-child {
  display: block;
  margin-bottom: 7px;
  color: #5f6a7e;
  font-size: 12px;
  font-weight: 700;
}
.withdrawal-form select,
.withdrawal-form label > input {
  width: 100%;
  height: 50px;
  padding: 0 13px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  outline: 0;
  background: #f7f9fd;
  color: #17243c;
  font: 600 13px Inter, sans-serif;
}
.withdraw-coin-label {
  position: relative;
}
.withdraw-native-select { position:absolute!important; width:1px!important; height:1px!important; opacity:0!important; pointer-events:none!important; }
.withdraw-select { position:relative; display:block; }
.withdraw-select-trigger {
  display:flex; align-items:center; justify-content:space-between; width:100%; height:50px;
  padding:0 17px; border:1px solid #d9e2ef; border-radius:10px;
  background:linear-gradient(180deg,#fff 0%,#f7f9fd 100%); color:#17243c; cursor:pointer;
  transition:border-color .2s,box-shadow .2s,background .2s;
}
.withdraw-select-trigger b { font-size:13px; }
.withdraw-select-trigger i { width:9px; height:9px; margin-right:2px; border-right:2px solid #55708f; border-bottom:2px solid #55708f; transform:translateY(-2px) rotate(45deg); transform-origin:center; transition:transform .2s ease,border-color .2s; }
.withdraw-select.open .withdraw-select-trigger { border-color:var(--blue); background:#fff; box-shadow:0 0 0 3px rgba(39,107,233,.12); }
.withdraw-select.open .withdraw-select-trigger i { border-color:var(--blue); transform:translateY(3px) rotate(225deg); }
.withdraw-select:not(.open) .withdraw-select-trigger i { border-color:#55708f; transform:translateY(-2px) rotate(45deg); }
.withdraw-select-menu {
  position:absolute; z-index:15; top:calc(100% + 7px); left:0; right:0; padding:7px;
  border:1px solid #dce4ef; border-radius:11px; background:#fff;
  box-shadow:0 16px 38px rgba(31,50,81,.16); overflow-y:auto;
}
.withdraw-select.open-up .withdraw-select-menu { top:auto; bottom:calc(100% + 7px); box-shadow:0 -14px 38px rgba(31,50,81,.16); }
.withdraw-select-menu button { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:40px; padding:0 11px; border:0; border-radius:7px; background:transparent; color:#27364d; cursor:pointer; text-align:left; font-size:13px; font-weight:700; }
.withdraw-select-menu button small { color:#98a3b4; font-size:10px; font-weight:600; }
.withdraw-select-menu button:hover { background:#f1f6ff; color:var(--blue); }
.withdraw-select-menu button.selected { background:#eaf2ff; color:var(--blue); }
.withdrawal-form .money-input { display:flex; align-items:center; height:50px; padding:0 14px 0 8px; border:1px solid #d7e0ec; border-radius:10px; background:#f7f9fd; }
.withdrawal-form .money-currency { display:grid; width:34px; height:34px; place-items:center; border-radius:8px; background:#e7f0ff; color:var(--blue); font-size:18px; }
.withdrawal-form .money-input input { min-width:0; width:100%; height:48px; padding:0 11px; border:0; outline:0; background:transparent; font-size:18px; font-weight:700; }
.withdrawal-form .money-input input[type="number"] { -moz-appearance:textfield; appearance:textfield; }
.withdrawal-form .money-input input[type="number"]::-webkit-inner-spin-button,
.withdrawal-form .money-input input[type="number"]::-webkit-outer-spin-button { display:none; margin:0; -webkit-appearance:none; appearance:none; }
.withdrawal-form .money-input small { color:#8a96a8; font-size:11px; font-weight:700; }
.withdrawal-form > .primary { min-height:50px; }
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.account-row-side { display:flex; align-items:flex-end; flex-direction:column; gap:7px; flex:0 0 auto; }
.account-resume-payment {
  border: 1px solid #b9d1f3;
  border-radius: 8px;
  padding: 7px 11px;
  background: #eef5ff;
  color: #1769e0;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.account-resume-payment:hover { background:#e1edff; border-color:#8eb5ec; transform:translateY(-1px); }
.account-resume-payment:disabled { cursor:default; opacity:.58; transform:none; }
.account-resume-payment span { display:inline!important; margin:0!important; color:inherit!important; font-size:inherit!important; }
.account-operation-entry[hidden] { display:none!important; }
.account-show-more {
  display:block;
  width:100%;
  margin-top:10px;
  padding:10px 14px;
  border:1px solid #d7e2f1;
  border-radius:8px;
  background:#f7faff;
  color:#1769e0;
  font:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.account-show-more:hover { background:#edf4ff; border-color:#b9d1f3; }
.account-history-heading h2 { display:flex; align-items:center; gap:10px; }
.account-section-icon {
  display:inline-grid!important;
  place-items:center;
  width:34px;
  height:34px;
  margin:0!important;
  flex:0 0 34px;
  border:1px solid #c9dcf7;
  border-radius:10px;
  background:linear-gradient(145deg,#f5f9ff,#e8f2ff);
  color:#1769e0!important;
  box-shadow:0 5px 14px rgba(23,105,224,.10);
}
.account-section-icon svg { width:18px; height:18px; stroke:currentColor; stroke-width:1.45; stroke-linecap:round; stroke-linejoin:round; }
.account-section-icon--topup { color:#15945c!important; border-color:#c2e7d5; background:linear-gradient(145deg,#f3fff9,#e5f8ef); box-shadow:0 5px 14px rgba(21,148,92,.09); }
.account-section-icon--withdraw { color:#8a5bd3!important; border-color:#ddcff3; background:linear-gradient(145deg,#faf7ff,#f0e9fb); box-shadow:0 5px 14px rgba(138,91,211,.09); }
.account-status {
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  margin-top:0!important;
  font-weight:700;
}
.account-status i {
  display:block;
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  box-shadow:0 0 0 3px currentColor;
}
.account-status.success { color:#24a760; }
.account-status.success i { background:#24a760; box-shadow:0 0 0 3px rgba(36,167,96,.13); }
.account-status.warning { color:#c68a17; }
.account-status.warning i { background:#e5a72e; box-shadow:0 0 0 3px rgba(229,167,46,.14); }
.account-status.danger { color:#d34858; }
.account-status.danger i { background:#d34858; box-shadow:0 0 0 3px rgba(211,72,88,.13); }
.account-meta-divider { display:inline!important; margin:0 5px; color:#b1bac8; }
.account-row:first-child {
  border-top: 0;
}
.account-row b,
.account-row span {
  display: block;
}
.account-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.auth .primary,
.checkout .primary {
  width: 100%;
}
.article {
  max-width: 760px;
  line-height: 1.8;
}
.article h1 {
  font-size: 23px;
}
.article h2 {
  font-size: 13px;
}
.replacement-warning {
  margin: 22px 0;
  padding: 18px 20px;
  color: #9f1d2c;
  background: #fff1f2;
  border: 1px solid #f1aeb5;
  border-left: 4px solid #dc3545;
  border-radius: 10px;
}
.replacement-warning h2 {
  margin: 0 0 12px;
  color: #a7192c;
}
.replacement-warning ul {
  margin: 0;
  padding-left: 20px;
}
.replacement-warning li + li {
  margin-top: 5px;
}
.bm-replacement {
  margin-top: 26px;
}
.bm-replacement h2 {
  margin: 22px 0 10px;
}
.bm-deadlines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}
.bm-deadlines strong {
  padding: 8px 12px;
  color: #a7192c;
  background: #fff1f2;
  border: 1px solid #f1aeb5;
  border-radius: 7px;
}
.article .bm-important {
  padding: 14px 16px;
  color: #7f1d2d;
  background: #fff1f2;
  border-left: 4px solid #dc3545;
  border-radius: 7px;
}
.bm-important strong {
  color: #c1122f;
}
.bm-important a {
  color: #b3122c;
  font-weight: 700;
}
.stub {
  padding: 14px;
  background: #fff4da;
  color: #87671d;
}
.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 80px);
  opacity: 0;
  padding: 11px 18px;
  border-radius: 5px;
  background: #17243c;
  color: #fff;
  font-size: 9px;
  transition: 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#overlay {
  display: none;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .hamb {
    display: block;
  }
  aside#sidebar {
    position: fixed;
    z-index: 35;
    left: 0;
    top: 0;
    width: 270px;
    height: 100dvh;
    border-radius: 0;
    transform: translateX(-100%);
    transition: 0.25s;
    overflow: auto;
  }
  aside#sidebar.open {
    transform: none;
  }
  .aside-title button {
    display: block;
    border: 0;
    background: none;
    font-size: 20px;
  }
  #overlay.open {
    display: block;
    position: fixed;
    z-index: 30;
    inset: 0;
    background: #0b15276e;
  }
  .detailgrid,
  .checkout {
    grid-template-columns: 1fr;
  }
  .thead,
  .row {
    grid-template-columns: minmax(220px, 1fr) 75px 90px 145px;
  }
}
@media (max-width: 650px) {
  .security-verification { padding: 16px; }
  .security-verification-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .security-verification-icon { width: 42px; height: 42px; }
  .security-verification-status {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .security-verification-details { grid-template-columns: 1fr 1fr; }
  .security-verification-details > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .security-verification-actions { flex-direction: column; }
  .security-verification-actions button { width: 100%; }
  .account-frozen-banner,
  .account-blocked-banner {
    align-items: flex-start;
    padding: 16px;
  }
  .account-frozen-icon,
  .account-blocked-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
  .account-frozen-meta { flex-direction: column; align-items: flex-start; }
  .account-stats {
    grid-template-columns: 1fr;
  }
  .account-head,
  .topup-form,
  .account-row {
    align-items: stretch;
    flex-direction: column;
  }
  .topup-form {
    grid-template-columns: 1fr;
  }
  .account-row strong {
    margin-top: 5px;
  }
  .account-row-side { align-items:flex-start; }
  .footer-content {
    flex-direction: column;
    gap: 12px;
  }
  .footer-content p {
    text-align: center;
  }
  .shell {
    width: calc(100% - 20px);
  }
  .toplinks > a {
    display: none;
  }
  .toplinks > a.support-top {
    display: inline-flex;
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
  .toplinks > a.support-top span {
    font-size: 14px;
  }
  .toplinks > button {
    font-size: 0;
  }
  .toplinks > button:first-of-type {
    font-size: 0;
  }
  .toplinks > button:first-of-type:before {
    content: "♙";
    font-size: 18px;
  }
  #header-account:before {
    display: none;
  }
  .heading {
    display: block;
  }
  .search {
    width: 100%;
    margin-top: 13px;
  }
  .thead {
    display: none;
  }
  .row {
    grid-template-columns: 1fr auto;
    gap: 9px;
    padding: 13px;
  }
  .pname {
    grid-column: 1/-1;
    padding-right: 0;
  }
  .row > .stock {
    display: none;
  }
  .actions {
    grid-column: 2;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .cartrow {
    grid-template-columns: 1fr auto;
  }
  .cartrow > .qty {
    grid-column: 1;
  }
  .cartrow > .price {
    display: none;
  }
  .cartbottom {
    align-items: stretch;
    flex-direction: column;
  }
  .promo button {
    display: none;
  }
}

/* Увеличенные размеры для комфортного чтения */
body {
  font-size: 15px;
}
.toplinks a,
.toplinks button {
  font-size: 14px;
}
.aside-title,
aside#sidebar > small {
  font-size: 11px;
}
.navitem {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.35;
}
.help {
  font-size: 12px;
}
.help p {
  font-size: 11px;
}
.note,
.promo {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
}
.heading small,
.box > small {
  font-size: 11px;
}
.heading h1 {
  font-size: 28px;
}
.search {
  padding: 11px 13px;
}
.search input {
  font-size: 13px;
}
.grouphead {
  padding: 15px 17px;
}
.grouphead h2 {
  font-size: 15px;
}
.grouphead button {
  font-size: 11px;
}
.thead {
  padding: 10px 17px;
  font-size: 10px;
}
.row {
  min-height: 88px;
  padding: 13px 17px;
}
.pname button {
  font-size: 13px;
  line-height: 1.55;
}
.stock {
  font-size: 12px;
}
.price {
  font-size: 14px;
}
.price small {
  font-size: 10px;
}
.actions button,
.secondary {
  padding: 10px 12px;
  font-size: 11px;
}
.buy,
.primary {
  padding: 12px 16px;
  font-size: 12px;
}
.back {
  font-size: 12px;
}
.tag {
  font-size: 11px;
}
.detailinfo h1 {
  font-size: 24px;
}
.detailinfo p,
.box p,
.article p {
  font-size: 13px;
}
.features span {
  font-size: 11px;
  line-height: 1.45;
}
.available {
  font-size: 11px;
}
.cartproduct {
  font-size: 12px;
  line-height: 1.5;
}
.cartbottom span {
  font-size: 11px;
}
.box label,
.auth label {
  font-size: 11px;
}
.box input,
.auth input {
  font-size: 13px;
}
.sum,
.total,
.summaryrow {
  font-size: 11px;
  line-height: 1.5;
}
.total {
  font-size: 15px;
}
.auth p,
.auth > small {
  font-size: 11px;
  line-height: 1.5;
}
.tabs button {
  font-size: 11px;
}
.article {
  font-size: 14px;
}
.article h2 {
  font-size: 17px;
}
.toast {
  font-size: 12px;
}
@media (max-width: 650px) {
  body {
    font-size: 14px;
  }
  .note,
  .promo {
    font-size: 12px;
  }
  .heading h1 {
    font-size: 25px;
  }
  .pname button {
    font-size: 13px;
  }
  .actions button {
    font-size: 11px;
  }
  .row {
    padding: 15px 13px;
  }
  .cartproduct {
    font-size: 12px;
  }
}
.useful {
  max-width: 900px;
  padding: 34px 42px;
}
.useful .lead {
  font-size: 15px;
  color: #59667b;
}
.useful section {
  padding-top: 18px;
  scroll-margin-top: 85px;
}
.useful section + section {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.useful h2 {
  margin: 16px 0 12px;
  font-size: 22px;
  color: #1d2a42;
}
.useful p,
.useful li,
.useful dd {
  font-size: 14px;
  line-height: 1.8;
}
.toc {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 25px 0;
  padding: 20px;
  border-radius: 7px;
  background: transparent;
}
.toc b {
  margin-bottom: 5px;
  font-size: 15px;
}
.toc a {
  color: var(--blue);
  font-size: 13px;
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}
.glossary {
  display: grid;
  grid-template-columns: 150px 1fr;
  margin: 0;
}
.glossary dt,
.glossary dd {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.glossary dt {
  font-weight: 700;
  color: #26344c;
}
.glossary dd {
  margin: 0;
}
.verticals {
  margin-top: 38px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.verticals h3 {
  margin: 0 0 18px;
  color: #1d2a42;
  font-size: 19px;
}
.vertical-item {
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}
.vertical-item h4 {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 15px;
}
.vertical-item p {
  margin: 0;
}
.traffic-sources {
  margin-top: 38px;
  padding: 26px 24px 10px;
  border-radius: 9px;
  background: #f1f6ff;
}
.traffic-sources h3 {
  margin: 0 0 22px;
  color: #1d2a42;
  font-size: 19px;
}
.traffic-source {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  padding-bottom: 24px;
}
.traffic-source:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 41px;
  bottom: 4px;
  left: 17px;
  width: 2px;
  background: #cbdcff;
  content: "";
}
.traffic-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.traffic-source h4 {
  margin: 2px 0 7px;
  color: #26344c;
  font-size: 15px;
}
.traffic-source p {
  margin: 0;
}
.traffic-work {
  margin-top: 38px;
  padding: 24px;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(31, 56, 94, 0.06);
}
.traffic-work-heading {
  margin-bottom: 18px;
}
.traffic-work-heading span {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.traffic-work-heading h3 {
  margin: 0;
  color: #1d2a42;
  font-size: 19px;
}
.work-term {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 15px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.work-term-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(145deg, #1e6ee9, #174fac);
  box-shadow: 0 6px 15px rgba(39, 107, 233, 0.22);
}
.work-term-icon svg {
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.work-term-icon .icon-fill {
  fill: #fff;
  stroke: none;
}
.work-term-icon .icon-dark {
  fill: none;
  stroke: #174fac;
  stroke-width: 1.5;
}
.work-term h4 {
  margin: 1px 0 7px;
  color: var(--blue);
  font-size: 15px;
}
.work-term p {
  margin: 0;
}
.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.compare > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
}
.compare-card {
  position: relative;
}
.compare-card.asset-card {
  border-color: #cfdcf2;
  background: #f4f8ff;
}
.compare-label {
  display: block;
  margin-bottom: 8px;
  color: #8b96a8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}
.compare b {
  display: block;
  color: var(--blue);
  font-size: 14px;
}
.compare p {
  margin-bottom: 0;
  font-size: 12px;
}
.trust-factors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.trust-factors article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d9e3f2;
  border-radius: 8px;
  background: #f7faff;
}
.trust-factor-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.trust-factor-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-factors h3 {
  margin: 2px 0 7px;
  color: #26344c;
  font-size: 14px;
}
.trust-factors p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}
.ban-reason {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  margin: 21px 0;
  padding: 20px;
  border: 1px solid #f0d3d3;
  border-left: 4px solid #df5555;
  border-radius: 8px;
  background: #fff8f8;
}
.ban-reason-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 9px;
  background: #df5555;
}
.ban-reason-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ban-reason span {
  color: #bd4b4b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}
.ban-reason h3 {
  margin: 5px 0 7px;
  color: #26344c;
  font-size: 16px;
}
.ban-reason p {
  margin: 0;
}
.ban-reason.activity-reason {
  border-color: #f0dfbd;
  border-left-color: #d99b2b;
  background: #fffbf2;
}
.activity-reason .ban-reason-icon {
  background: #d99b2b;
}
.activity-reason span {
  color: #a77319;
}
.ban-reason.billing-reason {
  border-color: #cbdef5;
  border-left-color: var(--blue);
  background: #f6faff;
}
.billing-reason .ban-reason-icon {
  background: var(--blue);
}
.billing-reason span {
  color: var(--blue);
}
.ban-tips {
  margin: 14px 0 0;
  padding: 13px 15px 5px 31px !important;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}
.ban-tips li {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.security-list-title {
  margin: 24px 0 10px;
  color: #26344c;
  font-size: 16px;
}
.antidetect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.antidetect-grid article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #f8fafc;
}
.antidetect-grid .antidetect-wide {
  grid-column: 1 / -1;
}
.antidetect-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 9px;
  background: linear-gradient(145deg, #17243c, #29466f);
}
.antidetect-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.antidetect-grid h3 {
  margin: 2px 0 7px;
  color: #26344c;
  font-size: 14px;
}
.antidetect-grid p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}
.launch-principles {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.launch-principles article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 17px;
  padding: 21px;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(30, 52, 83, 0.04);
}
.principle-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #edf3fe;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.launch-principles h3 {
  margin: 3px 0 9px;
  color: #26344c;
  font-size: 16px;
}
.launch-principles p {
  margin: 0 0 10px;
}
.launch-principles p:last-child {
  margin-bottom: 0;
}
.launch-principles ul {
  margin: 12px 0 0;
  padding: 12px 15px 4px 30px;
  border-radius: 6px;
  background: #f6f8fb;
}
.launch-principles li {
  margin-bottom: 8px;
  font-size: 12px;
}
.launch-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 17px;
  border-radius: 8px;
  background: #17243c;
  color: #fff;
}
.launch-check b {
  margin-right: 5px;
  font-size: 12px;
}
.launch-check span {
  padding: 6px 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
}
.warning {
  margin: 17px 0;
  padding: 16px;
  border-left: 4px solid #e8a328;
  background: #fff7e7;
  color: #74591f;
  line-height: 1.65;
}
.account-check-guide {
  margin-top: 22px;
}
.account-check-guide section {
  padding: 4px 0 20px;
  scroll-margin-top: 85px;
}
.account-check-guide section + section {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.account-check-guide h3 {
  margin: 0 0 9px;
  color: #26344c;
  font-size: 17px;
}
.account-check-guide p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}
.pzrd-guide {
  margin-top: 22px;
}
.pzrd-guide section {
  padding: 4px 0 20px;
  scroll-margin-top: 85px;
}
.pzrd-guide section + section {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.pzrd-guide h3 {
  margin: 0 0 9px;
  color: #26344c;
  font-size: 17px;
}
.pzrd-guide p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}
.pzrd-guide ul {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 35px;
}
.pzrd-guide li {
  break-inside: avoid;
  margin-bottom: 9px;
  font-size: 13px;
}
.pzrd-guide .pzrd-steps {
  margin: 18px 0 0;
  padding-left: 25px;
  columns: 1;
}
.pzrd-guide .pzrd-steps li {
  margin-bottom: 10px;
  padding-left: 4px;
  font-size: 14px;
  line-height: 1.7;
}
.moderation-guide {
  margin-top: 22px;
}
.moderation-guide section {
  padding: 4px 0 20px;
  scroll-margin-top: 85px;
}
.moderation-guide section + section {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.moderation-guide h3 {
  margin: 0 0 14px;
  color: #26344c;
  font-size: 18px;
}
.moderation-guide p {
  margin: 0 0 13px;
  font-size: 14px;
  line-height: 1.8;
}
.moderation-guide p:last-child {
  margin-bottom: 0;
}
.moderation-guide b {
  color: #26344c;
}
.useful .useful-conclusion {
  margin-top: 42px;
  padding: 34px 0 6px;
  border-top: 2px solid var(--blue);
  text-align: center;
}
.conclusion-label {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
.useful .useful-conclusion h2 {
  margin: 9px 0 13px;
  color: #1d2a42;
  font-size: 26px;
}
.useful .useful-conclusion p {
  max-width: 690px;
  margin: 0 auto;
  color: #68758a;
  font-size: 14px;
  line-height: 1.8;
}
.useful-conclusion strong {
  display: block;
  margin-top: 14px;
  color: #26344c;
  font-size: 14px;
}
.conclusion-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 23px;
  padding: 12px 18px;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.conclusion-button:hover {
  background: #1858ca;
}
.useful ol,
.useful ul {
  padding-left: 22px;
}
.useful li {
  margin-bottom: 8px;
}
@media (max-width: 650px) {
  .useful {
    padding: 24px 18px;
  }
  .useful h2 {
    font-size: 19px;
  }
  .useful p,
  .useful li,
  .useful dd {
    font-size: 13px;
  }
  .glossary {
    grid-template-columns: 1fr;
  }
  .glossary dt {
    padding-bottom: 2px;
    border: 0;
  }
  .glossary dd {
    padding-top: 2px;
  }
  .compare,
  .trust-factors {
    grid-template-columns: 1fr;
  }
  .traffic-sources {
    padding: 21px 16px 5px;
  }
  .traffic-work {
    padding: 19px 16px;
  }
  .ban-reason {
    grid-template-columns: 1fr;
  }
  .antidetect-grid {
    grid-template-columns: 1fr;
  }
  .antidetect-grid .antidetect-wide {
    grid-column: auto;
  }
  .launch-principles article {
    grid-template-columns: 1fr;
  }
  .pzrd-guide ul {
    columns: 1;
  }
}

/* Neutral information for deposits while an existing balance is restricted. */
.topup-freeze-notice { background: #f2f3f5; border: 1px solid #d7dbe0; border-radius: 8px; padding: 14px 16px; margin: 10px 0 18px; color: #353b44; }
.topup-freeze-notice[hidden] { display: none !important; }
.topup-freeze-notice > strong { display: block; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; font-weight: 700; }
.topup-freeze-notice p strong { display: inline; margin: 0; padding: 0; }
.topup-freeze-notice p { margin: 8px 0 !important; padding: 0; color: #535d68; font-size: 14px; line-height: 1.5; }
.topup-freeze-notice p:last-child { margin-bottom: 0 !important; }
/* Minimum deposit note: same inline warning treatment for $5 and $1.
   Preserve the original top-up button position beside the amount field. */
#topup-form #topup-minimum-note {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: -5px 0 0;
  color: #dc3545;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
#topup-form > button.primary {
  grid-column: 2;
  grid-row: 2;
}
#topup-form > .topup-amount-label { grid-column: 1; grid-row: 2; }
@media (max-width: 700px) {
  #topup-form > button.primary {
    grid-column: 1;
    grid-row: 3;
  }
  #topup-form #topup-minimum-note {
    grid-column: 1;
    grid-row: 4;
    margin-top: -5px;
  }
}

/* Single countdown location: inside Security Verification. */
.security-freeze-timer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid #ecd194;
  background: #fff3d2;
  color: #7a540c;
  font-size: 13px;
}
.security-freeze-timer[hidden] { display: none !important; }
.security-freeze-timer strong { margin-left: auto; color: #76500b; font-size: 16px; }
/* Warning about optional deposits while an account is frozen. */
.topup-freeze-notice {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: #fff8e4;
  border: 1px solid #efd18c;
  color: #76550f;
}
.topup-freeze-notice::before {
  content: "!";
  position: absolute;
  left: 16px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid #b77d0f;
  color: #93600a;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
}
.topup-freeze-notice strong { color: #795208; }
.topup-freeze-notice p { color: #7d611c; }

/* Status and validation refinements */
#topup-minimum-note[hidden], #topup-freeze-notice[hidden] { display:none !important; }
.security-verification.status-review { --security-accent:#d99b20; --security-soft:#fff9e9; --security-border:#efd18c; }

/* Inline validation: reserve space in document flow; no overlapping alerts. */
.amount-warning {
  position: static;
  display: block;
  width: auto;
  max-width: 100%;
  margin-top: 9px;
  overflow-wrap: anywhere;
}
.withdrawal-form {
  row-gap: 18px;
}
.withdrawal-limit-alert {
  margin: 8px 0 10px;
}
.withdrawal-form .topup-amount-label.has-error .money-input {
  border-color: #dc3545 !important;
  background: #fff7f8 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .09);
}
/* Keep the deposit minimum in one place only. */
#topup-amount-warning { display: none !important; }

/* Stable inline errors: keep space reserved; do not restart keyframes on rerender. */
#topup-form #topup-minimum-note,
#withdrawal-form #withdrawal-amount-warning {
  display: block !important;
  box-sizing: border-box;
  min-height: 24px;
  margin-top: 7px;
  line-height: 1.45;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .20s ease, transform .20s ease, visibility .20s;
}
#topup-form #topup-minimum-note[hidden],
#withdrawal-form #withdrawal-amount-warning[hidden] {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
}
#withdrawal-form #withdrawal-amount-warning {
  min-height: 34px;
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  #topup-form #topup-minimum-note,
  #withdrawal-form #withdrawal-amount-warning { transition: none; }
}

/* ========================================================================== 
   Compact mobile parity layer. Desktop remains the visual source of truth.
   ========================================================================== */
@media (max-width: 767px) {
  :root { --mobile-control: 36px; }
  body { font-size: 13px; }
  header { min-height: 56px; padding-top: env(safe-area-inset-top); }
  header .shell.top {
    width: calc(100% - 12px);
    min-height: 56px;
    height: 56px;
    justify-content: flex-start;
    gap: 6px;
  }
  .hamb {
    display: inline-grid;
    width: 32px;
    min-width: 32px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: #53627a;
  }
  .logo {
    display: inline-flex;
    min-width: 0;
    flex: 0 1 auto;
    gap: 7px;
  }
  .logo i { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 7px; font-size: 17px; }
  .logo b { display: block; overflow: visible; color: #17243c; font-size: 12px; white-space: nowrap; text-overflow: clip; }
  .logo b span { display: inline; color: var(--blue); }
  .toplinks { margin-left: auto; gap: 5px; }
  .toplinks .support-top,
  .toplinks .carthead,
  .toplinks #header-account,
  .toplinks #header-account.authenticated,
  .toplinks #header-logout-button.header-logout {
    display: inline-grid;
    width: var(--mobile-control);
    min-width: var(--mobile-control);
    max-width: var(--mobile-control);
    height: var(--mobile-control);
    min-height: var(--mobile-control);
    padding: 0;
    place-items: center;
    border-radius: 7px;
  }
  .toplinks .header-balance-menu { width: var(--mobile-control); flex: 0 0 var(--mobile-control); }
  .toplinks .header-control-label,
  .toplinks #header-account .header-account-copy { display: none; }
  .toplinks #header-account::before { display: none; content: none; }
  .toplinks #header-account .header-account-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    background: transparent;
  }
  .toplinks svg { display: block; }
  .toplinks .support-top svg { width: 16px; height: 16px; }
  .toplinks .carthead svg,
  .toplinks #header-logout-button svg { width: 17px; height: 17px; }
  .carthead em { right: -4px; top: -5px; min-width: 16px; height: 16px; font-size: 8px; }

  .layout { padding-top: 17px; padding-bottom: 86px; }
  .heading { margin: 20px 0 13px; }
  .heading h1 { font-size: 23px; }
  .note, .promo { padding: 11px 13px; font-size: 11px; line-height: 1.45; }
  .note .manager-link { margin-left: 6px; padding: 4px 7px; font-size: 10px; }
  .promo { gap: 5px 6px; }
  .promo code { padding: 2px 5px; font-size: 10px; }
  .promo button { min-height: 28px; margin-left: auto; padding: 5px 8px; font-size: 9px; }

  .grouphead {
    align-items: center;
    flex-direction: row;
    gap: 9px;
    padding: 12px 13px;
  }
  .grouphead h2 { min-width: 0; flex: 1 1 auto; width: auto; font-size: 12px; line-height: 1.35; }
  .grouphead button.category-view {
    width: auto;
    min-width: 0;
    min-height: 34px;
    flex: 0 1 auto;
    padding: 6px 8px;
    gap: 5px;
    font-size: 10px;
    white-space: normal;
  }
  .grouphead button.category-view .shop-return__arrow { width: 24px; height: 24px; flex-basis: 24px; }
  .row {
    grid-template-columns: auto auto minmax(126px, 1fr);
    gap: 8px 10px;
    min-height: 0;
    padding: 12px 13px;
  }
  .pname { grid-column: 1 / -1; gap: 9px; align-items: center; }
  .pname button { min-width: 0; width: auto; font-size: 11.5px; line-height: 1.45; overflow-wrap: anywhere; }
  .flag, .pname .catalog-product-image { width: 36px; height: 36px; flex: 0 0 36px; }
  .row > .stock { display: inline-flex; grid-column: 1; justify-self: start; align-self: center; font-size: 10px; }
  .row > .price { display: block; grid-column: 2; justify-self: start; align-self: center; font-size: 12px; white-space: nowrap; }
  .actions {
    display: grid;
    grid-column: 3;
    grid-template-columns: minmax(50px,.8fr) minmax(68px,1fr);
    gap: 5px;
    width: 100%;
    justify-self: stretch;
  }
  .actions button { width: 100%; min-height: 32px; padding: 6px; font-size: 9.5px; border-radius: 5px; }

  #page-cart .heading { align-items: flex-start; gap: 12px; }
  #page-cart .cart-continue-shopping { margin-top: 4px; min-height: 36px; padding: 6px 9px; font-size: 10px; }
  .cartrow { grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; padding: 12px 13px; }
  .cartproduct { grid-column: 1 / -1; gap: 9px; font-size: 11px; line-height: 1.45; }
  #cart .cart-product-image { flex: 0 0 36px; width: 36px; height: 36px; }
  #cart .cart-product-name { font-size: 11px; line-height: 1.45; }
  .cartrow > .qty { grid-column: 1; width: 118px; min-height: 34px; }
  .cartrow .qty button { width: 32px; height: 32px; flex-basis: 32px; }
  .qty .qty-input { height: 32px; font-size: 11px; }
  .cartrow > .price { display: block; grid-column: 2; align-self: center; font-size: 12px; }
  .cartrow > .remove { grid-column: 3; align-self: center; width: 30px; min-height: 30px; padding: 0; }
  .cartbottom { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 10px 14px; padding: 13px; }
  .cartbottom > div { margin-right: auto; }
  .cartbottom b { font-size: 17px; }
  .cartbottom .primary { width: auto; min-height: 38px; padding: 8px 12px; font-size: 11px; }
  .cart-checkout-warning { width: 100%; max-width: none; font-size: 10px; }

  .box, .detailinfo, .buybox, .auth, .article { padding: 18px; }
  .box h1, .auth h1 { font-size: 21px; }
  .box label, .auth label { font-size: 10px; }
  .box input, .auth input, .checkout-field input, textarea, select { min-height: 40px; padding: 9px 10px; font-size: 16px; }
  .checkout-account-note { margin: 13px 0; padding: 11px 12px; gap: 4px; font-size: 10px; }
  .checkout-account-note b { font-size: 11px; }
  .checkout-account-note small { padding-top: 5px; font-size: 9px; }
  .checkout-payment-methods label { padding: 10px; }
  .checkout-payment-methods b { font-size: 11px; }
  .checkout-payment-methods small { font-size: 9px; }

  .checkout-field-error,
  .cart-stock-warning,
  #withdrawal-wallet-warning,
  .register-field-error,
  #checkout-email-feedback {
    margin-top: 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
  }
  #checkout-form [data-checkout-field="promocode"] > .checkout-field-error,
  #checkout-form [data-checkout-field="promocode"] > .checkout-promo-success {
    min-height: 0;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 10px;
  }
  .checkout-email-verification { margin: 11px 0; padding: 11px; border-radius: 9px; }
  .checkout-email-verification > b { font-size: 11px; }
  .checkout-email-verification p { margin: 6px 0 9px; font-size: 10px; line-height: 1.5; }
  .checkout-email-actions { display: grid; grid-template-columns: auto minmax(88px,1fr) auto; gap: 6px; }
  .checkout-email-actions input { width: 100%; min-width: 0; min-height: 36px; padding: 7px 8px; font-size: 14px; }
  .checkout-email-action { min-height: 36px; padding: 7px 8px; border-radius: 7px; font-size: 10px; }
  .checkout-email-verified { gap: 8px; padding: 10px; border-radius: 8px; }
  .checkout-email-verified__check { width: 28px; height: 28px; flex-basis: 28px; }
  .checkout-email-verified__content strong { font-size: 10.5px; }
  .checkout-email-verified__content small { font-size: 9.5px; }

  .email-confirm-modal { padding: 10px; }
  .email-confirm-dialog { width: min(390px,100%); padding: 19px 15px 15px; border-radius: 12px; }
  .email-confirm-icon { width: 40px; height: 40px; margin-bottom: 9px; }
  .email-confirm-dialog h2 { margin: 6px 25px 7px; font-size: 17px; }
  .email-confirm-dialog > p { margin-bottom: 12px; font-size: 10px; line-height: 1.5; }
  .email-confirm-addresses { gap: 4px; padding: 8px; }
  .email-confirm-addresses span { gap: 2px; padding: 5px 6px; }
  .email-confirm-addresses small { font-size: 8px; }
  .email-confirm-addresses b { font-size: 10.5px; }
  .email-confirm-actions { grid-template-columns: 1fr 1.15fr; gap: 7px; margin-top: 12px; }
  .email-confirm-actions button { min-height: 36px; padding: 7px; font-size: 9.5px; }
  .email-confirm-close { top: 8px; right: 8px; width: 27px; height: 27px; }

  .article { font-size: 12px; line-height: 1.65; }
  .article h1 { font-size: 21px; }
  .article h2 { font-size: 14px; }
  #page-replacement .article > ol { margin: 14px 0; padding-left: 22px; }
  #page-replacement .article > ol > li { padding-left: 3px; }
  #page-replacement .article > ol > li + li { margin-top: 7px; }
  .replacement-warning { margin: 16px 0; padding: 13px 14px; }
  #page-replacement .replacement-manager { padding: 12px; }
  #page-replacement .replacement-manager__link { min-height: 36px; padding: 6px 8px; font-size: 11px; }

  .account-head h1 { font-size: 21px; }
  .account-stats article, .account-box { padding: 15px; }
  .account-stats b { font-size: 18px; }
  .account-history-heading h2 { font-size: 15px; }
  .account-history-count { padding: 4px 8px; font-size: 10px; }
  #account-orders .account-row,
  #account-topups .account-row,
  #account-withdrawals .account-row { padding: 12px 0; gap: 9px; }

  .site-footer { padding: 16px 0 calc(74px + env(safe-area-inset-bottom)); font-size: 10px; }
  .footer-content { gap: 9px; }
  .footer-content p { font-size: 10px; line-height: 1.45; }
  .footer-links { gap: 5px 8px; white-space: normal; }
  .footer-links button { font-size: 10px; line-height: 1.35; }

  .support-chat { right: max(10px,env(safe-area-inset-right)); bottom: max(10px,env(safe-area-inset-bottom)); }
  .support-chat-toggle,
  .scroll-to-top {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }
  .support-chat-toggle { box-shadow: 0 9px 24px rgba(23,105,224,.26); }
  .support-chat-icon { width: 21px; height: 17px; }
  .support-chat-icon::after { margin-top: 11px; }
  .scroll-to-top { right: 66px; bottom: max(10px,env(safe-area-inset-bottom)); }
  .scroll-to-top svg { width: 18px; height: 18px; }
  .support-chat-panel {
    position: fixed;
    inset: auto 10px max(66px,calc(env(safe-area-inset-bottom) + 62px)) auto;
    width: min(350px,calc(100vw - 20px));
    height: min(460px,calc(var(--mobile-vvh,100dvh) - 82px));
    max-height: calc(var(--mobile-vvh,100dvh) - 82px);
    border-radius: 14px;
  }
  .support-chat-panel.open { display: flex; flex-direction: column; }
  .support-chat-head { flex: 0 0 58px; height: 58px; padding: 0 12px 0 14px; }
  .support-chat-head > div { gap: 8px; }
  .support-chat-head b { font-size: 11.5px; }
  .support-chat-head small { margin-top: 2px; font-size: 8px; }
  .support-chat-head button { width: 30px; min-height: 30px; padding: 0; font-size: 21px; }
  .support-chat-messages { min-height: 0; height: auto; flex: 1 1 auto; padding: 12px; overscroll-behavior: contain; }
  .support-welcome, .support-message div { padding: 9px 10px; font-size: 11px; }
  .support-chat-form { flex: 0 0 56px; grid-template-columns: minmax(0,1fr) 36px; gap: 7px; height: 56px; padding: 7px 8px; }
  .support-chat-form textarea { min-height: 40px; height: 40px; padding: 10px; font-size: 16px; }
  .support-chat-form button { width: 36px; height: 36px; min-height: 36px; align-self: center; border-radius: 9px; }
  .support-chat-panel:focus-within {
    bottom: max(6px,env(safe-area-inset-bottom));
    height: min(420px,calc(var(--mobile-vvh,100dvh) - 12px));
    max-height: calc(var(--mobile-vvh,100dvh) - 12px);
  }
}

@media (max-width: 480px) {
  .header {
    width: calc(100% - 24px);
    max-width: 100%;
    min-height: 60px;
    margin: 0 12px;
    padding: 8px 12px;
    box-sizing: border-box;
  }

  .header__logo {
    max-width: 160px;
    height: auto;
  }
}

@media (max-width: 430px) {
  .logo b { display: block; }
  .toplinks #header-account,
  .toplinks #header-account.authenticated { color: #71839e; font-size: inherit; }
}

@media (max-width: 374px) {
  :root { --mobile-control: 32px; }
  header .shell.top { gap: 4px; }
  .hamb { width: 28px; min-width: 28px; }
  .logo { gap: 5px; }
  .logo i { width: 29px; height: 29px; flex-basis: 29px; }
  .logo b { font-size: 10.5px; }
  .toplinks { gap: 3px; }
  .toplinks #header-account .header-account-icon { width: 25px; height: 25px; }
  .note .manager-link { display: inline-block; margin: 5px 0 0; }
  .promo button { width: auto; margin-left: auto; }
  .grouphead { align-items: center; flex-direction: row; }
  .grouphead button.category-view { width: auto; font-size: 9px; }
  .row { grid-template-columns: auto auto minmax(116px,1fr); padding-inline: 10px; }
  .actions { grid-template-columns: minmax(46px,.75fr) minmax(64px,1fr); }
  .actions button { padding-inline: 4px; font-size: 9px; }
  .checkout-email-actions { grid-template-columns: 1fr 1fr; }
  .checkout-email-actions input { grid-column: 1 / -1; grid-row: 1; }
  .support-chat-panel { inset: auto 6px 62px 6px; width: auto; height: min(440px,calc(var(--mobile-vvh,100dvh) - 72px)); border: 1px solid #dce4ef; border-radius: 13px; }
  .support-chat-head { padding-top: 0; }
  .support-chat-compose { padding-bottom: 0; }
}

/* Keep the amount and cryptocurrency field headings on the same baseline,
   even when space is reserved for an inline validation warning. */
#withdrawal-form > .topup-amount-label,
#withdrawal-form > .withdraw-coin-label {
  align-self: start;
}

/* Нижняя карточка предупреждения о выводе: отдельный отступ от текста ошибки.
   Исходные отступы формы и сообщения под суммой не изменены. */
#withdrawal-form .withdrawal-limit-alert {
  margin-top: 20px;
  margin-bottom: 10px;
}

/* Reduce only the oversized gap above the large withdrawal warning card.
   The amount field and its inline red text retain their existing spacing. */
#withdrawal-form.withdrawal-form { row-gap: 12px; }
#withdrawal-form .withdrawal-limit-alert { margin: 0 0 8px; }

/* Unified UI (based on latest user-supplied files; 2026-10-29). */
#account-balance-card { position:relative; padding-right:180px; min-height:94px; }
#account-balance-freeze {
  position:absolute; top:16px; right:16px; margin:0;
  display:inline-flex; align-items:center; padding:6px 11px;
  border-radius:999px; font-size:11px; font-style:normal;
  font-weight:800; letter-spacing:.025em; white-space:nowrap;
}
#account-balance-freeze.badge-warning { background:#fff0bf; color:#805508; }
#account-balance-freeze.badge-danger { background:#ffe4e8; color:#bf2339; }
#account-balance-availability { display:none !important; }
.security-verification.account-normal .security-verification-kicker { color:#28965a; }
.security-verification.account-normal .security-verification-details,
.security-verification.account-normal .security-verification-actions,
.security-verification.account-normal .security-verification-footnote,
.security-verification.account-normal .security-verification-reason,
.security-verification.account-normal .security-freeze-timer { display:none !important; }
#topup-amount-warning { display:none !important; }
#withdrawal-form .withdrawal-limit-alert { margin: 0 0 8px; }
@media (max-width: 600px) {
  #account-balance-card { padding-right:22px; padding-top:48px; }
  #account-balance-freeze { top:13px; right:13px; }
}

/* 2026-10-29: compact spacing in the deposit form only.
   Keep the amount field, button placement and inline validation stable. */
#topup-form.topup-form {
  margin-top: 12px;
  margin-bottom: 9px;
  row-gap: 7px;
}
#topup-form #topup-minimum-note {
  min-height: 18px;
  margin-top: 2px;
  line-height: 1.35;
}
/* Tighten the space around the separate freeze notice without touching its text. */
#topup-freeze-notice:not([hidden]),
#topup-wallet-verification-notice:not([hidden]) {
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  #topup-form.topup-form { row-gap: 8px; }
}


/* Account header: compact, quiet sign-out control. Scoped so .back links elsewhere stay unchanged. */
#logout-button.account-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #dde5f0;
  border-radius: 9px;
  background: #f8fafd;
  color: #68788f;
  font: 600 12px/1.3 Inter, Arial, sans-serif;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
#logout-button.account-logout-button svg { display: block; flex: 0 0 16px; }
#logout-button.account-logout-button:hover {
  background: #edf3fd;
  border-color: #cddbf0;
  color: #276be9;
  transform: translateY(-1px);
}
#logout-button.account-logout-button:active { transform: translateY(0); }
#logout-button.account-logout-button:focus-visible {
  outline: 2px solid #276be9;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  #logout-button.account-logout-button { transition: none; }
}


/* Consistent custom validation, never use native HTML number tooltips. */
#topup-form #topup-minimum-note,
#withdrawal-form #withdrawal-amount-warning {
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
#topup-form .topup-amount-label.has-error .money-input,
#withdrawal-form .topup-amount-label.has-error .money-input {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220,53,69,.09);
}
@media (prefers-reduced-motion: reduce) {
  #topup-form #topup-minimum-note,
  #withdrawal-form #withdrawal-amount-warning { transition: none; }
}

/* Consistent return-to-shop button across useful, replacement and policy pages. */
#page-product .shop-return,
#page-useful .shop-return,
#page-replacement .shop-return,
#page-policy .shop-return,
#page-cart .shop-return,
#page-checkout .shop-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 36px;
  margin: 0;
  padding: 7px 13px 7px 8px;
  border: 1px solid #dce7f8;
  border-radius: 9px;
  background: #f3f7ff;
  color: #276be9;
  font: 600 12px Inter, Arial, sans-serif;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(32, 79, 153, .04);
  transition: background .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}
#page-product .shop-return:hover,
#page-useful .shop-return:hover,
#page-replacement .shop-return:hover,
#page-policy .shop-return:hover,
#page-cart .shop-return:hover,
#page-checkout .shop-return:hover {
  background: #e9f1ff;
  border-color: #c8dcfc;
  box-shadow: 0 5px 12px rgba(39, 107, 233, .1);
  transform: translateY(-1px);
}
#page-product .shop-return:focus-visible,
#page-useful .shop-return:focus-visible,
#page-replacement .shop-return:focus-visible,
#page-policy .shop-return:focus-visible,
#page-cart .shop-return:focus-visible,
#page-checkout .shop-return:focus-visible {
  outline: 2px solid #276be9;
  outline-offset: 3px;
}
.shop-return__arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #e1ecff;
  color: #276be9;
  transition: transform .18s ease, background .18s ease;
}
.shop-return__arrow svg { display: block; flex: none; }
.shop-return:hover .shop-return__arrow {
  background: #d6e5ff;
  transform: translateX(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .shop-return, .shop-return__arrow { transition: none !important; transform: none !important; }
}

/* Catalog links reuse the return-button surface, motion, and SVG treatment. */
.grouphead { align-items: center; gap: 12px; }
.grouphead button.category-view {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  flex: 0 0 auto; min-height: 36px; padding: 7px 8px 7px 13px;
  border: 1px solid #dce7f8; border-radius: 9px; background: #f3f7ff;
  color: #276be9; font: 600 12px/1.2 Inter, Arial, sans-serif;
  cursor: pointer; box-shadow: 0 2px 6px rgba(32,79,153,.04);
  transition: background .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}
.grouphead button.category-view:hover {
  background: #e9f1ff; border-color: #c8dcfc;
  box-shadow: 0 5px 12px rgba(39,107,233,.1); transform: translateY(-1px);
}
.grouphead button.category-view:focus-visible { outline: 2px solid #276be9; outline-offset: 3px; }
.grouphead button.category-view:hover .shop-return__arrow { transform: translateX(2px); }
@media (max-width: 430px) { .grouphead button.category-view { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) {
  .grouphead button.category-view, .grouphead button.category-view .shop-return__arrow {
    transition: none !important; transform: none !important;
  }
}

/* Route transitions: no visible scroll-to-top, subtle content reveal. */
.page.active.page-entering { animation: page-route-appear .17s ease-out both; }
body.catalog-restoring #page-shop.active { visibility: hidden; }
@keyframes page-route-appear {
  from { opacity: .65; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .page.active.page-entering { animation: none; }
}

/* Нет в наличии: действия отключены и визуально приглушены. */
.stock-empty { color: #a05a5a !important; font-weight: 700; }
.buybox .qty button:disabled {
  opacity: .42; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
}

/* Keep out-of-stock cart items visible until the customer removes them. */
.cartrow-unavailable { background: #fffafb; }
.cartproduct-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.cart-stock-warning { display: inline-flex; padding: 4px 8px; border-radius: 6px; background: #fff0f0; color: #c5424c; font-size: 11px; font-weight: 700; }
.cartrow-unavailable .qty { opacity: .48; }
.cartrow-unavailable .qty button { cursor: not-allowed; }
.cartrow-unavailable .remove-unavailable { width: auto; padding: 7px 10px; white-space: nowrap; border: 1px solid #f1cfd2; border-radius: 7px; background: #fff3f4; color: #c5424c; font-weight: 700; font-size: 11px; transition: background .18s ease, border-color .18s ease; }
.cartrow-unavailable .remove-unavailable:hover { background: #ffe5e8; border-color: #e8aeb5; }
.cartrow-unavailable { grid-template-columns: minmax(0,1fr) 130px 90px minmax(62px,auto); }
.cart-checkout-warning { margin: 0; max-width: 220px; color: #b65059; font-size: 11px; line-height: 1.4; }
.cartbottom button:disabled { opacity: .52; cursor: not-allowed; }
@media(max-width:700px) { .cartrow-unavailable { grid-template-columns: minmax(0,1fr) auto; } .cartrow-unavailable .remove-unavailable { grid-column: 2; grid-row: 2; } }

/* Unavailable cart items: no quantity selector; center dash between item and Remove. */
.cartrow.cartrow-unavailable {
  grid-template-columns: minmax(0, 1fr) 90px minmax(72px, auto);
}
.cartrow.cartrow-unavailable > .price {
  display: block;
  grid-column: 2;
  text-align: center;
  justify-self: center;
  color: #9ba6b8;
}
.cartrow.cartrow-unavailable > .remove-unavailable { grid-column: 3; }
@media (max-width: 700px) {
  .cartrow.cartrow-unavailable {
    grid-template-columns: minmax(0, 1fr) 60px auto;
    gap: 8px;
  }
  .cartrow.cartrow-unavailable > .price { grid-column: 2; grid-row: 1; }
  .cartrow.cartrow-unavailable > .remove-unavailable { grid-column: 3; grid-row: 1; }
}

/* Only the product image and name are interactive in the cart. */
#cart .cartproduct { cursor: default; background: transparent; }
#cart .cartproduct:hover { background: transparent; }
#cart .cart-product-image,
#cart .cart-product-name,
#catalog .catalog-product-image {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
}
#cart .cart-product-image,
#catalog .catalog-product-image { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; }
#cart .cart-product-name { font-weight: 700; line-height: 1.5; transition: color .18s ease; }
#cart .cart-product-name:hover,
#catalog .pname > button[data-product]:hover { color: var(--blue); }
#cart .cart-product-image:focus-visible,
#cart .cart-product-name:focus-visible,
#catalog .catalog-product-image:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { #cart .cart-product-name { transition: none; } }

/* An inactive promotion must not occupy space, including where .promo display is overridden. */
#featured-promo[hidden] { display: none !important; }


/* Helpful articles: compact navigation with the same calm blue language as return/category buttons. */
#page-useful .useful-section-menu {
  display: flex;
  flex-direction: column;
  width: 60%;
  max-width: 100%;
  gap: 7px;
  padding: 14px;
  margin: 23px 0 27px;
  border: 1px solid #e4ebf6;
  border-radius: 14px;
  background: #f9fbff;
}
#page-useful .useful-section-menu > b {
  margin: 0 0 7px;
  padding: 0 4px;
  color: #253550;
  font-size: 14px;
  font-weight: 750;
}
#page-useful .useful-section-menu > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 9px 10px 9px 14px;
  border: 1px solid #e5edf9;
  border-radius: 10px;
  background: #fff;
  color: #345a99;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}
#page-useful .useful-section-menu > a::after {
  content: "";
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background-color: #eef4ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23276be9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 15px;
  background-repeat: no-repeat;
  transition: transform .2s ease, background-color .2s ease;
}
#page-useful .useful-section-menu > a:hover,
#page-useful .useful-section-menu > a:focus-visible {
  border-color: #bfd4fa;
  background: #f1f6ff;
  color: #2061d4;
  box-shadow: 0 5px 14px rgba(39,107,233,.07);
  transform: translateY(-1px);
  text-decoration: none;
}
#page-useful .useful-section-menu > a:hover::after,
#page-useful .useful-section-menu > a:focus-visible::after {
  background-color: #dceaff;
  transform: translateX(3px);
}
#page-useful .useful-section-menu > a:focus-visible { outline: 2px solid #276be9; outline-offset: 2px; }
@media (max-width: 650px) {
  #page-useful .useful-section-menu { width: 100%; padding: 12px; }
  #page-useful .useful-section-menu > a { min-height: 44px; padding-left: 11px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #page-useful .useful-section-menu > a,
  #page-useful .useful-section-menu > a::after { transition: none; }
}

/* Floating back-to-top button, independent of page and support chat. */
.scroll-to-top {
  position: fixed;
  right: 92px;
  bottom: 30px;
  z-index: 70;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d7e5fb;
  border-radius: 14px;
  background: #f3f7ff;
  color: #276be9;
  box-shadow: 0 8px 24px rgba(32, 81, 160, .11);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(.92);
  transition: opacity .22s ease, visibility .22s ease, transform .25s cubic-bezier(.2,.8,.2,1), background .2s ease, box-shadow .2s ease;
}
.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.scroll-to-top:hover {
  background: #e4efff;
  box-shadow: 0 11px 26px rgba(39,107,233,.19);
  transform: translateY(-3px) scale(1);
}
.scroll-to-top:active { transform: translateY(0) scale(.96); }
.scroll-to-top:focus-visible { outline: 3px solid #86b3ff; outline-offset: 3px; }
.scroll-to-top svg { transition: transform .2s ease; }
.scroll-to-top:hover svg { transform: translateY(-2px); }
@media(max-width:520px) {
  .scroll-to-top { right:76px; bottom:19px; width:43px; height:43px; border-radius:13px; }
}
@media(prefers-reduced-motion:reduce) {
  .scroll-to-top, .scroll-to-top svg { transition:none; }
}

/* The useful-materials menu is independent from the article text below. */
#page-useful .useful-intro { margin-bottom: 0; }
#page-useful .useful-section-menu { box-sizing: border-box; margin: 15px 0 24px; }
#page-useful .useful-content { margin-top: 0; }
@media (max-width: 650px) { #page-useful .useful-section-menu { width: 100%; } }

/* Two independent, equal columns. Article content remains outside the grid. */
#page-useful .useful-quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  margin: 15px 0 24px;
}
#page-useful .useful-quick-grid > .useful-section-menu {
  width: 100%;
  max-width: none;
  margin: 0;
  min-width: 0;
}
#page-useful .useful-getting-started {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  padding: 18px;
  border: 1px solid #dce8fb;
  border-radius: 14px;
  background: linear-gradient(145deg, #f0f6ff, #fbfdff);
  color: #29354c;
}
#page-useful .useful-getting-started__icon {
  display: inline-grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 11px;
  background: #e1ecff;
  color: #276be9;
}
#page-useful .useful-getting-started h2 {
  margin: 17px 0 10px;
  font-size: 18px;
  line-height: 1.3;
  color: #253550;
}
#page-useful .useful-getting-started p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.65;
  color: #66758c;
}
#page-useful .useful-getting-started__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
#page-useful .useful-getting-started__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d6e4fb;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #45638f;
  font-size: 11px;
  font-weight: 700;
}
#page-useful .useful-getting-started__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
#page-useful .useful-getting-started__list li {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #dde8fb;
  border-radius: 11px;
  background: rgba(255,255,255,.84);
  color: #4f627d;
  font-size: 12px;
  line-height: 1.5;
}
#page-useful .useful-getting-started__list li::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #e1ecff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23276be9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 14px;
  background-repeat: no-repeat;
}
#page-useful .useful-getting-started__note {
  margin: 0 0 16px;
  padding: 12px 13px;
  border: 1px dashed #cddcf6;
  border-radius: 11px;
  background: rgba(255,255,255,.72);
  color: #5f718c;
  font-size: 12px;
  line-height: 1.55;
}
#page-useful .useful-getting-started__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#page-useful .useful-getting-started__small {
  color: #6e7f97;
  font-size: 11px;
  line-height: 1.45;
}
#page-useful .useful-getting-started__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border: 1px solid #d6e4fb;
  border-radius: 10px;
  background: #fff;
  color: #276be9;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
#page-useful .useful-getting-started__arrow {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: #e1ecff;
  transition: transform .2s ease;
}
#page-useful .useful-getting-started__link:hover,
#page-useful .useful-getting-started__link:focus-visible {
  background: #f6f9ff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(39,107,233,.09);
}
#page-useful .useful-getting-started__link:hover .useful-getting-started__arrow { transform: translateX(2px); }
@media (max-width: 700px) {
  #page-useful .useful-quick-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Match the support-chat button size/baseline, but leave generous breathing room. */
.scroll-to-top { width: 58px; height: 58px; right: 100px; bottom: 24px; border-radius: 18px; }
@media (max-width: 520px) {
  .scroll-to-top { width: 54px; height: 54px; right: 86px; bottom: 14px; border-radius: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  #page-useful .useful-getting-started__link,
  #page-useful .useful-getting-started__arrow { transition: none; }
}

/* Keep both useful-materials panels inside the normal content width. */
#page-useful .useful-quick-grid { width: 100%; max-width: 100%; min-width: 0; }
#page-useful .useful-quick-grid > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
#page-useful .useful-getting-started { align-self: stretch; height: auto; overflow-wrap: anywhere; padding: 15px; }
#page-useful .useful-getting-started h2 { margin: 11px 0 8px; font-size: 16px; }
#page-useful .useful-getting-started p { margin-bottom: 10px; font-size: 12px; line-height: 1.5; }
#page-useful .useful-getting-started__meta { margin-bottom: 11px; }
#page-useful .useful-getting-started__list { gap: 7px; margin-bottom: 10px; }
#page-useful .useful-getting-started__list li { padding: 8px 9px; gap: 8px; font-size: 11px; line-height: 1.4; }
#page-useful .useful-getting-started__note { margin-bottom: 10px; padding: 8px 10px; font-size: 11px; }
#page-useful .useful-getting-started__footer { flex-wrap: wrap; min-width: 0; gap: 8px; }
#page-useful .useful-getting-started__small { flex: 1 1 130px; min-width: 0; overflow-wrap: anywhere; }
#page-useful .useful-getting-started__link { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 700px) {
  #page-useful .useful-quick-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Align the two useful panels with .article.useful (max-width: 900px),
   not the general .article limit of 760px. */
#page-useful .useful-quick-grid {
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#page-useful .useful-quick-grid > .useful-section-menu,
#page-useful .useful-quick-grid > .useful-getting-started {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  #page-useful .useful-quick-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Replacement: manager contact (separate from global .stub styling). */
#page-replacement .replacement-manager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #c8e9d7;
  border-radius: 13px;
  background: #edf9f1;
  color: #276c47;
}
#page-replacement .replacement-manager__label {
  font-size: 13px;
  font-weight: 700;
}
#page-replacement .replacement-manager__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 6px 11px 6px 7px;
  border: 1px solid #b9dec9;
  border-radius: 10px;
  background: #fff;
  color: #207746;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
#page-replacement .replacement-manager__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #dcf4e5;
  color: #238454;
}
#page-replacement .replacement-manager__arrow { flex: 0 0 auto; transition: transform .2s ease; }
#page-replacement .replacement-manager__link:hover,
#page-replacement .replacement-manager__link:focus-visible {
  background: #f5fff8;
  border-color: #8ac9a6;
  color: #176a3c;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(30, 120, 72, .10);
}
#page-replacement .replacement-manager__link:hover .replacement-manager__arrow { transform: translate(2px, -2px); }
#page-replacement .replacement-manager__link:focus-visible { outline: 2px solid #23945b; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  #page-replacement .replacement-manager__link,
  #page-replacement .replacement-manager__arrow { transition: none; }
}

/* Account operation permissions: neutral ACTIVE, yellow withdrawal-only, red both. */
#account-dashboard #withdrawal-form.withdrawal-locked,
#account-dashboard #topup-form.topup-locked {
  opacity: .52;
  filter: grayscale(.18);
  transition: opacity .22s ease, filter .22s ease;
}
#account-dashboard #withdrawal-form.withdrawal-locked :disabled,
#account-dashboard #topup-form.topup-locked :disabled {
  cursor: not-allowed;
}
#account-dashboard #withdrawal-form.withdrawal-locked > button.primary:disabled,
#account-dashboard #topup-form.topup-locked > button.primary:disabled {
  box-shadow: none;
  transform: none;
}

/* Animated waiting state for purchase, top-up and withdrawal history only. */
.account-status--waiting {
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 1.45;
}
.account-status--waiting .account-status__label {
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.account-status--waiting > i {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 2px solid rgba(217, 152, 33, .28);
  border-top-color: #d69a27;
  border-right-color: #d69a27;
  border-radius: 50%;
  background: transparent;
  box-shadow: none !important;
  animation: account-wait-spin 1.05s linear infinite;
}
.account-status--waiting .account-status__label {
  display: inline-block;
  animation: none;
}
@keyframes account-wait-spin { to { transform: rotate(360deg); } }
@keyframes account-wait-text { 0%, 100% { opacity: 1; } 50% { opacity: .67; } }
@media (prefers-reduced-motion: reduce) {
  .account-status--waiting > i,
  .account-status--waiting .account-status__label { animation: none; }
}

/* Clear spinner center and consistent editable quantity selector. */
.account-status--waiting > i,
.account-status.warning.account-status--waiting > i { background: transparent !important; background-image: none !important; }
.qty { overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.qty .qty-input { width: min(72px, 100%); min-width: 0; height: 36px; flex: 1 1 0; border: 0; outline: 0; background: transparent; color: #29354c; text-align: center; font: 700 13px Inter,Arial,sans-serif; appearance: textfield; -moz-appearance: textfield; }
.qty .qty-input::-webkit-inner-spin-button, .qty .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty .qty-input:focus { background: #f4f8ff; }
.qty button { flex: 0 0 38px; cursor: pointer; transition: background .2s, color .2s; }
.qty button:hover:not(:disabled) { background: #e8f1ff; color: #276be9; }
.qty.qty-glow { animation: qty-soft-glow .65s ease-out; }
@keyframes qty-soft-glow { 0% { border-color: #7db6ff; box-shadow: 0 0 0 4px rgba(39,107,233,.19), 0 0 16px rgba(39,107,233,.16); } 100% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .qty.qty-glow { animation: none; } }

/* Maximum stock reached: red feedback, no change to stored quantity. */
.qty.qty-glow-error { animation: qty-error-glow .65s ease-out; }
@keyframes qty-error-glow {
  0% { border-color: #ed5261; box-shadow: 0 0 0 4px rgba(237,82,97,.20), 0 0 16px rgba(237,82,97,.16); }
  100% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .qty.qty-glow-error { animation: none; } }

/* Unified operation history: stable columns for title, ID, status, total and payment action. */
#account-orders .account-row,
#account-topups .account-row,
#account-withdrawals .account-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 180px;
  align-items:center;
  gap:12px 22px;
  min-height:101px;
  padding:15px 0;
}
.account-row-main { min-width:0; display:flex; flex-direction:column; justify-content:center; gap:9px; }
.account-row-title { min-width:0; overflow-wrap:anywhere; line-height:1.45; }
.account-row-meta { display:flex; flex-wrap:wrap; align-items:center; gap:3px; min-width:0; font-size:11px; line-height:1.5; color:var(--muted); }
.account-row-meta > .account-status { margin:0!important; vertical-align:middle; white-space:nowrap; }
.account-row-meta > .account-meta-divider { margin:0 5px!important; }
#account-orders .account-row-side,
#account-topups .account-row-side,
#account-withdrawals .account-row-side {
  width:180px;
  min-width:0;
  display:grid;
  grid-template-rows:minmax(24px,auto) minmax(34px,auto);
  align-content:center;
  align-items:center;
  justify-items:end;
  gap:8px;
}
.account-row-amount { line-height:1.4; text-align:right; }
.account-row-action { display:flex; align-items:center; justify-content:flex-end; width:100%; min-height:34px; }
.account-row-action:empty { visibility:hidden; }
.account-row-action .account-resume-payment { width:100%; text-align:center; white-space:nowrap; }
@media(max-width:700px) {
  #account-orders .account-row,
  #account-topups .account-row,
  #account-withdrawals .account-row {
    grid-template-columns:minmax(0,1fr);
    min-height:0;
    gap:12px;
  }
  #account-orders .account-row-side,
  #account-topups .account-row-side,
  #account-withdrawals .account-row-side {
    width:100%; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto;
    align-items:center; justify-items:start; gap:12px;
  }
  .account-row-amount { margin:0!important; text-align:left; }
  .account-row-action { justify-content:flex-end; width:auto; }
  .account-row-action:empty { display:none; }
}
@media(max-width:410px) {
  #account-orders .account-row-side,
  #account-topups .account-row-side,
  #account-withdrawals .account-row-side { grid-template-columns:minmax(0,1fr); gap:8px; }
  .account-row-action { justify-content:flex-start; }
}

/* Operation history: identical baseline and status position across all result types. */
#account-orders .account-row-meta,
#account-topups .account-row-meta,
#account-withdrawals .account-row-meta {
  display:grid;
  grid-template-columns:max-content 9px minmax(0,1fr);
  align-items:center;
  justify-content:start;
  gap:6px;
  line-height:1.5;
}
.account-row-meta .account-meta-date { display:inline-block; white-space:nowrap; }
.account-row-meta .account-meta-divider { display:inline-block!important; margin:0!important; text-align:center; }
.account-row-meta > .account-status {
  display:inline-flex!important; align-items:center; justify-self:start;
  margin:0!important; padding:0; min-height:18px; line-height:18px;
  white-space:normal;
}
.account-row-meta > .account-status .account-status__label { display:inline-block; line-height:18px; }
.account-row-action .account-resume-payment {
  width:auto; min-height:32px; padding:6px 11px;
  justify-self:end; font-size:11px;
}
@media(max-width:480px) {
  #account-orders .account-row-meta,
  #account-topups .account-row-meta,
  #account-withdrawals .account-row-meta { grid-template-columns:max-content 9px minmax(0,1fr); gap:5px; font-size:10px; }
  .account-row-action .account-resume-payment { font-size:11px; }
}

/* Align operation status text and icon precisely with the date/time baseline.
   The legacy .account-row span rule adds margin-top:4px to nested spans. */
#account-orders .account-row-meta > span,
#account-topups .account-row-meta > span,
#account-withdrawals .account-row-meta > span,
#account-orders .account-row-meta .account-status__label,
#account-topups .account-row-meta .account-status__label,
#account-withdrawals .account-row-meta .account-status__label {
  margin-top: 0 !important;
}
#account-orders .account-row-meta .account-status__label,
#account-topups .account-row-meta .account-status__label,
#account-withdrawals .account-row-meta .account-status__label {
  color: inherit;
  line-height: inherit;
  font-size: inherit;
}
#account-orders .account-row-meta,
#account-topups .account-row-meta,
#account-withdrawals .account-row-meta {
  align-items: center;
}

/* Client history: persistent three sections and independent 5-item pagination. */
.account-history-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.account-history-heading h2 { display:flex; align-items:center; gap:8px; margin:0; }
.account-history-heading h2 span { font-size:17px; line-height:1; }
.account-history-count { display:inline-flex; align-items:center; padding:5px 10px; border:1px solid #e1e8f5; border-radius:999px; background:#f5f8fd; color:#71809a; font-size:11px; font-weight:700; white-space:nowrap; }
.account-pagination { display:flex; justify-content:center; align-items:center; gap:6px; flex-wrap:wrap; padding:12px 0 2px; border-top:0; margin-top:5px; }
.account-pagination button { display:inline-grid; place-items:center; width:34px; height:34px; padding:0; border:1px solid #dbe5f3; border-radius:9px; background:#fff; color:#526783; font:inherit; font-size:12px; font-weight:750; cursor:pointer; transition:background .18s,border-color .18s,color .18s,transform .18s,box-shadow .18s; }
.account-pagination .account-page-arrow { font-size:22px; font-weight:400; }
.account-pagination button:hover:not(:disabled) { background:#edf5ff; border-color:#b8d1f8; color:#276be9; transform:translateY(-1px); }
.account-pagination button.is-current { background:#276be9; color:#fff; border-color:#276be9; box-shadow:0 4px 12px rgba(39,107,233,.19); cursor:default; }
.account-pagination button:focus-visible { outline:3px solid #accbff; outline-offset:2px; }
.account-pagination button:disabled { opacity:.35; cursor:not-allowed; }
.account-page-summary { margin-left:5px; color:#8692a5; font-size:11px; white-space:nowrap; }
@media(max-width:520px) { .account-history-heading { gap:8px; } .account-pagination { gap:5px; } .account-pagination button { width:31px; height:32px; } .account-page-summary { width:100%; text-align:center; margin:2px 0 0; } }
@media(prefers-reduced-motion:reduce) { .account-pagination button { transition:none; } }

/* History pagination stays in document flow without a surrounding frame. */
#page-account .account-pagination {
  position: static;
  z-index: auto;
  width: 100%;
  max-width: 100%;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
@media (max-width:520px) {
  #page-account .account-pagination { padding: 8px 0 0; }
}


/* Soft blue pagination buttons, matching "Назад к товарам" and "Смотреть категорию". */
#page-account .account-pagination button {
  border: 1px solid #dce7f8;
  border-radius: 9px;
  background: #f3f7ff;
  color: #276be9;
  box-shadow: 0 2px 6px rgba(32,79,153,.05);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
#page-account .account-pagination button:hover:not(:disabled):not(.is-current) {
  background: #e9f1ff;
  border-color: #bcd5fb;
  color: #185fcb;
  box-shadow: 0 0 0 3px rgba(39,107,233,.07), 0 6px 16px rgba(39,107,233,.14);
  transform: translateY(-1px);
}
#page-account .account-pagination button.is-current {
  border-color: #bbc9dd;
  background: #f0f3f8;
  color: #334763;
  box-shadow: 0 0 0 3px rgba(95,116,148,.06), 0 3px 10px rgba(43,65,95,.08);
  cursor: default;
}
#page-account .account-pagination button:disabled {
  opacity: .38;
  box-shadow: none;
  transform: none;
}
#page-account .account-pagination button:focus-visible {
  outline: 2px solid #81b1fc;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  #page-account .account-pagination button { transition: none; }
}

/* Compact directional page swap. Nothing moves during automatic status refresh. */
@keyframes account-history-slide-next {
  from { opacity: .45; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes account-history-slide-prev {
  from { opacity: .45; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
#page-account .account-operation-entry--slide-next {
  animation: account-history-slide-next .22s ease-out both;
}
#page-account .account-operation-entry--slide-prev {
  animation: account-history-slide-prev .22s ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  #page-account .account-operation-entry--slide-next,
  #page-account .account-operation-entry--slide-prev { animation: none; }
}

/* Wallet validation is an overlay within the existing form gap.
   It must never reserve a row and move the withdrawal submit button. */
#withdrawal-form .withdraw-wallet-label { position: relative; }
#withdrawal-form #withdrawal-wallet-warning {
  position: absolute;
  z-index: 5;
  top: calc(100% + 2px);
  left: 0;
  box-sizing: border-box;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 2px 5px;
  border-radius: 4px;
  background: #fff7f8;
  font-size: 11px;
  line-height: 1.2;
  pointer-events: none;
  overflow-wrap: anywhere;
}
#withdrawal-form #withdrawal-wallet-warning[hidden] { display: none !important; }

/* Authentication feedback: every submission immediately confirms the click. */
.account-auth .auth-is-loading { cursor:progress!important; opacity:.86; pointer-events:none; display:inline-flex; align-items:center; justify-content:center; gap:9px; }
.account-auth .auth-spinner { width:14px; height:14px; flex:0 0 14px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:auth-spinner-turn .65s linear infinite; }
.account-auth .auth-link .auth-spinner { border-color:rgba(39,107,233,.2); border-top-color:#276be9; }
@keyframes auth-spinner-turn { to { transform:rotate(360deg); } }
.account-auth .auth-message-success { color:#228556!important; }
.account-auth .auth-view.active { animation:auth-panel-in .19s ease-out both; }
@keyframes auth-panel-in { from { opacity:.55; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) { .account-auth .auth-spinner,.account-auth .auth-view.active { animation:none; } }

/* Registration: inline errors are shown only after submitting the form. */
#register-form .register-field-error {display:block;margin-top:6px;color:#d44858;font-size:10px;line-height:1.45;font-weight:500;}
#register-form .register-field-error[hidden]{display:none;}
#register-form input.register-invalid{border-color:#e66b76;box-shadow:0 0 0 3px rgba(224,64,80,.09);}

/* Login shares the restrained inline validation styling used at registration. */
#login-form .register-field-error {display:block;margin-top:6px;color:#d44858;font-size:10px;line-height:1.45;font-weight:500;}
#login-form .register-field-error[hidden]{display:none;}
#login-form input.register-invalid{border-color:#e66b76;box-shadow:0 0 0 3px rgba(224,64,80,.09);}

/* Inline explanation for rejected characters in all auth flows. */
#forgot-form .register-field-error, #reset-form .register-field-error, #verify-form .register-field-error { display:block; margin-top:6px; color:#d44858; font-size:10px; line-height:1.45; font-weight:500; }
#forgot-form .register-field-error[hidden], #reset-form .register-field-error[hidden], #verify-form .register-field-error[hidden] { display:none; }
#forgot-form input.register-invalid, #reset-form input.register-invalid, #verify-form input.register-invalid { border-color:#e66b76; box-shadow:0 0 0 3px rgba(224,64,80,.09); }

/* Subtle but noticeable feedback when login credentials are rejected. */
.account-auth #auth-message.auth-credentials-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid #f3b6bd;
  border-radius: 10px;
  background: #fff4f5;
  color: #bb3547 !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 5px 18px rgba(204, 59, 77, .10);
  animation: auth-credentials-reveal .44s cubic-bezier(.2,.8,.25,1) both;
}
@keyframes auth-credentials-reveal {
  0% { opacity: 0; transform: translateY(-5px) translateX(0); }
  30% { opacity: 1; transform: translateY(0) translateX(-3px); }
  50% { transform: translateX(3px); }
  70% { transform: translateX(-2px); }
  100% { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .account-auth #auth-message.auth-credentials-error { animation: none; }
}

/* Keep the real account email available to password managers on reset.
   The verification code is never the username. */
#reset-form .auth-recovery-username {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Checkout: confirmed discount and email verification */
.checkout-promo-success { display:block; margin-top:9px; padding:10px 12px; color:#20794a; background:#edf9f1; border:1px solid #c8ead4; border-radius:9px; font-size:12px; font-weight:650; animation:checkoutNotice .24s ease both; }
.checkout-promo-success[hidden], .checkout-email-verification[hidden] {display:none!important}
.checkout-email-verification { padding:15px; margin:14px 0; background:#f4f8ff; border:1px solid #d9e7fb; border-radius:12px; }
.checkout-email-verification > b {font-size:13px;color:#263a59}
.checkout-email-verification p {font-size:12px;color:#6b7c94;line-height:1.6}
.checkout-email-actions {display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.checkout-email-actions input {max-width:125px;min-width:100px;flex:1;padding:10px;border:1px solid #dbe5f4;border-radius:9px;outline:none}
.checkout-email-actions input:focus {border-color:#276be9;box-shadow:0 0 0 3px #276be917}
.checkout-email-action {border:1px solid #cddffd;border-radius:9px;background:#fff;color:#276be9;padding:10px 12px;font-weight:650;cursor:pointer;transition:background .2s,box-shadow .2s,transform .2s}
.checkout-email-action:hover:not(:disabled){background:#edf5ff;box-shadow:0 4px 14px #276be922;transform:translateY(-1px)}
.checkout-email-action:disabled {opacity:.6;cursor:wait}
#checkout-email-feedback {display:block;min-height:17px;margin-top:10px;color:#bd4450;font-size:11px}
#checkout-email-feedback.is-success {color:#23945b}
@keyframes checkoutNotice {from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.checkout-promo-success{animation:none}.checkout-email-action{transition:none}}
#checkout-email-feedback.is-success { animation: checkoutNotice .3s ease both; }
.checkout-email-verification:has(#checkout-email-feedback.is-success) { border-color:#bce8cf; background:#f3fbf6; transition: border-color .25s, background .25s; }
@media(prefers-reduced-motion:reduce){#checkout-email-feedback.is-success{animation:none}}

/* Checkout promo feedback flows naturally below the input without a reserved gap. */
#checkout-form [data-checkout-field="promocode"] {
  position: relative;
  display: block;
  padding-bottom: 0;
}
#checkout-form [data-checkout-field="promocode"] > .checkout-field-error,
#checkout-form [data-checkout-field="promocode"] > .checkout-promo-success {
  position: static;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
  margin-top: 9px;
  line-height: 1.45;
  border-radius: 9px;
}
#checkout-form [data-checkout-field="promocode"] > .checkout-field-error {
  padding: 9px 12px;
  border: 1px solid #f1c7cc;
  background: #fff6f7;
  color: #bb4652;
  font-weight: 600;
  animation: none !important;
}
#checkout-form [data-checkout-field="promocode"] > .checkout-promo-success {
  animation: checkoutPromoReveal .24s ease-out both;
}
#checkout-form [data-checkout-field="promocode"] > [hidden] { display: none !important; }
#checkout-form [data-checkout-field="promocode"].has-error input,
#checkout-form [data-checkout-field="promocode"].field-error-pulse,
#checkout-form [data-checkout-field="promocode"].field-error-pulse input { animation: none !important; }
@keyframes checkoutPromoReveal { from {opacity:0;} to {opacity:1;} }
/* Prevent scroll anchoring from moving the category sidebar when form feedback changes height. */
#page-checkout, #checkout-form, aside#sidebar { overflow-anchor: none; }

/* Confirmed email replaces the code form with a stable green confirmation card. */
.checkout-email-verified {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 14px 0;
  padding: 15px 16px;
  border: 1px solid #bee7ce;
  border-radius: 12px;
  background: #edf9f1;
  color: #227748;
  font-size: 12px;
  font-weight: 700;
}
.checkout-email-verified[hidden] { display: none !important; }
.checkout-email-verified__check {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d8f4e3;
  color: #1d9456;
}
.checkout-email-verified.is-appearing { animation: checkoutVerifiedReveal .38s cubic-bezier(.22,.8,.25,1) both; }
.checkout-email-verified.is-appearing .checkout-email-verified__check { animation: checkoutVerifiedCheck .48s cubic-bezier(.2,.8,.2,1) both; }
.checkout-email-action.is-checking { position: relative; padding-right: 34px; }
.checkout-email-action.is-checking::after {
  content: "";
  position: absolute;
  right: 12px;
  top: calc(50% - 7px);
  width: 13px;
  height: 13px;
  border: 2px solid rgba(39,107,233,.2);
  border-top-color: #276be9;
  border-radius: 50%;
  animation: checkoutVerifySpinner .7s linear infinite;
}
@keyframes checkoutVerifySpinner { to { transform: rotate(360deg); } }
@keyframes checkoutVerifiedReveal {
  from { opacity: 0; transform: translateY(6px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes checkoutVerifiedCheck {
  from { opacity: 0; transform: scale(.55) rotate(-18deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-email-verified.is-appearing,
  .checkout-email-verified.is-appearing .checkout-email-verified__check,
  .checkout-email-action.is-checking::after,
  #checkout-form [data-checkout-field="promocode"] > .checkout-field-error,
  #checkout-form [data-checkout-field="promocode"] > .checkout-promo-success { animation: none !important; }
}

/* Keep the temporary-password reminder inside the existing email-success card. */
.checkout-email-verified__content { display:flex; flex-direction:column; gap:5px; min-width:0; }
.checkout-email-verified__content strong { font-size:12px; line-height:1.5; font-weight:700; }
.checkout-email-verified__content small { font-size:11px; line-height:1.55; color:#567c65; font-weight:400; }

/* Incremental item lists: cart / checkout. Totals stay outside the collapsed area. */
.items-expand-wrap { display:flex; justify-content:center; padding:13px 16px; background:#fff; }
.items-expand-button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:37px; padding:9px 17px; background:#f0f6ff; border:1px solid #d8e5f9; border-radius:10px; font:600 12px Inter,Arial,sans-serif; color:#3566aa; cursor:pointer; transition:background .2s,border-color .2s,box-shadow .2s,transform .2s; }
.items-expand-button:hover { background:#e8f2ff; border-color:#b8d3f6; box-shadow:0 4px 16px rgba(39,107,233,.12); transform:translateY(-1px); }
.items-expand-button:focus-visible { outline:2px solid #276be9; outline-offset:3px; }
.items-expand-icon { flex:none; transition:transform .22s ease; }
.items-expand-icon.is-expanded { transform:rotate(180deg); }
.items-expand-wrap--checkout { padding:10px 0 14px; background:transparent; }
.items-expand-button--neutral { min-height:34px; background:#f7f8fa; color:#687487; border-color:#e3e8ef; font-size:11px; }
.items-expand-button--neutral:hover { background:#f1f4f8; border-color:#cbd5e1; box-shadow:0 4px 12px rgba(42,55,76,.07); }
@media(prefers-reduced-motion:reduce){.items-expand-button{transition:none}.items-expand-button:hover{transform:none}}

@media(prefers-reduced-motion:reduce){.items-expand-icon{transition:none}}

/* Compact header sign-out: cart-sized icon-only button. */
.toplinks #header-logout-button.header-logout {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  background: #edf3fe;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #71839e;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.toplinks #header-logout-button.header-logout[hidden] { display: none !important; }
.toplinks #header-logout-button.header-logout svg { display: block; width: 19px; height: 19px; }
.toplinks #header-logout-button.header-logout:hover { color: #276be9; background: #e1edff; border-color: #d2e3fa; transform: translateY(-1px); }
.toplinks #header-logout-button.header-logout:active { transform: translateY(0); }
.toplinks #header-logout-button.header-logout:focus-visible { outline: 2px solid #276be9; outline-offset: 2px; }
/* Match header control heights, including on account view. */
.toplinks .carthead { display: inline-grid; place-items: center; width: 42px; min-width: 42px; height: 42px; padding: 0; }
.toplinks #header-account.authenticated { min-height: 42px; }
.toplinks .support-top { min-height: 42px; }
/* Keep the original account block spacing and typography unchanged. */
@media (max-width: 650px) {
  .toplinks #header-logout-button.header-logout, .toplinks .carthead { width: 38px; min-width: 38px; height: 38px; flex-basis: 38px; }
  .toplinks #header-account.authenticated { min-height: 38px; }
  .toplinks .support-top { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .toplinks #header-logout-button { transition: none; } }

/* Cart: same hover and focus effect as the header sign-out control. */
.toplinks .carthead {
  border: 1px solid transparent;
  color: #71839e;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.toplinks .carthead:hover {
  color: #276be9;
  background: #e1edff !important;
  border-color: #d2e3fa;
  transform: translateY(-1px);
}
.toplinks .carthead:active { transform: translateY(0); }
.toplinks .carthead:focus-visible { outline: 2px solid #276be9; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .toplinks .carthead { transition: none; } .toplinks .carthead:hover { transform: none; } }

/* ========================================================================== 
   Unified responsive system (2026-10-31)
   Final cascade layer keeps the established visual language and functionality.
   ========================================================================== */
:root {
  --responsive-gutter: clamp(10px, 2.2vw, 30px);
  --responsive-touch: 44px;
}
html {
  min-width: 0;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { min-width: 0; overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, canvas { max-width: 100%; }
button, input, select, textarea { max-width: 100%; font: inherit; }
.shell { width: min(1240px, calc(100% - (var(--responsive-gutter) * 2))); }
.layout, main, .page, .heading, .catalog, .group, .row, .pname, .detailgrid,
.detailinfo, .buybox, .cartbox, .cartrow, .cartproduct, .checkout, .checkout > *,
.payment-page, .payment-card, .payment-body, .account-dashboard, .account-box,
.account-row, .account-row-main, .auth, .support-chat-panel, .footer-content { min-width: 0; }
.pname button, .cartproduct, .detailinfo h1, .product-full-description,
.account-row-title, .account-row-meta, .checkout-email-verified__content,
.email-confirm-addresses b { overflow-wrap: anywhere; word-break: normal; }
.box, .detailinfo, .buybox, .auth, .article, .payment-card, .account-box { max-width: 100%; }
.toast { max-width: calc(100vw - 24px); text-align: center; overflow-wrap: anywhere; }
.email-confirm-modal, .payment-modal, #overlay { overscroll-behavior: contain; }
.email-confirm-dialog, .payment-modal-card {
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}
.support-chat-panel { max-height: calc(100dvh - 32px); }
.invoice-address, .invoice-value { min-width: 0; }
.invoice-address code, .invoice-value strong { min-width: 0; overflow-wrap: anywhere; }

@media (min-width: 1366px) {
  .layout { gap: clamp(24px, 2vw, 34px); }
}
@media (min-width: 1920px) {
  .shell { width: min(1500px, calc(100% - 80px)); }
  .layout { grid-template-columns: 250px minmax(0, 1fr); gap: 36px; }
  .detailgrid { grid-template-columns: minmax(0, 1fr) 320px; }
  .checkout { grid-template-columns: minmax(0, 1fr) 360px; }
  .payment-page { max-width: 900px; }
}
@media (min-width: 2560px) {
  .shell { width: min(1760px, calc(100% - 120px)); }
  .layout { grid-template-columns: 270px minmax(0, 1fr); gap: 44px; }
  .payment-page { max-width: 960px; }
  .payment-card { max-width: 720px; }
}

@media (max-width: 1365px) {
  .layout { grid-template-columns: 210px minmax(0, 1fr); gap: clamp(16px, 2vw, 25px); }
  .thead, .row { grid-template-columns: minmax(210px, 1fr) 76px 82px minmax(135px, 155px); }
  .detailgrid { grid-template-columns: minmax(0, 1fr) minmax(260px, 290px); }
  .checkout { grid-template-columns: minmax(0, 1fr) minmax(290px, 330px); }
}

@media (max-width: 1023px) {
  .layout { grid-template-columns: 1fr; }
  .hamb { display: block; }
  aside#sidebar {
    position: fixed;
    z-index: 35;
    inset: 0 auto 0 0;
    top: 0;
    width: min(310px, 86vw);
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform .25s ease;
    overflow: auto;
    overscroll-behavior: contain;
  }
  aside#sidebar.open { transform: translateX(0); }
  .aside-title button { display: block; }
  #overlay.open { display: block; position: fixed; z-index: 30; inset: 0; background: #0b15276e; }
  .thead, .row { grid-template-columns: minmax(220px, 1fr) 78px 88px minmax(140px, 155px); }
  .detailgrid, .checkout { grid-template-columns: minmax(0, 1fr); }
  .checkout > aside, .buybox { position: static; }
  .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --responsive-gutter: clamp(10px, 3vw, 18px); }
  header { height: auto; min-height: 62px; }
  header .shell, .topbar { min-height: 62px; gap: 8px; }
  .toplinks { min-width: 0; gap: 6px; }
  .toplinks a, .toplinks button { flex-shrink: 0; }
  .heading { gap: 12px; }
  .heading h1 { font-size: clamp(22px, 6vw, 27px); overflow-wrap: anywhere; }
  .search { min-width: 0; }
  .box, .detailinfo, .buybox, .auth, .article { padding: clamp(16px, 4vw, 24px); }
  .product-full-description { padding: clamp(14px, 4vw, 20px); }
  .thead { display: none; }
  .row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 15px;
  }
  .pname { grid-column: 1 / -1; padding-right: 0; }
  .row > .stock { justify-self: start; }
  .row > .price { justify-self: start; text-align: left; }
  .actions { grid-column: 2; justify-self: end; }
  .actions button, .primary, .secondary, .back, .checkout-email-action,
  .account-resume-payment, .items-expand-button { min-height: var(--responsive-touch); }
  .cartrow { grid-template-columns: minmax(0, 1fr) minmax(118px, 145px) auto; gap: 10px; }
  .cartproduct { grid-column: 1 / -1; }
  .cartrow > .price { display: block; text-align: center; }
  .cartbottom { gap: 14px; }
  .checkout-payment-methods { grid-template-columns: 1fr; }
  .checkout-email-actions > * { min-height: var(--responsive-touch); }
  .payment-page { width: 100%; padding-bottom: 24px; }
  .payment-card { border-radius: 11px; }
  .payment-hero { padding: clamp(20px, 5vw, 27px); }
  .payment-hero strong { font-size: clamp(27px, 8vw, 34px); text-align: center; overflow-wrap: anywhere; }
  .payment-body { padding: clamp(16px, 4vw, 23px); }
  .coin-option { min-height: 104px; }
  .invoice-value, .invoice-address { align-items: stretch; }
  .invoice-address code { padding-block: 12px; }
  .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-head { gap: 14px; }
  .account-box { padding: clamp(15px, 4vw, 22px); }
  .auth input, .box input, .checkout-field input, textarea, select { font-size: 13px; }
  .footer-content { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 650px) {
  .logo { min-width: 0; }
  .logo b { overflow: hidden; text-overflow: ellipsis; }
  .toplinks > a.support-top { display: inline-flex; }
  .row > .stock { display: inline-flex; }
  .cartrow { grid-template-columns: minmax(0, 1fr) minmax(116px, 140px) auto; }
  .cartrow > .qty { grid-column: auto; }
  .cartrow > .price { display: block; }
  .promo button { display: inline-flex; }
  .account-head, .topup-form { align-items: stretch; }
  .account-head { flex-direction: column; }
}

@media (max-width: 520px) {
  .support-chat-panel {
    position: fixed;
    inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px;
    width: auto;
    height: min(620px, calc(100dvh - 16px));
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }
  .support-chat { right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); }
  .email-confirm-modal, .payment-modal { padding: 10px; align-items: center; }
  .email-confirm-dialog, .payment-modal-card { width: 100%; padding: 22px 16px 18px; transform: none; }
  .email-confirm-actions { grid-template-columns: 1fr; }
  .email-confirm-actions button { min-height: var(--responsive-touch); }
  .account-stats { grid-template-columns: 1fr; }
  .account-history-heading { align-items: flex-start; }
}

@media (max-width: 430px) {
  :root { --responsive-gutter: 10px; }
  header .shell, .topbar { gap: 5px; }
  .logo b { display: none; }
  .logo > span, .logo img { flex: 0 0 auto; }
  .toplinks { gap: 4px; }
  .toplinks #header-logout-button.header-logout,
  .toplinks .carthead, .toplinks > a.support-top {
    width: 38px;
    min-width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .toplinks #header-account.authenticated { max-width: min(128px, 34vw); padding-inline: 8px; }
  .toplinks #header-account.authenticated span,
  .toplinks #header-account.authenticated b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .layout { padding-top: 16px; }
  .grouphead { gap: 8px; align-items: center; }
  .grouphead h2 { min-width: 0; overflow-wrap: anywhere; }
  .row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 11px; }
  .flag { flex-basis: 36px; width: 36px; height: 36px; }
  .actions { flex-wrap: wrap; }
  .detailinfo h1 { font-size: clamp(20px, 6vw, 24px); }
  .features { grid-template-columns: 1fr; }
  .cartrow { grid-template-columns: minmax(0, 1fr) auto; padding: 13px 11px; }
  .cartrow > .qty { grid-column: 1; width: min(150px, 100%); }
  .cartrow > .price { display: none; }
  .cartrow > .remove { grid-column: 2; }
  .cartbottom { align-items: stretch; flex-direction: column; padding: 14px; }
  .cartbottom .primary { width: 100%; }
  .checkout-account-note { padding: 12px; }
  .checkout-email-actions { display: grid; grid-template-columns: 1fr; }
  .checkout-email-actions input { width: 100%; max-width: none; }
  .payment-steps { margin-bottom: 25px; }
  .payment-steps div { gap: 6px; font-size: 9px; text-align: center; }
  .payment-steps span { width: 32px; height: 32px; }
  .payment-steps::before { top: 15px; }
  .payment-heading h1 { font-size: 21px; overflow-wrap: anywhere; }
  .coin-grid { gap: 8px; }
  .coin-option { min-height: 98px; padding: 10px 6px; }
  .payment-amount-box, .payment-line { gap: 10px; }
  .payment-amount-box b, .payment-line b { text-align: right; overflow-wrap: anywhere; }
  .invoice-value, .invoice-address { flex-wrap: wrap; padding: 8px; gap: 7px; }
  .invoice-value strong, .invoice-address code { flex-basis: calc(100% - 76px); font-size: 12px; }
  .invoice-value > b { margin: 0; }
  .invoice-qr { padding-block: 18px; }
  .invoice-qr img { width: min(190px, 68vw); height: auto; aspect-ratio: 1; }
  .expired-details { padding-inline: 11px; }
  .expired-details > div { align-items: flex-start; }
  .payment-success { padding: 34px 14px; }
  .account-history-count { white-space: normal; }
  .account-pagination { max-width: 100%; }
  .account-pagination button { min-width: 31px; }
  .auth { padding: 18px 14px; }
  .toast { bottom: max(12px, env(safe-area-inset-bottom)); width: max-content; }
}

/* Real mobile viewport refinements found with Android/iOS device emulation. */
@media (max-width: 430px) {
  header { padding-top: env(safe-area-inset-top); }
  header .shell { width: calc(100% - 16px); }
  .toplinks .header-balance-menu { flex: 0 0 38px; width: 38px; }
  .toplinks #header-account,
  .toplinks #header-account.authenticated {
    position: relative;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }
  .toplinks #header-account::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 50% 30%, currentColor 0 2.5px, transparent 2.8px),
      radial-gradient(ellipse at 50% 88%, currentColor 0 5px, transparent 5.3px);
    color: #276be9;
  }
  .toplinks #header-account .header-account-icon,
  .toplinks #header-account .header-account-copy { display: none; }
  .promo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
  }
  .promo button {
    float: none;
    min-height: 34px;
    margin-left: auto;
    padding: 7px 10px;
    font-size: 10px;
  }
  .grouphead {
    align-items: stretch;
    flex-direction: column;
  }
  .grouphead h2 { width: 100%; }
  .grouphead button.category-view {
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    min-height: 42px;
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 374px) {
  .promo button { width: 100%; margin-left: 0; justify-content: center; }
  .note .manager-link { margin: 7px 0 0; }
  .grouphead button.category-view { width: 100%; justify-content: space-between; }
  .support-chat-panel {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .support-chat-head { padding-top: max(18px, env(safe-area-inset-top)); }
  .support-chat-compose { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

@media (orientation: landscape) and (max-height: 430px) {
  header { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .layout { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .support-chat { right: max(8px, env(safe-area-inset-right)); }
}

@media (max-width: 374px) {
  .toplinks #header-account.authenticated { max-width: 88px; }
  .heading h1 { font-size: 21px; }
  .pname { align-items: flex-start; }
  .actions { grid-column: 1 / -1; justify-self: stretch; display: grid; grid-template-columns: 1fr 1fr; }
  .actions button { width: 100%; }
  .row > .price { align-self: center; }
  .coin-option b { font-size: 11px; }
  .coin-option small { font-size: 8px; text-align: center; }
  .payment-body { padding: 14px 11px; }
  .payment-timer { padding-inline: 11px; }
  .invoice-value button, .invoice-address button { padding-inline: 8px; }
  .email-confirm-addresses { padding-inline: 11px; }
  .account-history-heading h2 { font-size: 17px; }
  .account-section-icon { width: 32px; height: 32px; }
  .footer-links { gap: 8px 12px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  aside#sidebar { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .support-chat-panel { inset: 6px; width: min(430px, calc(100vw - 12px)); height: calc(100dvh - 12px); max-height: none; margin-left: auto; }
  .email-confirm-modal, .payment-modal { align-items: flex-start; padding: 8px; overflow-y: auto; }
  .email-confirm-dialog, .payment-modal-card { max-height: calc(100dvh - 16px); margin: 0 auto; }
  .payment-steps { margin-bottom: 18px; }
}

@media (hover: none) and (pointer: coarse) {
  button, [role="button"], a.support-top, .navitem, .carthead { min-height: var(--responsive-touch); }
  .coin-option:hover, .items-expand-button:hover, .account-resume-payment:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Final mobile conflict resolution: keep legacy rules from enlarging the compact layout. */
@media (max-width: 767px) {
  header .shell.top { min-height:56px; height:56px; justify-content:flex-start; gap:5px; }
  .hamb { display:inline-grid; width:30px; min-width:30px; height:34px; min-height:34px; padding:0; place-items:center; }
  .logo { display:inline-flex; flex:0 0 auto; min-width:0; gap:6px; }
  .logo i { width:31px; height:31px; flex:0 0 31px; font-size:16px; }
  .logo b { display:block; overflow:visible; font-size:11px; white-space:nowrap; text-overflow:clip; }
  .logo b span { display:inline; }
  .toplinks { margin-left:auto; gap:4px; }
  .toplinks .header-balance-menu { width:34px; flex:0 0 34px; }
  .toplinks .support-top,
  .toplinks .carthead,
  .toplinks #header-account,
  .toplinks #header-account.authenticated,
  .toplinks #header-logout-button.header-logout {
    display:inline-grid; width:34px; min-width:34px; max-width:34px; height:34px; min-height:34px;
    padding:0; place-items:center; border-radius:7px; color:#71839e; font-size:inherit;
  }
  .toplinks > button:first-of-type::before,
  .toplinks #header-account::before { display:none; content:none; }
  .toplinks .header-control-label,
  .toplinks #header-account .header-account-copy { display:none; }
  .toplinks #header-account .header-account-icon { display:grid; width:26px; height:26px; place-items:center; background:transparent; }
  .toplinks svg { display:block; }

  .note,.promo { padding:10px 12px; font-size:11px; line-height:1.45; }
  .promo { display:flex; align-items:center; flex-wrap:wrap; gap:5px 6px; }
  .promo button { float:none; width:auto; min-height:28px!important; margin-left:auto; padding:5px 8px; font-size:9px; }
  .grouphead { align-items:center; flex-direction:row; gap:8px; padding:11px 12px; }
  .grouphead h2 { width:auto; min-width:0; flex:1 1 auto; font-size:12px; line-height:1.35; }
  .grouphead button.category-view { align-self:center; width:auto; min-height:32px!important; padding:5px 7px; font-size:9.5px; }
  .row { grid-template-columns:auto auto minmax(122px,1fr); gap:7px 9px; min-height:0; padding:11px 12px; }
  .pname { grid-column:1/-1; gap:8px; }
  .pname button { min-width:0; font-size:11px; line-height:1.42; }
  .row > .stock { display:inline-flex; grid-column:1; justify-self:start; font-size:10px; }
  .row > .price { display:block; grid-column:2; justify-self:start; font-size:11.5px; white-space:nowrap; }
  .actions { display:grid; grid-column:3; grid-template-columns:minmax(48px,.8fr) minmax(66px,1fr); gap:5px; width:100%; }
  .actions button { width:100%; min-height:31px!important; padding:5px; font-size:9px; }

  #page-cart .heading { display:flex; align-items:flex-start; flex-direction:column; gap:10px; }
  #page-cart .cart-continue-shopping { min-height:34px!important; margin-top:0; padding:6px 9px; font-size:10px; }
  .cartrow { grid-template-columns:minmax(0,1fr) auto auto; gap:8px; padding:11px 12px; }
  .cartrow > .qty { grid-column:1; width:116px; }
  .cartrow > .price { display:block; grid-column:2; }
  .cartrow > .remove { grid-column:3; min-height:30px!important; }
  .cartbottom { align-items:center; flex-direction:row; flex-wrap:wrap; gap:9px 12px; padding:12px; }
  .cartbottom > div { margin-right:auto; }
  .cartbottom .primary { width:auto; min-height:36px!important; }

  .checkout-email-actions { display:grid; grid-template-columns:auto minmax(88px,1fr) auto; gap:6px; }
  .checkout-email-actions input { width:100%; min-width:0; min-height:36px; font-size:14px; }
  .checkout-email-action { min-height:36px!important; padding:7px 8px; font-size:10px; }
  .checkout-email-verification { margin:10px 0; padding:10px; }
  .checkout-email-verification > b { font-size:11px; }
  .checkout-email-verification p { font-size:10px; line-height:1.5; }
  .checkout-field-error,#checkout-email-feedback { font-size:10px; line-height:1.35; }
  #checkout-form [data-checkout-field="promocode"] > .checkout-field-error,
  #checkout-form [data-checkout-field="promocode"] > .checkout-promo-success { padding:6px 8px; font-size:10px; }

  .email-confirm-modal { padding:9px; }
  .email-confirm-dialog { width:min(380px,100%); padding:18px 14px 14px; border-radius:12px; transform:none; }
  .email-confirm-icon { width:38px; height:38px; margin-bottom:8px; }
  .email-confirm-dialog h2 { margin:5px 24px 6px; font-size:16px; }
  .email-confirm-dialog > p { margin-bottom:11px; font-size:10px; line-height:1.45; }
  .email-confirm-addresses { padding:7px; }
  .email-confirm-addresses span { padding:5px; }
  .email-confirm-addresses small { font-size:8px; }
  .email-confirm-addresses b { font-size:10px; }
  .email-confirm-actions { grid-template-columns:1fr 1.15fr; gap:6px; margin-top:11px; }
  .email-confirm-actions button { min-height:35px!important; padding:6px; font-size:9px; }

  .site-footer { padding:15px 0 calc(70px + env(safe-area-inset-bottom)); font-size:10px; }
  .footer-content { gap:8px; }
  .footer-content p,.footer-links button { font-size:10px; line-height:1.4; }
  .footer-links { gap:5px 8px; white-space:normal; }

  .support-chat { right:max(10px,env(safe-area-inset-right)); bottom:max(10px,env(safe-area-inset-bottom)); }
  .support-chat-toggle,.scroll-to-top { width:48px; height:48px; min-height:48px; border-radius:15px; }
  .scroll-to-top { right:66px; bottom:max(10px,env(safe-area-inset-bottom)); }
  .support-chat-panel {
    position:fixed; inset:auto 10px max(66px,calc(env(safe-area-inset-bottom) + 62px)) auto;
    width:min(330px,calc(100vw - 20px)); height:min(390px,calc(var(--mobile-vvh,100dvh) - 82px));
    max-height:calc(var(--mobile-vvh,100dvh) - 82px); border:1px solid #dce4ef; border-radius:14px;
  }
  .support-chat-panel.open { display:flex; flex-direction:column; }
  .support-chat-head { flex:0 0 56px; height:56px; padding:0 12px 0 14px; }
  .support-chat-head b { font-size:11px; }
  .support-chat-head small { font-size:8px; }
  .support-chat-messages { min-height:0; height:auto; flex:1 1 auto; padding:11px; overflow-y:auto; }
  .support-welcome,.support-message div { padding:8px 9px; font-size:11px; }
  .support-chat-form { flex:0 0 54px; grid-template-columns:minmax(0,1fr) 36px; height:54px; padding:7px 8px; }
  .support-chat-form textarea { min-height:38px; height:38px; padding:9px; font-size:16px; }
  .support-chat-form button { width:36px; height:36px; min-height:36px!important; }
  .support-chat-panel:focus-within {
    bottom:max(6px,env(safe-area-inset-bottom));
    height:min(360px,calc(var(--mobile-vvh,100dvh) - 12px)); max-height:calc(var(--mobile-vvh,100dvh) - 12px);
  }
}

@media (max-width:374px) {
  header .shell.top { gap:3px; }
  .hamb { width:27px; min-width:27px; }
  .logo { gap:4px; }
  .logo i { width:28px; height:28px; flex-basis:28px; }
  .logo b { font-size:10px; }
  .toplinks { gap:3px; }
  .toplinks .header-balance-menu { width:31px; flex-basis:31px; }
  .toplinks .support-top,.toplinks .carthead,.toplinks #header-account,.toplinks #header-account.authenticated,.toplinks #header-logout-button.header-logout {
    width:31px; min-width:31px; max-width:31px; height:31px; min-height:31px;
  }
  .grouphead button.category-view { font-size:9px; }
  .row { grid-template-columns:auto auto minmax(114px,1fr); padding-inline:10px; }
  .actions { grid-template-columns:minmax(45px,.75fr) minmax(63px,1fr); }
  .checkout-email-actions { grid-template-columns:1fr 1fr; }
  .checkout-email-actions input { grid-column:1/-1; grid-row:1; }
  .support-chat-panel { inset:auto 6px 60px 6px; width:auto; height:min(370px,calc(var(--mobile-vvh,100dvh) - 70px)); }
}

@media (max-width:767px) {
  #page-useful .useful-getting-started {
    display:grid; grid-template-columns:43px minmax(0,1fr);
    column-gap:11px; row-gap:0; align-items:center;
  }
  #page-useful .useful-getting-started__icon { grid-column:1; grid-row:1; }
  #page-useful .useful-getting-started h2 {
    grid-column:2; grid-row:1; align-self:center;
    margin:0; font-size:15px; line-height:1.3;
  }
  #page-useful .useful-getting-started > p,
  #page-useful .useful-getting-started__meta,
  #page-useful .useful-getting-started__list,
  #page-useful .useful-getting-started__note,
  #page-useful .useful-getting-started__footer { grid-column:1/-1; }
  #page-useful .useful-getting-started > p { margin-top:11px; }
}

@media (max-width:767px) {
  .toplinks .support-top {
    min-width:68px; height:34px; min-height:34px; padding:0 6px; gap:5px;
    border:0; border-radius:7px; background:transparent;
    color:#71839e; box-shadow:none;
  }
  .toplinks .support-top .header-control-label { color:#71839e; font-size:9px; }
  .toplinks .support-top svg { width:15px; height:15px; color:#71839e; }
  .toplinks:has(#header-logout-button:not([hidden])) .support-top { min-width:57px; padding-inline:3px; }
}

@media (max-width:374px) {
  .toplinks .support-top { min-width:57px; padding-inline:3px; gap:3px; }
  .toplinks .support-top svg { width:14px; height:14px; }
  .toplinks:has(#header-logout-button:not([hidden])) .support-top { min-width:49px; }
}

@media (max-width:767px) {
  .toplinks { gap:7px; }
  .toplinks .support-top {
    min-width:64px; height:36px; min-height:36px; padding:0 9px;
    border:1px solid rgba(255,255,255,.3); border-radius:9px;
    background:linear-gradient(135deg,#3d83f2,#1965d5);
    box-shadow:0 5px 13px rgba(24,99,211,.2);
  }
  .toplinks .support-top .header-control-label { font-size:9.5px; }
  .toplinks .support-top svg { width:17px; height:17px; }
  .toplinks .carthead { min-width:68px; gap:6px; }
  .toplinks .carthead svg { width:22px; height:22px; }
  .toplinks .carthead::after { font-size:9px; }

  .promo button {
    display:inline-flex; align-items:center; justify-content:center;
    text-align:center; line-height:1!important;
  }

  .checkout-email-actions {
    display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-auto-flow:column; width:100%; gap:6px;
  }
  .checkout-email-actions > * {
    box-sizing:border-box; grid-column:auto!important; grid-row:1!important;
    width:100%!important; min-width:0!important; max-width:none!important;
    height:38px!important; min-height:38px!important; margin:0!important;
    align-self:stretch; border-radius:7px; text-align:center;
  }
  .checkout-email-actions input { padding:0 4px!important; }
  .checkout-email-actions .checkout-email-action {
    display:flex; align-items:center; justify-content:center; padding:4px!important;
  }
  .toplinks:has(#header-logout-button:not([hidden])) { gap:3px; }
  .toplinks:has(#header-logout-button:not([hidden])) .support-top { min-width:53px; padding-inline:5px; }
  .toplinks:has(#header-logout-button:not([hidden])) .carthead { min-width:57px; padding-inline:3px; gap:3px; }
  .toplinks:has(#header-logout-button:not([hidden])) .support-top .header-control-label,
  .toplinks:has(#header-logout-button:not([hidden])) .carthead::after { font-size:7.5px; }
}

@media (max-width:374px) {
  .toplinks { gap:4px; }
  .toplinks .support-top { min-width:53px; padding-inline:5px; }
  .toplinks .carthead { min-width:57px; gap:3px; }
  .toplinks .carthead svg { width:20px; height:20px; }
  .checkout-email-actions { gap:4px; }
  .toplinks:has(#header-logout-button:not([hidden])) .support-top { min-width:45px; }
  .toplinks:has(#header-logout-button:not([hidden])) .carthead { min-width:49px; }
}

/* Mobile polish: compact controls while preserving the desktop visual language. */
@media (max-width:767px) {
  .toplinks .support-top { color:#fff; }
  .toplinks .support-top,
  .toplinks #header-account:not(.authenticated) { display:flex; width:auto; min-width:43px; max-width:none; gap:3px; padding:0 5px; }
  .toplinks .support-top .header-control-label,
  .toplinks #header-account:not(.authenticated) .header-control-label { display:inline; color:inherit; font-size:8px; font-weight:700; line-height:1; }
  .toplinks #header-account:not(.authenticated) .header-control-label { font-size:0; }
  .toplinks #header-account:not(.authenticated) .header-control-label::after { content:"Вход"; font-size:8px; }
  .toplinks .support-top svg { color:#fff; stroke:currentColor; }

  .note { display:flex; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:5px 8px; text-align:left; }
  .note .manager-link { display:inline-flex; width:auto; margin:0; align-items:center; justify-content:flex-start; }
  .promo { position:relative; display:block; min-height:50px; padding-right:91px; }
  .promo button { position:absolute; top:50%; right:9px; width:auto; margin:0; transform:translateY(-50%); white-space:nowrap; }

  input::placeholder, textarea::placeholder { font-size:10px; opacity:.7; }
  #checkout-email-code::placeholder,
  .checkout-email-actions input::placeholder { font-size:9px; }
  .checkout-field-error,
  #checkout-email-feedback,
  .cart-checkout-warning,
  .checkout-promo-success {
    display:block; width:100%; margin:5px 0 0; padding:0!important; border:0!important;
    border-radius:0!important; background:transparent!important; box-shadow:none!important;
    font-size:9.5px!important; font-weight:500; line-height:1.4;
  }
  .checkout-field-error, #checkout-email-feedback, .cart-checkout-warning { color:#d44858; }
  .checkout-promo-success { color:#278a55; }

  .cart-product-image, .cartproduct .flag, .cartproduct .product-picture {
    width:36px!important; height:36px!important; min-width:36px; flex:0 0 36px;
    aspect-ratio:1; border-radius:50%!important; overflow:hidden;
  }
  .carthead em { width:16px; min-width:16px; max-width:16px; height:16px; padding:0; border-radius:50%; line-height:16px; text-align:center; }

  .launch-principles article { grid-template-columns:38px minmax(0,1fr); gap:10px; padding:13px; align-items:start; }
  .principle-number { width:36px; height:36px; border-radius:8px; font-size:10px; }
  .launch-principles h3 { margin:1px 0 6px; font-size:13px; }
  .launch-principles p, .launch-principles li { font-size:10.5px; line-height:1.55; }

  .detailgrid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:9px; align-items:start; }
  .detailinfo { display:contents; }
  .product-detail-heading {
    grid-column:1; grid-row:1; min-width:0; height:100%; padding:11px;
    border:1px solid #e3e8f0; border-radius:10px; background:#fff;
  }
  .product-detail-heading > div { display:flex; align-items:center; gap:7px; min-width:0; }
  .product-detail-heading .tag { margin:0; font-size:7.5px; line-height:1.25; }
  .product-detail-heading .bigflag { width:38px; height:38px; min-width:38px; margin:0; flex:0 0 38px; }
  .product-detail-heading h1 { margin:9px 0 0; font-size:11px; line-height:1.35; }
  .buybox { grid-column:2; grid-row:1; gap:8px; padding:11px; border-radius:10px; }
  .buybox .bigprice { font-size:19px; }
  .buybox .available { font-size:8.5px; }
  .buybox .qty { width:100%; }
  .buybox button { min-height:32px!important; padding:5px; font-size:9px; }
  .detailinfo > p, .detailinfo > .features, .detailinfo > .product-full-description { grid-column:1/-1; }
  .detailinfo > p { margin:0; padding:11px 12px; border:1px solid #e3e8f0; border-radius:9px; background:#fff; font-size:10.5px; line-height:1.55; }
  .features { grid-template-columns:repeat(2,minmax(0,1fr)); padding:10px; border-radius:9px; background:#fff; }
  .features span { font-size:9px; }
}

@media (max-width:374px) {
  .toplinks .support-top, .toplinks #header-account:not(.authenticated) { min-width:40px; padding-inline:3px; }
  .promo { padding-right:82px; font-size:10px; }
  .promo button { right:7px; padding-inline:6px; font-size:8px; }
  .product-detail-heading, .buybox { padding:9px; }
}

/* Final compact mobile proportions for the header, chat and verification row. */
@media (max-width:767px) {
  header .shell.top { width:calc(100% - 12px); max-width:none; gap:4px; }
  .toplinks { flex:1 1 auto; justify-content:flex-end; gap:3px; }
  .toplinks .header-balance-menu { width:auto; flex:0 0 auto; }
  .toplinks .support-top { min-width:52px; flex-direction:row-reverse; justify-content:center; gap:4px; padding-inline:5px; }
  .toplinks .support-top .header-control-label { font-size:9px; }
  .toplinks #header-account:not(.authenticated) { min-width:47px; justify-content:center; }
  .toplinks #header-account:not(.authenticated) .header-control-label::after { font-size:9px; }
  .toplinks .carthead { display:flex; position:relative; width:auto; min-width:60px; max-width:none; gap:4px; padding:0 5px; }
  .toplinks .carthead::after { content:"Корзина"; color:#71839e; font-size:8.5px; font-weight:700; line-height:1; }
  .toplinks .carthead em { top:-5px; right:-4px; left:auto; transform:none; }

  .promo { min-height:42px; padding-right:82px; }
  .promo code, .promo button { font-size:8.5px; line-height:1; }
  .promo code { display:inline-flex; min-height:22px; padding:0 6px; align-items:center; border-radius:5px; }
  .promo button { min-height:22px!important; height:22px; padding:0 7px; border-radius:5px; }

  .support-chat-form { height:auto; min-height:54px; flex:0 0 auto; align-items:end; }
  .support-chat-form textarea { height:38px; min-height:38px; max-height:70px; padding:10px 9px; overflow-y:hidden; scrollbar-width:none; font-size:13px; line-height:17px; }
  .support-chat-form textarea::-webkit-scrollbar { display:none; }
  .support-chat-form button { align-self:end; margin-bottom:1px; }

  .checkout-email-actions { grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; gap:5px; }
  .checkout-email-actions input,
  .checkout-email-actions .checkout-email-action { grid-column:auto; grid-row:auto; width:100%; min-width:0; height:36px; min-height:36px!important; padding:5px; }
  .checkout-email-actions input { font-size:12px; text-align:center; }
  .checkout-email-actions input::placeholder { font-size:8px; text-align:center; }
  .checkout-email-actions .checkout-email-action { font-size:8px; line-height:1.15; white-space:normal; }

  .launch-principles article > div { display:contents; }
  .launch-principles article > div > h3 { grid-column:2; align-self:center; margin:0; }
  .launch-principles article > div > p,
  .launch-principles article > div > ul { grid-column:1/-1; }
  .launch-principles article > div > p { margin-top:2px; }
}

@media (max-width:374px) {
  header .shell.top { gap:2px; }
  .hamb { width:25px; min-width:25px; }
  .logo { gap:3px; }
  .logo i { width:26px; height:26px; flex-basis:26px; font-size:14px; }
  .logo b { font-size:8.5px; }
  .toplinks { gap:2px; }
  .toplinks .support-top { min-width:47px; padding-inline:3px; }
  .toplinks #header-account:not(.authenticated) { min-width:42px; padding-inline:2px; }
  .toplinks .carthead { min-width:52px; padding-inline:3px; }
  .toplinks .support-top .header-control-label,
  .toplinks #header-account:not(.authenticated) .header-control-label::after,
  .toplinks .carthead::after { font-size:7.5px; }
  .checkout-email-actions { gap:3px; }
  .checkout-email-actions .checkout-email-action { font-size:7.3px; padding-inline:3px; }
}

/* Mobile header refinement — compact chat, readable cart, slimmer panels. */
@media (max-width: 767px) {
  header { height: 56px; }
  header .shell.top { height: 56px; min-height: 56px; width: calc(100% - 16px); gap: 4px; }
  header .logo { flex: 0 1 auto; min-width: 0; }
  header .logo i { width: 28px; height: 28px; flex: 0 0 28px; font-size: 15px; }
  header .logo b { font-size: 10px; }
  header .toplinks { flex: 0 1 auto; min-width: 0; gap: 4px; }
  header .toplinks .support-top,
  header .toplinks:has(#header-logout-button:not([hidden])) .support-top {
    width: auto; min-width: 42px; max-width: none;
    height: 34px; min-height: 34px;
    padding: 0 5px; gap: 3px; border-radius: 7px;
  }
  header .toplinks .support-top svg { width: 14px; height: 14px; flex: 0 0 14px; }
  header .toplinks .support-top .header-control-label { font-size: 8px; }
  header .toplinks .carthead,
  header .toplinks:has(#header-logout-button:not([hidden])) .carthead {
    display: inline-flex; align-items: center; justify-content: center;
    width: auto; min-width: 68px; max-width: none;
    height: 36px; min-height: 36px;
    padding: 0 6px; gap: 4px; border-radius: 7px;
  }
  header .toplinks .carthead svg { width: 23px; height: 23px; flex: 0 0 23px; }
  header .toplinks .carthead::after,
  header .toplinks:has(#header-logout-button:not([hidden])) .carthead::after {
    content: "Корзина"; font-size: 9px; line-height: 1; font-weight: 700;
  }
  header .toplinks .carthead em { top: -5px; right: -4px; }
  /* Keep common mobile cards a little shorter without compressing their text. */
  .note { padding-top: 8px; padding-bottom: 8px; }
  .promo { min-height: 38px; padding-top: 8px; padding-bottom: 8px; }
  .grouphead { padding-top: 9px; padding-bottom: 9px; }
  .row { padding-top: 9px; padding-bottom: 9px; }
  .cartrow { padding-top: 9px; padding-bottom: 9px; }
  .cartbottom { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 374px) {
  header .shell.top { gap: 2px; }
  header .logo i { width: 25px; height: 25px; flex-basis: 25px; }
  header .logo b { font-size: 8.5px; }
  header .toplinks { gap: 2px; }
  header .toplinks .support-top,
  header .toplinks:has(#header-logout-button:not([hidden])) .support-top { min-width: 37px; padding-inline: 3px; }
  header .toplinks .carthead,
  header .toplinks:has(#header-logout-button:not([hidden])) .carthead { min-width: 56px; gap: 2px; padding-inline: 3px; }
  header .toplinks .carthead svg { width: 20px; height: 20px; flex-basis: 20px; }
  header .toplinks .carthead::after { font-size: 8px; }
}

/* Mobile header: balanced, slimmer controls with an updated chat glyph. */
@media (max-width: 767px) {
  header { height: 52px; }
  header .shell.top {
    width: calc(100% - 12px);
    height: 52px;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  header .hamb { flex: 0 0 28px; width: 28px; min-width: 28px; }
  header .logo { flex: 0 1 auto; min-width: 0; gap: 4px; }
  header .logo i { width: 26px; height: 26px; flex: 0 0 26px; font-size: 14px; }
  header .logo b { font-size: 9.5px; white-space: nowrap; }
  header .toplinks {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: 4px;
    margin-left: auto;
  }
  header .toplinks .support-top,
  header .toplinks:has(#header-logout-button:not([hidden])) .support-top,
  header .toplinks .carthead,
  header .toplinks:has(#header-logout-button:not([hidden])) .carthead,
  header .toplinks #header-account:not(.authenticated) {
    box-sizing: border-box;
    height: 30px;
    min-height: 30px;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0 5px;
    gap: 4px;
    border-radius: 7px;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
  }
  header .toplinks .support-top svg { display: none; }
  header .toplinks .support-top::before {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a7.8 7.8 0 0 1-8 7.5 9 9 0 0 1-3-.5L4 20l1.6-4A7.3 7.3 0 0 1 4 11.5 7.8 7.8 0 0 1 12 4a7.8 7.8 0 0 1 8 7.5Z'/%3E%3C/svg%3E");
  }
  header .toplinks .carthead svg { width: 16px; height: 16px; flex: 0 0 16px; }
  header .toplinks #header-account .header-account-icon { width: 20px; height: 20px; flex: 0 0 20px; font-size: 13px; }
  header .toplinks .support-top .header-control-label,
  header .toplinks .carthead::after,
  header .toplinks #header-account:not(.authenticated) .header-control-label::after {
    font-size: 8px;
    line-height: 1;
  }
  header .toplinks .carthead em { top: -6px; right: -5px; }
}
@media (max-width: 374px) {
  header .shell.top { gap: 3px; }
  header .hamb { flex-basis: 25px; width: 25px; min-width: 25px; }
  header .logo i { width: 23px; height: 23px; flex-basis: 23px; }
  header .logo b { font-size: 8.3px; }
  header .toplinks { gap: 2px; }
  header .toplinks .support-top,
  header .toplinks:has(#header-logout-button:not([hidden])) .support-top,
  header .toplinks .carthead,
  header .toplinks:has(#header-logout-button:not([hidden])) .carthead,
  header .toplinks #header-account:not(.authenticated) { padding-inline: 3px; gap: 2px; }
}

/* Mobile refinement: wider cart, compact vector chat icon (no emoji). */
@media (max-width: 767px) {
  header .toplinks { gap: 5px; }
  header .toplinks .support-top,
  header .toplinks:has(#header-logout-button:not([hidden])) .support-top {
    min-width: 54px;
    flex: 0 0 auto;
    padding-inline: 6px;
    gap: 4px;
  }
  header .toplinks .support-top svg { display: none; }
  header .toplinks .support-top::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a7.8 7.8 0 0 1-8 7.5 9 9 0 0 1-3-.5L4 20l1.6-4A7.3 7.3 0 0 1 4 11.5 7.8 7.8 0 0 1 12 4a7.8 7.8 0 0 1 8 7.5Z'/%3E%3C/svg%3E");
  }
  header .toplinks .carthead,
  header .toplinks:has(#header-logout-button:not([hidden])) .carthead {
    min-width: 79px;
    flex: 0 0 auto;
    gap: 6px;
    padding-inline: 10px;
  }
  header .toplinks .carthead svg { width: 17px; height: 17px; flex: 0 0 17px; }
  header .toplinks .carthead::after,
  header .toplinks:has(#header-logout-button:not([hidden])) .carthead::after { font-size: 9px; }
}
@media (max-width: 374px) {
  header .toplinks { gap: 3px; }
  header .toplinks .support-top,
  header .toplinks:has(#header-logout-button:not([hidden])) .support-top { min-width: 47px; padding-inline: 4px; gap: 2px; }
  header .toplinks .carthead,
  header .toplinks:has(#header-logout-button:not([hidden])) .carthead { min-width: 67px; padding-inline: 5px; gap: 3px; }
  header .toplinks .carthead::after { font-size: 8px; }
}

/* Compact header spacing and support-chat polish (Android/mobile). */
@media (max-width: 767px) {
  header .toplinks { gap: 3px; }
  header .toplinks .support-top,
  header .toplinks:has(#header-logout-button:not([hidden])) .support-top { margin-right: 0; }
  header .toplinks .carthead,
  header .toplinks:has(#header-logout-button:not([hidden])) .carthead { margin-left: 0; }

  /* Identical typography for customer and support message bubbles. */
  .support-chat-messages .support-message div,
  .support-chat-messages .support-message.client div,
  .support-chat-messages .support-welcome {
    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
  }
}

/* Scrollable chat without a visible scroll track or thumb. */
.support-chat-messages {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.support-chat-messages::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Minimal paper-plane send icon; keep original button and JS listener. */
.support-chat-form button {
  position: relative;
  display: grid;
  place-items: center;
  font-size: 0;
}
.support-chat-form button > svg,
.support-chat-form button > i { display: none; }
.support-chat-form button::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 3-7.7 18-3.6-7.7L2 9.7 21 3Z'/%3E%3Cpath d='m21 3-11.3 10.3'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Final tweak: equally spaced mobile header controls */
@media (max-width: 767px) {
  header .toplinks { gap: 2px; column-gap: 2px; }
  header .toplinks .support-top,
  header .toplinks .carthead,
  header .toplinks #header-account { margin-left: 0; margin-right: 0; }
}
@media (max-width: 374px) {
  header .toplinks { gap: 2px; }
}

/* Simple send icon: rightward arrow, no paper plane or emoji */
.support-chat-form button::after {
  width: 19px;
  height: 19px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
}

/* Header chat color and balanced tighter spacing — 31 Oct */
@media (max-width: 767px) {
  header .toplinks { gap: 1px; column-gap: 1px; }
  header .toplinks .support-top,
  header .toplinks:has(#header-logout-button:not([hidden])) .support-top {
    background: var(--blue) !important;
    color: #fff !important;
    border-color: transparent !important;
    margin: 0;
  }
  header .toplinks .support-top::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a7.8 7.8 0 0 1-8 7.5 9 9 0 0 1-3-.5L4 20l1.6-4A7.3 7.3 0 0 1 4 11.5 7.8 7.8 0 0 1 12 4a7.8 7.8 0 0 1 8 7.5Z'/%3E%3C/svg%3E");
  }
  header .toplinks .support-top .header-control-label { color: #fff !important; }
}

/* FIX: controls previously spread across the header because of
   .toplinks { flex:1 1 auto; justify-content:space-between }.
   Keep chat / sign-in / cart as one compact group on mobile. */
@media (max-width: 767px) {
  header .shell.top .toplinks {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin-left: auto;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    column-gap: 4px;
  }
  header .shell.top .toplinks > * {
    margin-left: 0;
    margin-right: 0;
  }
  header .shell.top .toplinks .header-balance-menu {
    flex: 0 0 auto;
    width: auto;
  }
  header .shell.top .toplinks .support-top,
  header .shell.top .toplinks #header-account,
  header .shell.top .toplinks .carthead {
    flex-grow: 0;
    flex-shrink: 0;
  }
}
@media (max-width: 374px) {
  header .shell.top .toplinks { gap: 3px; column-gap: 3px; }
}

/* Mobile product: category label, then circular image, then product title.
   Keep the price/quantity/buy panel in its existing right column. */
@media (max-width: 767px) {
  .product-detail-heading > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 9px;
    min-width: 0;
  }
  .product-detail-heading .tag {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .product-detail-heading .bigflag,
  .product-detail-heading .bigflag.product-picture,
  .product-detail-heading .bigflag.product-picture.square-picture {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    aspect-ratio: 1;
    margin: 0;
    border-radius: 50% !important;
    overflow: hidden;
  }
  .product-detail-heading .bigflag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  .product-detail-heading h1 { margin-top: 10px; }
}

@media (max-width:299px) {
  .logo b { display:none; }
  .logo { gap:0; }
}

/* One final header breakpoint: compact below 700px, desktop-like from 700px. */
@media (max-width:699px) {
  header .shell.top .toplinks { gap:5px; column-gap:5px; }
  header .shell.top .toplinks .support-top,
  header .shell.top .toplinks #header-account,
  header .shell.top .toplinks .carthead,
  header .shell.top .toplinks #header-logout-button.header-logout {
    box-sizing:border-box; margin:0; padding-left:6px; padding-right:6px;
  }
  header .shell.top .toplinks .support-top { gap:5px; }
  header .shell.top .toplinks .carthead { gap:5px; }
}

@media (max-width:374px) {
  header .shell.top .toplinks { gap:3px; column-gap:3px; }
  header .shell.top .toplinks .support-top,
  header .shell.top .toplinks #header-account,
  header .shell.top .toplinks .carthead,
  header .shell.top .toplinks #header-logout-button.header-logout {
    padding-left:4px; padding-right:4px;
  }
}

@media (min-width:700px) and (max-width:767px) {
  header { height:68px; min-height:68px; }
  header .shell.top { width:min(1240px,calc(100% - 30px)); height:68px; min-height:68px; gap:10px; }
  header .logo { gap:9px; }
  header .logo i { width:34px; height:34px; flex:0 0 34px; font-size:24px; }
  header .logo b { display:block; font-size:17px; }
  header .shell.top .toplinks { display:flex; width:auto; flex:0 0 auto; gap:9px; margin-left:auto; }
  header .shell.top .toplinks .support-top {
    display:inline-flex; width:auto; min-width:0; max-width:none; height:auto; min-height:42px;
    padding:9px 13px; gap:7px; border-radius:7px; background:var(--blue)!important; color:#fff!important;
  }
  header .toplinks .support-top::before { display:none; content:none; }
  header .toplinks .support-top svg { display:block; width:16px; height:16px; color:#fff; }
  header .toplinks .support-top .header-control-label { display:inline; color:#fff!important; font-size:12px; }
  header .shell.top .toplinks .carthead {
    display:inline-grid; width:42px; min-width:42px; max-width:42px; height:42px; min-height:42px;
    padding:0; place-items:center;
  }
  header .toplinks .carthead::after { display:none; content:none; }
  header .toplinks .carthead svg { width:18px; height:18px; }
  header .shell.top .toplinks #header-account,
  header .shell.top .toplinks #header-logout-button.header-logout { min-height:42px; }
  .support-chat-panel {
    position:absolute; inset:auto 0 72px auto; width:min(370px,calc(100vw - 28px));
    height:520px; max-height:calc(100dvh - 96px); border-radius:17px;
  }
}

/* Unified header typography, centered brand and persistent cart label. */
header .shell.top { position:relative; }
header .shell.top > .logo {
  position:absolute; left:50%; top:50%; z-index:1;
  transform:translate(-50%,-50%); margin:0;
}
header .shell.top > .hamb,
header .shell.top > .toplinks { position:relative; z-index:2; }
header .shell.top > .toplinks { margin-left:auto; }
header .toplinks .support-top .header-control-label,
header .toplinks #header-account .header-control-label,
header .toplinks .carthead::after {
  font-family:Inter,Arial,sans-serif; font-size:10px; font-weight:700; line-height:1;
}
header .toplinks .carthead {
  display:inline-flex; width:auto; min-width:76px; max-width:none;
  align-items:center; justify-content:center; gap:6px; padding:0 10px;
}
header .toplinks .carthead::after {
  content:"Корзина"; display:inline; color:#71839e; white-space:nowrap;
}

@media (max-width:769px) {
  header .toplinks .support-top,
  header .toplinks:has(#header-logout-button:not([hidden])) .support-top {
    display:inline-flex; flex-direction:row; align-items:center; justify-content:center;
    width:auto; min-width:64px; max-width:none; gap:5px; padding:0 7px;
  }
  header .toplinks .support-top svg { display:none; }
  header .toplinks .support-top::before {
    content:""; display:block; width:15px; height:15px; flex:0 0 15px;
    background:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a7.8 7.8 0 0 1-8 7.5 9 9 0 0 1-3-.5L4 20l1.6-4A7.3 7.3 0 0 1 4 11.5 7.8 7.8 0 0 1 12 4a7.8 7.8 0 0 1 8 7.5Z'/%3E%3C/svg%3E");
  }
  header .toplinks .support-top .header-control-label,
  header .toplinks #header-account:not(.authenticated) .header-control-label::after,
  header .toplinks .carthead::after { font-size:9px; }
  header .toplinks .carthead { min-width:72px; padding-inline:7px; gap:5px; }
}

@media (max-width:430px) {
  header .shell.top > .logo b { font-size:8px; }
  header .shell.top > .logo i { width:24px; height:24px; flex-basis:24px; font-size:13px; }
  header .toplinks .support-top,
  header .toplinks:has(#header-logout-button:not([hidden])) .support-top { min-width:55px; padding-inline:4px; gap:3px; }
  header .toplinks .carthead { min-width:62px; padding-inline:4px; gap:3px; }
  header .toplinks .support-top .header-control-label,
  header .toplinks #header-account:not(.authenticated) .header-control-label::after,
  header .toplinks .carthead::after { font-size:8px; }
}

/* Brand is centered in the free space between menu and header controls. */
header .shell.top > .logo {
  position:static; left:auto; top:auto; transform:none;
  margin-left:auto; margin-right:auto;
}
header .shell.top > .toplinks { margin-left:0; }

/* Preserve the chat geometry for the whole close transition. */
.support-chat-panel.closing {
  overflow:hidden; pointer-events:none;
  transition:opacity .24s ease,transform .34s cubic-bezier(.2,.85,.25,1),visibility 0s linear .34s;
}
.support-chat-panel.closing .support-chat-form { opacity:1; visibility:visible; }

/* Keep the floating control visible and use one chat glyph at every width. */
.support-chat-toggle { z-index:2; }
.support-chat-panel { z-index:1; }
header .toplinks .support-top { flex-direction:row; }
header .toplinks .support-top > svg { display:none!important; }
header .toplinks .support-top::before {
  content:""; display:block; width:15px; height:15px; min-width:15px; flex:0 0 15px;
  background:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a7.8 7.8 0 0 1-8 7.5 9 9 0 0 1-3-.5L4 20l1.6-4A7.3 7.3 0 0 1 4 11.5 7.8 7.8 0 0 1 12 4a7.8 7.8 0 0 1 8 7.5Z'/%3E%3C/svg%3E");
}
header .toplinks .carthead {
  display:inline-flex; flex-direction:row; align-items:center; justify-content:center;
}

@media (max-width:699px) {
  .support-chat-panel:focus-within {
    bottom:max(66px,calc(env(safe-area-inset-bottom) + 62px));
    height:min(360px,calc(var(--mobile-vvh,100dvh) - 76px));
    max-height:calc(var(--mobile-vvh,100dvh) - 76px);
  }
}

@media (min-width:700px) {
  header .toplinks .support-top,
  header .toplinks #header-account,
  header .toplinks .carthead,
  header .toplinks #header-logout-button.header-logout {
    font-family:Inter,Arial,sans-serif; font-size:11px; font-weight:400;
  }
  header .toplinks .support-top .header-control-label,
  header .toplinks #header-account .header-control-label,
  header .toplinks .carthead::after {
    display:inline; font-family:Inter,Arial,sans-serif;
    font-size:11px; font-weight:400; line-height:1; white-space:nowrap;
  }
  header .toplinks #header-account:not(.authenticated) {
    display:inline-flex; width:auto; max-width:none; align-items:center; gap:7px; padding:9px 12px;
  }
  header .toplinks #header-account:not(.authenticated) .header-account-icon { display:grid; }
  header .toplinks #header-account:not(.authenticated) .header-control-label {
    font-size:0;
  }
  header .toplinks #header-account:not(.authenticated) .header-control-label::after {
    content:"Личный кабинет"; font-size:11px;
  }
  header .toplinks .carthead { width:auto; min-width:86px; max-width:none; gap:7px; padding:0 12px; }
  header .toplinks .carthead::after { content:"Корзина"; color:#71839e; }
}

/* Final sub-770 header and chat behavior. */
@media (max-width:769px) {
  header .toplinks .support-top .header-control-label,
  header .toplinks #header-account .header-control-label,
  header .toplinks #header-account:not(.authenticated) .header-control-label::after,
  header .toplinks .carthead::after {
    font-family:Inter,Arial,sans-serif; font-weight:400!important; font-style:normal;
  }
  header .toplinks #header-account:not(.authenticated) {
    display:inline-flex; flex-direction:row; align-items:center; justify-content:center;
    width:auto; max-width:none; gap:4px; padding-inline:6px;
  }
  header .toplinks #header-account:not(.authenticated) .header-account-icon {
    display:grid; flex:0 0 auto;
  }
  header .toplinks #header-account:not(.authenticated) .header-control-label {
    display:inline; font-size:0;
  }
  header .toplinks #header-account:not(.authenticated) .header-control-label::after {
    content:"Вход"; display:inline; font-size:9px; font-weight:400;
  }
  header .toplinks .carthead {
    display:inline-flex!important; flex-direction:row!important;
    align-items:center; justify-content:center; flex-wrap:nowrap;
  }
  header .toplinks .carthead svg,
  header .toplinks .carthead::after { flex:0 0 auto; }
  header .toplinks .carthead::after {
    display:inline!important; position:static; content:"Корзина";
    font-size:9px; font-weight:400; line-height:1; white-space:nowrap;
  }

  .support-chat { z-index:80; }
  .support-chat-toggle { position:relative; z-index:1; }
  .support-chat-panel,
  .support-chat-panel:focus-within {
    position:fixed; z-index:2;
    inset:auto 10px max(70px,calc(env(safe-area-inset-bottom) + 66px)) auto;
    width:min(330px,calc(100vw - 20px));
    height:min(390px,calc(var(--mobile-vvh,100dvh) - 82px));
    max-height:calc(var(--mobile-vvh,100dvh) - 82px);
  }
}

.support-chat-panel.closing {
  display:flex!important; flex-direction:column;
}
.support-chat-panel.closing .support-chat-messages {
  min-height:0; height:auto; flex:1 1 auto;
}
.support-chat-panel.closing .support-chat-form {
  display:grid!important; flex:0 0 auto; opacity:1!important; visibility:visible!important;
}

@media (max-width:374px) {
  header .toplinks #header-account:not(.authenticated) .header-control-label::after,
  header .toplinks .carthead::after { font-size:8px; }
  .support-chat-panel,
  .support-chat-panel:focus-within {
    inset:auto 6px max(64px,calc(env(safe-area-inset-bottom) + 60px)) 6px;
    width:auto;
    height:min(370px,calc(var(--mobile-vvh,100dvh) - 72px));
    max-height:calc(var(--mobile-vvh,100dvh) - 72px);
  }
}

@media (min-width:700px) {
  header .toplinks .support-top .header-control-label,
  header .toplinks #header-account .header-control-label,
  header .toplinks #header-account:not(.authenticated) .header-control-label::after,
  header .toplinks .carthead::after {
    font-size:14px; line-height:1.1;
  }
  header .toplinks .support-top { padding-inline:15px; gap:8px; }
  header .toplinks #header-account:not(.authenticated) { padding-inline:14px; gap:8px; }
  header .toplinks .carthead { min-width:102px; padding-inline:14px; gap:8px; }
}

@media (max-width:769px) {
  header .shell.top { overflow:visible; padding-right:2px; }
  header .shell.top > .toplinks {
    min-width:0; max-width:calc(100% - 30px); flex-shrink:1;
    margin-right:0;
  }
  header .shell.top .toplinks .carthead,
  header .shell.top .toplinks:has(#header-logout-button:not([hidden])) .carthead {
    box-sizing:border-box; width:auto; min-width:0; max-width:100%;
    flex:0 0 auto; padding-left:8px; padding-right:8px; gap:8px;
  }
  header .shell.top .toplinks .carthead svg { flex:0 0 auto; }
  header .shell.top .toplinks .carthead::after { flex:0 1 auto; min-width:0; }
}

@media (max-width:374px) {
  header .shell.top .toplinks .carthead,
  header .shell.top .toplinks:has(#header-logout-button:not([hidden])) .carthead {
    padding-left:5px; padding-right:5px; gap:6px;
  }
}

@media (max-width:769px) {
  header .shell.top > .logo {
    position:static; left:auto; top:auto;
    margin-left:auto; margin-right:auto; transform:none;
  }
  header .shell.top > .toplinks { margin-left:0; }
}

@media (min-width:770px) {
  header .shell.top > .logo {
    position:static; left:auto; top:auto;
    margin:0; transform:none;
  }
  header .shell.top > .toplinks { margin-left:auto; }
}

@media (max-width:1024px) {
  header .shell.top { column-gap:8px; }
  header .shell.top > .hamb { margin-right:0; }
  header .shell.top > .logo { min-width:0; }
}

.support-chat {
  bottom:calc(10px + env(safe-area-inset-bottom) + var(--footer-float-offset))!important;
  transition:bottom .24s ease;
}
.scroll-to-top {
  bottom:calc(10px + env(safe-area-inset-bottom) + var(--footer-float-offset))!important;
  transition:bottom .24s ease,opacity .22s ease,visibility .22s ease,transform .25s cubic-bezier(.2,.8,.2,1),background .2s ease,box-shadow .2s ease;
}

@media (max-width:769px) {
  .site-footer {
    padding-top:15px;
    padding-bottom:calc(15px + env(safe-area-inset-bottom));
  }
}

.site-footer .footer-content {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:9px; text-align:center;
}
.site-footer .footer-content p {
  width:100%; margin:0; text-align:center;
}
.site-footer .footer-links {
  display:flex; width:100%; align-items:center; justify-content:center;
  flex-wrap:wrap; gap:6px 9px; text-align:center; white-space:normal;
}
.site-footer .footer-links button,
.site-footer .footer-links span { text-align:center; }

/* Restore the original footer layout; center only the text inside each block. */
.site-footer .footer-content {
  flex-direction:row; align-items:center; justify-content:space-between;
  flex-wrap:nowrap; gap:28px;
}
.site-footer .footer-content p {
  width:auto; flex:1 1 auto; text-align:left;
}
.site-footer .footer-links {
  width:auto; flex:0 0 auto; flex-wrap:nowrap; text-align:center;
}

@media (max-width:767px) {
  .site-footer .footer-content {
    flex-wrap:wrap; justify-content:center; gap:8px;
  }
  .site-footer .footer-content p,
  .site-footer .footer-links { flex:0 1 auto; width:auto; }
  .site-footer .footer-content p { text-align:center; }
  .site-footer .footer-links { justify-content:center; flex-wrap:wrap; }
}

/* Keep authentication forms as compact cards; the dashboard remains full-width. */
#page-account .auth {
  width:min(390px,100%);
  max-width:390px;
  margin:50px auto;
}

#page-account.account-session-loading {
  min-height:320px;
}
#page-account.account-session-loading > #account-guest,
#page-account.account-session-loading > #account-dashboard {
  visibility:hidden!important;
}

@media (max-width:520px) {
  #page-account .auth {
    width:100%;
    max-width:390px;
    margin:24px auto;
  }
}



/* Mobile: authenticated account hides the wordmark strictly below 340 CSS px.
   Use the real authenticated header state instead of a page-routing class. */
@media (max-width:339.98px) {
  body:has(#header-account.authenticated) header .shell.top a.logo b,
  body:has(#header-logout-button:not([hidden])) header .shell.top a.logo b,
  body.fbtop-auth-account header .shell.top a.logo b {
    display:none !important;
  }
  body:has(#header-account.authenticated) header .shell.top a.logo,
  body:has(#header-logout-button:not([hidden])) header .shell.top a.logo,
  body.fbtop-auth-account header .shell.top a.logo { gap:0 !important; }
}

/* Payment-stage countdown in both purchase and deposit histories. */
.account-row-action { gap: 8px; flex-wrap: wrap; }
.account-payment-countdown {
  display:inline-flex; justify-content:center; align-items:center;
  min-width:58px; padding:6px 8px; border-radius:8px;
  background:#eef5ff; color:#1769e0; font-weight:800;
  font-size:12px; font-variant-numeric:tabular-nums;
}
.account-payment-countdown--urgent { color:#bd3d49; background:#fff1f2; }
.account-row-action .account-resume-payment { width:auto; }
#txid-form.txid-submitted button.primary {
  background:#e4f7ee; color:#167a4c; border:1px solid #a2dbc0;
  opacity:1; cursor:default; animation:txid-confirm-pop .45s ease-out both;
}
.txid-submitted-note { margin-top:10px; padding:10px 12px; border-radius:9px; background:#eaf8f0; color:#167a4c; font-size:12px; font-weight:700; animation:txid-confirm-pop .45s ease-out both; }
@keyframes txid-confirm-pop { from { opacity:0; transform:translateY(7px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@media(max-width:700px) { .account-row-action { justify-content:flex-start; } }

/* Custom password visibility control for account login and registration. */
#login-form .auth-password-control, #register-form .auth-password-control, #reset-form .auth-password-control { position:relative; display:block; margin-top:6px; }
#login-form .auth-password-control input, #register-form .auth-password-control input, #reset-form .auth-password-control input { margin-top:0; padding-right:49px; }
.auth-password-toggle { position:absolute; top:50%; right:5px; transform:translateY(-50%); width:36px; height:36px; display:grid; place-items:center; border:0; border-radius:7px; padding:0; background:transparent; color:#8492a7; box-shadow:none; cursor:pointer; transition:background .16s,color .16s; }
.auth-password-toggle:hover { background:#edf4ff; color:#276be9; }
.auth-password-toggle:focus-visible { outline:2px solid #276be9; outline-offset:1px; }
.auth-password-toggle svg { width:19px; height:19px; }
.auth-password-toggle .password-eye-closed { display:none; }
.auth-password-toggle[aria-pressed="true"] { color:#276be9; background:#edf4ff; }
.auth-password-toggle[aria-pressed="true"] .password-eye-open { display:none; }
.auth-password-toggle[aria-pressed="true"] .password-eye-closed { display:block; }
/* Hide native reveal control so the interface has only one eye button. */
#login-form input[name="password"]::-ms-reveal, #register-form input[name="password"]::-ms-reveal, #reset-form input[name="password"]::-ms-reveal { display:none; }
#login-form input[name="password"]::-ms-clear, #register-form input[name="password"]::-ms-clear, #reset-form input[name="password"]::-ms-clear { display:none; }

/* Email verification: standalone successful registration state. */
.account-auth .auth-verification-success { text-align:center; padding:22px 13px 12px; }
.account-auth .auth-success-symbol { display:grid;place-items:center;width:62px;height:62px;margin:0 auto 17px;border-radius:50%;color:#168a59;background:#e8f8f0;box-shadow:0 0 0 7px rgba(39,177,109,.09);animation:auth-success-pop .35s cubic-bezier(.2,1.3,.4,1) both; }
.account-auth .auth-success-symbol svg { width:31px;height:31px; }
.account-auth .auth-verification-success h3 { margin:0 0 10px;color:#23344d;font-size:19px;font-weight:800; }
.account-auth .auth-verification-success p { margin:0 auto 9px;max-width:350px;color:#53647d;line-height:1.6;font-size:12px;overflow-wrap:anywhere; }
.account-auth .auth-verification-success strong { color:#263954; }
.account-auth .auth-verification-success .auth-success-subtitle { color:#738198; }
.account-auth .auth-success-login { display:block;width:100%;margin-top:21px; }
@keyframes auth-success-pop { from { transform:scale(.6);opacity:0; } to { transform:scale(1);opacity:1; } }
@media (prefers-reduced-motion:reduce) { .account-auth .auth-success-symbol { animation:none; } }


/* Privacy choice — compact and consistent with FBTOPMARKET's interface. */
.cookie-notice[hidden] { display: none !important; }
.cookie-notice {
  position: fixed; z-index: 110; bottom: 22px; left: 22px;
  width: min(420px, calc(100vw - 32px));
  padding: 20px; border: 1px solid #dce6f3; border-radius: 16px;
  background: #fff; box-shadow: 0 18px 48px rgba(26, 49, 88, .2);
  animation: cookieNoticeAppear .28s ease both;
}
.cookie-notice-heading { display: flex; align-items: center; gap: 10px; color: #23334d; }
.cookie-notice-heading svg { flex: none; color: #276be9; }
.cookie-notice-heading strong { font-size: 14px; font-weight: 750; }
.cookie-notice p { margin: 11px 0 16px; font-size: 12px; line-height: 1.6; color: #69788c; }
.cookie-notice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cookie-notice-actions button {
  min-height: 41px; padding: 9px 12px; border-radius: 9px;
  font: 700 12px Inter, Arial, sans-serif; cursor: pointer;
  transition: background .2s, transform .16s;
}
.cookie-notice-actions button:active { transform: scale(.98); }
.cookie-notice-accept { border: 1px solid #276be9; background: #276be9; color: #fff; }
.cookie-notice-accept:hover { background: #185fd4; }
.cookie-notice-reject { border: 1px solid #d5deeb; background: #fff; color: #394b64; }
.cookie-notice-reject:hover { background: #f4f7fc; }
@keyframes cookieNoticeAppear { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 520px) {
  .cookie-notice { left: 16px; bottom: 14px; padding: 17px; }
}
@media (prefers-reduced-motion: reduce) { .cookie-notice { animation: none; } }

/* FBTOPMARKET — mobile placeholder font size (all fields). */
@media (max-width: 700px) {
  input::placeholder,
  textarea::placeholder {
    font-size: 12px !important;
  }
}

/* Mobile only: keep the clock and its label together. */
@media (max-width: 700px) {
  #security-freeze-timer { column-gap: 6px; }
  #security-freeze-timer > span:first-child {
    font-size: 24px !important;
    line-height: 1;
    flex: 0 0 auto;
  }
  #security-freeze-timer > span:nth-child(2) {
    white-space: nowrap;
    font-size: clamp(10px, 3vw, 12px);
  }
}

/* Mobile header: account status above balance; keep desktop untouched. */
@media (max-width: 699px) {
  header .shell.top { display:flex; align-items:center; gap:5px; min-width:0; }
  header .shell.top > .logo { flex:0 0 auto; min-width:0; }
  header .shell.top > .toplinks { display:flex; flex:1 1 auto; min-width:0; max-width:none; gap:5px; justify-content:flex-end; }
  header .shell.top .toplinks .support-top { display:none!important; }
  header .shell.top .toplinks .header-balance-menu {
    display:flex; flex:0 1 190px; width:auto; min-width:0; max-width:190px;
    height:auto; min-height:42px; max-height:none; aspect-ratio:auto;
    border-radius:11px!important; overflow:visible;
  }
  header .shell.top .toplinks #header-account.authenticated {
    box-sizing:border-box; display:flex!important; flex-direction:row!important;
    align-items:center; justify-content:flex-start; gap:6px;
    width:100%!important; max-width:none!important; min-width:0;
    min-height:42px; height:auto; padding:5px 7px!important;
    border-radius:10px!important; text-align:left; white-space:nowrap;
    background:#edf5ff; border:1px solid #cbdff8; color:#285489;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-icon {
    display:grid!important; flex:0 0 18px; place-items:center; width:18px; height:20px;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy {
    display:flex!important; flex-direction:column; align-items:flex-start;
    flex:1 1 auto; min-width:0; gap:2px; line-height:1.1;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy small {
    display:block!important; width:100%; font-size:clamp(8px,2.4vw,10px)!important;
    font-weight:600!important; line-height:1.15; white-space:nowrap;
    overflow:hidden; text-overflow:ellipsis;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy b {
    display:block!important; font-size:14px!important; font-weight:750!important;
    line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  header .shell.top .toplinks #header-account.authenticated .header-status-dot {
    display:block; flex:0 0 7px; width:7px; height:7px;
    border-radius:50%; background:#23a66b;
  }
  header .shell.top .toplinks #header-account.header-status-frozen {
    background:#fff6df; border-color:#f0d89b; color:#94600c;
  }
  header .shell.top .toplinks #header-account.header-status-frozen .header-status-dot { background:#e3a322; }
  header .shell.top .toplinks #header-account.header-status-blocked {
    background:#fff0f0; border-color:#f0c5c5; color:#ad3636;
  }
  header .shell.top .toplinks #header-account.header-status-blocked .header-status-dot { background:#d94a4a; }
  header .shell.top .toplinks .carthead,
  header .shell.top .toplinks:has(#header-logout-button:not([hidden])) .carthead {
    display:inline-flex!important; flex:0 0 37px; width:37px!important;
    min-width:37px; max-width:37px; height:40px; padding:0!important;
    align-items:center; justify-content:center;
  }
  header .shell.top .toplinks .carthead::after { display:none!important; content:none!important; }
  header .shell.top .toplinks #header-logout-button.header-logout { display:none!important; }
  header .shell.top .toplinks #header-account:not(.authenticated) { min-width:40px; }
}
@media (max-width: 374px) {
  header .shell.top > .logo b { display:none!important; }
  header .shell.top .toplinks .header-balance-menu { max-width:178px; }
  header .shell.top .toplinks #header-account.authenticated { gap:4px; padding-inline:5px!important; }
}

/* Mobile header refinement: compact two-line account card; logout immediately left of cart. */
@media (max-width: 699px) {
  header .shell.top .toplinks .header-balance-menu {
    min-height: 34px;
    max-width: 160px;
  }
  header .shell.top .toplinks #header-account.authenticated {
    min-height: 34px;
    padding: 3px 6px !important;
    gap: 5px;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-icon {
    flex-basis: 16px;
    width: 16px;
    height: 18px;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-icon svg { width: 16px; height: 16px; }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy { gap: 0; line-height: 1; }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy small { line-height: 1.05; }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy b { margin-top: 1px; line-height: 1.05; font-size: 13px !important; }
  header .shell.top .toplinks #header-logout-button.header-logout:not([hidden]) {
    display: inline-grid !important;
    order: 1;
    flex: 0 0 34px;
    width: 34px;
    min-width: 34px;
    height: 36px;
    min-height: 36px;
    padding: 0;
  }
  header .shell.top .toplinks .carthead { order: 2; }
  header .shell.top .toplinks .header-balance-menu { order: 0; }
}
@media (max-width: 374px) {
  header .shell.top .toplinks .header-balance-menu { max-width: 148px; }
  header .shell.top .toplinks #header-logout-button.header-logout:not([hidden]) { flex-basis: 30px; width: 30px; min-width: 30px; }
}

/* Mobile header: equal-height controls, snug account card, logout after cart. */
@media (max-width: 699px) {
  header .shell.top .toplinks .header-balance-menu {
    flex: 0 1 auto; width: max-content; max-width: min(160px, 100%);
    min-width: 0; height: 40px; min-height: 40px; max-height: 40px;
    order: 0;
  }
  header .shell.top .toplinks #header-account.authenticated {
    width: max-content !important; max-width: 100% !important;
    height: 40px; min-height: 40px; max-height: 40px;
    padding: 4px 7px !important;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy {
    flex: 0 1 auto; width: max-content;
  }
  header .shell.top .toplinks .carthead { order: 1; }
  header .shell.top .toplinks #header-logout-button.header-logout:not([hidden]) {
    order: 2; height: 40px; min-height: 40px; max-height: 40px;
  }
}

/* Mobile header: align all controls 2px lower; keep cart badge clear of the top edge. */
@media (max-width: 699px) {
  header .shell.top > .logo,
  header .shell.top > .toplinks,
  header .shell.top > .menu-toggle,
  header .shell.top > .hamburger {
    position: relative;
    top: 2px;
  }
  header .shell.top .toplinks .carthead em {
    top: -2px !important;
    right: -2px !important;
  }
}

/* Mobile header: slightly larger FBTOPMARKET wordmark, without changing the icon or desktop. */
@media (min-width: 375px) and (max-width: 699px) {
  header .shell.top > .logo b {
    font-size: 12px;
    line-height: 1.1;
  }
}

/* Mobile guest header: account/login icon matches the cart button dimensions. */
@media (max-width: 699px) {
  header .shell.top .toplinks .header-balance-menu:has(#header-account:not(.authenticated)) {
    flex: 0 0 37px; width: 37px; min-width: 37px; max-width: 37px;
    height: 40px; min-height: 40px; max-height: 40px;
  }
  header .shell.top .toplinks #header-account:not(.authenticated) {
    box-sizing: border-box; display: grid; place-items: center;
    flex: 0 0 37px; width: 37px; min-width: 37px; max-width: 37px;
    height: 40px; min-height: 40px; max-height: 40px;
    padding: 0 !important; margin: 0; gap: 0; border-radius: 7px;
  }
  header .shell.top .toplinks #header-account:not(.authenticated) .header-control-label {
    display: none !important;
  }
  header .shell.top .toplinks #header-account:not(.authenticated) .header-account-icon {
    display: grid; place-items: center; margin: 0;
  }
}

/* Guest-only mobile header: show both Login and Cart labels. */
@media (max-width: 699px) {
  header .shell.top .toplinks .header-balance-menu:has(#header-account:not(.authenticated)) {
    flex: 0 0 auto; width: auto; min-width: 0; max-width: none;
  }
  header .shell.top .toplinks #header-account:not(.authenticated) {
    display: inline-flex; flex-direction: row; align-items: center; justify-content: center;
    flex: 0 0 auto; width: auto; min-width: 0; max-width: none;
    height: 40px; padding: 0 9px !important; gap: 5px;
  }
  header .shell.top .toplinks #header-account:not(.authenticated) .header-control-label {
    display: inline !important; font-size: 0; white-space: nowrap;
  }
  header .shell.top .toplinks #header-account:not(.authenticated) .header-control-label::after {
    content: "Вход"; display: inline; font-size: 11px; font-weight: 500;
  }
  header .shell.top .toplinks:not(:has(#header-account.authenticated)) .carthead {
    flex: 0 0 auto; width: auto !important; min-width: 0; max-width: none;
    height: 40px; padding: 0 9px !important; gap: 5px;
  }
  header .shell.top .toplinks:not(:has(#header-account.authenticated)) .carthead::after {
    display: inline !important; content: "Корзина" !important;
    font-size: 11px; font-weight: 500; white-space: nowrap;
  }
}
@media (max-width: 374px) {
  header .shell.top .toplinks #header-account:not(.authenticated),
  header .shell.top .toplinks:not(:has(#header-account.authenticated)) .carthead {
    padding-inline: 5px !important; gap: 3px;
  }
  header .shell.top .toplinks #header-account:not(.authenticated) .header-control-label::after,
  header .shell.top .toplinks:not(:has(#header-account.authenticated)) .carthead::after { font-size: 9px; }
}

/* Mobile signed-in account: one clickable card, two visually distinct inset surfaces. */
@media (max-width: 699px) {
  header .shell.top .toplinks #header-account.authenticated {
    gap: 4px; padding: 3px 4px !important;
    background: #fff; border: 1px solid #cbdff8;
    border-radius: 9px !important; overflow: hidden;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-icon {
    box-sizing: border-box; display: grid !important; place-items: center;
    flex: 0 0 32px; width: 32px; height: 32px;
    border: 1px solid #d1e0f3; border-radius: 6px;
    background: #edf5ff; color: #285489;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy {
    box-sizing: border-box; display: flex !important; justify-content: center;
    flex: 0 1 auto; min-width: 0; width: max-content;
    height: 32px; padding: 2px 5px;
    border: 1px solid #d1e0f3; border-radius: 6px;
    background: #edf5ff;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy small {
    white-space: nowrap;
  }
}
@media (max-width: 374px) {
  header .shell.top .toplinks #header-account.authenticated { gap: 3px; padding: 3px !important; }
  header .shell.top .toplinks #header-account.authenticated .header-account-icon { flex-basis: 29px; width: 29px; }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy { padding-inline: 3px; }
}

/* Mobile signed-in header: no outer frame; two independent-looking 40px surfaces. */
@media (max-width: 699px) {
  header .shell.top .toplinks #header-account.authenticated {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    width: max-content !important;
    max-width: 100% !important;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    padding: 0 !important;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-icon {
    box-sizing: border-box;
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border: 1px solid #d1e0f3;
    border-radius: 7px;
    background: #edf5ff;
    display: grid !important;
    place-items: center;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy {
    box-sizing: border-box;
    flex: 0 1 auto;
    width: max-content;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 3px 6px;
    border: 1px solid #d1e0f3;
    border-radius: 7px;
    background: #edf5ff;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
  }
}
@media (max-width: 374px) {
  header .shell.top .toplinks #header-account.authenticated .header-account-icon {
    flex-basis: 34px;
    width: 34px;
    min-width: 34px;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy {
    padding-inline: 3px;
  }
}

/* Signed-in mobile account segments: same surface treatment as cart/logout. */
@media (max-width: 699px) {
  header .shell.top .toplinks #header-account.authenticated .header-account-icon,
  header .shell.top .toplinks #header-account.authenticated .header-account-copy {
    background: #edf3fe !important;
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    color: #71839e;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy small,
  header .shell.top .toplinks #header-account.authenticated .header-account-copy b {
    color: #71839e;
  }
  header .shell.top .toplinks #header-account.authenticated:hover .header-account-icon,
  header .shell.top .toplinks #header-account.authenticated:hover .header-account-copy {
    background: #e3edfc !important;
  }
}

/* Keep matching cart/logout surfaces while restoring original account icon and text colors. */
@media (max-width: 699px) {
  header .shell.top .toplinks #header-account.authenticated .header-account-icon {
    color: #285489 !important;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy small {
    color: #7b8799 !important;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy b {
    color: #17243c !important;
  }
}

/* Mobile withdrawal: keep wallet validation in normal flow so it never covers submit. */
@media (max-width: 699px) {
  #withdrawal-form .withdraw-wallet-label #withdrawal-wallet-warning:not([hidden]) {
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 7px;
    padding: 5px 7px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
}

/* Mobile: wallet-address warning uses the same typography as deposit/withdrawal amount warnings. */
@media (max-width: 699px) {
  #withdrawal-form .withdraw-wallet-label #withdrawal-wallet-warning:not([hidden]) {
    position: static;
    z-index: auto;
    width: 100%;
    max-width: 100%;
    margin: 7px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #dc3545;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
}

/* Checkout: inline insufficient-balance warning, consistent with account form hints. */
#checkout-form .checkout-balance-warning {
  display: block;
  margin: 2px 0 10px;
  padding: 0;
  color: #dc3545;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
#checkout-form .checkout-balance-warning[hidden] { display: none !important; }

/* FBTOPMARKET header integration (desktop only): match the existing cart surface. */
@media (min-width: 770px) {
  header .shell.top .toplinks #header-account.authenticated {
    background: #edf3fe !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #71839e !important;
    box-shadow: none !important;
  }
  header .shell.top .toplinks #header-account.authenticated:hover {
    background: #e3edfc !important;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-icon {
    width: 28px; height: 28px; flex: 0 0 28px;
    border: 0; border-radius: 6px; background: transparent;
    color: #71839e; font-size: 14px; font-weight: 400;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-icon svg {
    width: 16px; height: 16px; stroke-width: 1.8;
  }
  header .shell.top .toplinks #header-account.authenticated .header-mobile-icon { display: none !important; }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy small {
    color: #71839e !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy b {
    font-family: Inter, Arial, sans-serif; letter-spacing: 0;
  }
}
/* Keep current mobile arrangement; only make its label consistent and not bold. */
@media (max-width: 769px) {
  header .shell.top .toplinks #header-account.authenticated .header-desktop-icon { display: none !important; }
  header .shell.top .toplinks #header-account.authenticated .header-mobile-icon { display: grid !important; place-items: center; }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy .header-account-desktop-label { display: none !important; }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy .header-account-mobile-label {
    display: block !important;
    font-family: Inter, Arial, sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
  }
  header .shell.top .toplinks .header-balance-dropdown { display: none !important; }
}
@media (min-width: 770px) {
  header .shell.top .toplinks #header-account.authenticated .header-account-mobile-label { display: none !important; }
}


/* Mobile account status: show the complete label rather than an ellipsis.
   Keep the existing user icon, cart, and desktop styling unchanged. */
@media (max-width: 769px) {
  header .shell.top .toplinks #header-account.authenticated .header-account-copy .header-account-mobile-label {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: normal;
    line-height: 1.15 !important;
  }
}
@media (max-width: 699px) {
  header .shell.top .toplinks .header-balance-menu {
    max-width: min(230px, 100%) !important;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy {
    width: auto;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 40px;
  }
  header .shell.top .toplinks #header-account.authenticated .header-account-copy .header-account-mobile-label {
    width: auto;
    max-width: 100%;
  }
}

/* Mobile wordmark: compact text to fit the header; hide only below 370px. */
@media (min-width: 370px) and (max-width: 699px) {
  header .shell.top > a.logo { gap: 4px; }
  header .shell.top > a.logo > b {
    display: block !important;
    font-size: clamp(7.5px, 2vw, 9.5px) !important;
    line-height: 1.1;
    white-space: nowrap;
    flex-shrink: 0;
  }
}
@media (max-width: 369.98px) {
  header .shell.top > a.logo > b { display: none !important; }
}

/* Mobile header: keep the restricted-operations status on one line. */
@media (max-width: 769px) {
  header .shell.top .toplinks #header-account.authenticated .header-account-copy .header-account-mobile-label {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

/* Mobile only: keep all toast notifications above the floating chat and scroll-to-top controls. */
@media (max-width: 769px) {
  .toast {
    bottom: calc(82px + env(safe-area-inset-bottom) + var(--footer-float-offset)) !important;
    width: max-content;
    max-width: calc(100vw - 24px);
  }
}

/* Mobile notification clearance: float above both fixed action buttons. */
@media screen and (max-width: 769px) {
  body > #toast.toast, #toast.toast {
    position: fixed !important;
    top: auto !important;
    bottom: calc(76px + env(safe-area-inset-bottom) + var(--footer-float-offset, 0px)) !important;
    left: 50% !important;
    right: auto !important;
    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: center;
    z-index: 90 !important;
  }
}

/* FBTOPMARKET: narrower category drawer on phones only. */
@media screen and (max-width: 769px) {
  aside#sidebar {
    width: min(72vw, 320px);
    max-width: calc(100vw - 56px);
  }
  aside#sidebar .navitem {
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* Mobile only: vertically center each status/amount row while preserving left-aligned labels. */
@media screen and (max-width: 769px) {
  .payment-expired .expired-details > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    gap: 12px;
  }
  .payment-expired .expired-details span {
    text-align: left;
    min-width: 0;
  }
  .payment-expired .expired-details strong {
    text-align: right;
    min-width: 0;
  }
}

/* Mobile auth: keep the password reveal control centered inside its field. */
@media screen and (max-width: 769px) {
  #login-form .auth-password-control,
  #register-form .auth-password-control,
  #reset-form .auth-password-control {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  #login-form .auth-password-control input,
  #register-form .auth-password-control input,
  #reset-form .auth-password-control input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 50px;
  }
  #login-form .auth-password-control > .auth-password-toggle,
  #register-form .auth-password-control > .auth-password-toggle,
  #reset-form .auth-password-control > .auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    z-index: 1;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    line-height: 1;
    flex: none;
  }
  #login-form .auth-password-control > .auth-password-toggle[aria-pressed="true"],
  #register-form .auth-password-control > .auth-password-toggle[aria-pressed="true"],
  #reset-form .auth-password-control > .auth-password-toggle[aria-pressed="true"] {
    background: #edf4ff;
    color: #276be9;
  }
  #login-form .auth-password-control > .auth-password-toggle svg,
  #register-form .auth-password-control > .auth-password-toggle svg,
  #reset-form .auth-password-control > .auth-password-toggle svg {
    width: 19px;
    height: 19px;
    flex: none;
  }
}

/* Mobile-only: consistent feedback across login, registration, verification and recovery. */
@media screen and (max-width: 769px) {
  .account-auth #auth-message.auth-unified-error,
  .account-auth #auth-message.auth-credentials-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid #f3b6bd;
    border-radius: 10px;
    background: #fff4f5;
    color: #bb3547 !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
    box-shadow: 0 5px 18px rgba(204, 59, 77, .10);
    animation: auth-credentials-reveal .44s cubic-bezier(.2,.8,.25,1) both;
  }
  .account-auth #auth-message.auth-unified-success {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 13px;
    border: 1px solid #a7dfc2;
    border-radius: 10px;
    background: #f0fbf5;
    color: #228556 !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
    box-shadow: 0 5px 18px rgba(34, 133, 86, .08);
  }
  .account-auth #auth-message:empty {
    display: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
@media screen and (max-width: 769px) and (prefers-reduced-motion: reduce) {
  .account-auth #auth-message.auth-unified-error { animation: none; }
}

/* Mobile: the default “5” hint matches other form placeholders. */
@media screen and (max-width: 700px) {
  #topup-form .money-input input[name="amount"]::placeholder {
    font-family: inherit;
    font-size: 18px !important;
    font-weight: 700;
    opacity: 1;
  }
}

/* Поле адреса кошелька перед подтверждением */
.security-wallet-address { display:block; margin-top:16px; }
.security-wallet-address[hidden] { display:none!important; }
.security-wallet-address > span { display:block; margin-bottom:8px; color:#43536c; font-size:12px; font-weight:600; }
.security-wallet-address input { display:block; width:100%; min-height:42px; padding:10px 12px; border:1px solid #cfdaea; border-radius:9px; outline:none; background:#fff; color:#29354c; font:12px Inter,Arial,sans-serif; }
.security-wallet-address input:focus { border-color:#276be9; box-shadow:0 0 0 3px rgba(39,107,233,.1); }
.security-wallet-address input::placeholder { color:#98a4b6; }

/* Independent wallet registry in account dashboard */
/* Wallet registry is visible only within the existing verification-required panel. */
.security-wallet-registry{display:grid;gap:11px;margin:16px 0;padding:14px;border:1px solid #e1e7f0;border-radius:10px;background:#f8faff}
.security-wallet-registry[hidden]{display:none!important}
.security-wallet-registry label{display:grid;gap:6px;color:#43536c;font-size:12px;font-weight:600}
.security-wallet-registry input,.security-wallet-registry select{width:100%;min-width:0;padding:11px;border:1px solid #dce4ef;border-radius:8px;background:#fff;color:#29354c;font:inherit}
.security-wallet-registry button{justify-self:start}
.security-wallet-registry small{line-height:1.5;color:#526781}
@media(max-width:520px){.security-wallet-registry{padding:12px}.security-wallet-registry button{width:100%}}

.security-wallet-simple{margin:14px 0 10px}
.security-wallet-simple[hidden]{display:none!important}
.security-wallet-simple input{width:100%;min-height:42px;padding:10px 12px;border:1px solid #cfdaea;border-radius:9px;background:#fff;color:#29354c;font:12px Inter,Arial,sans-serif;box-sizing:border-box}
.security-wallet-simple input:focus{outline:none;border-color:#276be9;box-shadow:0 0 0 3px rgba(39,107,233,.1)}
.security-wallet-simple small{display:block;margin-top:6px;color:#c03c48}
.security-wallet-simple small[hidden]{display:none}

/* Submitted wallet: retain the original button color, but show disabled state. */
#security-verification-confirm:disabled {
  opacity: .52 !important;
  filter: grayscale(.18);
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}
#security-verification-confirm:disabled:hover,
#security-verification-confirm:disabled:active {
  transform: none !important;
  box-shadow: none !important;
}
