*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: #202334;
    color: #d0d4de;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  header {
    background: #161824;
    border-bottom: 1px solid #1e2330;
    position: relative;
  }

  /* ── Announcement bar ──────────────────────── */
  .announce-bar {
    background: linear-gradient(90deg, #1a1e35 0%, #1e2240 50%, #1a1e35 100%);
    border-bottom: 1px solid rgba(91, 142, 255, 0.2);
    position: relative;
    overflow: hidden;
  }
  .announce-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(91, 142, 255, 0.04) 50%,
      transparent 100%);
    animation: announce-shine 4s ease-in-out infinite;
  }
  @keyframes announce-shine {
    0%, 100% { opacity: 0; }
    50%       { opacity: 1; }
  }
  .announce-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
  }
  .announce-text {
    font-size: 13px;
    color: #a0aac8;
    text-align: center;
    line-height: 1.4;
  }
  .announce-text strong {
    color: #d0d4de;
  }
  .announce-tag {
    display: inline-block;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.4);
    color: #ff6b35;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .announce-code {
    display: inline-block;
    background: rgba(224, 154, 48, 0.12);
    border: 1px solid rgba(224, 154, 48, 0.35);
    color: #e09a30;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.2;
    padding: 2px 10px;
    border-radius: 4px;
    font-family: monospace;
    cursor: pointer;
    user-select: all;
    text-align: center;
    transition: background .15s, border-color .15s;
  }
  .announce-code:hover {
    background: rgba(224, 154, 48, 0.2);
    border-color: rgba(224, 154, 48, 0.6);
  }
  .announce-code.copied {
    background: rgba(52,198,90,.15);
    border-color: rgba(52,198,90,.6);
    color: #34c65a;
  }
  .announce-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #5a6280;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: color .15s, background .15s;
  }
  .announce-close:hover { color: #8a93b0; background: rgba(255,255,255,0.05); }
  .announce-bar.is-hidden { display: none; }

  /* ── Баннер "БД временно недоступна" (главная + /status/) ─────────────── */
  .db-warning-banner {
    background: rgba(224, 154, 48, 0.1);
    border: 1px solid rgba(224, 154, 48, 0.35);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
  }
  .db-warning-banner-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #e09a30;
  }
  .db-warning-banner-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #c8ccd8;
  }

  /* ── Бургер-кнопка ──────────────────────────── */
  .burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 1px solid #2a3050;
    border-radius: 7px;
    padding: 8px 10px;
    cursor: pointer;
  }
  .burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #8a93b0;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
  }
  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .header-switchers {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  @media (max-width: 1045px) {
    .header-switchers {
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
    }
  }
  .header-socials {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  @media (max-width: 965px) {
    .header-socials {
      display: grid;
      grid-template-columns: repeat(2, auto);
      gap: 4px;
    }
  }
  .header-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  @media (max-width: 865px) {
    .header-nav-links {
      display: grid;
      grid-template-columns: repeat(2, auto);
      gap: 4px;
    }
  }
  .header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
  }
  .nav-btn-products {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c084fc;
  }
  .nav-btn-products:hover {
    background: rgba(168, 85, 247, 0.22);
    border-color: rgba(168, 85, 247, 0.65);
    color: #d8b4fe;
  }
  .nav-btn-forum {
    background: rgba(66, 139, 250, 0.18);
    border-color: rgba(66, 139, 250, 0.45);
    color: #8ab4fb;
  }
  .nav-btn-forum:hover {
    background: rgba(66, 139, 250, 0.28);
    border-color: rgba(66, 139, 250, 0.7);
    color: #b8d0fd;
  }
  .nav-btn-status {
    background: rgba(52, 198, 90, 0.08);
    border-color: rgba(52, 198, 90, 0.25);
    color: #34c65a;
  }
  .nav-btn-status:hover {
    background: rgba(52, 198, 90, 0.15);
    border-color: rgba(52, 198, 90, 0.45);
  }
  .nav-btn-download {
    background: linear-gradient(90deg, rgba(91,142,255,0.15), rgba(52,198,90,0.15));
    border-color: rgba(91,142,255,0.4);
    color: #a0c4ff;
  }
  .nav-btn-download:hover {
    background: linear-gradient(90deg, rgba(91,142,255,0.28), rgba(52,198,90,0.28));
    border-color: rgba(91,142,255,0.7);
    color: #d0e8ff;
  }
  .nav-btn-partner {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.35);
    color: #d4af37;
  }
  .nav-btn-partner:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.6);
  }
  .nav-btn-tg {
    background: rgba(42, 171, 238, 0.1);
    border-color: rgba(42, 171, 238, 0.35);
    color: #2aabee;
  }
  .nav-btn-tg:hover {
    background: rgba(42, 171, 238, 0.2);
    border-color: rgba(42, 171, 238, 0.6);
  }
  .nav-btn-discord {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.35);
    color: #8891f2;
  }
  .nav-btn-discord:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.6);
  }
  .nav-btn-vk {
    background: rgba(0, 119, 255, 0.1);
    border-color: rgba(0, 119, 255, 0.35);
    color: #4a8fff;
  }
  .nav-btn-vk:hover {
    background: rgba(0, 119, 255, 0.2);
    border-color: rgba(0, 119, 255, 0.6);
  }
  .nav-btn-yt {
    background: rgba(255, 0, 0, 0.08);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff4444;
  }
  .nav-btn-yt:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.55);
  }
  .nav-btn-icon-only {
    padding: 7px 10px;
    cursor: pointer;
  }
  .nav-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
  .toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
  }
  .search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .search-input {
    background: #202334;
    border: 1px solid #428BFA;
    border-radius: 8px;
    color: #d0d4de;
    font-size: 14px;
    padding: 7px 14px;
    width: 280px;
    outline: none;
    transition: border-color .2s;
  }
  .search-input::placeholder { color: #8a93b0; }
  .search-input:focus { border-color: #5b8eff; }
  .search-count {
    font-size: 12px;
    color: #5a6280;
    white-space: nowrap;
  }
  .search-hint {
    position: relative;
    display: flex;
    align-items: center;
  }
  .search-hint-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #428BFA;
    background: #161824;
    color: #c8ccd8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding-bottom: 1px;
    padding-left: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    user-select: none;
    transition: border-color .15s, color .15s;
  }
  .search-hint:hover .search-hint-icon {
    border-color: #5b8eff;
    color: #5b8eff;
  }
  .search-hint-tooltip {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #161824;
    border: 1px solid #2a3050;
    border-radius: 8px;
    padding: 10px 14px;
    width: 300px;
    font-size: 12px;
    color: #c8ccd8;
    line-height: 1.6;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .15s, transform .15s;
    z-index: 10;
    white-space: normal;
  }
  .search-hint-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #161824;
    border-left: 1px solid #2a3050;
    border-top: 1px solid #2a3050;
    transform: rotate(45deg);
  }
  .search-hint:hover .search-hint-tooltip {
    opacity: 1;
    transform: translateY(0);
  }
  .card.hidden { display: none; }

  .logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  @media (max-width: 1190px) {
    .logo-wrap {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }
  }
  .logo-slogan {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8BFA6E;
    background: rgba(139, 250, 110, 0.08);
    border: 1px solid rgba(139, 250, 110, 0.25);
    border-radius: 5px;
    padding: 3px 8px;
    white-space: nowrap;
  }
  .logo-slogan::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8BFA6E;
    box-shadow: 0 0 6px #8BFA6E88;
    flex-shrink: 0;
  }

  header .logo {
    font-size: 28px;
    font-weight: 700;
    color: #5b8eff;
    letter-spacing: 1px;
    text-decoration: none;
  }
  header .logo span { color: #ffffff; }

  main {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 36px 24px;
    flex: 1;
  }

  h1.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #efeff0;
    letter-spacing: .5px;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  @media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 690px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 480px)  { .grid { grid-template-columns: 1fr; } }

  /* ── Карточка ─────────────────────────────── */
  .card {
    background: #161824;
    border: 1px solid #1e2330;
    border-bottom: 4px solid #428BFA;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0; /* без этого грид-колонка растягивается под width/height картинки (800×450) */
    transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
    position: relative;
    box-shadow: none;
  }
  .card:hover {
    transform: translateY(-3px);
    border-color: #8b2020;
  }
  .card.is-offline { opacity: .6; }

  /* ── Карточка "Предложить игру" ─────────────── */
  .card-suggest {
    background: transparent;
    border: 2px dashed #2a3050;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 20px;
    gap: 12px;
    transition: border-color .2s;
    min-height: 220px;
  }
  .card-suggest:hover { border-color: #428BFA; }
  .card-suggest:hover .suggest-icon { color: #428BFA; }
  .suggest-icon {
    font-size: 32px;
    color: #5a6280;
    transition: color .2s;
    line-height: 1;
  }
  .suggest-title {
    font-size: 15px;
    font-weight: 600;
    color: #8a93b0;
  }
  .suggest-desc {
    font-size: 12px;
    color: #5a6280;
    line-height: 1.6;
    max-width: 200px;
  }
  .suggest-btn {
    margin-top: 4px;
    padding: 7px 20px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: 1px solid #3a4060;
    color: #8a93b0;
    transition: border-color .15s, color .15s, background .15s;
    cursor: pointer;
  }
  .suggest-btn:hover {
    border-color: #428BFA;
    color: #8ab4fb;
    background: rgba(66,139,250,.08);
  }

  /* ── Карточка "Поддержать проект" ───────────── */
  .card-donate {
    background: transparent;
    border: 2px dashed #2e2a1a;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 20px;
    text-align: center;
    min-height: 220px;
    transition: border-color .2s;
  }
  .card-donate:hover { border-color: #d4af37; }
  .card-donate:hover .donate-icon { color: #d4af37; }
  .donate-icon {
    font-size: 32px;
    color: #6a5a30;
    line-height: 1;
  }
  .donate-title {
    font-size: 15px;
    font-weight: 600;
    color: #8a8060;
  }
  .donate-desc {
    font-size: 12px;
    color: #5a5040;
    line-height: 1.5;
    max-width: 200px;
  }
  .donate-btn {
    margin-top: 4px;
    padding: 7px 20px;
    border-radius: 8px;
    border: 1px solid #3a2e10;
    background: transparent;
    color: #6a5a30;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
    cursor: pointer;
  }
  .donate-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
    background: rgba(212,175,55,.08);
  }

  /* Бейдж NEW — top-left, top задаётся инлайново из PHP (см.
     $leftBadgeTop в inc/page_main.php) — три бейджа этого угла
     (Рекомендуем/NEW/скидка) стекуются в фиксированном порядке приоритета,
     сдвиг на 22px за каждый занятый слот выше. */
  .badge-new {
    position: absolute;
    left: 10px;
    background: #ff6b35;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
    z-index: 2;
  }

  /* Бейдж скидки (индивидуальный промокод товара) — тот же угол/механика
     стекинга, что и NEW выше (top — инлайн). 🔥 (top-right) остаётся
     полностью независимым, скидка на него не влияет. */
  .badge-discount {
    position: absolute;
    left: 10px;
    background: #e05252;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
    z-index: 2;
  }

  /* Бейдж "Рекомендуем" (is_recommended, ручной флаг из админки) — тот же
     угол, что и NEW/скидка (top-left, по просьбе — выше NEW), не 🔥
     (top-right, полностью отдельный угол). top — инлайн, та же стекинг-
     механика, что у NEW/скидки выше; в паре с NEW+скидкой Рекомендуем
     всегда занимает верхний слот. box-shadow — золотой градиент сам по
     себе плохо контрастирует с тёплыми/жёлтыми игровыми скриншотами
     (сливался), тёмное кольцо-обводка снаружи гарантирует читаемость на
     любом фоне. */
  .badge-recommended {
    position: absolute;
    left: 10px;
    background: linear-gradient(135deg, #ffb84d, #e0781a);
    color: #1a0d00;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 0 10px rgba(224,120,26,.4);
  }

  /* 🔥 Угловой огонь (TOP-продукты) */
  .card-fire-corner {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    font-size: 22px;
    line-height: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(255,100,0,.8));
    animation: fire-flicker 1.5s ease-in-out infinite;
  }
  @keyframes fire-flicker {
    0%,100% { transform: scaleY(1) rotate(-3deg);  filter: drop-shadow(0 0 5px rgba(255,100,0,.7)); }
    33%      { transform: scaleY(1.08) rotate(2deg); filter: drop-shadow(0 0 8px rgba(255,140,0,.9)); }
    66%      { transform: scaleY(.96) rotate(-1deg); filter: drop-shadow(0 0 6px rgba(255,60,0,.8)); }
  }

  /* Картинка */
  .card-img-wrap {
    position: relative;
  }
  /* Прозрачный слой поверх картинки — перехватывает правый клик.
     pointer-events:none на img обязателен для Chrome: без него Chrome
     "видит" img под div'ом и показывает "Открыть/Сохранить изображение". */
  .card-img-shield {
    position: absolute;
    inset: 0;
    z-index: 1;
  }
  .card-img {
    width: 100%;
    height: auto; /* без этого HTML-атрибут height="450" перебивает aspect-ratio */
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #0a0c12;
    display: block;
    pointer-events: none; /* Chrome: без этого shield не помогает */
  }
  .card-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0e1120 0%, #1a1e2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }
  .card-img-placeholder svg {
    width: 72px;
    height: 72px;
    opacity: .18;
  }
  /* Тело карточки */
  .card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
  }

  h2.card-name {
    font-size: 17px;
    font-weight: 600;
    color: #e0e4f0;
    line-height: 1.3;
    margin: 0;
  }

  /* Статус */
  .status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
  }
  .status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .status-dot.online   { background: #34c65a; box-shadow: 0 0 6px #34c65a88; }
  .status-dot.offline  { background: #e05252; }
  .status-dot.detected { background: #e09a30; box-shadow: 0 0 6px #e09a3066; }

  .status-text.online   { color: #34c65a; }
  .status-text.offline  { color: #e05252; }
  .status-text.detected { color: #e09a30; }

  /* Инфо о подписке */
  .sub-info {
    font-size: 13px;
    color: #5a6280;
  }

  /* Цена */
  .price-row {
    font-size: 13px;
    color: #5a6280;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
  }
  .price-val {
    color: #e0e4f0;
    font-weight: 600;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
  }
  .price-sym {
    font-size: 11px;
    color: #8a93b0;
    font-weight: 500;
  }
  .card-period-badges {
    display: flex;
    gap: 4px;
    margin-left: auto;
  }
  .card-period-badge {
    font-size: 10px;
    color: #5a6280;
    background: #1a1e2e;
    border: 1px solid #2a2e42;
    border-radius: 4px;
    padding: 1px 5px;
    user-select: none;
  }
  .card-period-badge--default {
    color: #5b8eff;
    border-color: rgba(91, 142, 255, 0.4);
    background: rgba(91, 142, 255, 0.08);
  }

  /* Промо-тег на карточке */
  .promo-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
  }
  .promo-wrap-label {
    font-size: 10px;
    color: #8a93b0;
  }
  .promo-tag {
    font-size: 10px;
    font-weight: 600;
    color: #e09a30;
    background: rgba(224,154,48,.12);
    border: 1px solid rgba(224,154,48,.35);
    border-radius: 4px;
    padding: 1px 6px;
    letter-spacing: .04em;
    line-height: 1.2;
    user-select: all;
    cursor: pointer;
    text-align: center;
  }
  .promo-tag:hover { background: rgba(224,154,48,.2); }
  .promo-tag.copied {
    color: #34c65a;
    background: rgba(52,198,90,.15);
    border-color: rgba(52,198,90,.45);
    transition: color .15s, background .15s, border-color .15s;
  }

  .card-no-price {
    margin-top: auto;
    opacity: 0.85;
    height: 60px;
    overflow: hidden;
  }
  .card-stickfight {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* Разделитель перед кнопками */
  .card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #2a3050 20%, #2a3050 80%, transparent);
    margin: 6px 0 5px;
    margin-top: auto;
  }

  /* Кнопки */
  .card-actions {
    display: flex;
    gap: 8px;
  }
  .btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter .15s, border-color .15s;
  }
  .btn:hover { filter: brightness(1.08); }

  /* "Купить"/"Подробнее" на карточке — бордовая рамка на hover, как у самой
     карточки (.card:hover). btn-buy по умолчанию без рамки — заводим
     прозрачную 1px заранее, иначе появление рамки только на hover дёрнет
     кнопку (border учитывается в её ширине/высоте). */
  .card-actions .btn-buy,
  .card-actions .btn-info {
    border: 1px solid transparent;
  }
  .card-actions .btn-buy:hover,
  .card-actions .btn-info:hover {
    border-color: #8b2020;
  }

  .btn-buy {
    background: #4f7fe0;
    color: #fff;
  }
  /* Притушенный hover именно для "Купить" — общий .btn:hover (brightness(1.08))
     на итоговом #5b8eff давал слишком яркий #6299FF; здесь мягче поверх уже
     более тёмного базового цвета. */
  .btn-buy:hover {
    filter: brightness(1.03);
  }
  .btn-info {
    background: #1e2330;
    color: #8a93b0;
    border: 1px solid #2a3050;
  }
  .btn-free {
    background: #2a8a4a;
    color: #fff;
  }
  .btn-disabled {
    background: #1a1e28;
    color: #3a4060;
    cursor: default;
    border: 1px solid #252a3a;
  }
  .btn-disabled:hover { filter: none; }

  /* "Подробнее" на карточке товара — синий outline вместо нейтрально-серого
     (см. info-button-variants.html, вариант 1). Селектор через `.card`,
     а не голый `.btn-info` — тот же класс висит на кнопке "Отмена" в
     buy-модалке (inc/footer.php), её трогать не нужно. */
  .card .btn-info {
    background: rgba(91,142,255,.10);
    color: #8ab4fb;
    border: 1px solid rgba(91,142,255,.45);
  }

  /* ── Переключатель валюты ───────────────────── */
  .currency-switcher {
    position: relative;
    flex-shrink: 0;
  }
  .currency-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid #2a3050;
    border-radius: 7px;
    color: #8a93b0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
    line-height: 1;
  }
  .currency-btn:hover {
    background: #1e2330;
    color: #d0d4de;
    border-color: #3a4060;
  }
  .currency-switcher.is-open .currency-btn {
    background: #1e2330;
    color: #5b8eff;
    border-color: rgba(91, 142, 255, 0.4);
  }
  .currency-symbol {
    font-size: 13px;
    opacity: .7;
  }
  .currency-caret {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    transition: transform .2s;
  }
  .currency-switcher.is-open .currency-caret {
    transform: rotate(180deg);
  }
  .currency-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 110px;
    background: #161824;
    border: 1px solid #2a3050;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
    z-index: 200;
  }
  .currency-switcher.is-open .currency-dropdown {
    display: block;
    animation: lang-drop-in .15s ease;
  }
  .currency-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #8a93b0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .12s, color .12s;
  }
  .currency-option:hover {
    background: #1e2330;
    color: #d0d4de;
  }
  .currency-option.currency-option-active {
    color: #5b8eff;
    background: rgba(91, 142, 255, 0.08);
  }
  .currency-option-symbol {
    font-size: 14px;
    width: 16px;
    text-align: center;
    opacity: .8;
  }
  .currency-default-badge {
    font-size: 10px;
    color: #ff6b35;
    margin-left: 4px;
  }

  /* ── Разделитель в навигации ────────────────── */
  .nav-divider {
    width: 1px;
    height: 22px;
    background: #2a3050;
    flex-shrink: 0;
    margin: 0 4px;
  }

  /* ── Переключатель языков (глобус + дропдаун) ── */
  .lang-switcher {
    position: relative;
    flex-shrink: 0;
  }
  .lang-globe-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: transparent;
    border: 1px solid #2a3050;
    border-radius: 7px;
    color: #8a93b0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
    line-height: 1;
  }
  .lang-globe-btn:hover {
    background: #1e2330;
    color: #d0d4de;
    border-color: #3a4060;
  }
  .lang-switcher.is-open .lang-globe-btn {
    background: #1e2330;
    color: #5b8eff;
    border-color: rgba(91, 142, 255, 0.4);
  }
  .lang-globe-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }
  .lang-caret {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    transition: transform .2s;
  }
  .lang-switcher.is-open .lang-caret {
    transform: rotate(180deg);
  }
  .lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 140px;
    background: #161824;
    border: 1px solid #2a3050;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.45);
    z-index: 200;
  }
  .lang-switcher.is-open .lang-dropdown {
    display: block;
    animation: lang-drop-in .15s ease;
  }
  @keyframes lang-drop-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #8a93b0;
    text-decoration: none;
    transition: background .12s, color .12s;
  }
  .lang-option:hover {
    background: #1e2330;
    color: #d0d4de;
  }
  .lang-option.lang-option-active {
    color: #5b8eff;
    background: rgba(91, 142, 255, 0.08);
  }
  .lang-option-flag {
    font-size: 16px;
    line-height: 1;
  }

  /* ── Мобильные переопределения (≤ 760px) ────── */
  @media (max-width: 690px) {
    .announce-inner {
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 10px 40px 10px 16px;
      gap: 6px;
    }
    .announce-close {
      top: 10px;
      transform: none;
    }

    .status-row { flex-wrap: wrap; }
    .promo-wrap { margin-left: 0; width: 100%; }
    .price-row { flex-wrap: wrap; }
    .card-period-badges { width: 100%; margin-left: 0; margin-top: 2px; }

    .logo-wrap {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }
    .burger { display: flex; }

    .header-nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      background: #161824;
      border-bottom: 1px solid #1e2330;
      padding: 12px 20px;
      gap: 8px;
      z-index: 100;
    }
    .header-nav.nav-open { display: flex; }
    .header-nav .nav-btn { text-align: center; }

    .toolbar {
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
    }
    .search-wrap { width: 100%; }
    .search-input { width: 100%; }

    .search-hint-tooltip {
      left: auto;
      right: 0;
    }
    .search-hint-tooltip::before {
      left: auto;
      right: 5px;
    }
    .search-hint.hint-open .search-hint-tooltip {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ── Фильтр статусов ───────────────────────── */
  .filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .filter-tab {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #2a3050;
    background: transparent;
    color: #5a6280;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    font-family: inherit;
  }
  .filter-tab:hover { color: #d0d4de; border-color: #428BFA; }
  .filter-tab.active {
    background: #428BFA;
    border-color: #428BFA;
    color: #fff;
  }

  /* ── Feature badges ─────────────────────────── */
  .feature-badge {
    background: #161824;
    border: 1px solid #1e2330;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .feature-badge-icon { font-size: 20px; flex-shrink: 0; }
  .feature-badge-title { font-size: 13px; font-weight: 600; color: #e0e4f0; }

  /* ── Hero A2 card ───────────────────────────── */
  .hero-card {
    background: #161824;
    border: 1px solid #1e2330;
    border-bottom: 4px solid #428BFA;
    border-radius: 16px;
    padding: 52px 40px 36px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
  }
  .hero-card::before {
    content: '';
    position: absolute;
    left: 50%; top: -120px;
    transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(91,142,255,0.07) 0%, transparent 65%);
    pointer-events: none;
  }
  .hero-card-inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
  }
  .hero-card-title {
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 800;
    color: #efeff0;
    line-height: 1.2;
    margin-bottom: 14px;
  }
  .hero-card-title em {
    font-style: normal;
    background: linear-gradient(90deg, #5b8eff, #34c65a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero-card-sub {
    font-size: 15px;
    color: #8a93b0;
    line-height: 1.65;
    max-width: 520px;
    margin: 0 auto 28px;
  }
  .hero-card-actions {
    display: flex;
    justify-content: center;
  }
  .hero-card-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    background: rgba(91,142,255,0.12);
    border: 1px solid rgba(91,142,255,0.35);
    color: #8ab4fb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s;
    cursor: pointer;
  }
  .hero-card-btn:hover {
    background: rgba(91,142,255,0.22);
    border-color: rgba(91,142,255,0.6);
  }
  .hero-card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #232840 25%, #232840 75%, transparent);
    margin: 36px 0 28px;
  }
  .hero-card-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .hero-card-features .feature-badge {
    background: transparent;
    border: none;
    border-right: 1px solid #1e2330;
    border-radius: 0;
    padding: 6px 24px;
  }
  .hero-card-features .feature-badge:first-child { padding-left: 0; }
  .hero-card-features .feature-badge:last-child { border-right: none; padding-right: 0; }
  .hero-card-features .feature-badge-title { color: #c8ccd8; }
  @media (max-width: 690px) {
    .hero-card { padding: 36px 20px 28px; }
    .hero-card-features { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-card-features .feature-badge {
      border-right: none;
      border-bottom: 1px solid #1e2330;
      padding: 12px 8px;
    }
    .hero-card-features .feature-badge:nth-child(odd) { border-right: 1px solid #1e2330; }
    .hero-card-features .feature-badge:nth-last-child(-n+2) { border-bottom: none; }
  }

  /* ── Section divider ─────────────────────────── */
  .section-divider {
    border: none;
    border-top: 1px dashed #2a3050;
    margin: 36px 0;
  }

  /* ── Как начать ─────────────────────────────── */
  .howto-section {
    margin: 0 0 36px;
  }
  .howto-title {
    font-size: 18px;
    font-weight: 700;
    color: #e0e4f0;
    margin-bottom: 20px;
  }
  .howto-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 690px) {
    .howto-steps { grid-template-columns: 1fr; }
  }
  .howto-step {
    background: #161824;
    border: 1px solid #1e2330;
    border-radius: 12px;
    padding: 22px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }
  .howto-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(91,142,255,0.12);
    border: 1px solid rgba(91,142,255,0.3);
    color: #5b8eff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .howto-text {}
  .howto-step-title {
    font-size: 14px;
    font-weight: 600;
    color: #e0e4f0;
    margin-bottom: 6px;
  }
  .howto-step-desc {
    font-size: 13px;
    color: #8a93b0;
    line-height: 1.6;
  }

  /* ── О нас + FAQ в ряд ────────────────────── */
  .about-faq-row {
    max-width: 1360px;
    margin: 60px auto 0;
    padding: 0 24px;
    display: flex;
    gap: 28px;
    align-items: flex-start;
  }
  .about-section {
    flex: 2;
    min-width: 0;
  }
  .faq-section {
    flex: 3;
    min-width: 0;
  }
  @media (max-width: 900px) {
    .about-faq-row {
      flex-direction: column;
    }
    .about-section {
      flex: none;
      width: 100%;
    }
  }
  .about-inner {
    background: #161824;
    border: 1px solid #1e2330;
    border-radius: 12px;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
  }
  .about-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #428BFA 40%, #5b8eff 60%, transparent);
  }
  .about-title {
    font-size: 16px;
    font-weight: 700;
    color: #e0e4f0;
    margin-bottom: 12px;
  }
  .about-text {
    font-size: 13px;
    color: #8a93b0;
    line-height: 1.8;
  }
  .about-text strong { color: #a0aac8; }

  /* ── FAQ ───────────────────────────────────── */
  .faq-title {
    font-size: 18px;
    font-weight: 700;
    color: #e0e4f0;
    margin-bottom: 16px;
  }
  .faq-item {
    border: 1px solid #1e2330;
    border-radius: 10px;
    background: #161824;
    margin-bottom: 8px;
    overflow: hidden;
  }
  .faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    cursor: pointer;
    text-align: left;
    color: #d0d4de;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: color .15s;
  }
  .faq-question:hover { color: #fff; }
  .faq-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #5a6280;
    transition: transform .25s, color .15s;
  }
  .faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
    color: #5b8eff;
  }
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .faq-answer-inner {
    padding: 0 18px 15px;
    font-size: 13px;
    color: #8a93b0;
    line-height: 1.7;
    border-top: 1px solid #1e2330;
    padding-top: 12px;
  }

  /* ── Футер ─────────────────────────────────── */
  footer {
    background: #161824;
    border-top: 1px solid #1e2330;
    margin-top: 40px;
  }
  .footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .footer-copy {
    font-size: 13px;
    color: #5a6280;
  }
  .footer-copy strong { color: #8a93b0; }
  .footer-version {
    font-size: 11px;
    color: #3a4060;
    margin-top: 2px;
    width: 100%;
    text-align: center;
  }
  .footer-credits {
    font-size: 12px;
    color: #3a4060;
    margin-top: 6px;
    width: 100%;
    text-align: center;
  }
  .footer-credits a {
    color: #5b8eff;
    text-decoration: none;
  }
  .footer-credits a:hover {
    text-decoration: underline;
  }
  /* Дублируют пункты из шапки (.nav-btn* уже определены выше) - на случай
     если посетитель долистал до низа страницы, не заметив их наверху.
     .footer-buttons оборачивает соцсети + разделитель + быстрые ссылки в
     один флекс-элемент, чтобы justify-content:space-between у
     .footer-inner растягивал промежуток только между копирайтом и этим
     блоком целиком, а не между каждой его частью по отдельности (было -
     соцсети и ссылки оказывались на разных концах строки). Без width:100% -
     остаётся в одной строке с .footer-copy; на узких экранах всё равно
     переносится само, благодаря flex-wrap на .footer-inner. */
  .footer-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .footer-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .footer-socials {
    display: flex;
    gap: 8px;
  }
  .footer-legal-note {
    font-size: 11px;
    color: #3a4060;
    line-height: 1.5;
    width: 100%;
    max-width: 640px;
    margin: 6px auto 0;
    text-align: center;
  }

  /* ── Кнопка "наверх" ───────────────────────── */
  .scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    background: #5b8eff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s, visibility .2s, transform .2s, background .15s;
    z-index: 200;
  }
  .scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .scroll-top:hover { background: #4a7aee; }
  .scroll-top svg { width: 18px; height: 18px; }

  /* ── Модальное окно покупки ────────────────── */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
  }
  .modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  .modal {
    background: #161824;
    border: 1px solid #2a3050;
    border-radius: 14px;
    width: 100%;
    max-width: 380px;
    margin: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    transform: translateY(10px) scale(.97);
    transition: transform .2s;
  }
  .modal-overlay.is-open .modal {
    transform: translateY(0) scale(1);
  }
  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #1e2330;
  }
  .modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #e0e4f0;
  }
  .modal-close {
    background: none;
    border: none;
    color: #5a6280;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 5px;
    transition: color .15s, background .15s;
    line-height: 1;
  }
  .modal-close:hover { color: #d0d4de; background: #1e2330; }
  .modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .modal-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #1e2330;
  }
  .modal-section:first-child {
    padding-top: 0;
    border-top: none;
  }
  .modal-section-label {
    font-size: 11px;
    font-weight: 600;
    color: #8a93b0;
    text-transform: uppercase;
    letter-spacing: .06em;
  }
  .period-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .period-tab {
    flex: 1 1 calc(25% - 6px);
    max-width: calc(25% - 6px);
    padding: 9px 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #252a3a;
    background: transparent;
    color: #5a6280;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
  }
  .period-tab:hover {
    border-color: #428BFA;
    color: #8ab4fb;
  }
  .period-tab.active {
    background: rgba(66, 139, 250, 0.12);
    border-color: #428BFA;
    color: #8ab4fb;
  }
  /* ── Выбор платёжного сервиса ───────────────── */
  .pay-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .pay-tab {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #252a3a;
    background: transparent;
    color: #5a6280;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }
  .pay-tab:hover {
    border-color: #5b8eff;
    color: #8ab4fb;
  }
  .pay-tab.active {
    background: rgba(91, 142, 255, 0.12);
    border-color: #5b8eff;
    color: #8ab4fb;
  }
  .pay-tab:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
  }
  .pay-tab .pay-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .6;
    flex-shrink: 0;
  }

  .modal-price-block {
    background: #0e1120;
    border: 1px solid #252a3a;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
  }
  .modal-price-val {
    color: #ffffff;
    font-weight: 700;
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
  }
  .modal-price-val #modal-price-sym {
    font-size: 18px;
    color: #8a93b0;
    font-weight: 500;
  }
  /* Разделитель после блока цены - та же линия, что уже отделяет секцию
     цены/правил сверху (.modal-section { border-top }), только между ценой
     и чекбоксом согласия, а не между секциями. */
  .modal-divider {
    border-top: 1px solid #1e2330;
  }
  .modal-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
  }
  .modal-terms-check input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    accent-color: #5b8eff;
    cursor: pointer;
  }
  .modal-terms-check span {
    font-size: 12.5px;
    color: #8a93b0;
    line-height: 1.4;
  }
  .modal-terms-link {
    color: #5b8eff;
    text-decoration: underline;
  }
  .modal-terms-link:hover {
    color: #8ab4fb;
  }
  .modal-footer .btn-buy--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    filter: none;
  }
  .modal-fee-note {
    font-size: 11px;
    color: #8a93b0;
  }
  .modal-footer {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .modal-footer .btn-buy,
  .modal-footer .btn-info {
    border: 1px solid transparent;
  }
  .modal-footer .btn-buy:hover,
  .modal-footer .btn-info:hover {
    border-color: #8b2020;
  }
  .modal-footer .btn-buy {
    display: block;
    text-align: center;
    padding: 11px;
    font-size: 15px;
  }
  .modal-footer .btn-info {
    display: block;
    text-align: center;
    padding: 9px;
    cursor: pointer;
  }

  /* ── Пустой поиск ───────────────────────────── */
  .empty-state {
    padding: 60px 24px;
    text-align: center;
  }
  .empty-state svg {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    opacity: .7;
  }
  .empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #8a93b0;
    margin-bottom: 6px;
  }
  .empty-sub {
    font-size: 13px;
    color: #5a6280;
  }

  /* ── Cookie banner ──────────────────────────── */
  .cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: #1a1e2e;
    border: 1px solid #2a3050;
    border-radius: 12px;
    padding: 14px 20px;
    max-width: 640px;
    width: calc(100% - 48px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    z-index: 500;
    animation: cookie-in .3s ease;
  }
  @keyframes cookie-in {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
  .cookie-banner.is-hidden {
    display: none;
  }
  .cookie-text {
    flex: 1;
    font-size: 13px;
    color: #8a93b0;
    margin: 0;
    line-height: 1.5;
  }
  .cookie-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }
  .cookie-btn {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity .15s;
  }
  .cookie-btn:hover { opacity: .85; }
  .cookie-btn-accept {
    background: #5b8eff;
    color: #fff;
    border-color: #5b8eff;
  }
  .cookie-btn-decline {
    background: transparent;
    color: #5a6280;
    border-color: #2a3050;
  }
  @media (max-width: 560px) {
    .cookie-banner {
      flex-direction: column;
      align-items: flex-start;
      bottom: 16px;
    }
  }

  /* ── Telegram modal ─────────────────────────── */
  .tg-modal-inner {
    max-width: 400px;
    width: calc(100% - 48px);
  }
  .tg-channels {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
  }
  .tg-channel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #1a1e2e;
    border: 1px solid #2a3050;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .15s, background .15s;
  }
  .tg-channel-card:hover {
    border-color: #2aabee;
    background: rgba(42,171,238,0.06);
  }
  .tg-channel-icon {
    font-size: 28px;
    flex-shrink: 0;
  }
  .tg-channel-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
  }
  .tg-channel-name {
    font-size: 15px;
    font-weight: 600;
    color: #e0e4f0;
  }
  .tg-channel-desc {
    font-size: 12px;
    color: #5a6280;
    line-height: 1.4;
  }
  .tg-channel-handle {
    font-size: 12px;
    color: #2aabee;
    margin-top: 2px;
  }
  .tg-channel-arrow {
    width: 10px;
    height: 16px;
    color: #2a3050;
    flex-shrink: 0;
    transition: color .15s;
  }
  .tg-channel-card:hover .tg-channel-arrow {
    color: #2aabee;
  }

  /* ── 404 ───────────────────────────────────── */
  .page-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 80px 24px;
  }
  .page-404-code {
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    color: #1e2336;
    letter-spacing: -6px;
    margin-bottom: 12px;
    user-select: none;
  }
  .page-404-code span { color: #5b8eff; }
  .page-404-title {
    font-size: 22px;
    font-weight: 600;
    color: #e0e4f0;
    margin-bottom: 10px;
  }
  .page-404-sub {
    font-size: 14px;
    color: #5a6280;
    margin-bottom: 32px;
    max-width: 380px;
    line-height: 1.7;
  }
  .page-404-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5b8eff;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 28px;
    border-radius: 8px;
    transition: background .15s;
  }
  .page-404-home:hover { background: #4a7aee; }

/* ══════════════════════════════════════════════════════════════════════════════
   Status page
   ══════════════════════════════════════════════════════════════════════════════ */
.status-hero {
  text-align: center;
  padding: 48px 24px 36px;
}
.status-hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: #e0e4f0;
  margin: 0 0 8px;
}
.status-hero-sub {
  font-size: 14px;
  color: #8a93b0;
}
.status-summary {
  display: flex;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.summary-tile {
  flex: 1 1 160px;
  background: #161824;
  border: 1px solid #1e2330;
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
}
.summary-tile .tile-num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.summary-tile .tile-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.summary-tile.t-online  .tile-num   { color: #34c65a; }
.summary-tile.t-online  .tile-label { color: #34c65a99; }
.summary-tile.t-frozen  .tile-num   { color: #e05252; }
.summary-tile.t-frozen  .tile-label { color: #e0525299; }
.summary-tile.t-testing .tile-num   { color: #e09a30; }
.summary-tile.t-testing .tile-label { color: #e09a3099; }
.summary-tile.t-total   .tile-num   { color: #5b8eff; }
.summary-tile.t-total   .tile-label { color: #5b8eff99; }
.status-search-wrap input {
  width: 100%;
  background: #161824;
  border: 1px solid #1e2330;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  color: #d0d4de;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
}
.status-search-wrap input::placeholder { color: #3a4060; }
.status-search-wrap input:focus { border-color: #428BFA; }
.status-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.status-table-box {
  background: #161824;
  border: 1px solid #1e2330;
  border-radius: 12px;
  overflow: hidden;
}
.status-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.status-table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #5a6280;
  padding: 12px 18px;
  text-align: center;
  background: #11131f;
  border-bottom: 1px solid #1e2330;
}
.status-table thead th:first-child { text-align: left; width: 40%; }
.status-table thead th:nth-child(2) { width: 20%; }
.status-table thead th:nth-child(3) { width: 20%; }
.status-table thead th:nth-child(4) { width: 20%; }
.status-table tbody tr {
  border-bottom: 1px solid #1e2330;
  transition: background .15s;
}
.status-table tbody tr:last-child { border-bottom: none; }
.status-table tbody tr:hover { background: #1a1d2a; }
.status-table td {
  padding: 11px 18px;
  font-size: 14px;
  color: #d0d4de;
  vertical-align: middle;
  text-align: center;
}
.status-table td:first-child { text-align: left; }
.status-table .td-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #e0e4f0;
}
.status-table .td-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 36px; height: 20px;
}
.status-table .td-img-wrap img {
  width: 36px; height: 20px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  pointer-events: none; /* Chrome: без этого shield не помогает */
}
.status-table .td-img-wrap .td-img-shield {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.status-table .td-name .img-ph {
  width: 36px; height: 20px;
  border-radius: 4px;
  background: #0e1120;
  flex-shrink: 0;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.status-badge .bdot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-badge.s-online   { background: rgba(52,198,90,.1);  color: #34c65a; border: 1px solid rgba(52,198,90,.25); }
.status-badge.s-online   .bdot { background: #34c65a; box-shadow: 0 0 6px #34c65a88; }
.status-badge.s-offline  { background: rgba(224,82,82,.1);  color: #e05252; border: 1px solid rgba(224,82,82,.25); }
.status-badge.s-offline  .bdot { background: #e05252; }
.status-badge.s-detected { background: rgba(224,154,48,.1); color: #e09a30; border: 1px solid rgba(224,154,48,.25); }
.status-badge.s-detected .bdot { background: #e09a30; box-shadow: 0 0 6px #e09a3066; }
.status-date { font-size: 12px; color: #5a6280; }
.status-section-row td {
  padding: 0 !important;
  background: #11131f;
  border-bottom: 1px solid #1e2330 !important;
}
.status-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #5a6280;
}
/* ══ G8: Промокод-блок ══════════════════════════════════════════════════════ */
.g-promo-block {
  background: #161824;
  border: 1px solid #1e2330;
  border-radius: 14px;
  padding: 36px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}
.g-promo-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e05252 30%, #ff6b35 50%, #e05252 70%, transparent);
}
.g-promo-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #e05252;
  margin-bottom: 12px;
}
.g-promo-title {
  font-size: 30px;
  font-weight: 800;
  color: #efeff0;
  margin-bottom: 8px;
}
.g-promo-title em {
  font-style: normal;
  background: linear-gradient(90deg, #e05252, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.g-promo-sub {
  font-size: 13px;
  color: #8a93b0;
  margin-bottom: 28px;
  line-height: 1.6;
}
.g-promo-code-wrap {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(91,142,255,.4);
  border-radius: 10px;
  overflow: hidden;
}
.g-promo-code-label {
  padding: 12px 16px;
  background: rgba(91,142,255,.08);
  font-size: 11px;
  color: #5a6280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-right: 1px solid rgba(91,142,255,.2);
  display: flex;
  align-items: center;
}
.g-promo-code-val {
  padding: 12px 20px;
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #e09a30;
  cursor: pointer;
  user-select: all;
  text-align: center;
  line-height: 1.2;
  transition: color .15s;
}
.g-promo-code-val.copied { color: #34c65a; }
.g-promo-copy-btn {
  padding: 12px 16px;
  background: rgba(91,142,255,.1);
  border: none;
  border-left: 1px solid rgba(91,142,255,.2);
  font-size: 12px;
  font-weight: 600;
  color: #8ab4fb;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.g-promo-copy-btn:hover { background: rgba(91,142,255,.2); }
.g-promo-copy-btn.copied { background: rgba(52,198,90,.1); color: #34c65a; }
@media (max-width: 600px) {
  .g-promo-block { padding: 24px 20px; }
  .g-promo-title { font-size: 22px; }
  .g-promo-code-wrap { flex-direction: column; align-items: stretch; text-align: center; }
  .g-promo-code-label { border-right: none; border-bottom: 1px solid rgba(91,142,255,.2); }
  .g-promo-copy-btn { border-left: none; border-top: 1px solid rgba(91,142,255,.2); }
}

/* ══ G4: Карточка-акция в сетке ════════════════════════════════════════════ */
.card-promo {
  background: transparent;
  border: 2px dashed rgba(224,82,82,.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  gap: 10px;
  transition: border-color .2s;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.card-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(224,82,82,.05) 0%, transparent 70%);
  pointer-events: none;
}
.card-promo:hover { border-color: rgba(224,82,82,.7); }
.card-promo-icon { font-size: 30px; line-height: 1; }
.card-promo-pct { font-size: 36px; font-weight: 800; color: #e05252; line-height: 1; }
.card-promo-sub { font-size: 11px; color: #5a6280; line-height: 1.5; max-width: 190px; }
.card-promo-btn {
  padding: 7px 20px;
  border-radius: 7px;
  background: rgba(224,82,82,.12);
  border: 1px solid rgba(224,82,82,.35);
  color: #e05252;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
  display: inline-block;
}
.card-promo-btn:hover { background: rgba(224,82,82,.22); }
.card-promo-btn.copied { background: rgba(52,198,90,.1); border-color: rgba(52,198,90,.4); color: #34c65a; }

/* ── Инлайн-код промокода (в G4 и G8) ─────────────────────────────────── */
.g-code {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #e09a30;
  background: rgba(224,154,48,.12);
  border: 1px solid rgba(224,154,48,.35);
  padding: 2px 10px;
  border-radius: 4px;
  cursor: pointer;
  user-select: all;
  text-align: center;
  line-height: 1.2;
  transition: background .15s;
}
.g-code:hover { background: rgba(224,154,48,.2); }
.g-code.copied {
  color: #34c65a;
  background: rgba(52,198,90,.15);
  border-color: rgba(52,198,90,.45);
  transition: color .15s, background .15s, border-color .15s;
}

@media (max-width: 600px) {
  .status-hero h1 { font-size: 22px; }
  .status-table .td-name img,
  .status-table .td-name .img-ph { display: none; }
  .status-table td { padding: 10px 12px; }
  .status-table thead th { padding: 8px 12px; }
  .td-freeze-date { display: none; }
  .status-table thead th:first-child { width: 50%; }
  .status-table thead th:nth-child(2) { width: 25%; }
  .status-table thead th:nth-child(4) { width: 25%; }
}
