:root {
  --sky: #baf4ff;
  --sky-2: #e8fbff;
  --grass: #78d86b;
  --grass-dark: #2ca64f;
  --leaf: #42bf6f;
  --wood: #b57945;
  --dirt: #9a673d;
  --stone: #8fa5b9;
  --water: #6ed7ff;
  --cream: #fff8df;
  --card: rgba(255, 255, 255, 0.84);
  --card-solid: #ffffff;
  --line: rgba(60, 104, 88, 0.16);
  --line-strong: rgba(60, 104, 88, 0.28);
  --text: #213348;
  --muted: #607286;
  --soft: #41566c;
  --green: #35b95a;
  --green-2: #83df67;
  --yellow: #ffd95d;
  --orange: #ffab5d;
  --pink: #ff8bb8;
  --blue: #45bdf4;
  --violet: #8a75ff;
  --red: #ff6b6b;
  --shadow: 0 24px 60px rgba(46, 92, 97, 0.20);
  --small-shadow: 0 14px 32px rgba(46, 92, 97, 0.14);
  --radius: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 48%, #f9ffe8 100%);
  font-family: Nunito, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3 { margin-top: 0; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.page-bg { position: fixed; inset: 0; pointer-events: none; z-index: -2; overflow: hidden; }
.pixel-sun {
  position: absolute; right: 8vw; top: 95px; width: 92px; height: 92px;
  background: #ffd95d; border-radius: 28px;
  box-shadow: 0 0 0 14px rgba(255, 217, 93, .22), 0 0 70px rgba(255, 217, 93, .55);
  transform: rotate(4deg);
}
.cloud { position: absolute; height: 58px; width: 150px; background: rgba(255,255,255,.86); border-radius: 999px; box-shadow: var(--small-shadow); }
.cloud:before, .cloud:after { content: ''; position: absolute; background: inherit; border-radius: 999px; }
.cloud:before { width: 70px; height: 70px; left: 22px; top: -27px; }
.cloud:after { width: 92px; height: 92px; right: 18px; top: -39px; }
.cloud-a { left: 5vw; top: 130px; animation: cloudFloat 11s ease-in-out infinite; }
.cloud-b { right: 18vw; top: 250px; transform: scale(.74); opacity: .74; animation: cloudFloat 12s ease-in-out infinite reverse; }
.cloud-c { left: 42vw; top: 84px; transform: scale(.55); opacity: .58; animation: cloudFloat 13s ease-in-out infinite; }
.hill { position: absolute; bottom: -150px; border-radius: 50% 50% 0 0; background: rgba(75, 188, 95, .32); }
.hill-a { width: 820px; height: 260px; left: -140px; }
.hill-b { width: 900px; height: 300px; right: -220px; background: rgba(94, 207, 92, .24); }
@keyframes cloudFloat { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(14px) } }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .70);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 30px rgba(83, 144, 152, .10);
}
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  width: 54px; height: 54px; border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #7ce76d 0 50%, #59c15b 50% 100%);
  border: 4px solid #fff;
  box-shadow: 0 13px 26px rgba(38, 151, 78, .22);
  transform: rotate(-5deg);
}
.brand-mark span {
  display: grid; place-items: center; width: 35px; height: 35px;
  border-radius: 10px; background: #fff8df; color: #2e8b42;
  font-weight: 950; font-size: 22px;
}
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-size: 22px; letter-spacing: -.04em; font-weight: 950; }
.brand-text small { color: var(--muted); margin-top: 5px; font-size: 13px; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--soft); padding: 11px 15px; border-radius: 999px;
  font-weight: 950; font-size: 15px; transition: .2s ease;
  background: rgba(255,255,255,.45); border: 1px solid transparent;
}
.nav a:hover, .nav a.is-active {
  color: #174229; background: #fff8df; border-color: rgba(53,185,90,.22);
  box-shadow: 0 10px 22px rgba(46, 92, 97, .11);
  transform: translateY(-1px);
}
.nav-toggle { display: none; width: 48px; height: 48px; border: 2px solid rgba(53,185,90,.20); border-radius: 18px; background: #fff8df; }
.nav-toggle span { display: block; width: 20px; height: 3px; margin: 4px auto; border-radius: 999px; background: #2d7b41; transition: .2s; }

.nav-icon-link,
.nav-cart {
  position: relative;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
}
.nav-cart-icon,
.nav-message-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-message-icon {
  width: 25px;
  height: 25px;
}
.nav-cart-icon circle {
  fill: currentColor;
  stroke: none;
}
.cart-badge {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ff4d93, #c725ff);
  border: 2px solid #fff;
  box-shadow: 0 8px 16px rgba(126, 42, 157, .22);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

/* Hide zero counters in header badges.
   Author display rules for .cart-badge/.message-badge must not override [hidden]. */
.cart-badge[hidden],
.message-badge[hidden],
[data-cart-count][hidden],
[data-message-unread][hidden] {
  display: none !important;
}

.hero { padding: 76px 0 44px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: #2f9b4b;
  text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 950;
  background: rgba(255,248,223,.76); padding: 9px 12px; border-radius: 999px;
  border: 1px solid rgba(53,185,90,.16);
}
.eyebrow:before { content: '✦'; color: var(--orange); letter-spacing: 0; }
.hero h1, .page-hero h1, .section-head h2, .cta-card h2 {
  font-size: clamp(38px, 6.4vw, 78px); line-height: .94;
  letter-spacing: -.055em; margin: 18px 0 20px; font-weight: 950;
}
.hero h1 span { color: #238944; text-shadow: 0 8px 0 rgba(255,255,255,.75); }
.hero p, .small-hero p, .section-head p, .cta-card p {
  color: var(--soft); font-size: 18px; line-height: 1.72; max-width: 700px; font-weight: 700;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  min-height: 52px; padding: 14px 22px; border: 0; border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 950; transition: transform .2s, box-shadow .2s, background .2s, border .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  color: #184222;
  background: linear-gradient(180deg, #fff07c, #ffd45d);
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 14px 0 rgba(206, 137, 38, .18), 0 22px 36px rgba(255, 183, 65, .24);
}
.btn-ghost {
  color: #26516b;
  border: 2px solid rgba(255,255,255,.75);
  background: rgba(255,255,255,.66);
  box-shadow: 0 12px 28px rgba(83, 144, 152, .13);
}
.btn-secondary {
  color: #12455a;
  background: linear-gradient(180deg, #baf4ff, #88ddff);
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 12px 0 rgba(67, 152, 189, .14), 0 20px 30px rgba(92, 184, 220, .18);
}
.btn-product { width: 100%; color: #174229; background: linear-gradient(180deg, #9cf48b, #69dd6d); border: 2px solid rgba(255,255,255,.85); box-shadow: 0 10px 0 rgba(33, 135, 69, .13); }
.btn.full { width: 100%; }
.server-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; color: var(--muted); font-weight: 900; }
.server-line strong { color: #1e5843; background: rgba(255,255,255,.72); border-radius: 999px; padding: 8px 12px; }
.server-line em { font-style: normal; border: 2px dashed rgba(53,185,90,.24); border-radius: 999px; padding: 7px 10px; background: rgba(255,248,223,.72); }
.pulse-dot { width: 12px; height: 12px; border-radius: 50%; background: #35b95a; box-shadow: 0 0 0 0 rgba(53,185,90,.55); animation: pulse 1.6s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 14px rgba(53,185,90,0); } }

.hero-panel { min-height: 510px; }
.playground-card {
  position: relative; min-height: 510px; overflow: hidden;
  border: 8px solid rgba(255,255,255,.88); border-radius: 44px;
  background: linear-gradient(180deg, #9eeeff 0 44%, #bff1a6 44% 100%);
  box-shadow: var(--shadow);
}
.playground-card:after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 42px 42px; opacity: .28; pointer-events: none;
}

.server-photo-card {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,.88);
  border-radius: 44px;
  background: linear-gradient(135deg, rgba(255,248,223,.95), rgba(186,244,255,.85));
  box-shadow: var(--shadow);
}
.server-photo-card:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 0 -80px 120px rgba(24,66,34,.14);
}
.server-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 510px;
  object-fit: cover;
  object-position: center;
}
.sky-scene { position: absolute; inset: 0 0 42%; }
.scene-sun { position: absolute; right: 58px; top: 48px; width: 76px; height: 76px; background: #ffdd5d; border-radius: 24px; box-shadow: 0 0 0 12px rgba(255,221,93,.28); }
.scene-cloud { position: absolute; width: 118px; height: 42px; border-radius: 999px; background: #fff; box-shadow: 0 10px 22px rgba(47, 101, 115, .10); }
.scene-cloud:before, .scene-cloud:after { content: ''; position: absolute; background: inherit; border-radius: 999px; }
.scene-cloud:before { width: 50px; height: 50px; left: 20px; top: -18px; }
.scene-cloud:after { width: 62px; height: 62px; right: 17px; top: -28px; }
.scene-cloud.c1 { left: 36px; top: 74px; }
.scene-cloud.c2 { right: 132px; top: 150px; transform: scale(.68); opacity: .8; }
.mascot { position: absolute; left: 50%; bottom: 160px; width: 150px; height: 170px; transform: translateX(-50%); z-index: 3; }
.mascot .face { position: absolute; left: 18px; top: 0; width: 114px; height: 114px; border-radius: 28px; background: #f7c891; border: 6px solid #fff8df; box-shadow: 0 18px 26px rgba(92, 68, 47, .18); }
.mascot .face:before { content: ''; position: absolute; left: -6px; right: -6px; top: -6px; height: 36px; background: #6b432d; border-radius: 26px 26px 8px 8px; }
.eye { position: absolute; top: 54px; width: 13px; height: 18px; background: #263345; border-radius: 999px; }
.eye.left { left: 32px; }
.eye.right { right: 32px; }
.smile { position: absolute; left: 41px; top: 78px; width: 33px; height: 16px; border-bottom: 5px solid #263345; border-radius: 0 0 999px 999px; }
.mascot .body { position: absolute; left: 34px; bottom: 0; width: 82px; height: 78px; border-radius: 20px; background: #5acb65; border: 6px solid #fff8df; box-shadow: 0 14px 22px rgba(62, 111, 73, .16); }
.block-land { position: absolute; left: 28px; right: 28px; bottom: 105px; height: 160px; z-index: 2; }
.cute-block { position: absolute; width: 88px; height: 88px; border-radius: 20px; border: 5px solid rgba(255,255,255,.78); box-shadow: 0 18px 28px rgba(63, 103, 78, .18); }
.grass { background: linear-gradient(180deg, #73df63 0 34%, #9a673d 34% 100%); }
.dirt { background: #9a673d; background-image: radial-gradient(circle, rgba(255,255,255,.18) 0 10%, transparent 11%); background-size: 18px 18px; }
.wood { background: #b57945; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.15) 0 6px, transparent 6px 14px); }
.stone { background: #8fa5b9; background-image: linear-gradient(45deg, rgba(255,255,255,.18) 25%, transparent 25%), linear-gradient(-45deg, rgba(0,0,0,.08) 25%, transparent 25%); background-size: 20px 20px; }
.water { background: #6ed7ff; background-image: linear-gradient(135deg, rgba(255,255,255,.38) 25%, transparent 25%); background-size: 20px 20px; }
.b1 { left: 4px; bottom: 0; transform: rotate(-7deg); }
.b2 { left: 85px; bottom: 42px; transform: rotate(5deg); }
.b3 { right: 166px; bottom: 4px; transform: rotate(-4deg); }
.b4 { right: 84px; bottom: 44px; transform: rotate(6deg); }
.b5 { right: 4px; bottom: 0; transform: rotate(-5deg); }
.status-card { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 5; padding: 20px; border: 3px solid rgba(255,255,255,.80); border-radius: 28px; background: rgba(255, 248, 223, .90); box-shadow: 0 18px 34px rgba(49, 107, 91, .16); }
.status-card span { color: #2f9b4b; text-transform: uppercase; letter-spacing: .12em; font-weight: 950; font-size: 11px; }
.status-card strong { display: block; margin: 7px 0; font-size: 24px; letter-spacing: -.025em; }
.status-card p { color: var(--muted); margin: 0; font-weight: 800; }

.section { padding: 58px 0; }
.compact-section { padding-top: 8px; }
.section-head { margin-bottom: 24px; }
.section-head h2, .cta-card h2, .page-hero h1 { font-size: clamp(32px, 4.6vw, 58px); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card, .product-card, .cart-card, .docs-card, .legal-card, .contact-card, .contact-form, .cta-card, .error-card {
  background: var(--card);
  border: 3px solid rgba(255,255,255,.78);
  border-radius: var(--radius);
  box-shadow: var(--small-shadow);
  backdrop-filter: blur(16px);
}
.feature-card { padding: 23px; min-height: 220px; }
.feature-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 20px; background: #fff8df; font-size: 28px; box-shadow: inset 0 -6px 0 rgba(236, 196, 105, .16); }
.feature-card h3 { margin: 18px 0 10px; font-size: 21px; line-height: 1.08; letter-spacing: -.025em; }
.feature-card p { color: var(--muted); line-height: 1.58; font-weight: 700; margin: 0; }
.cta-card { padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, rgba(255,248,223,.92), rgba(211,255,218,.86)); }
.cta-card p { margin-bottom: 0; }

.page-hero { padding: 76px 0 20px; }
.small-hero h1 { margin-bottom: 14px; }
.shop-layout-section { padding-top: 28px; }
.shop-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.product-card { padding: 22px; position: relative; overflow: hidden; }
.product-card:before { content: ''; position: absolute; inset: 0 0 auto; height: 9px; background: linear-gradient(90deg, #73df63, #ffd95d, #6ed7ff, #ff8bb8); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.product-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 22px; background: #fff8df; font-size: 31px; box-shadow: inset 0 -7px 0 rgba(236, 196, 105, .17); }
.product-tag { color: #247b3a; background: rgba(156,244,139,.45); border: 2px solid rgba(53,185,90,.15); border-radius: 999px; padding: 8px 11px; font-weight: 950; font-size: 12px; }
.product-card h2 { font-size: 25px; margin-bottom: 9px; letter-spacing: -.035em; }
.product-card p { color: var(--muted); line-height: 1.55; min-height: 74px; font-weight: 700; }
.product-meta { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 18px 0; }
.product-meta span { color: var(--soft); font-weight: 900; }
.product-meta strong { font-size: 26px; color: #238944; }
.cart-card { position: sticky; top: 98px; padding: 22px; }
.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.cart-head button { border: 0; background: #fff1cc; color: #966122; border-radius: 999px; padding: 9px 12px; font-weight: 950; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field span { color: var(--soft); font-weight: 950; }
.field input, .field textarea {
  width: 100%; color: var(--text); background: rgba(255,255,255,.86);
  border: 2px solid rgba(66, 191, 111, .20); border-radius: 20px;
  padding: 14px 16px; outline: none; transition: .18s;
}
.field input:focus, .field textarea:focus { border-color: rgba(53,185,90,.55); box-shadow: 0 0 0 5px rgba(53,185,90,.12); }
.muted { color: var(--muted); font-weight: 800; }
.cart-items { display: grid; gap: 10px; margin: 16px 0; }
.cart-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: rgba(255, 248, 223, .80); border: 2px solid rgba(255,255,255,.72); }
.cart-item strong { display: block; }
.cart-item span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; margin-top: 3px; }
.cart-item-side { display: flex; align-items: center; gap: 7px; }
.cart-item-side b { color: #238944; white-space: nowrap; }
.cart-item-side button { width: 29px; height: 29px; border: 0; border-radius: 10px; color: #184222; background: #9cf48b; font-weight: 950; }
.cart-total { display: flex; justify-content: space-between; align-items: center; border-top: 2px dashed rgba(53,185,90,.22); margin: 16px 0; padding-top: 16px; }
.cart-total span { color: var(--muted); font-weight: 950; }
.cart-total strong { font-size: 28px; color: #238944; }
.cart-note { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; font-weight: 700; }

.docs-card, .legal-card { padding: 28px; }
.rule-row { display: grid; grid-template-columns: 82px 1fr; gap: 20px; padding: 22px 0; border-bottom: 2px dashed rgba(53,185,90,.18); }
.rule-row:first-child { padding-top: 0; }
.rule-row:last-child { border-bottom: 0; padding-bottom: 0; }
.rule-row > span { display: grid; place-items: center; width: 62px; height: 62px; color: #fff; background: linear-gradient(180deg, #69dd6d, #35b95a); border-radius: 21px; font-size: 22px; font-weight: 950; box-shadow: inset 0 -7px 0 rgba(0,0,0,.09); }
.rule-row h2, .legal-card h2 { font-size: 25px; margin-bottom: 10px; letter-spacing: -.035em; }
.rule-row p, .legal-card p { color: var(--soft); line-height: 1.72; font-weight: 700; }
.legal-card h2 { margin-top: 28px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-note { margin-top: 26px; border: 2px solid rgba(53,185,90,.20); background: rgba(211,255,218,.66); border-radius: 24px; padding: 18px; }
.legal-note p { margin-bottom: 0; }

.contacts-grid { display: grid; grid-template-columns: .8fr .8fr 1.2fr; gap: 18px; align-items: start; }
.contact-card, .contact-form { padding: 24px; }
.contact-emoji { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 22px; background: #fff8df; font-size: 28px; margin-bottom: 14px; }
.contact-card h2, .contact-form h2 { font-size: 27px; margin-bottom: 16px; }
.contact-card p { color: var(--soft); line-height: 1.7; font-weight: 800; }

.section-center { min-height: 62vh; display: grid; place-items: center; }
.error-card { max-width: 650px; padding: 34px; text-align: center; }
.error-card p { color: var(--soft); line-height: 1.7; font-weight: 700; }
.copy-chip { color: #184222; background: #fff8df; border: 2px solid rgba(255,255,255,.9); border-radius: 999px; padding: 11px 14px; font-weight: 950; box-shadow: 0 10px 20px rgba(83, 144, 152, .13); }
.site-footer { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.75); background: rgba(255,255,255,.62); backdrop-filter: blur(14px); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .7fr 1fr .8fr; gap: 24px; padding: 34px 0; }
.footer-brand { font-size: 24px; font-weight: 950; letter-spacing: -.04em; margin-bottom: 10px; }
.site-footer p, .site-footer small { color: var(--muted); line-height: 1.65; font-weight: 700; }
.site-footer h3 { margin: 0 0 12px; font-size: 13px; color: #2f9b4b; text-transform: uppercase; letter-spacing: .12em; font-weight: 950; }
.site-footer a { display: block; color: var(--soft); margin: 8px 0; font-weight: 850; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); border-top: 1px solid rgba(60, 104, 88, .10); padding: 16px 0 24px; font-size: 13px; font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(24px); z-index: 60; opacity: 0; pointer-events: none; color: #184222; background: #fff07c; border: 3px solid #fff; border-radius: 999px; padding: 13px 18px; font-weight: 950; box-shadow: 0 18px 44px rgba(46,92,97,.26); transition: .22s; }
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 980px) {
  .hero-grid, .shop-layout, .contacts-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-panel, .playground-card, .server-photo-card, .server-photo-card img { min-height: 455px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-card { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 22px, 1180px); }
  .header-inner { height: 70px; }
  .brand-mark { width: 48px; height: 48px; border-radius: 16px; }
  .brand-text small { display: none; }
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 11px; right: 11px; top: 78px; display: none; flex-direction: column; align-items: stretch; padding: 12px; border: 3px solid rgba(255,255,255,.8); border-radius: 26px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { text-align: center; }
  .nav a.nav-icon-link, .nav a.nav-cart { margin: 0 auto; }
  .hero h1 { font-size: 45px; }
  .hero p, .small-hero p { font-size: 16px; }
  .product-grid, .feature-grid { grid-template-columns: 1fr; }
  .cta-card { display: grid; }
  .rule-row { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid, .footer-bottom { display: grid; grid-template-columns: 1fr; }
  .pixel-sun { width: 64px; height: 64px; top: 92px; right: 18px; border-radius: 20px; }
  .cloud-a { left: -20px; top: 130px; transform: scale(.75); }
  .cloud-b, .cloud-c { display: none; }
  .playground-card, .server-photo-card { min-height: 430px; border-width: 5px; border-radius: 34px; }
  .server-photo-card img { min-height: 430px; }
  .scene-sun { right: 28px; top: 38px; width: 60px; height: 60px; }
  .scene-cloud.c1 { left: 20px; top: 70px; transform: scale(.75); }
  .scene-cloud.c2 { display: none; }
  .mascot { transform: translateX(-50%) scale(.82); bottom: 142px; }
  .block-land { left: 16px; right: 16px; bottom: 105px; }
  .cute-block { width: 68px; height: 68px; border-radius: 17px; }
  .b2 { left: 58px; }
  .b3 { right: 115px; }
  .b4 { right: 55px; }
  .status-card { left: 16px; right: 16px; bottom: 16px; }
  .toast { width: calc(100% - 28px); text-align: center; }
}

/* MySQL shop and admin panel */
.notice-card {
  margin: 0 0 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 248, 223, .92);
  border: 2px solid rgba(255,255,255,.86);
  box-shadow: var(--small-shadow);
  color: var(--soft);
  font-weight: 800;
}
.notice-card strong { display: block; color: var(--text); margin-bottom: 5px; }
.notice-card p { margin: 6px 0 0; line-height: 1.55; }
.notice-card.warn { background: rgba(255, 241, 204, .94); border-color: rgba(255, 217, 93, .55); }
.notice-card.danger { background: rgba(255, 236, 236, .95); border-color: rgba(255, 107, 107, .35); }
.notice-card.success { background: rgba(211, 255, 218, .94); border-color: rgba(53,185,90,.25); }
.notice-card code, .cart-note code { background: rgba(255,255,255,.75); border-radius: 9px; padding: 2px 6px; font-weight: 950; }

.product-image {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff8df, #e9ffdd);
  box-shadow: inset 0 -7px 0 rgba(236, 196, 105, .16), 0 12px 24px rgba(46,92,97,.10);
  border: 3px solid rgba(255,255,255,.84);
  overflow: hidden;
}
.product-image img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
}
.product-image .product-icon {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.admin-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.admin-actions, .form-actions, .table-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-card, .admin-table-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 2px solid rgba(255,255,255,.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.admin-login-card { width: min(470px, 100%); }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: .7fr .8fr 1.3fr .8fr; }
.field-title { display: block; color: var(--soft); font-weight: 950; margin-bottom: 7px; }
.image-upload-box {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 18px;
  align-items: center;
  margin: 16px 0;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,248,223,.7);
  border: 2px dashed rgba(53,185,90,.25);
}
.image-upload-box p { color: var(--muted); font-weight: 800; line-height: 1.55; margin: 0 0 12px; }
.image-upload-box input[type="file"] { width: 100%; }
.current-image-preview, .mini-product-image {
  display: grid;
  place-items: center;
  background: #fff8df;
  border: 3px solid #fff;
  box-shadow: inset 0 -7px 0 rgba(236, 196, 105, .16);
  overflow: hidden;
}
.current-image-preview { width: 112px; height: 112px; border-radius: 30px; font-size: 44px; }
.current-image-preview img { width: 82px; height: 82px; object-fit: contain; image-rendering: pixelated; }
.mini-product-image { width: 58px; height: 58px; border-radius: 18px; font-size: 25px; }
.mini-product-image img { width: 42px; height: 42px; object-fit: contain; image-rendering: pixelated; }
.check-line { display: inline-flex; align-items: center; gap: 9px; color: var(--soft); font-weight: 900; margin-top: 12px; }
.check-line.big { margin: 4px 0 20px; }
.check-line input { width: 18px; height: 18px; accent-color: var(--green); }
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.admin-table th { text-align: left; color: #2f9b4b; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding: 0 12px; }
.admin-table td { background: rgba(255,255,255,.72); padding: 14px 12px; vertical-align: middle; border-top: 2px solid rgba(255,255,255,.8); border-bottom: 2px solid rgba(255,255,255,.8); }
.admin-table td:first-child { border-left: 2px solid rgba(255,255,255,.8); border-radius: 22px 0 0 22px; }
.admin-table td:last-child { border-right: 2px solid rgba(255,255,255,.8); border-radius: 0 22px 22px 0; }
.admin-table small { display: block; color: var(--muted); margin-top: 3px; font-weight: 800; }
.status { display: inline-flex; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 950; }
.status.ok { background: rgba(156,244,139,.48); color: #247b3a; }
.status.off { background: rgba(215,225,233,.7); color: #607286; }
.btn.small { padding: 10px 12px; min-height: 0; border-radius: 16px; font-size: 13px; background: #fff8df; color: var(--text); box-shadow: var(--small-shadow); }
.btn.danger { background: #ffecec; color: #bd3838; }
.table-actions form { margin: 0; }

@media (max-width: 980px) {
  .admin-hero-row { align-items: flex-start; flex-direction: column; }
  .form-grid.two, .form-grid.four { grid-template-columns: 1fr; }
  .admin-table-card { overflow-x: auto; }
  .admin-table { min-width: 760px; }
}
@media (max-width: 760px) {
  .image-upload-box { grid-template-columns: 1fr; }
  .current-image-preview { width: 96px; height: 96px; }
}

/* Account, auth and order history */
.nav-account {
  color: #174229 !important;
  background: linear-gradient(180deg, #fff8df, #e8ffda) !important;
  border-color: rgba(53,185,90,.25) !important;
}
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.auth-section { padding-top: 18px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(300px, .65fr); gap: 22px; align-items: start; }
.auth-grid.compact { grid-template-columns: minmax(0, 560px); justify-content: center; }
.auth-card, .auth-info-card, .profile-card, .orders-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--card);
  border: 2px solid rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.soft-form { display: grid; gap: 12px; }
.form-help { color: var(--muted); font-weight: 800; line-height: 1.55; margin: 14px 0 0; }
.auth-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.auth-links a { color: #2f9b4b; font-weight: 950; background: rgba(255,255,255,.58); border: 1px solid rgba(53,185,90,.18); border-radius: 999px; padding: 9px 12px; }
.auth-info-card h2 { font-size: 30px; letter-spacing: -.04em; }
.auth-info-card ol { padding-left: 22px; color: var(--soft); font-weight: 900; line-height: 1.8; }
.auth-info-card p { color: var(--muted); line-height: 1.65; font-weight: 800; }
.account-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-card { text-align: center; position: sticky; top: 98px; }
.profile-avatar { width: 92px; height: 92px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 32px; background: linear-gradient(180deg, #fff8df, #dcffd4); border: 4px solid #fff; font-size: 42px; box-shadow: var(--small-shadow); }
.profile-card h2 { font-size: 30px; margin-bottom: 6px; letter-spacing: -.04em; }
.profile-card p { color: var(--soft); font-weight: 800; line-height: 1.5; }
.profile-lines { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 13px 14px; border-radius: 18px; background: rgba(255,255,255,.58); color: var(--muted); font-weight: 900; text-align: left; }
.profile-lines strong { color: var(--text); text-align: right; }
.section-head.slim h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 0; }
.order-list { display: grid; gap: 12px; }
.order-item { display: flex; justify-content: space-between; gap: 16px; padding: 16px; border-radius: 24px; background: rgba(255,255,255,.68); border: 2px solid rgba(255,255,255,.78); }
.order-item strong { display: block; font-size: 18px; }
.order-item span, .order-item small { display: block; color: var(--muted); font-weight: 800; margin-top: 4px; }
.order-side { text-align: right; display: grid; align-content: center; justify-items: end; gap: 7px; min-width: 130px; }
.order-side b { font-size: 20px; color: #174229; }
.empty-state { text-align: center; padding: 34px 18px; border-radius: 26px; background: rgba(255,248,223,.58); border: 2px dashed rgba(53,185,90,.24); }
.empty-state div { font-size: 52px; }
.empty-state h3 { font-size: 28px; letter-spacing: -.04em; margin: 12px 0 8px; }
.empty-state p { color: var(--soft); font-weight: 800; line-height: 1.65; max-width: 520px; margin: 0 auto 18px; }
.product-card form { margin: 0; }
.shop-login-note { margin-bottom: 22px; }
@media (max-width: 980px) {
  .auth-grid, .account-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .account-hero-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  .auth-card, .auth-info-card, .profile-card, .orders-card { padding: 20px; border-radius: 24px; }
  .order-item { display: grid; }
  .order-side { text-align: left; justify-items: start; }
  .profile-lines { display: grid; }
  .profile-lines strong { text-align: left; }
}

/* RCON выдача заказов */
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-weight: 750; font-size: 12px; line-height: 1.35; }
.status.warn { background: rgba(255, 224, 130, .55); color: #8a5b00; }
.status.danger { background: rgba(255, 166, 166, .55); color: #9c2323; }
.command-preview { display: block; max-width: 520px; margin-top: 6px; padding: 7px 9px; border-radius: 12px; background: rgba(255,255,255,.68); color: #52616f; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muted-small { color: var(--muted); font-size: 12px; font-weight: 850; }
@media (max-width: 820px) { .form-grid.three { grid-template-columns: 1fr; } .command-preview { max-width: 260px; } }
.status.wait { background: rgba(186, 244, 255, .65); color: #126276; }
.inline-form { display: inline-flex; margin: 0; }
.notice-card .inline-form { margin-top: 12px; }
.debug-pre {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  color: #34404a;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

/* Cart and balance update */
.shop-top-panel, .cart-card, .cart-summary-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 2px solid rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.shop-top-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.shop-top-panel h2 { margin: 4px 0 5px; font-size: clamp(26px, 4vw, 40px); letter-spacing: -.04em; }
.shop-top-panel p { margin: 0; color: var(--muted); font-weight: 800; line-height: 1.55; }
.shop-top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff8df, #e8ffda);
  border: 2px solid rgba(53,185,90,.18);
  color: var(--soft);
  font-weight: 950;
  box-shadow: var(--small-shadow);
}
.balance-pill b { color: #174229; }
.add-to-cart-form { display: grid; gap: 10px; }
.qty-mini, .qty-box { display: grid; gap: 5px; color: var(--muted); font-weight: 950; }
.qty-mini { grid-template-columns: 80px 1fr; align-items: center; }
.qty-mini input, .qty-box input { text-align: center; font-weight: 950; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.cart-summary-card { position: sticky; top: 98px; }
.cart-summary-card h2 { font-size: 42px; letter-spacing: -.05em; margin: 4px 0 14px; }
.cart-items { display: grid; gap: 12px; }
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255,255,255,.68);
  border: 2px solid rgba(255,255,255,.82);
}
.cart-product-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cart-product-left strong { display: block; font-size: 18px; }
.cart-product-left span, .cart-product-left small { display: block; color: var(--muted); font-weight: 850; margin-top: 3px; }
.cart-product-left code { background: rgba(255,255,255,.72); border-radius: 8px; padding: 1px 5px; }
.cart-product-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cart-product-right b { color: #174229; font-size: 20px; min-width: 78px; text-align: right; }
.cart-actions-line { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn.wide { width: 100%; justify-content: center; margin-top: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.2); }
.mini-notice { padding: 14px; border-radius: 20px; font-size: 14px; }
.balance-box {
  margin: 18px 0;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,248,223,.92), rgba(232,255,218,.92));
  border: 2px solid rgba(255,255,255,.82);
  box-shadow: var(--small-shadow);
  text-align: left;
}
.balance-box span, .balance-box small { display: block; color: var(--muted); font-weight: 850; line-height: 1.45; }
.balance-box strong { display: block; color: #174229; font-size: 34px; letter-spacing: -.05em; margin: 4px 0; }
.account-tabs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.wallet-list { display: grid; gap: 10px; }
.wallet-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  border: 2px solid rgba(255,255,255,.78);
}
.wallet-item strong, .wallet-item b { display: block; }
.wallet-item span, .wallet-item small { display: block; color: var(--muted); font-weight: 800; margin-top: 3px; }
.wallet-item.plus b { color: #247b3a; }
.wallet-item.minus b { color: #bd3838; }
.orders-lines-head { margin-top: 30px; }
.compact-empty { padding: 22px 14px; }
.compact-empty div { font-size: 38px; }
.compact-empty h3 { font-size: 23px; }
.balance-admin-form { margin-bottom: 22px; }
select {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 14px 15px;
  background: rgba(255,255,255,.75);
  box-shadow: inset 0 0 0 2px rgba(46,92,97,.08);
  color: var(--text);
  font: inherit;
  font-weight: 850;
}
@media (max-width: 1060px) {
  .account-tabs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary-card { position: static; }
  .shop-top-panel { align-items: flex-start; flex-direction: column; }
  .shop-top-actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .cart-item { display: grid; }
  .cart-product-right { justify-content: flex-start; }
  .cart-product-right b { text-align: left; }
  .qty-mini { grid-template-columns: 1fr; }
}

/* AJAX cart upgrade */
.add-cart-box {
  display: grid;
  grid-template-columns: minmax(150px, .85fr) 1fr;
  gap: 10px;
  align-items: stretch;
}
.qty-stepper {
  display: grid;
  grid-template-columns: 42px minmax(74px, 1fr) 42px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 2px solid rgba(53,185,90,.18);
  box-shadow: inset 0 -4px 0 rgba(53,185,90,.06);
}
.qty-stepper button {
  border: 0;
  background: linear-gradient(180deg, #fff8df, #dfffd8);
  color: #174229;
  font-size: 22px;
  font-weight: 950;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.qty-stepper button:hover { filter: brightness(1.02); }
.qty-stepper button:active { transform: scale(.96); }
.qty-stepper label {
  display: grid;
  place-items: center;
  gap: 0;
  padding: 5px 4px 6px;
  color: var(--muted);
  font-weight: 950;
  font-size: 11px;
  text-align: center;
}
.qty-stepper input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 950;
  text-align: center;
  padding: 0;
}
.qty-stepper.compact {
  min-width: 158px;
  grid-template-columns: 38px 74px 38px;
  border-radius: 18px;
}
.qty-stepper.compact label { padding: 4px 2px 5px; }
.qty-stepper.compact input { font-size: 16px; }
.add-cart-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}
.btn.is-loading { opacity: .72; cursor: wait; filter: grayscale(.08); }
.cart-item.is-updating { opacity: .72; }
[data-shortage-wrap][hidden] { display: none !important; }
@media (max-width: 680px) {
  .add-cart-box { grid-template-columns: 1fr; }
  .qty-stepper.compact { width: 100%; max-width: 220px; }
}

/* Shop categories */
.shop-category-tabs,
.admin-category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.shop-category-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon title" "icon text";
  gap: 2px 10px;
  align-items: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255,255,255,.68);
  border: 2px solid rgba(255,255,255,.82);
  box-shadow: var(--small-shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.shop-category-tab:hover { transform: translateY(-2px); background: rgba(255,255,255,.86); }
.shop-category-tab.is-active { border-color: rgba(53,185,90,.45); background: linear-gradient(180deg, rgba(232,255,218,.94), rgba(255,248,223,.88)); }
.shop-category-tab span { grid-area: icon; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 16px; background: #fff8df; font-size: 23px; }
.shop-category-tab b { grid-area: title; font-size: 15px; letter-spacing: -.02em; }
.shop-category-tab small { grid-area: text; color: var(--muted); font-weight: 800; font-size: 12px; line-height: 1.25; }
.product-category-pill,
.category-mini,
.enchanted-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 950;
  color: #205c33;
  background: rgba(232,255,218,.86);
  border: 2px solid rgba(53,185,90,.14);
}
.product-category-pill { margin: -4px 0 10px; }
.enchanted-note { margin: -4px 0 12px; color: #64438f; background: rgba(244,232,255,.9); border-color: rgba(130,89,190,.14); }
.admin-category-tabs { grid-template-columns: repeat(4, minmax(170px, 1fr)); }
.field small code { background: rgba(255,255,255,.75); padding: 2px 6px; border-radius: 8px; }
@media (max-width: 980px) {
  .shop-category-tabs,
  .admin-category-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .shop-category-tabs,
  .admin-category-tabs { grid-template-columns: 1fr; }
}

/* Social module: profiles, messages, complaints */
.social-grid,
.messages-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.social-side-card,
.social-main-card,
.chat-shell {
  background: rgba(255,255,255,.78);
  border: 2px solid rgba(255,255,255,.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.social-side-card h2 { margin-bottom: 16px; letter-spacing: -.03em; }
.profile-cover-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}
.profile-big-avatar,
.profile-avatar {
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff8df, #dfffd8);
  border: 5px solid rgba(255,255,255,.95);
  box-shadow: 0 16px 34px rgba(46,92,97,.16);
}
.profile-big-avatar { width: 150px; height: 150px; border-radius: 44px; }
.profile-big-avatar span { font-size: 70px; font-weight: 950; color: #2e8b42; }
.profile-big-avatar img,
.profile-avatar img,
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-link { text-decoration: none; color: inherit; }
.profile-avatar span { font-size: 48px; }
.profile-mini-actions { justify-content: center; margin: 10px 0 16px; }
.social-form,
.wall-form,
.chat-form { display: grid; gap: 14px; }
.social-form .field,
.profile-edit-form .field {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-weight: 950;
}
.social-form input,
.social-form textarea,
.social-form select,
.profile-edit-form input,
.profile-edit-form textarea,
.shop-search input,
.chat-form textarea,
.wall-form textarea,
.complaint-admin-form input,
.complaint-admin-form select {
  width: 100%;
  border: 2px solid rgba(53,185,90,.15);
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  color: var(--text);
  outline: none;
  padding: 13px 14px;
  font-weight: 850;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.social-form textarea,
.chat-form textarea,
.wall-form textarea { resize: vertical; min-height: 54px; }
.social-form input:focus,
.social-form textarea:focus,
.shop-search input:focus,
.chat-form textarea:focus,
.wall-form textarea:focus {
  border-color: rgba(53,185,90,.42);
  box-shadow: 0 0 0 5px rgba(53,185,90,.10);
  background: #fff;
}
.social-form small,
.profile-edit-form small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.wall-form {
  padding: 16px;
  border-radius: 26px;
  background: rgba(232,255,218,.42);
  border: 2px solid rgba(53,185,90,.12);
  margin-bottom: 18px;
}
.wall-form-bottom,
.chat-form { display: flex; align-items: center; gap: 10px; }
.wall-form-bottom { justify-content: space-between; flex-wrap: wrap; }
.file-chip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #205c33;
  background: rgba(255,248,223,.9);
  border: 2px solid rgba(53,185,90,.14);
  font-weight: 950;
  cursor: pointer;
}
.file-chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wall-list,
.thread-list,
.complaint-list { display: grid; gap: 12px; }
.wall-post,
.thread-item,
.complaint-item,
.message-bubble {
  border-radius: 24px;
  background: rgba(255,255,255,.76);
  border: 2px solid rgba(255,255,255,.82);
  box-shadow: var(--small-shadow);
}
.wall-post { padding: 16px; }
.wall-post p,
.message-bubble p,
.complaint-item p { margin: 10px 0; line-height: 1.5; color: var(--soft); font-weight: 750; }
.mini-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
}
.mini-user small { color: var(--muted); font-weight: 850; }
.mini-avatar {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #fff8df;
  border: 2px solid rgba(255,255,255,.9);
  font-weight: 950;
  color: #2e8b42;
}
.wall-attachment,
.message-photo {
  display: inline-block;
  margin-top: 8px;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(53,185,90,.12);
  background: #fff;
}
.wall-attachment img { max-width: min(100%, 520px); max-height: 420px; object-fit: cover; display: block; }
.message-photo img { max-width: min(100%, 360px); max-height: 360px; object-fit: cover; display: block; }
.thread-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  color: var(--text);
  text-decoration: none;
  transition: transform .16s ease, background .16s ease;
}
.thread-item:hover { transform: translateY(-2px); background: rgba(255,255,255,.92); }
.thread-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff8df, #e8ffda);
  font-size: 25px;
}
.thread-item span:not(.thread-avatar) { display: grid; gap: 2px; min-width: 0; }
.thread-item b { font-size: 17px; letter-spacing: -.02em; }
.thread-item small,
.thread-item em,
.thread-item time { color: var(--muted); font-size: 12px; font-weight: 850; font-style: normal; }
.thread-item em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-shell { padding: 0; overflow: hidden; }
.chat-messages {
  display: grid;
  gap: 12px;
  max-height: 62vh;
  overflow: auto;
  padding: 22px;
  scroll-behavior: smooth;
}
.message-bubble {
  width: min(78%, 620px);
  padding: 14px;
}
.message-bubble.is-mine { justify-self: end; background: linear-gradient(180deg, rgba(232,255,218,.95), rgba(255,248,223,.86)); }
.message-bubble.is-other { justify-self: start; background: rgba(255,255,255,.84); }
.chat-form {
  padding: 14px;
  border-top: 2px solid rgba(53,185,90,.10);
  background: rgba(255,255,255,.78);
}
.chat-form textarea { flex: 1; min-height: 48px; max-height: 160px; }
.shop-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 26px;
  background: rgba(255,255,255,.70);
  border: 2px solid rgba(255,255,255,.82);
  box-shadow: var(--small-shadow);
}
.shop-search label { display: grid; gap: 7px; font-weight: 950; color: var(--soft); }
.complaint-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
}
.complaint-item span:not(.status) { display: block; color: var(--muted); font-weight: 850; margin-top: 3px; }
.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(69,189,244,.10);
  color: #126285;
  font-weight: 950;
  border: 2px solid rgba(69,189,244,.14);
}
.status.new { background: rgba(255,217,93,.28); color: #79560f; }
.status.in_review { background: rgba(69,189,244,.18); color: #126285; }
.status.closed { background: rgba(53,185,90,.16); color: #205c33; }
.status.rejected { background: rgba(255,107,107,.15); color: #9a2b2b; }
.complaint-admin-form {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 980px) {
  .social-grid,
  .messages-layout,
  .profile-cover-grid { grid-template-columns: 1fr; }
  .profile-big-avatar { width: 124px; height: 124px; border-radius: 36px; }
  .shop-search { grid-template-columns: 1fr; }
  .message-bubble { width: 92%; }
  .complaint-admin-form { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .social-side-card,
  .social-main-card { padding: 18px; }
  .thread-item { grid-template-columns: 46px minmax(0, 1fr); }
  .thread-item time { grid-column: 2; }
  .chat-form { display: grid; grid-template-columns: auto 1fr; }
  .chat-form .btn { grid-column: 1 / -1; }
  .complaint-item { grid-template-columns: 1fr; }
}

/* Privacy policy page */
.policy-card { overflow: hidden; }
.policy-lead {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(232,255,218,.88), rgba(255,248,223,.82));
  border: 2px solid rgba(53,185,90,.18);
}
.policy-lead > span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  color: #2b8f45;
  font-weight: 950;
  box-shadow: var(--small-shadow);
}
.policy-lead h2 { margin: 0 0 8px; }
.policy-lead p { margin: 0; }
.policy-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 30px;
}
.policy-summary-item {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  border: 2px solid rgba(255,255,255,.82);
  box-shadow: var(--small-shadow);
}
.policy-summary-item strong {
  display: block;
  margin-bottom: 8px;
  color: #2f9b4b;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.policy-summary-item span { color: var(--soft); font-weight: 850; line-height: 1.5; }
.policy-table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.policy-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0 10px; }
.policy-table th,
.policy-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px;
  background: rgba(255,255,255,.74);
  border-top: 2px solid rgba(255,255,255,.86);
  border-bottom: 2px solid rgba(255,255,255,.86);
  line-height: 1.65;
}
.policy-table th {
  width: 245px;
  color: #205c33;
  font-size: 14px;
  font-weight: 950;
  border-left: 2px solid rgba(255,255,255,.86);
  border-radius: 20px 0 0 20px;
}
.policy-table td {
  color: var(--soft);
  font-weight: 760;
  border-right: 2px solid rgba(255,255,255,.86);
  border-radius: 0 20px 20px 0;
}
.policy-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 24px 20px;
  color: var(--soft);
  line-height: 1.68;
  font-weight: 780;
}
.policy-list strong { color: var(--text); }
@media (max-width: 900px) {
  .policy-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .policy-lead { grid-template-columns: 1fr; }
  .policy-summary-grid { grid-template-columns: 1fr; }
  .policy-table { min-width: 640px; }
}


/* Minecraft server events admin */
.mc-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}
.mc-stat-card {
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(234,255,222,.72));
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: var(--small-shadow);
}
.mc-stat-card span {
  display: block;
  color: #2f9b4b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 950;
}
.mc-stat-card strong {
  display: block;
  margin: 8px 0 4px;
  color: #174229;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  font-weight: 950;
}
.mc-stat-card small { color: var(--muted); font-weight: 850; }
.mc-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}
.mc-chat-feed {
  display: grid;
  gap: 10px;
  max-height: 500px;
  overflow: auto;
  padding-right: 4px;
}
.mc-chat-row {
  display: grid;
  grid-template-columns: 48px 130px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.74);
  border: 2px solid rgba(255,255,255,.82);
}
.mc-chat-row strong { color: #174229; overflow-wrap: anywhere; }
.mc-chat-row span:not(.mc-chat-time),
.mc-chat-row code { overflow-wrap: anywhere; }
.mc-chat-row code,
.mc-command-text {
  display: inline-block;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255,248,223,.88);
  color: #6f4a00;
  font-weight: 950;
  white-space: pre-wrap;
}
.mc-chat-row em {
  justify-self: end;
  color: #bd3838;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}
.mc-chat-time { color: var(--muted); font-weight: 950; font-size: 12px; }
.mc-command-list { display: grid; gap: 10px; }
.mc-command-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.74);
  border: 2px solid rgba(255,255,255,.82);
}
.mc-command-list code { color: #174229; font-weight: 950; overflow-wrap: anywhere; }
.mc-command-list strong {
  min-width: 38px;
  text-align: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(156,244,139,.48);
  color: #247b3a;
}
.mc-filter-form { align-items: end; }
.mc-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 950;
  background: rgba(215,225,233,.7);
  color: #607286;
}
.mc-badge.type-join { background: rgba(156,244,139,.48); color: #247b3a; }
.mc-badge.type-quit { background: rgba(215,225,233,.7); color: #607286; }
.mc-badge.type-kick,
.mc-badge.type-death { background: rgba(255,223,190,.72); color: #a25710; }
.mc-badge.type-chat { background: rgba(186,244,255,.58); color: #1c7280; }
.mc-badge.type-command { background: rgba(255,248,223,.92); color: #7c5510; }
.mc-events-table-wrap { margin-top: 18px; overflow-x: auto; }
.mc-events-table { min-width: 1080px; }
.mc-players-table { min-width: 980px; }
.mc-message-text { display: block; max-width: 520px; overflow-wrap: anywhere; font-weight: 850; color: var(--soft); }
.danger-text { color: #bd3838 !important; }
@media (max-width: 980px) {
  .mc-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-admin-layout { grid-template-columns: 1fr; }
  .mc-chat-row { grid-template-columns: 42px minmax(90px, .35fr) minmax(0, 1fr); }
  .mc-chat-row em { grid-column: 3; justify-self: start; }
}
@media (max-width: 560px) {
  .mc-stat-grid { grid-template-columns: 1fr; }
  .mc-chat-row { grid-template-columns: 1fr; }
  .mc-chat-time { font-size: 11px; }
}

/* MavixLevels */
.level-summary-card{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:22px;border:1px solid rgba(255,255,255,.1);border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.03));box-shadow:0 20px 60px rgba(0,0,0,.22);margin-bottom:22px}.level-big-badge{min-width:120px;text-align:center;border-radius:22px;padding:18px 22px;background:rgba(115,92,255,.18);border:1px solid rgba(160,145,255,.35);font-size:26px;font-weight:900}.levels-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.level-card{display:flex;flex-direction:column;gap:12px;min-height:100%;padding:18px;border-radius:24px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.1);box-shadow:0 16px 45px rgba(0,0,0,.18)}.level-card.is-owned{background:linear-gradient(135deg,rgba(43,214,146,.13),rgba(255,255,255,.045));border-color:rgba(43,214,146,.35)}.level-card-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.level-number{font-weight:900;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}.level-card h3{margin:0;font-size:22px}.level-card p{margin:0;color:var(--muted);line-height:1.45}.level-features{list-style:none;margin:0;padding:0;display:grid;gap:8px}.level-features li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.07)}.level-features span{color:var(--muted)}.level-buy-row{margin-top:auto;display:flex;justify-content:space-between;gap:12px;align-items:center}.level-history-card{margin-top:22px}.inline-form select{border:1px solid rgba(255,255,255,.12);background:rgba(10,14,28,.82);color:#fff;border-radius:12px;padding:10px 12px}@media (max-width:1100px){.levels-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:680px){.level-summary-card{flex-direction:column;align-items:flex-start}.levels-grid{grid-template-columns:1fr}.level-big-badge{min-width:0;width:100%}}


.level-card.is-locked{opacity:.62;filter:saturate(.72)}
.level-mini-features{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
.level-mini-features span{font-size:12px;padding:5px 8px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.045);color:rgba(255,255,255,.82)}

/* Legal documents and acceptance blocks */
.legal-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(53,185,90,.18);
  background: rgba(255,255,255,.66);
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}
.legal-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #35b95a;
}
.legal-check a { color: #2f9b4b; font-weight: 950; text-decoration: underline; text-underline-offset: 3px; }
.legal-check.compact { margin-top: 12px; }
.legal-check.mini {
  grid-template-columns: 18px 1fr;
  gap: 8px;
  padding: 9px 10px;
  margin: 8px 0 10px;
  border-radius: 14px;
  font-size: 11px;
}
.legal-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.legal-company-grid { margin-bottom: 24px; }
.company-docs-card { margin-top: 18px; }
.contact-card code,
.legal-card code {
  background: rgba(255,255,255,.78);
  border-radius: 9px;
  padding: 2px 6px;
  color: var(--text);
  font-weight: 950;
}
.balance-topup-btn { margin-top: 14px; }
.topup-form .form-actions { align-items: end; }
.payment-redirect-card h1 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -.05em; margin: 16px 0 10px; }
.status.ok { background: rgba(211,255,218,.94); color: #247b3a; }
.status.bad { background: rgba(255,236,236,.95); color: #bd3838; }
.status.pending { background: rgba(255,241,204,.94); color: #966122; }

/* Safe text fitting for long nicknames, item names, legal links and mobile buttons */
.btn,
.nav a,
.copy-chip,
.status,
.shop-category-tab,
.product-tag,
.balance-pill,
.eyebrow {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.product-card,
.feature-card,
.contact-card,
.legal-card,
.cart-card,
.cart-summary-card,
.orders-card,
.profile-card,
.wallet-item,
.order-item,
.cart-item,
.level-card,
.policy-summary-item,
.notice-card,
.balance-box,
.profile-lines {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-card h2,
.product-card p,
.feature-card h3,
.feature-card p,
.contact-card h2,
.contact-card p,
.legal-card h1,
.legal-card h2,
.legal-card p,
.wallet-item strong,
.wallet-item small,
.order-item strong,
.order-item small,
.cart-product-left strong,
.cart-product-left small,
.profile-lines strong,
.balance-box strong,
.level-card h3,
.level-card p,
.level-mini-features span {
  overflow-wrap: anywhere;
  word-break: normal;
}

.account-actions,
.hero-actions,
.cart-actions-line,
.legal-actions-grid,
.inline-actions,
.form-actions {
  min-width: 0;
}

.account-actions .btn,
.hero-actions .btn,
.legal-actions-grid .btn,
.cart-actions-line .btn,
.inline-actions .btn,
.form-actions .btn {
  flex: 1 1 auto;
  min-width: min(220px, 100%);
}

.product-meta,
.level-card-head,
.level-buy-row,
.profile-lines,
.wallet-item,
.order-item {
  min-width: 0;
}

.wallet-item > div,
.order-item > div,
.cart-product-left > div,
.level-card-head > *,
.level-buy-row > *,
.profile-lines > * {
  min-width: 0;
}

@media (max-width: 760px) {
  .container { width: min(100% - 22px, 1180px); }
  .header-inner { gap: 10px; }
  .brand-text small { display: none; }
  .page-hero { padding-top: 44px; }
  .hero h1, .page-hero h1, .section-head h2, .cta-card h2 { line-height: 1; }
  .btn { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 17px; }
  .account-actions .btn, .hero-actions .btn, .legal-actions-grid .btn, .cart-actions-line .btn, .inline-actions .btn, .form-actions .btn { min-width: 0; }
  .wallet-item, .order-item, .profile-lines, .level-buy-row, .level-card-head { display: grid; gap: 8px; }
  .wallet-item b, .profile-lines strong { text-align: left; }
  .product-meta { align-items: flex-start; flex-direction: column; }
  .product-meta strong { font-size: 24px; }
  .shop-category-tabs, .admin-category-tabs { grid-template-columns: 1fr; }
  .shop-category-tab { border-radius: 20px; }
}

/* VK-like messenger */
.nav-icon-link { position: relative; }
.message-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ff5f5f;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 8px 16px rgba(255,95,95,.25);
}
.vk-messages-section { padding-top: 18px; }
.vk-messenger-shell {
  display: grid;
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  min-height: min(760px, 78vh);
  background: rgba(255,255,255,.74);
  border: 2px solid rgba(255,255,255,.86);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.vk-thread-panel,
.vk-chat-panel { min-width: 0; }
.vk-thread-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: rgba(255,255,255,.55);
  border-right: 2px solid rgba(53,185,90,.10);
}
.vk-panel-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.vk-panel-top h2,
.vk-chat-header h2 { margin: 0; letter-spacing: -.035em; overflow-wrap: anywhere; }
.vk-new-chat { position: relative; z-index: 3; }
.vk-new-chat summary { list-style: none; white-space: nowrap; }
.vk-new-chat summary::-webkit-details-marker { display: none; }
.vk-new-chat-form {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, 84vw);
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255,255,255,.96);
  border: 2px solid rgba(53,185,90,.14);
  box-shadow: var(--shadow);
}
.vk-new-chat-form .field,
.vk-search-box { display: grid; gap: 7px; font-weight: 950; color: var(--soft); }
.vk-new-chat-form input,
.vk-new-chat-form textarea,
.vk-search-box input,
.vk-inline-form input {
  width: 100%;
  border: 2px solid rgba(53,185,90,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  color: var(--text);
  outline: none;
  padding: 12px 13px;
  font-weight: 850;
  min-width: 0;
}
.vk-new-chat-form textarea { resize: vertical; min-height: 64px; }
.vk-new-chat-form small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.vk-search-box span { font-size: 13px; }
.vk-thread-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}
.vk-thread-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 11px;
  border-radius: 22px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,.58);
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.vk-thread-item:hover { transform: translateY(-1px); background: rgba(255,255,255,.86); }
.vk-thread-item.is-active {
  background: linear-gradient(180deg, rgba(232,255,218,.92), rgba(255,248,223,.80));
  border-color: rgba(53,185,90,.20);
}
.vk-thread-item.has-unread .vk-thread-preview,
.vk-thread-item.has-unread strong { color: var(--text); font-weight: 950; }
.vk-thread-avatar,
.vk-chat-avatar,
.vk-msg-avatar,
.vk-chat-members a img,
.vk-chat-members a span {
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #fff8df, #e8ffda);
  border: 2px solid rgba(255,255,255,.95);
  color: #2e8b42;
  font-weight: 950;
  flex: 0 0 auto;
}
.vk-thread-avatar { width: 52px; height: 52px; border-radius: 18px; font-size: 21px; }
.vk-chat-avatar.big { width: 62px; height: 62px; border-radius: 22px; font-size: 25px; }
.vk-thread-avatar img,
.vk-chat-avatar img,
.vk-msg-avatar img,
.vk-chat-members a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vk-thread-body { display: grid; gap: 3px; min-width: 0; }
.vk-thread-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.vk-thread-row strong,
.vk-thread-preview,
.vk-thread-meta,
.vk-chat-header p,
.vk-msg-bubble p {
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}
.vk-thread-row strong { white-space: nowrap; font-size: 15px; }
.vk-thread-row time { color: var(--muted); font-size: 11px; font-weight: 850; white-space: nowrap; }
.vk-thread-preview { color: var(--muted); font-size: 13px; font-weight: 850; white-space: nowrap; }
.vk-thread-meta { display: flex; gap: 7px; flex-wrap: wrap; }
.vk-thread-meta em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 900; }
.vk-unread-pill {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #35b95a;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}
.vk-chat-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(232,255,218,.28));
}
.vk-chat-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px 14px;
  border-bottom: 2px solid rgba(53,185,90,.08);
}
.vk-chat-title-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.vk-chat-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.vk-chat-settings { position: relative; z-index: 2; }
.vk-chat-settings summary { list-style: none; white-space: nowrap; }
.vk-chat-settings summary::-webkit-details-marker { display: none; }
.vk-settings-box {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(430px, 88vw);
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255,255,255,.97);
  border: 2px solid rgba(53,185,90,.14);
  box-shadow: var(--shadow);
}
.vk-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.vk-settings-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.vk-chat-members {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 20px;
  border-bottom: 2px solid rgba(53,185,90,.06);
}
.vk-chat-members a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}
.vk-chat-members a img,
.vk-chat-members a span { width: 25px; height: 25px; border-radius: 999px; font-size: 12px; }
.vk-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 22px;
  scroll-behavior: smooth;
}
.vk-message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  max-width: min(78%, 690px);
}
.vk-message.is-mine {
  grid-template-columns: minmax(0, 1fr);
  align-self: flex-end;
}
.vk-message.is-other { align-self: flex-start; }
.vk-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  text-decoration: none;
  align-self: end;
}
.vk-msg-avatar span { font-size: 15px; }
.vk-msg-bubble {
  min-width: 0;
  padding: 11px 13px;
  border-radius: 21px 21px 21px 8px;
  background: rgba(255,255,255,.90);
  border: 2px solid rgba(255,255,255,.86);
  box-shadow: var(--small-shadow);
}
.vk-message.is-mine .vk-msg-bubble {
  border-radius: 21px 21px 8px 21px;
  background: linear-gradient(180deg, rgba(232,255,218,.98), rgba(255,248,223,.86));
  border-color: rgba(53,185,90,.12);
}
.vk-msg-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.vk-msg-head b { font-size: 13px; overflow-wrap: anywhere; }
.vk-msg-head time { color: var(--muted); font-size: 11px; font-weight: 850; white-space: nowrap; }
.vk-msg-bubble p {
  margin: 6px 0 0;
  color: var(--soft);
  font-weight: 760;
  line-height: 1.45;
  white-space: normal;
}
.vk-msg-photo {
  display: inline-block;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 18px;
  border: 2px solid rgba(53,185,90,.12);
  background: #fff;
  max-width: 100%;
}
.vk-msg-photo img { display: block; max-width: min(100%, 380px); max-height: 360px; object-fit: cover; }
.vk-chat-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  background: rgba(255,255,255,.82);
  border-top: 2px solid rgba(53,185,90,.09);
}
.vk-chat-form textarea {
  width: 100%;
  min-height: 46px;
  max-height: 150px;
  resize: none;
  border: 2px solid rgba(53,185,90,.15);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  color: var(--text);
  outline: none;
  padding: 13px 14px;
  font-weight: 850;
}
.vk-file-button {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255,248,223,.95);
  border: 2px solid rgba(53,185,90,.14);
  color: #205c33;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}
.vk-file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vk-chat-empty {
  align-self: center;
  justify-self: center;
  max-width: 430px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.vk-chat-empty > div { font-size: 48px; }
.vk-chat-empty h2,
.vk-chat-empty h3 { color: var(--text); margin: 6px 0; }
.vk-chat-empty.small { align-self: center; margin: auto; }
.vk-chat-empty.small > div { font-size: 34px; }
@media (max-width: 980px) {
  .vk-messenger-shell { grid-template-columns: 1fr; min-height: auto; }
  .vk-thread-panel { border-right: 0; border-bottom: 2px solid rgba(53,185,90,.10); max-height: 420px; }
  .vk-chat-panel { min-height: 620px; }
  .vk-message { max-width: 92%; }
}
@media (max-width: 640px) {
  .vk-messages-hero .account-hero-row { gap: 14px; }
  .vk-thread-panel { padding: 13px; }
  .vk-chat-header { padding: 14px; flex-direction: column; }
  .vk-chat-title-row { align-items: flex-start; }
  .vk-chat-avatar.big { width: 50px; height: 50px; border-radius: 18px; }
  .vk-settings-box { left: 0; right: auto; width: calc(100vw - 42px); }
  .vk-inline-form { grid-template-columns: 1fr; }
  .vk-chat-members { padding: 9px 14px; }
  .vk-chat-messages { padding: 14px; }
  .vk-message { max-width: 98%; grid-template-columns: 32px minmax(0, 1fr); }
  .vk-msg-avatar { width: 32px; height: 32px; border-radius: 13px; }
  .vk-msg-photo img { max-width: 100%; max-height: 300px; }
  .vk-chat-form { grid-template-columns: auto 1fr auto; gap: 7px; padding: 10px; }
  .vk-file-button span { display: none; }
  .vk-chat-form .btn { min-width: 46px; padding-left: 12px; padding-right: 12px; }
}

/* Support tickets */
.nav-support { position: relative; }
.nav-support .support-badge {
  position: static;
  margin-left: 6px;
  display: inline-flex;
  vertical-align: middle;
}
.support-layout {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.support-card,
.support-thread-shell {
  background: rgba(255,255,255,.86);
  border: 2px solid rgba(53,185,90,.12);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
}
.support-list-card { min-width: 0; }
.support-form,
.support-reply-form {
  display: grid;
  gap: 14px;
}
.support-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.support-ticket-list {
  display: grid;
  gap: 12px;
}
.support-ticket-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  border: 2px solid rgba(53,185,90,.10);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
  min-width: 0;
}
.support-ticket-item:hover {
  transform: translateY(-2px);
  border-color: rgba(53,185,90,.24);
  background: rgba(255,255,255,.96);
}
.support-ticket-item.has-answer,
.support-ticket-item.needs-admin {
  border-color: rgba(255,171,93,.38);
  background: rgba(255,248,223,.78);
}
.support-ticket-icon {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,217,93,.9), rgba(131,223,103,.7));
  box-shadow: var(--small-shadow);
  font-size: 22px;
}
.support-ticket-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.support-ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.support-ticket-row strong,
.support-ticket-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-ticket-row time,
.support-ticket-meta em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  flex: 0 0 auto;
}
.support-ticket-preview {
  color: var(--soft);
  font-weight: 750;
}
.support-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.support-ticket-meta em {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(69,189,244,.10);
  border: 1px solid rgba(69,189,244,.12);
}
.support-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.support-filter-tab {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 2px solid rgba(53,185,90,.12);
  color: var(--soft);
  font-weight: 900;
}
.support-filter-tab.is-active {
  background: linear-gradient(135deg, rgba(131,223,103,.36), rgba(69,189,244,.20));
  color: var(--text);
  border-color: rgba(53,185,90,.30);
}
.support-thread-shell {
  max-width: 980px;
}
.support-thread-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid rgba(53,185,90,.10);
}
.support-thread-head small { color: var(--muted); font-weight: 800; }
.admin-thread-head { align-items: flex-start; }
.support-status-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.support-message-list {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.support-message {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  max-width: 86%;
}
.support-message.is-admin { margin-left: auto; grid-template-columns: minmax(0, 1fr) 44px; }
.support-message.is-admin .support-message-avatar { grid-column: 2; grid-row: 1; }
.support-message.is-admin .support-message-bubble { grid-column: 1; grid-row: 1; background: rgba(220,247,255,.88); border-color: rgba(69,189,244,.22); }
.support-message-avatar {
  width: 44px;
  height: 44px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: rgba(255,248,223,.95);
  border: 2px solid rgba(53,185,90,.12);
  font-weight: 950;
  overflow: hidden;
}
.support-message-bubble {
  background: rgba(255,255,255,.90);
  border: 2px solid rgba(53,185,90,.10);
  border-radius: 24px;
  padding: 13px 15px;
  min-width: 0;
}
.support-message-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.support-message-head strong { overflow-wrap: anywhere; }
.support-message-head time { color: var(--muted); font-size: 13px; font-weight: 800; white-space: nowrap; }
.support-message-bubble p {
  margin: 0;
  color: var(--soft);
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.support-reply-form {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.70);
  border: 2px solid rgba(53,185,90,.10);
}
.support-file-inline input { max-width: 100%; }
.admin-support-list .support-ticket-item { grid-template-columns: 48px minmax(0, 1fr) auto; }
@media (max-width: 980px) {
  .support-layout { grid-template-columns: 1fr; }
  .support-thread-shell { max-width: none; }
}
@media (max-width: 640px) {
  .support-card,
  .support-thread-shell { padding: 15px; border-radius: 24px; }
  .support-two-cols { grid-template-columns: 1fr; }
  .support-ticket-item { grid-template-columns: 42px minmax(0, 1fr); align-items: start; }
  .support-ticket-item > .status { grid-column: 2; justify-self: start; }
  .support-ticket-icon { width: 42px; height: 42px; border-radius: 15px; }
  .support-ticket-row { display: grid; gap: 3px; }
  .support-ticket-row time { font-size: 12px; }
  .support-thread-head { align-items: flex-start; flex-direction: column; }
  .support-message,
  .support-message.is-admin { max-width: 100%; grid-template-columns: 36px minmax(0, 1fr); margin-left: 0; }
  .support-message.is-admin .support-message-avatar { grid-column: 1; }
  .support-message.is-admin .support-message-bubble { grid-column: 2; }
  .support-message-avatar { width: 36px; height: 36px; border-radius: 14px; }
  .support-message-head { align-items: flex-start; flex-direction: column; gap: 2px; }
}

/* Tailwind-style 2026 redesign layer: soft Minecraft blocks, child-friendly colors, safe text wrapping, PJAX transitions */
:root {
  --tw-sky-50: #f0fbff;
  --tw-sky-100: #dff7ff;
  --tw-emerald-50: #edfff4;
  --tw-emerald-100: #d8ffe7;
  --tw-emerald-300: #78f0a0;
  --tw-emerald-500: #22c55e;
  --tw-amber-100: #fff1bf;
  --tw-amber-300: #ffd766;
  --tw-rose-400: #fb7185;
  --tw-indigo-500: #6366f1;
  --tw-card: rgba(255,255,255,.82);
  --tw-card-strong: rgba(255,255,255,.94);
  --tw-ring: rgba(34,197,94,.18);
  --tw-shadow-xl: 0 24px 70px rgba(37, 99, 115, .18);
  --tw-shadow-md: 0 14px 34px rgba(37, 99, 115, .12);
}

body[data-theme="mavix-tailwind"] {
  background:
    radial-gradient(circle at 8% 12%, rgba(255,255,255,.95) 0 7%, transparent 8%),
    radial-gradient(circle at 88% 18%, rgba(255,241,191,.86) 0 8%, transparent 9%),
    linear-gradient(180deg, #caf4ff 0%, #effcff 42%, #f6ffe8 100%);
}

body[data-theme="mavix-tailwind"]:before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .62;
  background-image:
    linear-gradient(rgba(45, 142, 79, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 142, 79, .07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 74%);
}

.site-header {
  background: rgba(255,255,255,.76);
  border-bottom: 1px solid rgba(255,255,255,.88);
  backdrop-filter: blur(24px) saturate(1.18);
}
.header-inner { min-height: 76px; height: auto; padding: 10px 0; }
.brand-mark {
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.35), transparent 42%),
    linear-gradient(135deg, #86efac 0 50%, #22c55e 50% 100%);
  box-shadow: 0 14px 0 rgba(21,128,61,.10), 0 22px 34px rgba(34,197,94,.22);
}
.brand-text strong {
  background: linear-gradient(90deg, #166534, #0891b2, #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav a {
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: inset 0 -1px 0 rgba(34,197,94,.08);
}
.nav a:hover,
.nav a.is-active {
  background: linear-gradient(180deg, #ffffff, #fff7d6);
  color: #14532d;
  border-color: rgba(34,197,94,.24);
}
.nav-account {
  max-width: min(360px, 45vw);
  overflow: hidden;
  text-overflow: ellipsis;
}

main[data-pjax-root], main#pjax-main { transition: opacity .16s ease, transform .16s ease, filter .16s ease; }
main.is-pjax-fading { opacity: .45; transform: translateY(6px); filter: blur(.4px); }
body.is-pjax-loading { cursor: progress; }
body.is-pjax-loading .site-header:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, #38bdf8, #fbbf24, #fb7185);
  background-size: 220% 100%;
  animation: mavixBar 1s linear infinite;
}
@keyframes mavixBar { to { background-position: 220% 0; } }

.hero { padding-top: clamp(42px, 7vw, 82px); }
.hero-copy,
.hero-panel,
.page-hero .container,
.shop-top-panel,
.cta-card,
.feature-card,
.product-card,
.admin-card,
.admin-table-card,
.cart-card,
.cart-summary-card,
.orders-card,
.profile-card,
.legal-card,
.contact-card,
.support-card,
.support-thread-shell,
.vk-messenger-shell,
.notice-card,
.empty-state,
.level-summary-card,
.level-card {
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: var(--tw-shadow-xl);
}
.hero-copy {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.38));
  backdrop-filter: blur(18px);
}
.hero h1,
.page-hero h1,
.section-head h2,
.cta-card h2 {
  text-wrap: balance;
}
.hero h1 span,
.page-hero h1 span {
  color: #16a34a;
  text-shadow: 0 8px 0 rgba(255,255,255,.75), 0 18px 32px rgba(34,197,94,.18);
}
.server-photo-card,
.playground-card {
  border-radius: 38px;
  overflow: hidden;
  border: 10px solid rgba(255,255,255,.86);
  box-shadow: var(--tw-shadow-xl);
  background: rgba(255,255,255,.62);
}
.server-photo-card img { display: block; width: 100%; height: min(520px, 58vh); object-fit: cover; }

.btn {
  position: relative;
  min-height: 50px;
  border-radius: 18px;
  transform: translateZ(0);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.btn:before {
  content: '';
  position: absolute;
  inset: 2px 2px auto;
  height: 42%;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.44), transparent);
}
.btn:hover { transform: translateY(-2px) scale(1.01); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: linear-gradient(180deg, #fde68a, #fbbf24); color: #3a2705; }
.btn-secondary { background: linear-gradient(180deg, #bae6fd, #7dd3fc); color: #0c4a6e; }
.btn-ghost { background: rgba(255,255,255,.72); color: #14532d; }
.btn-product { background: linear-gradient(180deg, #bbf7d0, #4ade80); color: #064e3b; }
.btn.small { border-radius: 14px; }

.feature-grid,
.product-grid,
.legal-company-grid,
.stat-grid,
.wallet-grid,
.orders-grid {
  align-items: stretch;
}
.feature-card,
.product-card,
.shop-category-tab,
.support-ticket-item,
.vk-thread-item,
.cart-item,
.order-item,
.wallet-item {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.feature-card:hover,
.product-card:hover,
.shop-category-tab:hover,
.support-ticket-item:hover,
.vk-thread-item:hover,
.cart-item:hover,
.order-item:hover,
.wallet-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(37, 99, 115, .16);
}
.feature-icon,
.product-icon,
.product-image,
.support-ticket-icon {
  filter: drop-shadow(0 9px 12px rgba(37,99,115,.12));
}

.shop-top-panel,
.shop-search,
.shop-category-tabs,
.product-card,
.cart-card,
.cart-summary-card,
.support-card,
.support-thread-shell,
.vk-messenger-shell {
  backdrop-filter: blur(18px) saturate(1.08);
}
.shop-search,
.field input,
.field textarea,
.field select,
.topup-form input,
.topup-form select,
.vk-chat-form textarea,
.vk-new-chat-form input,
.vk-new-chat-form textarea,
.vk-search-box input,
.vk-inline-form input,
.support-status-form select,
.inline-form select {
  min-width: 0;
  border: 2px solid rgba(34,197,94,.16) !important;
  background: rgba(255,255,255,.88) !important;
  color: #1f2937 !important;
  border-radius: 18px !important;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.vk-chat-form textarea:focus,
.vk-new-chat-form input:focus,
.vk-new-chat-form textarea:focus,
.vk-search-box input:focus,
.vk-inline-form input:focus {
  border-color: rgba(14,165,233,.42) !important;
  box-shadow: 0 0 0 5px rgba(14,165,233,.12), inset 0 1px 0 rgba(255,255,255,.75);
}

.product-grid { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.68));
}
.product-card p { min-height: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card form { margin-top: auto; }
.product-image { flex: 0 0 auto; }
.product-image img { image-rendering: auto; }
.product-tag,
.product-category-pill,
.balance-pill,
.status,
.mc-badge,
.level-number,
.level-mini-features span {
  border-radius: 999px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.add-cart-box { gap: 10px; }
.qty-stepper { min-width: 0; }
.qty-stepper label { min-width: 86px; }
.qty-stepper input { min-width: 0; }

.vk-messenger-shell {
  background: rgba(255,255,255,.78);
  border-radius: 32px;
}
.vk-thread-panel { background: rgba(255,255,255,.56); }
.vk-chat-panel { background: linear-gradient(180deg, rgba(240,253,244,.72), rgba(239,246,255,.42)); }
.vk-chat-messages,
.support-message-list { scrollbar-width: thin; scrollbar-color: rgba(34,197,94,.34) transparent; }
.vk-chat-messages::-webkit-scrollbar,
.support-message-list::-webkit-scrollbar,
.vk-thread-list::-webkit-scrollbar { width: 8px; height: 8px; }
.vk-chat-messages::-webkit-scrollbar-thumb,
.support-message-list::-webkit-scrollbar-thumb,
.vk-thread-list::-webkit-scrollbar-thumb { background: rgba(34,197,94,.30); border-radius: 999px; }
.vk-msg-bubble,
.support-message-bubble {
  box-shadow: 0 12px 28px rgba(37,99,115,.10);
}
.vk-message.is-mine .vk-msg-bubble,
.support-message.is-admin .support-message-bubble {
  background: linear-gradient(180deg, #dcfce7, #fef9c3);
}
.vk-chat-form,
.support-reply-form {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
}

.support-layout { grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); }
.support-ticket-item { background: rgba(255,255,255,.72); }
.support-ticket-item.has-answer { background: linear-gradient(180deg, rgba(254,249,195,.88), rgba(255,255,255,.72)); }
.attachment-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(224,242,254,.78);
  border: 1px solid rgba(14,165,233,.20);
  color: #075985;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.level-summary-card,
.level-card {
  color: var(--text);
  background: rgba(255,255,255,.82) !important;
  border-color: rgba(34,197,94,.14) !important;
  box-shadow: var(--tw-shadow-md) !important;
}
.level-big-badge {
  color: #14532d;
  background: linear-gradient(180deg, #dcfce7, #bae6fd);
  border-color: rgba(34,197,94,.22);
}
.level-card.is-owned { background: linear-gradient(180deg, #f0fdf4, #ffffff) !important; }
.level-card p,
.level-features span,
.level-mini-features span { color: var(--soft); }
.level-features li { border-bottom-color: rgba(34,197,94,.12); }

.admin-table-card { overflow-x: auto; }
.admin-table { min-width: 760px; }
.admin-table td { background: rgba(255,255,255,.82); }

.toast {
  border-radius: 22px;
  background: rgba(17,24,39,.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(17,24,39,.25);
}

/* universal anti-bug fitting */
*, *::before, *::after { min-width: 0; }
img, video { max-width: 100%; height: auto; }
pre, code, .legal-card, .contact-card, .admin-table, .support-ticket-row strong, .vk-thread-row strong { overflow-wrap: anywhere; }
button, .btn, .nav a, .shop-category-tab, .support-filter-tab { user-select: none; }

@media (max-width: 1100px) {
  .nav { gap: 6px; }
  .nav a { padding-inline: 12px; font-size: 14px; }
  .brand-text strong { font-size: 20px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 0; }
}

@media (max-width: 860px) {
  .nav {
    left: 12px;
    right: 12px;
    top: 82px;
    border-radius: 26px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.84);
    box-shadow: var(--tw-shadow-xl);
  }
  .nav a { width: 100%; justify-content: center; }
  .nav-icon-link,
  .nav-cart { width: 100%; min-width: 0; }
  .nav-account { max-width: none; }
  .message-badge,
  .cart-badge { right: calc(50% - 38px); }
  .nav-support .support-badge { margin-left: 8px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 20px, 1180px); }
  .hero-copy,
  .feature-card,
  .product-card,
  .support-card,
  .support-thread-shell,
  .vk-messenger-shell,
  .cart-card,
  .cart-summary-card,
  .legal-card,
  .contact-card { border-radius: 24px; }
  .hero h1, .page-hero h1 { font-size: clamp(34px, 11vw, 54px); }
  .section-head h2, .cta-card h2 { font-size: clamp(30px, 9vw, 44px); }
  .hero p, .small-hero p, .section-head p, .cta-card p { font-size: 16px; line-height: 1.55; }
  .product-grid { grid-template-columns: 1fr; }
  .add-cart-box, .vk-chat-form { grid-template-columns: 1fr; }
  .vk-file-button span { display: inline; }
  .vk-chat-panel { min-height: 560px; }
  .vk-message, .vk-message.is-mine { max-width: 100%; }
  .support-ticket-preview { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .support-ticket-row strong { white-space: normal; }
}

/* =========================================================
   MavixPlay polish pass v6.1 — cleaner cards, readable shop,
   safer fitting for long text and mobile navigation.
   ========================================================= */
:root {
  --mavix-panel: rgba(255,255,255,.88);
  --mavix-panel-strong: rgba(255,255,255,.96);
  --mavix-border: rgba(255,255,255,.86);
  --mavix-soft-border: rgba(53,185,90,.16);
}

html, body { max-width: 100%; }
body { text-rendering: geometricPrecision; }
main { min-width: 0; }

.site-header { z-index: 80; }
.header-inner { min-width: 0; }
.nav { min-width: 0; }
.nav a { min-width: 0; }
.nav-account { max-width: 250px; overflow: hidden; text-overflow: ellipsis; }

.page-hero.shop-hero { padding: 56px 0 18px; }
.shop-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: stretch;
}
.shop-hero h1 { max-width: 780px; }
.shop-hero p { max-width: 760px; }
.shop-quick-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.shop-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 24px;
  min-height: 245px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,217,93,.52), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,255,218,.88));
  border: 3px solid var(--mavix-border);
  box-shadow: var(--shadow);
}
.shop-hero-card:after {
  content: '';
  position: absolute;
  inset: auto -28px -34px auto;
  width: 150px;
  height: 150px;
  border-radius: 40px;
  transform: rotate(14deg);
  background: linear-gradient(135deg, rgba(110,215,255,.4), rgba(255,139,184,.32));
}
.shop-hero-card > * { position: relative; z-index: 1; }
.shop-hero-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #fff8df;
  font-size: 32px;
  box-shadow: inset 0 -7px 0 rgba(206,137,38,.13);
}
.shop-hero-card span,
.shop-hero-card small { color: var(--muted); font-weight: 900; }
.shop-hero-card strong {
  color: #174229;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.055em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.shop-balance-mini {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  border: 2px solid rgba(53,185,90,.16);
  color: var(--soft);
  font-weight: 950;
  overflow-wrap: anywhere;
}
.shop-balance-mini b { color: #247b3a; }

.shop-how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.shop-how-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "num title" "num text";
  gap: 2px 12px;
  align-items: center;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  border: 2px solid var(--mavix-border);
  box-shadow: var(--small-shadow);
  min-width: 0;
}
.shop-how-grid b {
  grid-area: num;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(180deg, #9cf48b, #69dd6d);
  color: #174229;
  box-shadow: inset 0 -5px 0 rgba(33,135,69,.12);
}
.shop-how-grid span { grid-area: title; font-weight: 950; color: var(--text); overflow-wrap: anywhere; }
.shop-how-grid small { grid-area: text; color: var(--muted); font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }

.shop-search {
  position: sticky;
  top: 92px;
  z-index: 25;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(18px);
  border: 3px solid var(--mavix-border);
  box-shadow: 0 18px 38px rgba(83,144,152,.14);
}
.shop-search input { min-height: 54px; }
.shop-search .btn { min-width: 118px; }

.shop-category-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.shop-category-tab {
  min-height: 92px;
  border-radius: 26px;
  align-content: center;
  background: rgba(255,255,255,.74);
}
.shop-category-tab b,
.shop-category-tab small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.shop-category-tab small { white-space: nowrap; }
.shop-category-tab.is-active {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(53,185,90,.16);
}

.shop-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 0 18px;
  min-width: 0;
}
.shop-section-title h2 {
  margin: 10px 0 6px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.05em;
}
.shop-section-title p { margin: 0; color: var(--muted); font-weight: 850; line-height: 1.55; }
.shop-result-pill {
  flex: 0 0 auto;
  padding: 12px 15px;
  border-radius: 999px;
  background: #fff8df;
  border: 2px solid rgba(255,255,255,.86);
  color: #966122;
  font-weight: 950;
  box-shadow: var(--small-shadow);
}

.product-grid,
.product-grid-modern {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  align-items: stretch;
  gap: 18px;
}
.product-card-modern {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.80));
  border: 3px solid var(--mavix-border);
  isolation: isolate;
}
.product-card-modern:before { height: 8px; z-index: 1; }
.product-card-bg {
  position: absolute;
  inset: 8px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 16%, rgba(255,217,93,.30), transparent 36%),
    radial-gradient(circle at 84% 12%, rgba(110,215,255,.25), transparent 28%);
  z-index: -1;
}
.product-card-modern .product-top { margin-bottom: 12px; }
.product-image-modern {
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,248,223,.98), rgba(232,255,218,.88));
  border: 3px solid rgba(255,255,255,.88);
}
.product-image-modern img { width: 62px; height: 62px; object-fit: contain; image-rendering: pixelated; }
.product-card-modern .product-tag {
  max-width: 58%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-body { display: grid; gap: 8px; min-width: 0; }
.product-card-modern h2 {
  margin: 0;
  min-height: auto;
  font-size: clamp(20px, 2.5vw, 25px);
  line-height: 1.08;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-modern p {
  min-height: 0;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta-modern {
  margin: 16px 0 12px;
  padding: 13px 14px;
  border-radius: 22px;
  background: rgba(255,248,223,.72);
  border: 2px solid rgba(255,255,255,.82);
}
.product-meta-modern span { font-size: 13px; line-height: 1.25; }
.product-meta-modern strong { font-size: clamp(23px, 3vw, 30px); white-space: nowrap; }
.product-card-modern .add-to-cart-form { margin-top: auto; }
.product-card-modern .btn-product { min-height: 54px; }
.product-card-modern .enchanted-note { width: fit-content; margin: 0 0 12px; }

.add-cart-box { grid-template-columns: minmax(130px, .9fr) minmax(120px, 1fr); }
.qty-stepper { min-width: 0; }
.qty-stepper label { min-width: 0; }
.qty-stepper label span { white-space: nowrap; }
.qty-stepper input { min-width: 0; }

.cart-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 350px); }
.cart-item {
  grid-template-columns: minmax(0, 1fr) auto;
  background: rgba(255,255,255,.76);
}
.cart-product-left { min-width: 0; }
.cart-product-left > div { min-width: 0; }
.cart-product-left strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-product-left small { overflow-wrap: anywhere; }
.cart-product-right { min-width: 0; }
.cart-product-right .btn.small { min-height: 42px; padding: 10px 13px; border-radius: 15px; }
.cart-summary-card { border-radius: 32px; padding: 24px; }

.feature-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature-card { min-height: 0; }
.feature-card h3 { overflow-wrap: anywhere; }
.cta-card { border-radius: 34px; }

/* Make old dark level cards match the light playful design */
.level-summary-card,
.level-card,
.level-history-card {
  background: rgba(255,255,255,.84) !important;
  border: 3px solid rgba(255,255,255,.78) !important;
  box-shadow: var(--small-shadow) !important;
  color: var(--text);
}
.level-card.is-owned {
  background: linear-gradient(180deg, rgba(232,255,218,.94), rgba(255,255,255,.82)) !important;
  border-color: rgba(53,185,90,.28) !important;
}
.level-card.is-locked { opacity: .72; filter: saturate(.86); }
.level-number,
.level-mini-features span {
  background: rgba(255,248,223,.88) !important;
  border-color: rgba(53,185,90,.14) !important;
  color: var(--soft) !important;
}
.level-card p,
.level-features span { color: var(--muted) !important; }
.level-features li { border-bottom-color: rgba(60,104,88,.12) !important; }
.level-big-badge {
  background: linear-gradient(180deg, #9cf48b, #69dd6d) !important;
  color: #174229 !important;
  border: 3px solid rgba(255,255,255,.82) !important;
}
.inline-form select { background: rgba(255,255,255,.85) !important; color: var(--text) !important; border: 2px solid rgba(53,185,90,.16) !important; }

/* Universal no-overflow safety pass */
.card,
.admin-card,
.admin-table-card,
.docs-card,
.legal-card,
.contact-card,
.contact-form,
.notice-card,
.empty-state,
.vk-shell,
.vk-thread-item,
.vk-msg-bubble,
.support-ticket-card,
.support-message,
.profile-card,
.orders-card,
.order-item {
  min-width: 0;
  overflow-wrap: anywhere;
}
img, video { max-width: 100%; height: auto; }
pre, code { white-space: pre-wrap; overflow-wrap: anywhere; }
.table-actions .btn,
.admin-actions .btn,
.form-actions .btn { flex: 0 1 auto; }

@media (max-width: 1100px) {
  .shop-category-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-search { position: relative; top: auto; }
}
@media (max-width: 900px) {
  .shop-hero-grid,
  .shop-how-grid,
  .cart-grid { grid-template-columns: 1fr; }
  .shop-hero-card { min-height: 0; }
  .shop-section-title { align-items: flex-start; flex-direction: column; }
  .shop-result-pill { align-self: flex-start; }
  .cart-summary-card { position: static; }
}
@media (max-width: 760px) {
  .site-header { position: sticky; }
  .header-inner { height: 68px; }
  .brand-mark { width: 48px; height: 48px; border-radius: 17px; }
  .brand-mark span { width: 31px; height: 31px; font-size: 19px; }
  .brand-text strong { font-size: 19px; }
  .nav {
    position: fixed;
    left: 11px;
    right: 11px;
    top: 76px;
    max-height: calc(100vh - 90px);
    overflow: auto;
    padding: 12px;
    border-radius: 28px;
    background: rgba(255,255,255,.94);
    border: 3px solid rgba(255,255,255,.9);
    box-shadow: var(--shadow);
  }
  .nav a { justify-content: center; width: 100%; min-height: 48px; }
  .nav a.nav-icon-link, .nav a.nav-cart { width: 100%; min-width: 0; }
  .nav-account { max-width: 100%; }
  .page-hero.shop-hero { padding-top: 36px; }
  .shop-quick-actions .btn { flex: 1 1 100%; }
  .shop-category-tabs { grid-template-columns: 1fr 1fr; }
  .shop-category-tab { min-height: 82px; padding: 12px; border-radius: 22px; }
  .shop-category-tab small { display: none; }
  .product-grid, .product-grid-modern { grid-template-columns: 1fr; gap: 14px; }
  .product-card-modern { padding: 16px; border-radius: 28px; }
  .product-image-modern { width: 76px; height: 76px; border-radius: 24px; }
  .product-image-modern img { width: 54px; height: 54px; }
  .product-card-modern .product-tag { max-width: 55%; }
  .product-meta-modern { align-items: flex-start; }
  .add-cart-box { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 1fr; }
  .cart-product-left strong { white-space: normal; }
  .cart-product-right { justify-content: stretch; }
  .cart-product-right > * { flex: 1 1 100%; }
  .cart-product-right b { text-align: left; min-width: 0; }
  .qty-stepper.compact { max-width: 100%; width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-card { display: grid; }
}
@media (max-width: 420px) {
  .container { width: min(100% - 16px, 1180px); }
  .shop-category-tabs { grid-template-columns: 1fr; }
  .shop-how-grid article { grid-template-columns: 1fr; grid-template-areas: "num" "title" "text"; }
  .shop-how-grid b { width: 40px; height: 40px; }
}

.server-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 14px;
}
.server-info-grid article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 20px;
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  border: 3px solid rgba(255,255,255,.84);
  box-shadow: var(--small-shadow);
}
.server-info-grid span { color: #2f9b4b; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 950; }
.server-info-grid strong { color: #174229; font-size: clamp(20px, 3vw, 30px); line-height: 1.08; overflow-wrap: anywhere; }
.server-info-grid small { color: var(--muted); font-weight: 850; line-height: 1.45; }
.server-info-grid .copy-chip { justify-self: start; border: 0; }
@media (max-width: 900px) { .server-info-grid { grid-template-columns: 1fr; } }
