/* ==========================================================================
   MINECRAFT TIMES — «Event Horizon»
   Тема для EasyDonate · шаблоны Spirit и Lullaby Dark (стандартный)
   Чёрный как вакуум, тонкие линии, монохром + фирменный баннер в hero.
   Вставить: Панель EasyDonate → Магазин → Дизайн → Свой CSS
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   1. ПАЛИТРА — переопределяем переменные Spirit (обе темы → чёрная)
   -------------------------------------------------------------------------- */
html body,
html body.dark-theme,
html body.light-theme {
  --mt-black:  #000000;
  --mt-ink:    #0a0a0a;
  --mt-card:   rgba(255, 255, 255, .025);
  --mt-card-h: rgba(255, 255, 255, .05);
  --mt-line:   rgba(255, 255, 255, .08);
  --mt-line-2: rgba(255, 255, 255, .16);
  --mt-white:  #f5f5f4;
  --mt-mute:   rgba(245, 245, 244, .58);
  --mt-dim:    rgba(245, 245, 244, .36);
  --mt-glow:   #ffe9cf;           /* тёплый свет аккреционного диска */
  --mt-ease:   cubic-bezier(.16, 1, .3, 1);

  --color-accent: #f5f5f4;
  --color-accent-125: rgba(245,245,244,.08);
  --color-accent-15:  rgba(245,245,244,.10);
  --color-accent-25:  rgba(245,245,244,.16);
  --color-accent-50:  rgba(245,245,244,.40);
  --color-accent-75:  rgba(245,245,244,.70);

  --body-background-color: #000;
  --color-default: #f5f5f4;
  --color-default-inverse: #000;
  --color-muted: rgba(245,245,244,.72);
  --color-neutral: rgba(245,245,244,.45);
  --border-color-default: rgba(255,255,255,.08);
  --spirit-bg-05: rgba(255,255,255,.03);
  --spirit-bg-10: rgba(255,255,255,.06);
  --spirit-card-background-color: #070707;
  --spirit-card-background-color-opacity-0: #07070700;
  --spirit-card-background-color-hover: #0e0e0e;
  --spirit-btn-transparent-background-color-hover: rgba(255,255,255,.06);
  --spirit-navbar-color: rgba(0,0,0,.6);
  --spirit-cart-background-color: #050505;
  --spirit-cart-order-form-background-color: #000;
  --spirit-product-image-background-color: #050505;
  --spirit-product-image-border-color: rgba(255,255,255,.06);
  --spirit-input-background-color: rgba(255,255,255,.03);
  --spirit-input-border-color: rgba(255,255,255,.1);
  --spirit-shop-category-background-color: transparent;
  --spirit-shop-category-background-color-active: #f5f5f4;
  --spirit-shop-category-icon-color: #f5f5f4;
  --spirit-shop-category-icon-color-inverse: #000;
  --spirit-badge-background-color: #f5f5f4;
  --spirit-server-address-background-color: rgba(255,255,255,.06);
  --spirit-footer-background-color: #000;
  --spirit-vk-post-background-color: #070707;
  --spirit-skeleton-background-color: #111;
  --spirit-skeleton-gradient: linear-gradient(90deg, #ffffff00 0, #ffffff08 30%, #ffffff14 60%, #ffffff00);
  --spirit-product-group-product-background-color: #0e0e0e;
}

/* --------------------------------------------------------------------------
   2. БАЗА И ЗВЁЗДНОЕ НЕБО
   -------------------------------------------------------------------------- */
html { background: #000; }

body {
  background: #000 !important;
  color: var(--mt-white) !important;
  font-family: 'Onest', 'Golos Text', system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* мелкая звёздная пыль — два слоя, разная плотность */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body::before {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 27% 72%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 41% 33%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 58% 84%, rgba(255,255,255,.3),  transparent 60%),
    radial-gradient(1px 1px at 66% 12%, rgba(255,255,255,.5),  transparent 60%),
    radial-gradient(1px 1px at 79% 57%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 91% 26%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 6%  91%, rgba(255,255,255,.3),  transparent 60%),
    radial-gradient(1.5px 1.5px at 84% 88%, rgba(255,240,220,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 34% 8%,  rgba(220,230,255,.7), transparent 60%);
  background-size: 620px 620px;
}
body::after {
  background-image:
    radial-gradient(1px 1px at 20% 40%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 64%, rgba(255,255,255,.8), transparent 60%);
  background-size: 910px 910px;
  animation: mt-twinkle 7s ease-in-out infinite alternate;
}
@keyframes mt-twinkle { from { opacity: .25; } to { opacity: .9; } }

body > * { position: relative; z-index: 1; }

::selection { background: #f5f5f4; color: #000; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

a { transition: color .3s var(--mt-ease), opacity .3s; }

/* --------------------------------------------------------------------------
   3. ТИПОГРАФИКА
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .title {
  font-family: 'Onest', sans-serif !important;
  color: var(--mt-white);
  letter-spacing: -0.025em;
}

/* сбрасываем градиентный текст из старых стилей — только чистый белый */
h1:not(.shop-name), h2, h3, .title {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
}

h2.title,
.section-shop h3.mb-36 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
}

/* моно-надпись над заголовками секций */
h2.title::before,
.section-shop h3.mb-36::before {
  display: block;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mt-dim);
}
.section-shop h3.mb-36::before { content: "// Store"; }
#servers h2.title::before      { content: "// Servers"; }
#last-payments h2.title::before{ content: "// Live feed"; }

/* --------------------------------------------------------------------------
   4. НАВИГАЦИЯ
   -------------------------------------------------------------------------- */
.spirit-navbar .navbar-general { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.spirit-navbar {
  background: rgba(0,0,0,.55) !important;
  border: 1px solid var(--mt-line) !important;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 60px rgba(0,0,0,.6) !important;
}

.spirit-shop-name {
  font-weight: 600 !important;
  letter-spacing: -0.02em;
}
.spirit-shop-logo { border-radius: 10px; }

.spirit-navbar-item a {
  color: var(--mt-mute) !important;
  font-weight: 500 !important;
  transition: color .3s var(--mt-ease) !important;
}
.spirit-navbar-item a:hover { color: var(--mt-white) !important; }
.spirit-navbar-item a svg path { stroke: currentColor !important; }

/* тема Spirit имеет переключатель светлой/тёмной — дизайн только тёмный */
.btn-switch-theme { display: none !important; }

.cart-badge {
  border: 1px solid var(--mt-line-2) !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  transition: border-color .3s, background .3s !important;
}
.cart-badge:hover { border-color: rgba(255,255,255,.4) !important; background: rgba(255,255,255,.04) !important; }
.cart-counter {
  background: var(--mt-white) !important;
  color: #000 !important;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500 !important;
}
.cart-cost { font-family: 'JetBrains Mono', monospace; font-weight: 500 !important; }

.navbar-dropdown-menu {
  background: #050505 !important;
  border: 1px solid var(--mt-line) !important;
}

/* --------------------------------------------------------------------------
   5. HERO — БАННЕР
   Картинка баннера задана в панели EasyDonate (inline background-image) — CSS её не
   подменяет, а только вписывает в стиль: растягивает, затемняет к краям и к низу, чтобы
   баннер плавно уходил в чёрный фон сайта и название читалось.
   -------------------------------------------------------------------------- */
.spirit-shop-jumbotron {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(480px, min(52vw, 100vh - 210px), 700px);   /* целиком в первом экране ноутбука */
  display: flex;
  align-items: flex-end;
  background-color: #000 !important;
  background-size: cover !important;
  background-position: center 30% !important;
  background-repeat: no-repeat !important;
  border: 1px solid var(--mt-line);
}
.spirit-shop-jumbotron.overlay-dark::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  opacity: 1 !important;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, #000 0%, rgba(0,0,0,.9) 13%, rgba(0,0,0,.4) 36%, transparent 58%),
    radial-gradient(125% 95% at 50% 38%, transparent 52%, rgba(0,0,0,.72) 100%) !important;
}
.spirit-shop-jumbotron.overlay-dark::after { content: none; }

.spirit-shop-jumbotron > .container {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 12px;
}
.spirit-shop-jumbotron .row { justify-content: center; }
.spirit-shop-jumbotron .col-lg-6:first-child {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  text-align: center;
}
/* правая колонка с картинкой не нужна — персонажи уже на баннере */
.spirit-shop-jumbotron .col-lg-6.d-lg-block { display: none !important; }

.spirit-shop-jumbotron .shop-name {
  text-align: center !important;
  font-family: 'Onest', sans-serif !important;
  font-weight: 300 !important;
  font-size: clamp(2.2rem, 8.4vw, 6.6rem) !important;
  white-space: nowrap;
  line-height: .95 !important;
  letter-spacing: -0.06em !important;
  color: var(--mt-white) !important;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255,255,255,.5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 28px rgba(0,0,0,.65));
  margin-bottom: 0 !important;
}

.spirit-shop-jumbotron-footer { justify-content: center !important; margin-top: 28px !important; }

/* --------------------------------------------------------------------------
   6. КНОПКИ — белая капсула / контурная
   -------------------------------------------------------------------------- */
.btn-accent,
.btn-primary {
  background: var(--mt-white) !important;
  color: #000 !important;
  border: 1px solid var(--mt-white) !important;
  font-family: 'Onest', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
  box-shadow: 0 0 0 0 rgba(255,255,255,0);
  transition: box-shadow .5s var(--mt-ease), transform .5s var(--mt-ease), background .3s !important;
}
.btn-accent:hover,
.btn-primary:hover {
  background: #fff !important;
  color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(255,255,255,.22);
}

.btn-outline-accent {
  background: transparent !important;
  color: var(--mt-white) !important;
  border: 1px solid var(--mt-line-2) !important;
  font-weight: 500 !important;
  transition: all .4s var(--mt-ease) !important;
}
.btn-outline-accent svg path { stroke: currentColor !important; }
.btn-outline-accent:hover {
  background: var(--mt-white) !important;
  color: #000 !important;
  border-color: var(--mt-white) !important;
}

/* --------------------------------------------------------------------------
   7. КАТЕГОРИИ
   -------------------------------------------------------------------------- */
.spirit-shop-category {
  border: 1px solid transparent !important;
  transition: background .4s var(--mt-ease), border-color .4s, color .4s !important;
}
.spirit-shop-category:hover:not(.active) {
  background: rgba(255,255,255,.03) !important;
  border-color: var(--mt-line) !important;
}
.spirit-shop-category.active { box-shadow: 0 0 40px rgba(255,255,255,.08); }
.spirit-shop-category .category-name { font-weight: 500 !important; }
.spirit-shop-category .category-products-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem !important;
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   8. КАРТОЧКИ ТОВАРОВ
   -------------------------------------------------------------------------- */
.product-card {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)) !important;
  border: 1px solid var(--mt-line) !important;
  box-shadow: none !important;
  transition: border-color .5s var(--mt-ease), transform .5s var(--mt-ease), background .5s !important;
  position: relative;
  overflow: hidden;
}
/* тонкий блик по верхней кромке */
.product-card::before {
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  opacity: 0;
  transition: opacity .5s var(--mt-ease);
}
.product-card:hover {
  border-color: var(--mt-line-2) !important;
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)) !important;
}
.product-card:hover::before { opacity: 1; }

.product-preview-image-wrapper {
  background: radial-gradient(circle at 50% 60%, rgba(255,255,255,.06), transparent 65%), #030303 !important;
  border-color: var(--mt-line) !important;
  overflow: hidden;
}
.product-preview-image { transition: transform .8s var(--mt-ease) !important; }
.product-card:hover .product-preview-image { transform: scale(1.05); }

.shop-product-name {
  font-weight: 500 !important;
  color: var(--mt-mute) !important;
  letter-spacing: -0.01em;
}
.shop-product-cost {
  font-weight: 600 !important;
  color: var(--mt-white) !important;
  letter-spacing: -0.03em;
}
.shop-product-sale s { color: var(--mt-dim) !important; }
.shop-product-sale span {
  font-family: 'JetBrains Mono', monospace;
  color: var(--mt-glow) !important;
}

.badge-accent {
  background: var(--mt-white) !important;
  color: #000 !important;
  font-weight: 500 !important;
}
.badge-accent-blured {
  background: rgba(0,0,0,.55) !important;
  color: var(--mt-white) !important;
  border: 1px solid var(--mt-line-2);
  backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', monospace;
}

/* поля ввода */
.form-control,
input.form-control {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: var(--mt-white) !important;
  transition: border-color .3s, box-shadow .3s !important;
}
.form-control::placeholder { color: var(--mt-dim) !important; }
.form-control:focus {
  border-color: rgba(255,255,255,.4) !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,.06) !important;
}

/* --------------------------------------------------------------------------
   9. СЕРВЕРЫ
   -------------------------------------------------------------------------- */
.server-card {
  background: rgba(255,255,255,.02) !important;
  border: 1px solid var(--mt-line) !important;
  box-shadow: none !important;
}
.server-card .badge-xxl {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid var(--mt-line);
}
.server-card .badge-xxl svg path { stroke: var(--mt-white) !important; }
.server-card h3 { font-weight: 500 !important; }
.server-card .progress { background: rgba(255,255,255,.06) !important; height: 4px !important; }
.server-card .progress-bar {
  background: var(--mt-white) !important;
  box-shadow: 0 0 12px rgba(255,255,255,.6);
}

/* --------------------------------------------------------------------------
   10. ПОСЛЕДНИЕ ПОКУПКИ
   -------------------------------------------------------------------------- */
#last-payments .product-card {
  background: rgba(255,255,255,.02) !important;
}
#last-payments .product-card img { border-radius: 14px; }
#last-payments h5 { font-weight: 500 !important; }
#last-payments p { color: var(--mt-dim) !important; font-family: 'JetBrains Mono', monospace; font-size: .8rem; }

/* --------------------------------------------------------------------------
   11. КОРЗИНА И МОДАЛКИ
   -------------------------------------------------------------------------- */
.modal-backdrop.show { background: #000; opacity: .82 !important; }
.modal-content {
  background: #050505 !important;
  border: 1px solid var(--mt-line) !important;
  box-shadow: 0 40px 120px rgba(0,0,0,.9) !important;
}
.cart-close svg path { stroke: var(--mt-white) !important; }

/* --------------------------------------------------------------------------
   12. ФУТЕР + СОЦСЕТИ КАРТОЧКАМИ (как в Limbo, только чёрные)
   -------------------------------------------------------------------------- */
.footer {
  background: #000 !important;
  border-top: 1px solid var(--mt-line);
  position: relative;
}
.footer::before {                         /* светящийся горизонт над футером */
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  width: min(900px, 90%);
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, rgba(255,233,207,.7), transparent);
  box-shadow: 0 0 30px 4px rgba(255,220,180,.18);
}

.footer-socials { width: 100%; }
.footer-socials > p {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: 1 !important;
  color: var(--mt-dim) !important;
}
.footer-socials > div {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px !important;
  width: 100%;
}
.footer-socials a { text-decoration: none !important; }

.footer-link {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 20px 56px 20px 20px !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)) !important;
  border: 1px solid var(--mt-line) !important;
  color: var(--mt-white) !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  overflow: hidden;
  transition: border-color .5s var(--mt-ease), transform .5s var(--mt-ease), background .5s !important;
}
/* иконка — плитка */
.footer-link svg {
  flex-shrink: 0;
  width: 54px !important;
  height: 54px !important;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--mt-line);
  box-sizing: border-box;
  transition: background .5s var(--mt-ease);
}
/* стрелка справа */
.footer-link::after {
  content: "→";
  position: absolute;
  right: 22px;
  top: 50%;
  translate: 0 -50%;
  font-family: 'Onest', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--mt-dim);
  transition: transform .5s var(--mt-ease), color .5s;
}
/* мягкое цветное свечение бренда — только при наведении */
.footer-link::before {
  content: "";
  position: absolute;
  inset: auto -20% -80% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--mt-brand, rgba(255,255,255,.2)), transparent);
  opacity: 0;
  transition: opacity .6s var(--mt-ease);
  pointer-events: none;
}
a[href*="t.me"]     .footer-link { --mt-brand: rgba(42,171,238,.35); }
a[href*="discord"]  .footer-link { --mt-brand: rgba(88,101,242,.4); }
a[href*="vk.com"]   .footer-link { --mt-brand: rgba(0,119,255,.35); }
a[href*="youtube"]  .footer-link { --mt-brand: rgba(255,0,0,.3); }
a[href*="tiktok"]   .footer-link { --mt-brand: rgba(255,255,255,.25); }

.footer-link:hover {
  border-color: var(--mt-line-2) !important;
  transform: translateY(-2px);
}
.footer-link:hover::before { opacity: 1; }
.footer-link:hover::after  { transform: translateX(4px); color: var(--mt-white); }
a[href*="t.me"]:hover    .footer-link svg { background: #2aabee; border-color: transparent; }
a[href*="discord"]:hover .footer-link svg { background: #5865f2; border-color: transparent; }
a[href*="vk.com"]:hover  .footer-link svg { background: #0077ff; border-color: transparent; }
a[href*="youtube"]:hover .footer-link svg { background: #ff0000; border-color: transparent; }

/* колонка соцсетей в футере — на всю ширину на планшетах */
@media (max-width: 991.98px) {
  #footer > .col-md-6 { flex: 0 0 100%; max-width: 100%; }
  #footer > .col-md-6 > .d-flex { justify-content: flex-start !important; text-align: left !important; }
}

/* --------------------------------------------------------------------------
   13. АДАПТИВ И ДОСТУПНОСТЬ
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .spirit-shop-jumbotron { min-height: 420px; border-radius: 32px; }
  .spirit-shop-jumbotron .btn-accent { width: 100% !important; max-width: 320px; }
  .footer-link { min-height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ==========================================================================
   14. ШАБЛОН LULLABY DARK (стандартный шаблон EasyDonate)
   Тот же дизайн, если в панели включён не Spirit, а стандартный шаблон.
   ========================================================================== */

html body .bg-elegant-dark,
html body .bg-elegant-night,
html body main.bg-elegant-dark,
html body #sections { background-color: transparent !important; }
html body .bg-elegant { background-color: rgba(255,255,255,.03) !important; }
html body .fill-elegant-dark,
html body .pattern.bottom { display: none !important; }
html body .text-muted { color: var(--mt-dim) !important; }

/* навигация — капсула */
html body .navbar-main {
  position: sticky !important;
  z-index: 1000 !important;
  top: 16px;
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 10px 18px !important;
  background: rgba(0,0,0,.55) !important;
  border: 1px solid var(--mt-line);
  border-radius: 999px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
html body .navbar-main .navbar-brand img { height: 40px; border-radius: 10px; }
html body .navbar-main .nav-link {
  color: var(--mt-mute) !important;
  font-weight: 500 !important;
  text-transform: none !important;
  font-size: .95rem !important;
  transition: color .3s var(--mt-ease) !important;
}
html body .navbar-main .nav-link i { opacity: .6; margin-right: 6px; }
html body .navbar-main .nav-link:hover { color: var(--mt-white) !important; }
@media (max-width: 991.98px) {
  html body .navbar-main { border-radius: 24px; }
  html body .navbar-main .navbar-collapse {
    background: #050505 !important;
    border: 1px solid var(--mt-line);
    border-radius: 20px;
  }
}

/* hero — баннер. Картинка приходит из настроек магазина (jarallax-контейнер или inline background);
   параллакс отключён, чтобы кадр не «ездил» и персонажи всегда стояли над названием. */
html body #welcome-section {
  position: relative;
  min-height: clamp(480px, min(52vw, 100vh - 160px), 700px);   /* название видно без прокрутки */
  display: flex;
  align-items: flex-end;                 /* название — под персонажами */
  margin: 24px auto 0;
  width: calc(100% - 32px);
  max-width: 1380px;
  padding: 80px 0 28px !important;
  background-color: #000 !important;
  background-size: cover !important;
  background-position: center 30% !important;
  background-repeat: no-repeat !important;
  border: 1px solid var(--mt-line);
  border-radius: 48px;
  overflow: hidden;
  isolation: isolate;
}
html body #welcome-section > [id^="jarallax-container"] {
  z-index: 0 !important;
  background: #000;
}
html body #welcome-section > [id^="jarallax-container"] > div {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  transform: none !important;
  background-size: cover !important;
  background-position: center 30% !important;
  background-repeat: no-repeat !important;
}
/* затемнение к краям и к низу — баннер уходит в чёрный фон сайта */
html body #welcome-section.overlay-dark::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  opacity: 1 !important;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, #000 0%, rgba(0,0,0,.9) 13%, rgba(0,0,0,.4) 36%, transparent 58%),
    radial-gradient(125% 95% at 50% 38%, transparent 52%, rgba(0,0,0,.72) 100%) !important;
}
html body #welcome-section::after { content: none; }
html body #welcome-section > .container { position: relative; z-index: 2; padding-bottom: 10px; }

html body #welcome-section .row { justify-content: center; }
html body #welcome-section .col-lg-6.d-lg-block { display: none !important; }
html body #welcome-section .shop-title {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  text-align: center !important;
}
html body #welcome-section .shop-name {
  font-family: 'Onest', sans-serif !important;
  font-weight: 300 !important;
  font-size: clamp(2.2rem, 8.4vw, 6.6rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.06em !important;
  white-space: nowrap;
  margin: 0 !important;
  background: linear-gradient(180deg, #ffffff 30%, rgba(255,255,255,.45) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 6px 28px rgba(0,0,0,.65));
}
/* онлайн — моно-пилюля над названием */
html body .general-online { display: flex; justify-content: center; }
html body .general-online p { margin: 0 0 20px; }
html body .general-online span {
  display: inline-block;
  padding: 7px 16px !important;
  background: rgba(0,0,0,.5) !important;
  border: 1px solid var(--mt-line-2);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--mt-mute) !important;
}

/* заголовки секций */
html body section h2.h1 {
  font-family: 'Onest', sans-serif !important;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
}
html body section h2.h1::before {
  display: block;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mt-dim);
}
html body #servers h2.h1::before       { content: "// Servers"; }
html body #shop h2.h1::before,
html body .section-md.pt-7 h2.h1::before { content: "// Store"; }
html body #last-payments h2.h1::before { content: "// Live feed"; }

/* фильтр категорий */
html body .filter-button-group .filter-button {
  padding: 11px 18px !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid var(--mt-line-2) !important;
  color: var(--mt-mute) !important;
  font-family: 'Onest', sans-serif;
  font-weight: 500 !important;
  font-size: .85rem !important;
  text-transform: none !important;
  letter-spacing: 0;
  transition: all .4s var(--mt-ease);
}
html body .filter-button-group .filter-button i { display: none; }
html body .filter-button-group .filter-button:hover { color: var(--mt-white) !important; border-color: rgba(255,255,255,.4) !important; }
html body .filter-button-group .filter-button.active {
  background: var(--mt-white) !important;
  color: #000 !important;
  border-color: var(--mt-white) !important;
  box-shadow: 0 0 40px rgba(255,255,255,.1);
}

/* поиск */
html body .input-group .form-control,
html body .input-group-text {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: var(--mt-white) !important;
}
html body .section .input-group > .form-control:first-child:not(:last-child) { border-radius: 999px 0 0 999px !important; border-right: 0 !important; }
html body .section .input-group-append .input-group-text { border-radius: 0 999px 999px 0 !important; border-left: 0 !important; }

/* карточки товаров */
html body .profile-card > .card {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)) !important;
  border: 1px solid var(--mt-line) !important;
  border-radius: 28px !important;
  box-shadow: none !important;
  overflow: hidden;
  padding: 10px;
  transition: border-color .5s var(--mt-ease), transform .5s var(--mt-ease), background .5s !important;
}
html body .profile-card > .card:hover {
  border-color: var(--mt-line-2) !important;
  transform: translateY(-3px) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)) !important;
}
html body .profile-card .card-image {
  border-radius: 20px !important;
  border: 1px solid var(--mt-line);
  background-color: #030303 !important;
  background-size: cover !important;
  background-position: center !important;
  transition: transform .8s var(--mt-ease);
}
html body .profile-card .card .card { background: transparent !important; }
html body .profile-card .card-header .badge {
  background: transparent !important;
  border: 1px solid var(--mt-line-2);
  border-radius: 999px !important;
  color: var(--mt-mute) !important;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400 !important;
  font-size: .68rem !important;
  letter-spacing: .12em;
  padding: 6px 12px !important;
}
html body .profile-card .card-header .badge i { display: none; }
html body .profile-card .card-title {
  font-family: 'Onest', sans-serif !important;
  font-weight: 500 !important;
  font-size: 1.35rem !important;
  color: var(--mt-white) !important;
  letter-spacing: -0.02em;
}
html body .profile-card .card-footer h6 {
  font-family: 'Onest', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  color: var(--mt-white) !important;
  letter-spacing: -0.02em;
}
html body .profile-card .text-through { color: var(--mt-dim) !important; margin-left: 6px; }

/* кнопка «в корзину» на карточке */
html body .profile-card .btn-inner-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 1px solid var(--mt-line-2);
  color: var(--mt-white) !important;
  backdrop-filter: blur(10px);
  transition: all .4s var(--mt-ease);
}
html body .profile-card .btn-inner-icon i { color: inherit !important; }
html body .profile-card .btn-inner-icon:hover { background: var(--mt-white); color: #000 !important; }

/* скидка — одна понятная метка «−28%» + выделенная цена со старой ценой */
html body .profile-card .sale {
  position: absolute !important;
  top: 22px !important;
  left: 22px !important;
  right: auto !important;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 5;
}
html body .profile-card .sale__size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px 0 9px !important;
  border-radius: 999px !important;
  background: #ffe9cf !important;
  color: #1a1206 !important;
  border: 0 !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.45), 0 0 24px rgba(255,233,207,.25) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: .8rem !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  line-height: 1;
}
/* маленький значок-молния перед процентом */
html body .profile-card .sale__size::before {
  content: "";
  width: 10px; height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M6 0 0 7h4l-1 5 7-7.5H6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M6 0 0 7h4l-1 5 7-7.5H6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* «Скидка» без таймера дублирует процент — прячем; если EasyDonate покажет таймер, он останется */
html body .profile-card .sale__timer:has(> .text:only-child) { display: none !important; }
html body .profile-card .sale__timer {
  height: 28px;
  display: inline-flex !important;
  align-items: center;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.6) !important;
  border: 1px solid rgba(255,233,207,.3);
  color: #ffe9cf !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem !important;
  backdrop-filter: blur(8px);
}
html body .profile-card .sale__timer .text { color: inherit !important; }

/* карточка со скидкой — тёплая кромка, чтобы выделялась в сетке */
html body .profile-card > .card:has(.sale) {
  border-color: rgba(255,233,207,.22) !important;
  background: linear-gradient(180deg, rgba(255,233,207,.05), rgba(255,255,255,.01) 60%) !important;
}
html body .profile-card > .card:has(.sale):hover { border-color: rgba(255,233,207,.4) !important; }
/* цена: новая — крупно, старая — зачёркнута рядом */
html body .profile-card > .card:has(.sale) .card-footer h6 { color: #ffe9cf !important; }
html body .profile-card .text-through {
  display: inline-block;
  margin-left: 8px !important;
  color: var(--mt-dim) !important;
  font-size: .8rem !important;
  font-weight: 400 !important;
  text-decoration: line-through;
  text-decoration-color: rgba(245,245,244,.5);
}

/* серверы */
html body .progress-wrapper {
  padding: 28px 30px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--mt-line);
  border-radius: 28px;
}
html body .progress-wrapper .lead { font-weight: 500 !important; font-size: 1.4rem; }
html body .progress-wrapper .progress { height: 4px !important; background: rgba(255,255,255,.06) !important; border-radius: 999px; }
html body .progress-wrapper .progress-barg,
html body .progress-wrapper .progress-bar {
  background: var(--mt-white) !important;
  box-shadow: 0 0 12px rgba(255,255,255,.6);
  border-radius: 999px;
}
html body .progress-wrapper .progress-info .font-weight-bold {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400 !important;
  font-size: .85rem;
  color: var(--mt-mute);
}

/* версия сервера */
html body .server-version {
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--mt-line-2);
  color: var(--mt-mute) !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem !important;
  font-weight: 400 !important;
  letter-spacing: .04em;
  text-transform: none !important;
  line-height: 1;
}
html body .server-version i { color: var(--mt-dim); margin-right: 6px !important; font-size: .8em; }
html body .progress-wrapper .progress-info { align-items: center; }
html body .progress-wrapper .progress-info .font-weight-light { color: var(--mt-white); font-family: 'JetBrains Mono', monospace; font-weight: 400 !important; }

/* последние покупки */
html body #last-payments .card {
  background: rgba(255,255,255,.02) !important;
  border: 1px solid var(--mt-line) !important;
  border-radius: 22px !important;
  transition: border-color .4s;
}
html body #last-payments .card:hover { border-color: var(--mt-line-2) !important; }
html body #last-payments small { font-family: 'JetBrains Mono', monospace; }

/* инструкция */
html body #help .col-md-6 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 40px !important;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--mt-line);
  border-radius: 28px;
}
html body #help p.font-weight-bolder { color: var(--mt-white) !important; font-weight: 600 !important; margin-top: 18px; }
html body #help p.mt-0 { color: var(--mt-mute) !important; }

/* корзина — в навбаре (переносим плавающую кнопку в капсулу меню) */
html body:not(:has(.spirit-navbar)) #widgets {
  position: fixed !important;
  top: 26px !important;                             /* 16px отступ навбара + центр по высоте 64px */
  bottom: auto !important;
  left: auto !important;
  right: max(34px, calc(50% - 590px + 18px)) !important;
  z-index: 1001 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body .basket-button {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  height: 44px !important;
  width: auto !important;
  min-width: 44px;
  padding: 0 16px 0 14px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid var(--mt-line-2) !important;
  box-shadow: none !important;
  color: var(--mt-white) !important;
  font-family: 'Onest', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background .35s var(--mt-ease), border-color .35s, color .35s !important;
}
html body .basket-button::after { content: "Корзина"; }
html body .basket-button i { color: inherit !important; font-size: 1rem; }
html body .basket-button:hover {
  background: var(--mt-white) !important;
  border-color: var(--mt-white) !important;
  color: #000 !important;
}
html body .basket-button .items-count,
html body .basket-button .corner { display: none !important; }
html body .basket-button .cart-counter {
  position: static !important;
  order: 3;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: var(--mt-white) !important;
  color: #000 !important;
  border: 0 !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem !important;
  font-weight: 500 !important;
}
html body .basket-button:hover .cart-counter { background: #000 !important; color: var(--mt-white) !important; }
html body .navbar-main .navbar-nav { padding-right: 210px; }   /* место под корзину и подарок */
@media (min-width: 992px) {
  html body:not(:has(.spirit-navbar)) #widgets { top: 33px !important; }   /* навбар на десктопе выше — 78px */
}

/* до 992px справа в навбаре кнопка меню — корзина встаёт левее неё, только иконка */
@media (max-width: 991.98px) {
  html body:not(:has(.spirit-navbar)) #widgets { right: 122px !important; }
  html body .basket-button { padding: 0 12px !important; gap: 8px; }
  html body .basket-button::after { content: none; }
  html body .navbar-main .navbar-nav { padding-right: 0; }
}
/* при открытом окне корзина уходит под затемнение */
html body.modal-open #widgets { z-index: 1000 !important; }

/* модалки */
html body .modal-content { border-radius: 28px !important; overflow: hidden; }
html body .alert-warning {
  background: rgba(255,233,207,.05) !important;
  border: 1px solid rgba(255,233,207,.2) !important;
  color: var(--mt-glow) !important;
  border-radius: 16px;
}

/* футер + соцсети карточками */
html body footer.footer,
html body footer.bg-elegant-night {
  background: #000 !important;
  border-top: 1px solid var(--mt-line);
  margin-top: 80px;
  position: relative !important;
}
html body footer.footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  width: min(900px, 90%);
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, rgba(255,233,207,.7), transparent);
  box-shadow: 0 0 30px 4px rgba(255,220,180,.18);
}
html body footer .footer-brand img { height: 44px; border-radius: 10px; }

html body #footer-social-links {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0;
}
html body #footer-social-links .list-inline-item { margin: 0 !important; }
html body #footer-social-links a.btn {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 92px;
  padding: 18px 56px 18px 18px !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)) !important;
  border: 1px solid var(--mt-line) !important;
  box-shadow: none !important;
  color: var(--mt-white) !important;
  font-family: 'Onest', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.02em;
  text-align: left;
  overflow: hidden;
  transition: border-color .5s var(--mt-ease), transform .5s var(--mt-ease) !important;
}
html body #footer-social-links a.btn i {
  flex-shrink: 0;
  display: inline-flex;
  width: 54px; height: 54px;
  align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--mt-line);
  font-size: 1.35rem;
  transition: background .5s var(--mt-ease);
}
html body #footer-social-links a.btn::after {
  content: "→";
  position: absolute;
  right: 22px; top: 50%;
  translate: 0 -50%;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--mt-dim);
  transition: transform .5s var(--mt-ease), color .5s;
}
html body #footer-social-links a[href*="t.me"]::before     { content: "Telegram"; order: 2; }
html body #footer-social-links a[href*="discord"]::before  { content: "Discord";  order: 2; }
html body #footer-social-links a[href*="vk.com"]::before   { content: "ВКонтакте"; order: 2; }
html body #footer-social-links a[href*="youtube"]::before  { content: "YouTube";  order: 2; }
html body #footer-social-links a[href*="tiktok"]::before   { content: "TikTok";   order: 2; }
html body #footer-social-links a.btn:hover { border-color: var(--mt-line-2) !important; transform: translateY(-2px); }
html body #footer-social-links a.btn:hover::after { transform: translateX(4px); color: var(--mt-white); }
html body #footer-social-links a[href*="t.me"]:hover i    { background: #2aabee; border-color: transparent; }
html body #footer-social-links a[href*="discord"]:hover i { background: #5865f2; border-color: transparent; }
html body #footer-social-links a[href*="vk.com"]:hover i  { background: #0077ff; border-color: transparent; }
html body #footer-social-links a[href*="youtube"]:hover i { background: #ff0000; border-color: transparent; }
html body #footer .col-sm-6.text-sm-right { text-align: left !important; }
html body #footer .col-sm-6.text-sm-right > div { width: 100%; }
html body #footer .col-sm-6.text-sm-right ul.d-inline-block { display: grid !important; }

@media (max-width: 767.98px) {
  html body #welcome-section { min-height: 420px; border-radius: 32px; padding-top: 60px !important; }
  /* на телефоне — крупный кадр с Эндерменом по центру: боковые персонажи не режутся пополам */
  html body #welcome-section,
  html body #welcome-section > [id^="jarallax-container"] > div,
  .spirit-shop-jumbotron {
    background-size: auto 120% !important;
    background-position: 47% 95% !important;
  }
}


/* ==========================================================================
   15. ПОКУПКА: окно товара, корзина, поля ввода, оплата (Lullaby Dark)
   ========================================================================== */

/* окна — сплошной чёрный, без просвечивания страницы */
html body .modal-backdrop.show { background: #000 !important; opacity: .86 !important; }
html body .modal .modal-content,
html body .modal .modal-content.bg-elegant {
  background: #070707 !important;
  border: 1px solid var(--mt-line-2) !important;
  border-radius: 28px !important;
  box-shadow: 0 40px 120px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) !important;
  color: var(--mt-white) !important;
  overflow: hidden;
}
html body .modal .modal-content::before {          /* светящаяся кромка сверху */
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,233,207,.6), transparent);
  z-index: 2;
}
html body .modal .modal-header,
html body .modal .modal-footer {
  background: transparent !important;
  border-color: var(--mt-line) !important;
}
html body .modal .modal-header { border-bottom: 1px solid var(--mt-line) !important; }
html body .modal .modal-footer { border-top: 1px solid var(--mt-line) !important; gap: 10px; }
html body .modal .modal-title { color: var(--mt-white) !important; font-weight: 500 !important; letter-spacing: -0.02em; }
html body .modal .close { color: var(--mt-white) !important; opacity: .5; text-shadow: none; }
html body .modal .close span { color: inherit !important; }
html body .modal .close:hover { opacity: 1; }
html body .modal .text-dark,
html body .modal .text-black,
html body .modal a.text-dark { color: var(--mt-white) !important; }
html body .modal a.text-dark { text-decoration: underline; text-decoration-color: var(--mt-line-2); text-underline-offset: 3px; }

/* окно товара */
html body .product-modal .badge {
  background: transparent !important;
  border: 1px solid var(--mt-line-2);
  border-radius: 999px !important;
  color: var(--mt-mute) !important;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400 !important;
  font-size: .68rem !important;
  letter-spacing: .12em;
  padding: 6px 12px !important;
}
html body .product-modal .badge i { display: none; }
html body .product-modal .card-image {
  display: inline-block;
  padding: 18px !important;
  border-radius: 24px !important;
  background: radial-gradient(circle at 50% 60%, rgba(255,255,255,.07), transparent 65%), #030303 !important;
  border: 1px solid var(--mt-line);
}
html body .product-modal .card-image img { border-radius: 14px; }
html body .product-modal h3.modal-title { font-size: 1.6rem; }
html body .product-modal h5 { font-weight: 600 !important; font-size: 1.4rem; color: var(--mt-white) !important; }

/* описание товара — карточка из описания в панели (была белой с белым текстом) */
html body .modal-body .card {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--mt-line) !important;
  border-radius: 20px !important;
  color: var(--mt-mute) !important;
  box-shadow: none !important;
  font-size: .95rem;
}
html body .modal-body .card > br { display: none; }       /* лишние переносы из редактора */
html body .modal-body .card strong { color: var(--mt-white); font-weight: 600; }
html body .modal-body .card li { margin-bottom: 4px; }
html body .modal-body .card li::marker { color: var(--mt-dim); }
html body .modal-body .card a { color: var(--mt-glow) !important; }
html body .modal code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--mt-line);
  color: var(--mt-glow) !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: .85em;
}

/* кнопки в окнах */
html body .modal .btn {
  border-radius: 999px !important;
  font-family: 'Onest', sans-serif !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  transition: all .35s var(--mt-ease) !important;
}
html body .modal .btn-secondary,
html body .modal .btn-dark,
html body .modal .btn-success,
html body .modal .btn-primary {
  background: var(--mt-white) !important;
  border: 1px solid var(--mt-white) !important;
  color: #000 !important;
  padding: .75rem 1.5rem !important;
}
html body .modal .btn-secondary *,
html body .modal .btn-dark *,
html body .modal .btn-success *,
html body .modal .btn-primary * { color: #000 !important; }
html body .modal .btn-secondary:hover,
html body .modal .btn-dark:hover,
html body .modal .btn-success:hover,
html body .modal .btn-primary:hover { background: #fff !important; box-shadow: 0 0 40px rgba(255,255,255,.2) !important; transform: translateY(-1px); }
html body .modal .btn-danger {
  background: transparent !important;
  border: 1px solid rgba(255,120,120,.35) !important;
  color: #ff9a9a !important;
}
html body .modal .btn-danger * { color: inherit !important; }
html body .modal .btn-danger:hover { background: rgba(255,90,90,.12) !important; border-color: rgba(255,120,120,.6) !important; }
html body .modal .btn-light {
  background: transparent !important;
  border: 1px solid var(--mt-line-2) !important;
  color: var(--mt-white) !important;
}
html body .modal .btn-light.disabled { opacity: .3 !important; }

/* корзина */
html body #cart .col-lg-7.bg-elegant-dark { border-right: 1px solid var(--mt-line); }
html body #cart .text-danger { color: #ff9a9a !important; }
html body #cart .cart-products .profile-card > .card {
  transform: none !important;
  padding: 6px;
  border-radius: 22px !important;
}
html body #cart .cart-products .profile-card + .profile-card { margin-top: 12px; }
html body #cart .shop-basket-image { border-radius: 14px; }
html body #cart .card-title { font-size: 1.15rem !important; }
html body #cart .cart-products h6 { color: var(--mt-white) !important; font-weight: 600 !important; }
html body #cart .cart-products .btn { width: 42px; height: 42px; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; }
html body #cart .more-products p.font-weight-bolder { color: var(--mt-white) !important; font-weight: 600 !important; }
html body #cart .more-products p.mt-0 { color: var(--mt-mute) !important; }
html body #cart [style*="dashed"] { border-bottom: 1px dashed var(--mt-line-2) !important; }
html body #cart h2 .cart-cost,
html body #cart h2 { font-weight: 600 !important; color: var(--mt-white) !important; letter-spacing: -0.03em; }
html body #cart .alert-warning {
  border-radius: 18px !important;
  line-height: 1.5;
}

/* ВСЕ ПОЛЯ ВВОДА (ник, почта, промокод, префикс, ссылки и т.д.) */
html body .modal .form-control,
html body .modal .input-group-text,
html body .modal select,
html body .modal textarea {
  height: 50px;
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: var(--mt-white) !important;
  font-family: 'Onest', sans-serif !important;
  font-size: .95rem !important;
  box-shadow: none !important;
  transition: border-color .3s, background .3s, box-shadow .3s !important;
}
html body .modal textarea { height: auto; min-height: 96px; }
html body .modal .form-control::placeholder {
  color: var(--mt-dim) !important;
  text-transform: none;
  letter-spacing: .01em;
}
html body .modal .form-control:focus {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.45) !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,.06) !important;
}
html body .modal .form-control:invalid:not(:placeholder-shown) { border-color: rgba(255,120,120,.5) !important; }
/* одиночное поле — полностью скруглено */
html body .modal .input-group > .form-control:only-child { border-radius: 14px !important; }
/* поле с иконкой слева — иконка и поле одним блоком */
html body .modal .input-group-prepend .input-group-text {
  width: 50px;
  justify-content: center;
  border-radius: 14px 0 0 14px !important;
  border-right: 0 !important;
  color: var(--mt-dim) !important;
}
html body .modal .input-group-prepend + .form-control {
  border-radius: 0 14px 14px 0 !important;
  border-left: 0 !important;
  padding-left: 4px !important;
  margin-left: 0 !important;
}
html body .modal .input-group-prepend { margin-right: 0 !important; }
html body .modal .input-group:focus-within .input-group-text {
  border-color: rgba(255,255,255,.45) !important;
  background: rgba(255,255,255,.06) !important;
  color: var(--mt-white) !important;
}
html body .modal .input-group .form-control { height: 50px; }
html body .modal select option { background: #0a0a0a; color: var(--mt-white); }

/* чекбоксы согласия */
html body .modal .form-check-label { color: var(--mt-mute) !important; line-height: 1.5; font-size: .92rem; }
html body .modal .form-check-sign::before,
html body .modal .form-check-sign::after { border-radius: 6px !important; }
html body .modal .form-check-sign::before {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
}
html body .modal .form-check-input:checked + .form-check-sign::before {
  background: var(--mt-white) !important;
  border-color: var(--mt-white) !important;
}
html body .modal .form-check-input:checked + .form-check-sign::after { color: #000 !important; }
html body .modal .form-check-input { accent-color: #f5f5f4; }

/* кнопка «Купить» — главная */
html body #cart .btn-dark {
  min-width: 180px;
  height: 52px;
  font-size: 1rem !important;
}
html body #cart a.text-danger.text-underline { color: var(--mt-dim) !important; text-decoration: none !important; }
html body #cart a.text-danger.text-underline:hover { color: var(--mt-white) !important; }

/* окна оплаты (в шаблоне светлые — делаем тёмными) */
html body .modal .modal-body[style*="f8f9fa"] { background: #070707 !important; }
html body .modal .modal-content.rounded-0 { border-radius: 28px !important; }
html body .modal .card.rounded-0,
html body #payment-type .card {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--mt-line) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: border-color .35s, background .35s !important;
}
html body #payment-type .card:hover { border-color: rgba(255,255,255,.4) !important; background: rgba(255,255,255,.06) !important; }
html body #payment-type p,
html body #accept-payment p { color: var(--mt-mute) !important; }

/* выбор сервера, «игрок не заходил», уведомления */
html body .select-server-group .modal-content,
html body .modal-player-state-never-joined .modal-content { background: #070707 !important; }
html body .flash-message {
  background: #0c0c0c !important;
  border: 1px solid var(--mt-line-2) !important;
  border-radius: 16px !important;
  color: var(--mt-white) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.7) !important;
  font-family: 'Onest', sans-serif;
}
html body .flash-message.error { border-color: rgba(255,120,120,.5) !important; }
html body .flash-message.success { border-color: rgba(120,255,170,.4) !important; }
html body .tooltip-inner { background: var(--mt-white); color: #000; border-radius: 8px; }


/* ==========================================================================
   16. ОПИСАНИЕ ТОВАРА — вёрстка для текста из панели EasyDonate
   Готовые блоки: .mt-note (предупреждение) и .mt-roulette (список выпадений).
   HTML для вставки в описание товара — в файлах desc-*.html
   ========================================================================== */

html body .modal .mt-desc {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Onest', sans-serif;
  text-align: left;
}

/* предупреждение */
html body .modal .mt-note {
  position: relative;
  display: block;
  margin: 0 !important;
  padding: 14px 16px 14px 46px;
  border-radius: 16px;
  background: rgba(255,233,207,.06);
  border: 1px solid rgba(255,233,207,.22);
  color: #ffe9cf !important;
  font-size: .92rem;
  line-height: 1.5;
}
html body .modal .mt-note::before {
  content: "";
  position: absolute;
  left: 16px; top: 15px;
  width: 20px; height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16v.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16v.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* список выпадений */
html body .modal .mt-roulette {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--mt-line);
}
html body .modal .mt-roulette__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
html body .modal .mt-roulette__head b {
  color: var(--mt-white);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
html body .modal .mt-roulette__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mt-dim);
}

html body .modal .mt-drops {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  counter-reset: drop;
}
html body .modal .mt-drops li {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr 84px;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 9px 10px;
  border-radius: 12px;
  transition: background .3s var(--mt-ease);
}
html body .modal .mt-drops li:hover { background: rgba(255,255,255,.04); }
html body .modal .mt-drops li::before {
  counter-increment: drop;
  content: counter(drop);
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  color: var(--mt-dim);
  text-align: right;
}
html body .modal .mt-drops .mt-drop__name {
  color: var(--mt-mute);
  font-size: .95rem;
  line-height: 1.35;
}
/* шкала шанса: чем шире — тем чаще выпадает */
html body .modal .mt-drops .mt-drop__bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
html body .modal .mt-drops .mt-drop__bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--c, 50) * 1%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,233,207,.55), #ffe9cf);
  box-shadow: 0 0 10px rgba(255,233,207,.35);
}

/* редкий предмет — выделяем */
html body .modal .mt-drops li.is-rare {
  background: rgba(255,233,207,.07);
  box-shadow: inset 0 0 0 1px rgba(255,233,207,.28);
}
html body .modal .mt-drops li.is-rare .mt-drop__name {
  color: #ffe9cf;
  font-weight: 600;
}
html body .modal .mt-drops li.is-rare .mt-drop__name::after {
  content: attr(data-tag);
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ffe9cf;
  color: #1a1206;
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: middle;
}

@media (max-width: 575.98px) {
  html body .modal .mt-drops li { grid-template-columns: 22px 1fr; row-gap: 6px; }
  html body .modal .mt-drops .mt-drop__bar { grid-column: 2; }
}

/* редактор EasyDonate превращает переносы строк в <br> — внутри блоков они лишние */
html body .modal .mt-desc br,
html body .modal .mt-roulette br,
html body .modal .mt-drops br { display: none !important; }

/* окно товара шире, на десктопе — две колонки: слева картинка, справа описание */
@media (min-width: 992px) {
  html body .modal-dialog:has(.product-modal) { max-width: 620px; }
  html body .modal-dialog:has(.mt-desc) { max-width: 900px; }
  html body .product-modal .modal-body:has(.mt-desc) {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
    padding: 28px 30px 30px !important;
  }
  html body .product-modal .modal-body:has(.mt-desc) > .badge { grid-column: 1; grid-row: 1; justify-self: start; }
  html body .product-modal .modal-body:has(.mt-desc) > .py-3 { grid-column: 1; grid-row: 2; margin: 0 !important; }
  html body .product-modal .modal-body:has(.mt-desc) > .my-3 { grid-column: 2; grid-row: 1 / span 2; margin: 0 !important; }
  html body .product-modal .modal-body:has(.mt-desc) .card-image { width: 100%; }
  html body .product-modal .modal-body:has(.mt-desc) .card-image img { width: 100% !important; max-width: 220px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  html body .modal-dialog:has(.mt-desc) { max-width: 780px; }
  html body .product-modal .modal-body:has(.mt-desc) { grid-template-columns: 250px minmax(0, 1fr); }
}

/* --- блоки описания: секции, метки, команды, правила, шаги ---------------- */

/* секция с заголовком (как список рулетки, но для любого содержимого) */
html body .modal .mt-sec {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--mt-line);
}
html body .modal .mt-sec__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
html body .modal .mt-sec__head b {
  color: var(--mt-white);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
html body .modal .mt-sec__hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mt-dim);
}

/* предупреждение с красным оттенком */
html body .modal .mt-note--danger {
  background: rgba(255,120,120,.07);
  border-color: rgba(255,120,120,.28);
  color: #ffb3b3 !important;
}

/* строка меток: срок, бонусы */
html body .modal .mt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
html body .modal .mt-tags li {
  margin: 0 !important;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--mt-line-2);
  color: var(--mt-mute);
  font-size: .82rem;
  line-height: 1;
}
/* плашка выгоды */
html body .modal .mt-tags li.is-save {
  position: relative;
  padding-left: 30px;
  background: rgba(200,255,214,.09);
  border-color: rgba(200,255,214,.35);
  color: #c8ffd6;
  font-weight: 600;
}
html body .modal .mt-tags li.is-save::before {
  content: "";
  position: absolute;
  left: 11px; top: 50%;
  width: 13px; height: 13px;
  translate: 0 -50%;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17L12 9l4 4 5-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17L12 9l4 4 5-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

html body .modal .mt-tags li.is-key {
  background: #ffe9cf;
  border-color: #ffe9cf;
  color: #1a1206;
  font-weight: 600;
}

/* список команд: слева команда, справа что делает */
html body .modal .mt-cmds {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
html body .modal .mt-cmds li {
  display: grid;
  grid-template-columns: minmax(84px, max-content) minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 14px;
  margin: 0 !important;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--mt-mute);
  font-size: .92rem;
  line-height: 1.4;
  transition: background .3s var(--mt-ease);
}
html body .modal .mt-cmds li:hover { background: rgba(255,255,255,.04); }
html body .modal .mt-cmds code { white-space: nowrap; }

/* правила: галочка — можно, крестик — нельзя */
html body .modal .mt-rules {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
html body .modal .mt-rules li {
  position: relative;
  display: block;
  padding-left: 29px;
  margin: 0 !important;
  color: var(--mt-mute);
  font-size: .92rem;
  line-height: 1.45;
}
html body .modal .mt-rules li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
          mask: center / contain no-repeat;
}
html body .modal .mt-rules li.no {
  color: rgba(255,170,170,.85);
}
html body .modal .mt-rules li.no::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
html body .modal .mt-rules li.yes {
  color: rgba(200,255,214,.85);
}
html body .modal .mt-rules li.yes::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}

/* пошаговая инструкция */
html body .modal .mt-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  counter-reset: step;
}
html body .modal .mt-steps li {
  position: relative;
  display: block;
  padding-left: 38px;
  margin: 0 !important;
  color: var(--mt-mute);
  font-size: .92rem;
  line-height: 1.6;
}
html body .modal .mt-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: -1px;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--mt-line-2);
  color: var(--mt-white);
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
}
html body .modal .mt-steps b { display: block; color: var(--mt-white); font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
html body .modal .mt-steps code { display: block; margin-top: 10px; padding: 10px 12px; white-space: normal; word-break: break-word; line-height: 1.6; }
/* пояснение под списком внутри секции */
html body .modal .mt-sec > p { margin: 14px 0 0 !important; color: var(--mt-dim) !important; font-size: .86rem; line-height: 1.5; }
html body .modal .mt-desc a {
  color: #ffe9cf !important;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(255,233,207,.45);
  text-underline-offset: 3px;
}
html body .modal .mt-desc a:hover { text-decoration-color: #ffe9cf; }
html body .modal .mt-note a { white-space: nowrap; }   /* @ник и короткие ссылки не рвём */
html body .modal .mt-rules code,
html body .modal .mt-cmds span code { vertical-align: baseline; }

@media (max-width: 575.98px) {
  html body .modal .mt-cmds li { grid-template-columns: minmax(0, 1fr); }
  html body .modal .mt-cmds code { justify-self: start; }
}


/* ==========================================================================
   17. ПОДАРКИ (награды за вход): кнопка в навбаре и выезжающая карточка
   Иконка-подарок из шаблона — цветная картинка. Заменена на outline-иконку:
   картинка скрыта, вместо неё рисуется линейная иконка через маску.
   ========================================================================== */

html body { --mt-gift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M5 12v8h14v-8M12 8v12'/%3E%3Cpath d='M12 8C10 8 7.5 7.6 7.5 5.9S10.6 4 12 8zm0 0c2 0 4.5-.4 4.5-2.1S13.4 4 12 8z'/%3E%3C/svg%3E"); }

/* кнопки справа в навбаре: подарок + корзина в один ряд */
html body #widgets {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
html body #widgets > .mt-2 { order: -1; margin: 0 !important; }

/* кнопка-подарок */
html body #rewards-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--mt-line-2);
  color: var(--mt-white);
  transition: background .35s var(--mt-ease), border-color .35s, color .35s, box-shadow .35s;
}
html body #rewards-button img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
}
html body #rewards-button::before {
  content: "";
  width: 21px;
  height: 21px;
  background: currentColor;
  -webkit-mask: var(--mt-gift) center / contain no-repeat;
          mask: var(--mt-gift) center / contain no-repeat;
}
html body #rewards-button:hover {
  background: var(--mt-white);
  border-color: var(--mt-white);
  color: #000;
  box-shadow: 0 0 30px rgba(255,255,255,.2);
}

/* карточка наград — панель под навбаром */
html body #rewards {
  position: fixed !important;
  top: 100px;
  right: max(16px, calc(50% - 590px));
  width: min(560px, calc(100vw - 32px));
  padding: 0 !important;
  text-align: left;
  animation: mt-pop .45s var(--mt-ease);
}
@keyframes mt-pop {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
html body .reward {
  background: #070707 !important;
  border: 1px solid var(--mt-line-2) !important;
  border-radius: 28px !important;
  box-shadow: 0 40px 120px rgba(0,0,0,.85), 0 0 60px rgba(255,255,255,.04) !important;
  overflow: visible;
}
html body .reward::before {
  content: "";
  position: absolute;
  top: -1px; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,233,207,.6), transparent);
}
/* колонки — друг под другом */
html body .reward .col-md-6 { flex: 0 0 100%; max-width: 100%; }

/* иконка-подарок в углу карточки — круг с outline-значком */
html body .reward > .position-absolute:has(img) {
  top: 22px !important;
  left: 22px !important;
  transform: none !important;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--mt-line-2);
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.1), transparent 70%), #0b0b0b;
  box-shadow: 0 0 26px rgba(255,255,255,.12);
  color: var(--mt-white);
}
html body .reward > .position-absolute:has(img)::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: var(--mt-gift) center / contain no-repeat;
          mask: var(--mt-gift) center / contain no-repeat;
}
html body .reward img[src*="gift-icon"] {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
}

/* крестик закрытия */
html body .reward a.position-absolute:has(.fa-times) {
  top: 22px !important;
  right: 22px !important;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--mt-line);
  color: var(--mt-mute);
  transition: color .3s, border-color .3s, background .3s;
}
html body .reward a.position-absolute:has(.fa-times):hover {
  color: #000;
  background: var(--mt-white);
  border-color: var(--mt-white);
}

/* заголовок и текст */
html body .reward .col-md-6:first-child .card-body {
  padding: 24px 70px 6px 92px !important;
  margin: 0 !important;
}
html body .reward h4 {
  font-size: 1.25rem;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  margin-bottom: 4px !important;
}
html body .reward p { color: var(--mt-mute) !important; font-size: .95rem; }

/* форма: поле ника + кнопка «Забрать» */
html body .reward .col-md-6:last-child .card-body {
  margin: 14px 22px 22px !important;
  padding: 6px 6px 6px 8px !important;
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--mt-line) !important;
  border-radius: 999px !important;
  height: auto !important;
}
html body .reward .input-group { align-items: center; flex-wrap: nowrap; }
html body .reward .input-group-text {
  background: transparent !important;
  border: 0 !important;
  color: var(--mt-dim) !important;
  height: auto;
}
html body .reward .form-control {
  height: 44px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--mt-white) !important;
  font-size: 1rem !important;
  padding-left: 4px;
}
html body .reward .form-control::placeholder { color: var(--mt-dim) !important; }
html body .reward .input-group-append .input-group-text { padding: 0 !important; }
html body .reward .input-group-append .btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px !important;
  border-radius: 999px !important;
  background: var(--mt-white) !important;
  border: 0 !important;
  color: #000 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition: box-shadow .35s var(--mt-ease), transform .35s var(--mt-ease);
}
html body .reward .input-group-append .btn:hover {
  box-shadow: 0 0 34px rgba(255,255,255,.25) !important;
  transform: translateY(-1px);
}
html body .reward .input-group-append .btn i { color: inherit !important; }

@media (max-width: 575.98px) {
  html body #rewards { top: 92px; right: 16px; }
  html body .reward .col-md-6:first-child .card-body { padding: 22px 64px 4px 84px !important; }
  html body .reward .col-md-6:last-child .card-body { margin: 12px 14px 16px !important; }
  html body .reward .form-control { min-width: 0; font-size: .95rem !important; padding-left: 12px; }
  html body .reward .input-group-prepend { display: none; }
  html body .reward .input-group-append .btn { padding: 0 14px !important; }
}
