﻿@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-app: #0a0a0b;
  --bg-1: #131315;
  --bg-2: #1a1a1c;
  --bg-3: #222224;
  --line: #2c2c2f;
  --line-soft: #232326;
  --line-strong: #3a3a3e;

  --text-main: #e4e2df;
  --text-soft: #9c9a98;
  --text-faint: #66656a;

  --accent: #ff6a1a;
  --accent-dim: #cc5514;
  --accent-glow: rgba(255, 106, 26, 0.28);
  --accent-soft: rgba(255, 106, 26, 0.1);
  --accent-border: rgba(255, 106, 26, 0.4);

  --good: #4e9a63;
  --bad: #c94c4c;
  --warn: #c99a3b;

  --steam-blue: #1b2838;
  --steam-blue-hover: #24374b;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --mono: 'Share Tech Mono', monospace;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-app);
  color: var(--text-main);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
          linear-gradient(rgba(8, 8, 9, 0.42), rgba(8, 8, 9, 0.55)),
          url('/Images/flxback.png');
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center, center;
}

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-app); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 0; border: 1px solid var(--line); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

.mono { font-family: var(--mono); }

.site-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 108px 24px 64px;
  min-height: calc(100vh - 300px);
}

.site-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding 0.2s ease;
}

.site-navbar.scrolled {
  background: rgba(8, 8, 9, 0.96);
  padding: 10px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}

.brand-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.brand-subtitle {
  font-size: 0.68rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--mono);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--steam-blue);
  border: 1px solid #2f4a63;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nav-login-btn:hover { background: var(--steam-blue-hover); }

.nav-user-wrapper { position: relative; }

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.nav-user-btn:hover { border-color: var(--accent-border); }

.nav-user-name {
  font-weight: 600;
  font-size: 0.84rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-balance {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 6px;
  background: var(--bg-app);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.nav-user-balance small {
  color: var(--text-faint);
  font-family: var(--sans);
  font-size: 0.66rem;
  margin-left: 2px;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-faint);
  transition: transform 0.15s ease;
}

.nav-user-wrapper.open .nav-chevron { transform: rotate(180deg); }

.coin-icon {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 210;
}

.nav-user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s ease;
}

.nav-dropdown-item:hover { background: var(--bg-3); color: var(--accent); }
.nav-dropdown-item.danger { color: var(--bad); }
.nav-dropdown-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.cart-trigger {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.cart-trigger svg { width: 18px; height: 18px; }
.cart-trigger:hover { border-color: var(--accent-border); color: var(--accent); }

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #140800;
  font-size: 0.63rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hidden { display: none !important; }

.special-offer {
  position: fixed;
  top: 88px;
  left: 50%;
  width: 300px;
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -22px) scale(0.9);
}

.special-offer.visible {
  visibility: visible;
  pointer-events: auto;
  animation: specialOfferGlitchIn 900ms cubic-bezier(.2,.85,.25,1) forwards;
}

@keyframes specialOfferGlitchIn {
  0% { opacity: 0; transform: translate(-50%, -30px) scale(.85); filter: blur(6px); clip-path: inset(0 0 100% 0); }
  12% { opacity: .5; clip-path: inset(0 0 55% 0); transform: translate(-53%, -24px) scale(.88); }
  22% { opacity: .1; clip-path: inset(35% 0 25% 0); transform: translate(-47%, -18px) scale(.92); }
  34% { opacity: .85; clip-path: inset(0 0 0 0); transform: translate(-50%, -12px) scale(.98); filter: blur(2px); }
  46% { opacity: .35; filter: blur(3px); }
  60% { opacity: 1; filter: blur(0); transform: translate(-50%, -4px) scale(1.02); }
  80% { transform: translate(-50%, 2px) scale(.99); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); filter: none; clip-path: inset(0 0 0 0); }
}

.special-offer__link {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 10px 30px 10px 10px;
  background: var(--bg-1);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 16px var(--accent-glow);
  animation: specialOfferPulse 2.4s ease-in-out infinite;
  overflow: hidden;
}

.special-offer__link::before {
  content: '';
  position: absolute;
  inset: -40% 0 auto 0;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(255,106,26,.55), transparent);
  transform: translateY(-100%);
  pointer-events: none;
  z-index: 2;
}

.special-offer.visible .special-offer__link::before {
  animation: specialOfferScan 950ms ease-out 80ms forwards;
}

@keyframes specialOfferScan {
  0% { transform: translateY(-120%); opacity: 1; }
  70% { opacity: .5; }
  100% { transform: translateY(220%); opacity: 0; }
}

@keyframes specialOfferPulse {
  0%, 100% { box-shadow: 0 14px 32px rgba(0,0,0,.5), 0 0 10px var(--accent-glow); }
  50% { box-shadow: 0 14px 32px rgba(0,0,0,.5), 0 0 22px var(--accent-glow); }
}

.special-offer__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.special-offer__close:hover { color: var(--accent); }

.special-offer__image {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.special-offer__image img { width: 100%; height: 100%; object-fit: cover; }

.special-offer__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; justify-content: center; }

.special-offer__tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  position: relative;
}

.special-offer.visible .special-offer__tag::after {
  content: '_';
  animation: specialOfferBlinkCursor 1s step-end infinite;
}

@keyframes specialOfferBlinkCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.special-offer__title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.special-offer__price {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.btn-primary, .btn-steam, .btn-secondary, .btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
  text-align: center;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--accent);
  color: #140800;
}

.btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
.btn-primary:active:not(:disabled) { filter: brightness(0.95); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-steam {
  background: var(--steam-blue);
  color: #fff;
  border-color: #2f4a63;
}

.btn-steam:hover { background: var(--steam-blue-hover); }

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--line);
}

.btn-secondary:hover { border-color: var(--accent-border); color: var(--accent); }

.btn-danger-outline {
  background: transparent;
  color: var(--bad);
  border-color: rgba(201, 76, 76, 0.4);
}

.btn-large { padding: 15px 30px; font-size: 1rem; }

.link-secondary {
  display: inline-block;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--line);
}

.link-secondary:hover { color: var(--accent); border-color: var(--accent-border); }

.page-header {
  display: inline-block;
  margin-bottom: 28px;
  padding: 16px 28px;
  background: rgba(6, 6, 7, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.page-header h1 {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.page-header h2 {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.page-header h1:last-child { margin-bottom: 0; }

.page-subtitle {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0;
}

.accent-text { color: var(--accent); }

.section-title {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--text-main);
  text-transform: uppercase;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
  margin-bottom: 8px;
}

.donate-section {
  position: relative;
  margin: 0 0 32px;
  padding: 28px 22px 22px;
  border: 1px solid var(--section-accent, var(--line-strong));
  border-radius: 6px;
  background: rgba(10, 10, 11, 0.94);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sections-grid .donate-section { margin-bottom: 0; }

.donate-section__legend {
  position: absolute;
  top: -13px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 12px;
  background: rgba(32, 32, 35, 0.92);
  border-radius: 8px;
}

.donate-section__legend-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
}

.donate-section__legend-icon img { width: 100%; height: 100%; object-fit: cover; }

.donate-section__legend-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--section-accent, var(--accent));
  white-space: nowrap;
}

.donate-section__full-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.donate-section__full-row:last-child { margin-bottom: 0; }

.donate-section__compact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.donate-section__compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.donate-section__compact-grid--fixed2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.donate-section__compact-grid--fixed2 .donate-card--compact {
  flex: 1 1 calc(50% - 6px);
  max-width: calc(50% - 6px);
}

.donate-card {
  display: flex;
  align-items: center;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.donate-card--full {
  flex: 1 1 260px;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-1);
}

.donate-card--full:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.donate-card__avatar--full {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
}

.donate-card__avatar--full img { width: 100%; height: 100%; object-fit: cover; }

.donate-card__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.donate-card--full .donate-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.donate-card--full .donate-card__desc {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.4;
}

.donate-card--full .donate-card__price {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
}

.donate-card--compact {
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-1);
  width: 100%;
}

.donate-card--compact:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.donate-card__avatar--compact {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0.92rem;
}

.donate-card__avatar--compact img { width: 100%; height: 100%; object-fit: cover; }

.donate-card--compact .donate-card__title {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donate-card--compact .donate-card__price {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--accent);
  opacity: 0.85;
  flex-shrink: 0;
}

.builder-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 880px) {
  .builder-layout, .checkout-layout { grid-template-columns: 1fr; }
  .builder-side { position: static; }
}

.builder-static-panel {
  margin-bottom: 14px;
  padding: 16px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.block-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.privilege-feature-list { display: flex; flex-direction: column; gap: 6px; }
.privilege-feature { font-size: 0.85rem; color: var(--text-soft); }

/* Описание привилегии в верхней части модального окна (над составом и сроком) */
.privilege-intro {
  grid-column: 1 / -1;
  padding: 14px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-border);
  border-radius: var(--radius-md);
}

.privilege-intro__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-soft);
  white-space: pre-line;
}

.badge-editor { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.badge-editor-row { display: flex; gap: 10px; margin-bottom: 12px; }

.badge-editor-row input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-app);
  color: var(--text-main);
  font-size: 0.9rem;
}

.badge-editor-row input[type="text"]:focus { outline: none; border-color: var(--accent-border); }

.badge-preview {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.badge-editor-hint { margin: 10px 0 0; font-size: 0.76rem; color: var(--text-faint); }

.badge-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.badge-swatch:hover { transform: scale(1.12); }

.badge-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  cursor: pointer;
}

.checkbox-line input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}

.preference-slots-editor { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.preference-slot-list { display: flex; flex-direction: column; gap: 8px; }

.preference-slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.preference-slot-label { flex: 1; }
.preference-slot-suffix { color: var(--text-faint); font-size: 0.78rem; min-width: 46px; text-align: right; }

.builder-accordion { display: flex; flex-direction: column; gap: 10px; }

.accordion-item {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}

.accordion-header h4 {
  margin: 0 0 2px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.accordion-header .summary {
  font-size: 0.76rem;
  color: var(--text-faint);
}

.accordion-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.accordion-item.open .accordion-chevron { transform: rotate(180deg); color: var(--accent); }

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.accordion-item.open .accordion-body { grid-template-rows: 1fr; }

.accordion-body-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 18px;
  border-top: 1px solid var(--line-soft);
}

.accordion-item.open .accordion-body-inner { padding: 14px 18px 18px; }

.modifier-list { display: flex; flex-direction: column; gap: 2px; }

.modifier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.12s ease;
  cursor: pointer;
}

.modifier-item:hover { background: var(--bg-2); }

.modifier-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-main);
}

.modifier-item-unit-price { font-size: 0.74rem; color: var(--text-faint); }

.modifier-item-price {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  white-space: nowrap;
}

.qty-control { display: flex; align-items: center; gap: 12px; }

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.qty-btn:hover { border-color: var(--accent-border); color: var(--accent); }

.qty-value {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  color: var(--text-main);
}

.builder-side {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.builder-months {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.builder-servers-box {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.server-pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
}

.server-pick-row {
  --row-accent: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.server-pick-row img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.server-pick-row input { display: none; }

.server-pick-row.active {
  border-color: var(--row-accent);
  background: color-mix(in srgb, var(--row-accent) 14%, var(--bg-2));
  color: var(--text-main);
}

.servers-hint { margin-top: 10px; font-size: 0.78rem; color: var(--text-faint); }
.server-extra-note { margin: 6px 0 0; font-size: 0.76rem; color: var(--text-faint); }

.builder-price-box {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-breakdown-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-faint);
  padding: 4px 0;
}

.price-breakdown-line .delta { color: var(--accent); font-family: var(--mono); }

.price-total-row, .cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.price-total-row .label, .cart-total-row .label {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.price-total-row .value, .cart-total-row .value {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--mono);
  color: var(--accent);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 5, 0.7);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
  z-index: 400;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.topup-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  width: 360px;
  max-width: 92vw;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  z-index: 401;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.topup-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }

.topup-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.topup-modal-header h3 { margin: 0; font-family: var(--mono); font-size: 1rem; font-weight: 700; text-transform: uppercase; }

.topup-modal-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.topup-modal-body label { font-size: 0.82rem; color: var(--text-soft); }
.topup-modal-body input {
  background: var(--bg-app); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 12px; color: var(--text-main); font-size: 0.95rem;
}
.topup-modal-body input:focus { outline: none; border-color: var(--accent-border); }
.topup-modal-preview { font-size: 0.85rem; color: var(--text-soft); }
.topup-modal-preview span { color: var(--accent); font-weight: 700; font-family: var(--mono); }

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 5, 0.7);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
  z-index: 300;
}

.cart-drawer-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  bottom: 0;
  width: 400px;
  max-width: 92vw;
  background: var(--bg-1);
  border-left: 1px solid var(--line);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-header h3 { margin: 0; font-family: var(--mono); font-size: 1rem; font-weight: 700; text-transform: uppercase; }

.cart-drawer-close {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.cart-drawer-close:hover { color: var(--accent); }

.cart-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-page-list {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-height: 200px;
}

.cart-drawer-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.cart-drawer-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-line {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  transition: opacity .28s ease, max-height .3s ease, margin .3s ease, padding .3s ease, transform .28s ease;
}

.cart-line.removing {
  opacity: 0;
  transform: translateX(10px);
}

.cart-line-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-3);
  flex-shrink: 0;
}

.cart-line-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-line-title {
  font-weight: 700;
  font-size: 0.9rem;
  padding-right: 20px;
}

.cart-line-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-line-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  color: var(--text-soft);
  border: 1px solid var(--line-soft);
}

.cart-line-tag.badge-tag {
  color: #fff;
  border: none;
  font-weight: 700;
}

.cart-line-price {
  margin-top: 4px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

.cart-line-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.cart-line-remove:hover { color: var(--bad); }

@keyframes cartBump {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.25); }
  60% { transform: scale(0.95); }
}
.cart-trigger.cart-bump { animation: cartBump .35s ease; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.checkout-target {
  display: flex;
  gap: 8px;
  padding: 5px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.checkout-target input { position: absolute; opacity: 0; pointer-events: none; }

.checkout-target label {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.checkout-target input:checked + label {
  background: var(--accent);
  color: #140800;
}

.recipient-field {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.recipient-field.visible { display: flex; }

.recipient-field input {
  background: var(--bg-app);
  color: var(--text-main);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 0.9rem;
}

.recipient-field input:focus { outline: none; border-color: var(--accent-border); }

.simple-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 440px;
}

.simple-form label {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 10px;
}

.recipient-hint {
  margin: 6px 0 0;
  font-size: 0.76rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.recipient-hint code {
  color: var(--text-soft);
  background: var(--bg-2);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--mono);
}

.checkout-pay-stack {
  display: flex;
  flex-direction: column;
}

.checkout-topup-btn {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  pointer-events: none;
  transition: max-height .35s ease, opacity .35s ease, margin-top .35s ease, padding .35s ease;
}

.checkout-topup-btn.visible {
  max-height: 60px;
  opacity: 1;
  margin-top: 10px;
  padding-top: 15px;
  padding-bottom: 15px;
  pointer-events: auto;
}

.btn-primary.btn-insufficient {
  background: var(--bg-3);
  color: var(--bad);
  border: 1px solid rgba(201, 76, 76, 0.5);
  cursor: not-allowed;
}

.btn-primary.btn-insufficient:hover { filter: none; }

.visibility-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(19, 19, 21, 0.45);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0.55;
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

.visibility-toggle:hover {
  opacity: 1;
  border-color: var(--accent-border);
  color: var(--accent);
}

.visibility-toggle svg { width: 20px; height: 20px; }
.visibility-toggle .icon-eye-closed { display: none; }
.visibility-toggle.active .icon-eye-open { display: none; }
.visibility-toggle.active .icon-eye-closed { display: block; }

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 9, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-top: 40px;
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 30px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 28px 40px;
  align-items: start;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.site-footer__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 2px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.site-footer__brand img {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--text-faint);
}

.site-footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
  transition: color .18s ease;
  word-break: break-word;
}

.site-footer__contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
}

.site-footer__contact:hover { color: var(--accent); }
.site-footer__contact:hover svg { opacity: 1; }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(19, 19, 21, 0.55);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.legal-link:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

@media (max-width: 860px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 20px 26px;
  }
}

body.site-hidden .site-main,
body.site-hidden .site-footer,
body.site-hidden .cart-drawer-overlay,
body.site-hidden .cart-drawer,
body.site-hidden .store-modal-overlay,
body.site-hidden .store-modal,
body.site-hidden .modal-overlay,
body.site-hidden .topup-modal,
body.site-hidden .special-offer {
  visibility: hidden !important;
  pointer-events: none !important;
}

.simple-form input, .simple-form textarea {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: inherit;
}

.simple-form input:focus, .simple-form textarea:focus {
  outline: none;
  border-color: var(--accent-border);
}

.simple-form button { margin-top: 20px; }

.field-error { color: var(--bad); font-size: 0.78rem; }

.validation-summary ul { margin: 0; padding-left: 18px; color: var(--bad); font-size: 0.85rem; }
.validation-summary:empty { display: none; }

.alert-ok {
  background: rgba(78, 154, 99, 0.12);
  border: 1px solid rgba(78, 154, 99, 0.35);
  color: var(--good);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tx-table th, .tx-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}

.tx-table th {
  color: var(--text-faint);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  background: var(--bg-2);
  font-family: var(--mono);
}

.tx-table tbody tr:last-child td { border-bottom: none; }
.tx-table tbody tr:hover { background: var(--bg-2); }

.amount-positive { color: var(--good); font-family: var(--mono); font-weight: 700; }
.amount-negative { color: var(--bad); font-family: var(--mono); font-weight: 700; }

.pagination { display: flex; gap: 6px; margin-top: 18px; }

.page-link {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-soft);
}

.page-link:hover { border-color: var(--accent-border); color: var(--accent); }
.page-link.active { background: var(--accent); border-color: transparent; color: #140800; font-weight: 700; }

.result-card {
  max-width: 480px;
  margin: 40px auto;
  padding: 32px;
  text-align: center;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.result-card h1 { font-family: var(--mono); font-size: 1.2rem; margin: 0 0 10px; text-transform: uppercase; }
.result-card p { color: var(--text-soft); margin: 0 0 20px; }

.result-ok { border-color: rgba(78, 154, 99, 0.35); }
.result-ok h1 { color: var(--good); }

.result-fail { border-color: rgba(201, 76, 76, 0.35); }
.result-fail h1 { color: var(--bad); }

.result-pending { border-color: rgba(201, 154, 59, 0.35); }
.result-pending h1 { color: var(--warn); }

body.modal-open { overflow: hidden; }

.store-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 5, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1000;
}

.store-modal-overlay.open { opacity: 1; visibility: visible; }

.server-pick-row.locked {
  cursor: default;
}

.server-pick-row.locked::after {
  content: 'обязательно';
  margin-left: auto;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  white-space: nowrap;
}

.badge-editor-hint--required {
  color: var(--warn);
}

.store-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.97);
  width: min(960px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  z-index: 1001;
  overflow: hidden auto;
  transition: opacity .22s ease, transform .28s cubic-bezier(.2,.9,.3,1.1), visibility .22s ease;
}

.store-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.store-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: border-color .15s ease, color .15s ease;
}


.offer-doc {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 32px 36px;
  background: rgba(10, 10, 11, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.offer-doc h2 {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 32px 0 14px;
}

.offer-doc h2:first-of-type { margin-top: 8px; }

.offer-header-wrap {
  text-align: center;
}

.offer-doc p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 0 12px;
}

.offer-doc ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.offer-doc ul li {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 6px;
}

.offer-doc a {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent-border);
}

.offer-doc a:hover { color: #fff; }

.offer-doc__divider {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 28px 0 18px;
}

.offer-doc__footer {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
}

.offer-doc__meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
}

.offer-doc__operator {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent-border);
  border-radius: var(--radius-sm);
}

.offer-doc__operator strong { color: var(--text-main); }

.offer-doc__table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.offer-doc__table {
  width: 100%;
  border-collapse: collapse;
}

.offer-doc__table th {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.offer-doc__table td {
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-soft);
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.offer-doc__table td:last-child {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  white-space: nowrap;
}

.offer-doc__table tr:last-child td { border-bottom: none; }

.offer-doc__steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 18px;
}

.offer-doc__steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 18px;
}

.offer-doc__steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.offer-doc__steps h3 {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin: 4px 0 8px;
}

.offer-doc__steps > li:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .offer-doc { padding: 20px 18px 28px; }

  .offer-doc__table,
  .offer-doc__table tbody,
  .offer-doc__table tr,
  .offer-doc__table td { display: block; width: 100%; }

  .offer-doc__table thead { display: none; }

  .offer-doc__table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .offer-doc__table td {
    padding: 2px 0;
    border: none;
  }

  .offer-doc__table td:last-child { white-space: normal; }

  .offer-doc__steps > li { padding-left: 38px; }
}

.store-modal-close:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.store-modal-body { padding: 24px 26px 26px; }

.store-modal-loading {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-faint);
  font-size: .95rem;
}

@media (max-width: 720px) {
  .store-modal {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    top: 0;
    left: 0;
    transform: translateY(12px);
  }
  .store-modal.open { transform: translateY(0); }
}

@media (max-width: 700px) {
  .donate-section__compact-grid--fixed2 .donate-card--compact {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .site-main { padding: 96px 14px 60px; }
  .nav-user-name { display: none; }
  .cart-drawer { width: 100vw; }
  .special-offer { display: none; }
  .donate-card--full { flex: 1 1 100%; }
}
.privilege-explainer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 2px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.privilege-explainer__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 16px;
  text-align: center;
}

.privilege-explainer__text {
  font-size: 0.79rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.privilege-explainer__text strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-main);
  font-weight: 600;
}

.builder-side {
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.builder-price-box {
  flex-shrink: 0;
}

#priceBreakdown {
  max-height: 30vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.builder-price-box .btn-primary {
  flex-shrink: 0;
}

.store-modal .builder-side {
  top: 4px;
  max-height: calc(90vh - 56px);
}

.store-modal #priceBreakdown {
  max-height: 26vh;
}

@media (max-width: 880px) {
  .builder-side {
    max-height: none;
    overflow-y: visible;
  }

  #priceBreakdown,
  .store-modal #priceBreakdown {
    max-height: 200px;
  }
}

@media (max-width: 720px) {
  .store-modal .builder-side {
    max-height: none;
  }
}


/* ===================== Скидки на витрине ===================== */

.donate-card__price-old {
  text-decoration: line-through;
  color: var(--text-faint);
  font-size: 0.8em;
  margin-right: 6px;
}

.donate-card__discount {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--accent);
  color: #140800;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.price-breakdown-line .delta.negative { color: var(--good); }

/* ===================== Промокод в корзине ===================== */

.promo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.promo-field-row { display: flex; gap: 8px; }

.promo-field input {
  flex: 1;
  min-width: 0;
  background: var(--bg-app);
  color: var(--text-main);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 0.9rem;
  font-family: var(--mono);
  text-transform: uppercase;
}

.promo-field input:focus { outline: none; border-color: var(--accent-border); }
.promo-field input.applied { border-color: rgba(78, 154, 99, 0.6); }

.promo-field .btn-secondary { padding: 10px 14px; white-space: nowrap; }

.promo-status { font-size: 0.78rem; min-height: 1.2em; }
.promo-status.ok { color: var(--good); }
.promo-status.error { color: var(--bad); }

.cart-discount-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--good);
  padding-top: 6px;
}

.cart-discount-row .value { font-family: var(--mono); }

/* ===================== Модалка активации промокода ===================== */

.redeem-result { font-size: 0.85rem; min-height: 1.2em; }
.redeem-result.ok { color: var(--good); }
.redeem-result.error { color: var(--bad); }

/* ===================== Кабинет владельца ===================== */

.owner-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding: 6px;
  background: rgba(6, 6, 7, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.owner-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.owner-nav a:hover { color: var(--accent); background: var(--bg-2); }
.owner-nav a.active { background: var(--accent); color: #140800; }

.owner-flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.88rem;
  border: 1px solid rgba(78, 154, 99, 0.5);
  background: rgba(78, 154, 99, 0.12);
  color: #8fd3a1;
}

.owner-flash.error {
  border-color: rgba(201, 76, 76, 0.5);
  background: rgba(201, 76, 76, 0.12);
  color: #e39a9a;
}

.owner-panel {
  background: rgba(6, 6, 7, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 22px;
}

.owner-panel h2 {
  font-family: var(--mono);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.owner-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.owner-panel-head h2 { margin: 0; }

.owner-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.owner-stat {
  background: rgba(6, 6, 7, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.owner-stat .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.owner-stat .value { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.owner-stat .value small { font-size: 0.8rem; color: var(--text-faint); font-weight: 400; }

.owner-table-wrap { overflow-x: auto; }

.owner-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.owner-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.owner-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.owner-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.owner-table td.num, .owner-table th.num { text-align: right; font-family: var(--mono); }
.owner-table .muted { color: var(--text-faint); }
.owner-table .inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.owner-table .inline-form input[type="number"] { width: 90px; }

.owner-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 18px;
}

.owner-form .full { grid-column: 1 / -1; }

.owner-field { display: flex; flex-direction: column; gap: 6px; }

.owner-field label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.owner-field input[type="text"],
.owner-field input[type="number"],
.owner-field input[type="datetime-local"],
.owner-field select,
.owner-field textarea,
.owner-table input[type="text"],
.owner-table input[type="number"] {
  background: var(--bg-app);
  color: var(--text-main);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 0.88rem;
  font-family: var(--sans);
  width: 100%;
}

.owner-field input:focus, .owner-field select:focus, .owner-field textarea:focus,
.owner-table input:focus { outline: none; border-color: var(--accent-border); }

.owner-field input[type="datetime-local"] { color-scheme: dark; }
.owner-field textarea { min-height: 70px; resize: vertical; }

.owner-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
}

.owner-check input { accent-color: var(--accent); width: 16px; height: 16px; }

.owner-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 14px;
  padding: 10px 12px;
  background: var(--bg-app);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  max-height: 260px;
  overflow-y: auto;
}

.owner-hint { font-size: 0.76rem; color: var(--text-faint); line-height: 1.5; margin: 0; }

.owner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.owner-actions form { display: inline; }

.btn-small { padding: 7px 12px; font-size: 0.78rem; }

.owner-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.owner-badge.on { background: rgba(78, 154, 99, 0.18); color: #8fd3a1; }
.owner-badge.off { background: rgba(201, 76, 76, 0.16); color: #e39a9a; }
.owner-badge.warn { background: rgba(201, 154, 59, 0.18); color: #e6c37a; }
.owner-badge.accent { background: var(--accent-soft); color: var(--accent); }

.owner-code {
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.owner-validation { color: var(--bad); font-size: 0.78rem; }
.owner-validation ul { margin: 6px 0 0; padding-left: 18px; }

.owner-modifier-row td { padding-top: 6px; padding-bottom: 6px; }
.owner-modifier-row input[type="text"] { min-width: 160px; }
.owner-modifier-row input[type="number"] { width: 80px; }

.owner-section-hidden { display: none; }

@media (max-width: 720px) {
  .owner-table .inline-form input[type="number"] { width: 70px; }
}

/* ===================== Личный кабинет ===================== */

.account-section-hidden { display: none; }

.account-stat-actions .owner-actions { margin-top: 2px; }

.account-note { max-width: 420px; word-break: break-word; }

.account-expired td { color: var(--text-faint); }

.account-discord-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.account-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.account-steps code {
  font-family: var(--mono);
  color: var(--accent);
  background: var(--bg-app);
  padding: 1px 6px;
  border-radius: 3px;
}

.account-discord-code {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 20px;
  margin-bottom: 14px;
  background: var(--bg-app);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  min-width: 260px;
}

.account-discord-code.active { border-style: solid; border-color: var(--accent-border); }

.account-discord-code-value {
  font-family: var(--mono);
  font-size: 2rem;
  letter-spacing: 0.25em;
  font-weight: 700;
  color: var(--accent);
  user-select: all;
}

.topup-bonus { color: var(--good); font-weight: 700; }
.topup-modal-body .redeem-result:empty { display: none; }

.builder-comment {
  width: 100%;
  background: var(--bg-app);
  color: var(--text-main);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 0.88rem;
  font-family: var(--sans);
  resize: vertical;
  min-height: 70px;
}

.builder-comment:focus { outline: none; border-color: var(--accent-border); }

.owner-order-comment { white-space: pre-wrap; word-break: break-word; max-width: 360px; font-size: 0.82rem; }

#customAmountInput {
  width: 100%;
  background: var(--bg-app);
  color: var(--text-main);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 0.95rem;
  font-family: var(--mono);
}

#customAmountInput:focus { outline: none; border-color: var(--accent-border); }

.owner-stat .value a { color: inherit; }

/* ===================== Discord-активы ===================== */

.asset-preview { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 0.88rem; }
.asset-preview dt { color: var(--text-faint); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 3px; }
.asset-preview dd { margin: 0; }
.asset-preview-image { max-width: 160px; max-height: 160px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-app); display: block; }
.asset-preview-video { max-width: 320px; max-height: 240px; display: block; }
.asset-color-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; border: 1px solid var(--line); }
.asset-color-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.asset-role-preview { font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }
.owner-field input[type="color"] { width: 64px; height: 36px; padding: 2px; background: var(--bg-app); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.owner-field input[type="file"] { color: var(--text-soft); font-size: 0.85rem; }
.donate-card__unavailable { display: block; margin-top: 4px; font-size: 0.7rem; color: var(--bad); font-family: var(--mono); }

.builder-select {
  width: 100%;
  background: var(--bg-app);
  color: var(--text-main);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 0.88rem;
  font-family: var(--sans);
}


/* ---------- Discord-активы на витрине ---------- */
.donate-section__discord-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.donate-card--discord {
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  width: 100%;
}

.donate-card--discord:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.donate-card--discord .donate-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.donate-card--discord .donate-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.donate-card--discord .donate-card__desc {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.donate-card--discord .donate-card__price {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
}

.donate-card__period {
  margin-left: 4px;
  font-size: 0.7rem;
  color: var(--text-faint);
}

.donate-card__slots {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}

/* Слотов нет — карточка гаснет, но остаётся кликабельной: причина видна в конфигураторе. */
.donate-card--discord.is-locked {
  opacity: 0.55;
}

/* Второстепенное окно (как у серверных секций): плитки становятся строками. */
.donate-section__discord-grid--compact {
  grid-template-columns: 1fr;
  gap: 10px;
}

/* В широкой карточке обёртка прозрачна, в узкой — правая колонка с ценой и слотами. */
.donate-card__meta { display: contents; }

.donate-card--discord.is-compact {
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
}

.donate-card--discord.is-compact .donate-card__info {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.donate-card--discord.is-compact .donate-card__desc { display: none; }

.donate-card--discord.is-compact .donate-card__title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donate-card--discord.is-compact .donate-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  line-height: 1.25;
}

.donate-card--discord.is-compact .donate-card__price {
  margin-top: 0;
  font-size: 0.74rem;
  opacity: 0.85;
}

.donate-card--discord.is-compact .donate-card__slots { margin-top: 0; }


/* ===== Заявки на текст именной плашки в личном кабинете ===== */
.badge-request {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
}

.badge-request-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.badge-request-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.badge-request-form input[type="text"] { flex: 1 1 220px; min-width: 0; }
.badge-request-form select { flex: 0 1 160px; }

/* ===== Согласие на cookie ===== */
.consent-card {
  max-width: 640px;
  margin: 40px auto;
  padding: 28px 32px;
  background: rgba(10, 10, 11, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.consent-card h1 {
  font-family: var(--mono);
  font-size: 1.4rem;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.consent-card p, .consent-list li {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.consent-list { margin: 0 0 12px; padding-left: 20px; }
.consent-list li { margin-bottom: 6px; }
.consent-list strong { color: var(--text-main); }
.consent-note { font-size: 0.85rem; }

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.consent-actions form { margin: 0; }

@media (max-width: 600px) {
  .consent-card { margin: 16px auto; padding: 20px 16px; }
  .consent-actions form, .consent-actions a, .consent-actions button { width: 100%; }
}

/* ===== Плашка согласия на cookie (внизу экрана) ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 260;
  padding: 14px 16px;
  background: rgba(10, 10, 11, 0.96);
  border-top: 1px solid var(--accent-border);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.55);
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-banner__text {
  flex: 1;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.cookie-banner__more {
  color: var(--accent);
  white-space: nowrap;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__actions form { margin: 0; }
.cookie-banner__actions .btn-primary, .cookie-banner__actions .btn-secondary { padding: 10px 20px; }

@media (max-width: 720px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-banner__actions form { flex: 1; }
  .cookie-banner__actions button { width: 100%; }
}

/* Кнопка «скрыть интерфейс» стоит выше плашки и на узких экранах перекрывает её кнопки. */
body:has(.cookie-banner) .visibility-toggle { display: none; }
