/* =====================================================================
   Bananas · общие стили (лендинг / кабинет / админка)
   Тёплая тёмная тема + банановый жёлтый, округлые «весёлые» формы
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg: #100e09;
  --bg-soft: #161309;
  --panel: #1a160d;
  --panel-2: #221c10;
  --line: #332b18;
  --text: #f7f3e8;
  --muted: #a89f8c;
  --accent: #ffd23f;          /* банановый жёлтый */
  --accent-deep: #ffb347;     /* тёплый низ градиента */
  --lime: #a3e635;            /* «листик» — цены, успех */
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #fb7185;
  --ink: #2a2105;             /* тёмный текст на жёлтых кнопках */
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* фирменные скроллбары */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 210, 63, .35) rgba(255, 255, 255, .04); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, .03); border-radius: 99px; }
::-webkit-scrollbar-thumb { background: rgba(255, 210, 63, .30); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 210, 63, .5); }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

h1, h2, h3 {
  font-family: 'Baloo 2', 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 800; letter-spacing: -.01em;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 14px; padding: 11px 20px;
  font-size: 14px; font-weight: 800; color: var(--ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 210, 63, .3); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; background: rgba(255, 210, 63, .08); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; }

/* ---------- Поля ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.input, .select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 13px; padding: 11px 14px; color: var(--text); font-size: 14px;
  outline: none; transition: border-color .15s;
  appearance: none;
}
.input:focus, .select:focus { border-color: var(--accent); }
.input::placeholder { color: #6b6350; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a89f8c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input-err { border-color: var(--red) !important; }
.form-error { color: var(--red); font-size: 13px; margin-top: 4px; min-height: 18px; }
.id-status { font-size: 12.5px; font-weight: 800; margin-top: 7px; min-height: 17px; }
.id-status.ok { color: var(--green); }
.id-status.bad { color: var(--red); }
.id-status.wait { color: var(--muted); }

/* ---------- Карточки ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}

/* ---------- Шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 14, 9, .85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 26px; height: 64px; }
.logo {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 21px; color: var(--accent);
}
.logo img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; color: var(--muted); align-items: center; }
.nav a:hover { color: var(--text); }
.nav .nav-2line { display: flex; flex-direction: column; line-height: 1.15; text-align: center; }
.nav .nav-2line small { font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* переключатель языка */
.lang-switch {
  display: flex; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px;
}
.lang-switch button {
  border: none; background: none; color: var(--muted); font-weight: 800; font-size: 12.5px;
  padding: 5px 12px; border-radius: 999px; transition: all .15s;
}
.lang-switch button.active { background: var(--accent); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 64px; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.glow-1 { width: 480px; height: 480px; background: rgba(255, 210, 63, .12); top: -160px; left: -120px; }
.glow-2 { width: 420px; height: 420px; background: rgba(163, 230, 53, .08); top: 40px; right: -140px; }
.hero-in { position: relative; max-width: 660px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 22px; background: rgba(26, 22, 13, .6);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 { font-size: 54px; line-height: 1.1; margin-bottom: 18px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--lime));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 17px; color: var(--muted); margin-bottom: 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 52px; }
.hero-stat b { display: block; font-size: 24px; font-weight: 800; font-family: 'Baloo 2', sans-serif; }
.hero-stat span { font-size: 13px; color: var(--muted); }

/* ---------- Секции ---------- */
section { padding: 56px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: 31px; }
.sec-head p { color: var(--muted); margin-top: 4px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: rgba(255, 210, 63, .45); transform: translateY(-2px); }
.feature .ic {
  width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 210, 63, .13); font-size: 21px; margin-bottom: 14px;
}
.feature h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--muted); }

/* ---------- Каталог ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 14px; }
.game-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; cursor: pointer; transition: border-color .2s, transform .2s; display: block;
}
.game-card:hover { border-color: rgba(255, 210, 63, .55); transform: translateY(-3px); }
.tile {
  position: relative; overflow: hidden;
  aspect-ratio: 1; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 30px; color: rgba(255, 255, 255, .92);
  letter-spacing: .02em; text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  margin-bottom: 12px; user-select: none;
}
.tile.sm { width: 52px; height: 52px; aspect-ratio: auto; font-size: 19px; border-radius: 13px; margin: 0; flex: none; }
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit; display: block;
}
/* логотипы категорий — по центру плитки на градиенте */
.tile img.contain {
  width: 54%; height: 54%; margin: auto; object-fit: contain;
  border-radius: 16%; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}
.tile-img { padding: 0; overflow: hidden; background: var(--bg-soft); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.game-card b { display: block; font-size: 14px; line-height: 1.3; }
.game-card span { font-size: 12.5px; color: var(--muted); }
.catalog-more { text-align: center; margin-top: 24px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num {
  width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--ink);
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 16px; margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; }
.faq details { border: 1px solid var(--line); border-radius: 15px; background: var(--panel); margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 800; font-size: 14.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 20px 16px; color: var(--muted); font-size: 14px; }

/* ---------- Контакты / футер ---------- */
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255, 210, 63, .13), rgba(163, 230, 53, .06));
  border: 1px solid rgba(255, 210, 63, .35); border-radius: 22px; padding: 32px;
}
.contact-card h3 { font-size: 23px; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 14px; }
.contact-card .tg-link { color: var(--accent); }
footer { border-top: 1px solid var(--line); padding: 26px 0 34px; margin-top: 30px; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- Модалка ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 7, 4, .72); backdrop-filter: blur(6px); padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; padding: 26px; box-shadow: var(--shadow);
  transform: translateY(14px); transition: transform .2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h3 { font-size: 19px; }
.modal-x { background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px; }
.modal-x:hover { color: var(--text); }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 13px; padding: 4px; margin-bottom: 20px; }
.seg button {
  border: none; background: none; color: var(--muted); font-weight: 800; font-size: 13.5px;
  padding: 9px; border-radius: 10px; transition: all .15s;
}
.seg button.active { background: rgba(255, 210, 63, .16); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }

.tg-box {
  border: 1px dashed rgba(255, 210, 63, .5); background: rgba(255, 210, 63, .07);
  border-radius: 15px; padding: 18px; text-align: center; margin-bottom: 14px;
}
.tg-box .tg-handle { font-size: 19px; font-weight: 800; color: var(--accent); margin: 6px 0 2px; font-family: 'Baloo 2', sans-serif; }
.tg-box p { font-size: 13px; color: var(--muted); }

.reg-steps { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.reg-steps li { margin: 8px 0 8px 18px; }
.reg-steps b { color: var(--text); }

/* ---------- Тосты ---------- */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--lime);
  border-radius: 13px; padding: 13px 18px; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: all .25s; max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-err { border-left-color: var(--red); }

/* ---------- Статусы ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-done { color: var(--green); background: rgba(74, 222, 128, .12); }
.st-processing { color: var(--amber); background: rgba(251, 191, 36, .12); }
.st-error { color: var(--red); background: rgba(251, 113, 133, .12); }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: rgba(255, 210, 63, .04); }
tbody tr:last-child td { border-bottom: none; }

/* ---------- Кабинет ---------- */
.cab-tabs { display: flex; gap: 6px; }
.cab-tab {
  border: none; background: none; color: var(--muted); font-weight: 800; font-size: 14px;
  padding: 9px 16px; border-radius: 11px;
}
.cab-tab.active { background: rgba(255, 210, 63, .14); color: var(--text); }
.cab-tab-2line { display: flex; flex-direction: column; align-items: center; line-height: 1.15; padding-top: 5px; padding-bottom: 5px; }
.cab-tab-2line small { font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }

/* корзинка: My orders + Balance */
.cart-wrap { position: relative; }
.cart-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-soft); font-size: 17px; display: flex; align-items: center; justify-content: center;
}
.cart-btn:hover { border-color: var(--accent); }
.cart-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; min-width: 150px; box-shadow: var(--shadow); display: none;
}
.cart-menu.open { display: block; }
.cart-menu button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--text); font-weight: 700; font-size: 13.5px; padding: 10px 12px; border-radius: 9px;
}
.cart-menu button:hover { background: rgba(255, 210, 63, .1); }

/* страница Telegram: два ровных блока по центру */
#view-telegram .game-layout { max-width: 1020px; margin: 0 auto; align-items: stretch; }
#view-telegram .card { display: flex; flex-direction: column; }
#view-telegram .tg-list { flex: 1; }
.tg-list { grid-template-columns: repeat(2, 1fr); max-height: 330px; overflow-y: auto; padding-right: 4px; }
.tg-list .denom { padding: 10px 12px; }
.tg-list .denom b { font-size: 13px; margin-bottom: 4px; }
.tg-list .denom .price { font-size: 13.5px; }

/* страница Steam: колонка по центру, в одном стиле с Telegram */
.stack-page { max-width: 720px; margin: 0 auto; }
.stack-page .card { width: 100%; }
#view-steam .view-head { max-width: 720px; margin: 0 auto 24px; }
#view-telegram .view-head { max-width: 1020px; margin: 0 auto 24px; }
.user-chip {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px 6px 7px; font-size: 13.5px; font-weight: 800;
}
.user-chip .ava {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); font-size: 12px; font-weight: 800; color: var(--ink);
}
.view { display: none; padding: 34px 0 60px; }
.view.active { display: block; }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.view-head h2 { font-size: 27px; }
.search { position: relative; width: 280px; max-width: 100%; }
.search .input { padding-left: 38px; }
.search::before {
  content: ''; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; opacity: .55; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' viewBox='0 0 24 24' stroke='%23a89f8c' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.5-4.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 700; background: none; border: none; padding: 0; margin-bottom: 20px; }
.back-link:hover { color: var(--text); }

.game-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.game-head h2 { font-size: 25px; }
.game-head .muted { font-size: 13.5px; }

.game-layout { display: grid; grid-template-columns: 1.65fr 1fr; gap: 22px; align-items: start; }

.denoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.denom {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 15px;
  padding: 14px; cursor: pointer; transition: border-color .15s, background .15s; text-align: left;
  color: var(--text);
}
.denom:hover { border-color: rgba(255, 210, 63, .5); }
.denom.selected { border-color: var(--accent); background: rgba(255, 210, 63, .08); }
.denom.selected::after {
  content: ''; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%232a2105' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
}
.denom b { display: block; font-size: 14px; line-height: 1.35; margin-bottom: 8px; padding-right: 14px; color: var(--accent); }
.denom .price { font-size: 15px; font-weight: 800; color: #fff; }
.badge-hit {
  display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink); background: linear-gradient(90deg, var(--accent), var(--accent-deep)); border-radius: 7px; padding: 2px 7px; margin-bottom: 8px;
}
.denom-off { opacity: .5; cursor: not-allowed; }
.denom-off:hover { border-color: var(--line); }
.badge-oos {
  display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--red); background: rgba(251, 113, 133, .12); border-radius: 7px; padding: 2px 7px; margin-bottom: 8px;
}

.summary { position: sticky; top: 84px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.summary .row:last-of-type { border-bottom: none; }
.summary .row b.total { font-size: 19px; color: var(--lime); }
.note {
  background: rgba(255, 210, 63, .07); border: 1px solid rgba(255, 210, 63, .22);
  border-radius: 13px; padding: 12px 14px; font-size: 13px; color: #e6d9ae; margin-top: 14px;
}

.order-card { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; margin-bottom: 10px; flex-wrap: wrap; }
.order-card .grow { flex: 1; min-width: 180px; }
.order-card b { font-size: 14.5px; display: block; }
.order-card .muted { font-size: 12.5px; }
.order-card .sum { font-weight: 800; font-size: 15px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.empty .big { font-size: 40px; margin-bottom: 10px; }

/* ---------- Админка (EN only) ---------- */
.admin { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-soft); border-right: 1px solid var(--line); padding: 20px 14px;
  display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { padding: 4px 10px 18px; font-size: 19px; }
.snav {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px;
  color: var(--muted); font-size: 14px; font-weight: 700; border: none; background: none; text-align: left; width: 100%;
}
.snav:hover { color: var(--text); background: rgba(255, 210, 63, .06); }
.snav.active { color: var(--text); background: rgba(255, 210, 63, .13); }
.snav .ic { width: 20px; text-align: center; font-size: 16px; }
.sidebar .spacer { flex: 1; }
.admin-main { padding: 26px 30px 60px; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-head h2 { font-size: 25px; }
.page { display: none; }
.page.active { display: block; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .lbl { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.stat .val { font-size: 26px; font-weight: 800; font-family: 'Baloo 2', sans-serif; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .search { width: 260px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: none; color: var(--muted); font-size: 13px; font-weight: 700;
  border-radius: 999px; padding: 7px 14px;
}
.chip.active { border-color: var(--accent); color: var(--text); background: rgba(255, 210, 63, .1); }

.input-sm { width: 86px; padding: 7px 10px; font-size: 13.5px; border-radius: 10px; text-align: right; }
.input-name { min-width: 200px; width: 100%; padding: 7px 10px; font-size: 13.5px; border-radius: 10px; }

/* тумблер */
.toggle { position: relative; width: 38px; height: 22px; flex: none; cursor: pointer; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .tr { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; }
.toggle .tr::before {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  top: 3px; left: 3px; transition: transform .15s;
}
.toggle input:checked + .tr { background: var(--accent); }
.toggle input:checked + .tr::before { transform: translateX(16px); background: var(--ink); }

.cred-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 15px; padding: 16px; margin-top: 14px; }
.cred-box .cred-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14px; }
.cred-box .cred-row b { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14.5px; }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn {
  background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 10px;
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }

.settings-form { max-width: 620px; }
.markup-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.markup-card .input { width: 110px; }
.markup-card h3 { font-size: 16px; }
.markup-card p { font-size: 13px; color: var(--muted); }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .game-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .hero h1 { font-size: 38px; }
  .nav { display: none; }
  .admin { grid-template-columns: 64px 1fr; }
  .sidebar .logo span, .snav .txt, .sidebar .site-link span { display: none; }
  .sidebar { padding: 16px 10px; }
  .snav { justify-content: center; padding: 11px 0; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 31px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .admin-main { padding: 20px 14px 50px; }
}

/* =====================================================================
   Живость: анимации появления, плавающие элементы, баннер топ-игры
   ===================================================================== */

/* появление hero при загрузке */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-badge, .hero h1, .hero p, .hero-actions, .hero-stats { animation: fadeUp .55s ease both; }
.hero h1 { animation-delay: .07s; }
.hero p { animation-delay: .14s; }
.hero-actions { animation-delay: .21s; }
.hero-stats { animation-delay: .3s; }

/* пульс точки «онлайн» */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .45); }
  50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}
.hero-badge .dot { animation: pulse 2.2s ease-out infinite; }

/* плавающие эмодзи в hero */
@keyframes floatY {
  from { transform: translateY(-7px) rotate(-3deg); }
  to { transform: translateY(9px) rotate(4deg); }
}
.float-emoji {
  position: absolute; font-size: 36px; opacity: .9; pointer-events: none; user-select: none;
  animation: floatY 6s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35));
}

/* появление блоков при скролле */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* лёгкая реакция плиток игр */
.tile { transition: transform .25s ease; }
.game-card:hover .tile { transform: rotate(-2deg) scale(1.04); }
.logo img { transition: transform .25s ease; }
.logo:hover img { transform: rotate(-8deg) scale(1.06); }

/* ---------- Баннер топ-игры ---------- */
.top-banner { padding: 8px 0 48px; }
.top-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center;
  background: linear-gradient(135deg, rgba(45, 212, 191, .10), rgba(255, 210, 63, .08));
  border: 1px solid rgba(45, 212, 191, .35); border-radius: 24px; padding: 36px 40px;
}
.top-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep)); color: var(--ink);
  font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 13px; margin-bottom: 16px;
}
.top-card h2 { font-size: 34px; line-height: 1.15; margin-bottom: 10px; }
.top-card > div > p { color: var(--muted); font-size: 15px; max-width: 470px; margin-bottom: 22px; }
.top-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-meta .from { font-size: 14px; font-weight: 700; }
.top-art { display: flex; justify-content: center; }
@keyframes floatSoft {
  from { transform: translateY(-6px); }
  to { transform: translateY(8px); }
}
.top-art img {
  width: 100%; max-width: 470px; border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  animation: floatSoft 7s ease-in-out infinite alternate;
}

@media (max-width: 980px) {
  .float-emoji { display: none; }
  .top-card { grid-template-columns: 1fr; padding: 26px; }
  .top-card h2 { font-size: 26px; }
}

/* ---------- Баланс и крипто-пополнение ---------- */
.bal-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255, 210, 63, .4); background: rgba(255, 210, 63, .08);
  color: var(--text); border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; font-weight: 800; cursor: pointer; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.bal-chip:hover { border-color: var(--accent); background: rgba(255, 210, 63, .14); }
.bal-chip b { color: var(--accent); }

.bal-big { font-family: 'Baloo 2', sans-serif; font-size: 40px; font-weight: 800; line-height: 1.2; margin-top: 2px; }

.net-seg { margin-bottom: 0; }

.addr-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-soft); border: 1px dashed rgba(255, 210, 63, .45);
  border-radius: 12px; padding: 12px 14px;
}
.addr-box code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px;
  word-break: break-all; color: var(--accent);
}
.copy-btn {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 9px; padding: 5px 12px; font-size: 12px; font-weight: 700; flex: none;
}
.copy-btn:hover { color: var(--text); border-color: var(--accent); }

/* коды гифткарт в заказах */
.codes-box {
  flex-basis: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px dashed rgba(255, 210, 63, .45);
  border-radius: 12px; padding: 10px 14px; margin-top: 4px;
}
.codes-box code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13.5px;
  color: var(--accent); word-break: break-all;
}

.tp-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.tp-row:last-child { border-bottom: none; }
.tp-row .grow { flex: 1; min-width: 130px; }
.tp-row b { display: block; font-size: 13.5px; }
.tp-row .muted { font-size: 12px; }

/* =====================================================================
   ЛЕНДИНГ 2.0 — новая компоновка (стиль и цвета прежние)
   Всё под body.landing, кабинет и админку не трогает
   ===================================================================== */

/* — шапка: плавающая стеклянная пилюля — */
.landing .topbar { background: none; border-bottom: none; padding-top: 12px; backdrop-filter: none; }
.landing .topbar-in {
  background: rgba(22, 18, 10, .8); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px;
  max-width: 1560px;
  height: 62px; padding: 0 12px 0 24px; gap: 26px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
}
.landing .nav { flex: 1; justify-content: center; }
.landing .nav a { padding: 7px 11px; border-radius: 999px; transition: background .15s, color .15s; }
.landing .nav a:hover { background: rgba(255, 210, 63, .09); color: var(--text); }

/* — hero: две колонки — */
.landing .hero { padding: 72px 0 34px; }
.landing .hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 48px; align-items: center; position: relative; }
.landing .hero-in { max-width: none; }
.landing .hero h1 { font-size: 56px; }
.landing .hero p { max-width: 500px; }
.landing .hero-stats {
  display: flex; gap: 0; margin-top: 40px; padding: 16px 4px;
  border: 1px solid var(--line); border-radius: 18px; background: rgba(26, 22, 13, .55);
}
.landing .hero-stat { flex: 1; text-align: center; padding: 0 12px; }
.landing .hero-stat + .hero-stat { border-left: 1px dashed var(--line); }

/* живая карточка заказа справа */
.hero-show { position: relative; animation: fadeUp .6s .18s ease both; }
.show-card {
  position: relative; max-width: 430px; margin: 0 auto;
  background: linear-gradient(160deg, rgba(34, 28, 16, .92), rgba(22, 19, 9, .95));
  border: 1px solid rgba(255, 210, 63, .3); border-radius: 24px; padding: 22px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .45);
}
.show-head {
  display: flex; justify-content: space-between; margin-bottom: 15px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.show-row { display: flex; align-items: center; gap: 13px; }
.show-row .tile.sm { width: 56px; height: 56px; font-size: 22px; }
.show-row b { display: block; font-size: 16px; line-height: 1.25; }
.show-row > div > span { font-size: 12.5px; color: var(--muted); }
.show-price { margin-left: auto; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 21px; color: var(--accent); white-space: nowrap; }
.show-bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .07); margin: 16px 0 11px; overflow: hidden; }
.show-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--lime));
  transform-origin: left; transform: scaleX(.06);
  animation: showFill 2.4s ease forwards .7s;
}
@keyframes showFill { to { transform: scaleX(1); } }
.show-status { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: var(--lime); }
.show-status .ok { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 2.2s ease-out infinite; }
.show-chip {
  position: absolute; z-index: 2; white-space: nowrap;
  background: rgba(28, 23, 12, .94); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 15px; font-size: 13px; font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .42);
  animation: floatY 6s ease-in-out infinite alternate;
}
.show-chip.c1 { top: -22px; right: 4%; animation-delay: .4s; color: var(--accent); }
.show-chip.c2 { bottom: -28px; left: -6px; animation-delay: .9s; }
.show-chip.c3 { bottom: 16%; right: -22px; color: var(--lime); }

/* — бегущая строка каталога — */
.marquee-wrap {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(26, 22, 13, .45); padding: 13px 0; overflow: hidden;
}
.marquee-track { display: flex; gap: 12px; width: max-content; animation: mqScroll 38s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes mqScroll { to { transform: translateX(-50%); } }
.mq-item {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px;
  padding: 7px 15px; font-size: 13px; font-weight: 700; color: var(--muted);
}
.mq-item em { font-style: normal; }

/* — заголовки секций — */
.overline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.overline::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
.landing .sec-head h2 { font-size: 34px; }
.count-chip {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 800; white-space: nowrap;
}

/* — промо Telegram / Steam — */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promo-card {
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); border-radius: 24px; background: var(--panel);
  padding: 30px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.promo-card .wm { position: absolute; right: -10px; bottom: -28px; font-size: 130px; line-height: 1; opacity: .1; transform: rotate(-8deg); pointer-events: none; }
.promo-card .tagline { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.promo-card h3 { font-size: 26px; margin: 3px 0 0; }
.promo-card p { color: var(--muted); font-size: 14px; max-width: 390px; margin: 10px 0 20px; }
.promo-tg { background: linear-gradient(135deg, rgba(59, 130, 246, .14), var(--panel) 58%); border-color: rgba(59, 130, 246, .32); }
.promo-tg:hover { border-color: rgba(59, 130, 246, .6); }
.promo-steam { background: linear-gradient(135deg, rgba(163, 230, 53, .12), var(--panel) 58%); border-color: rgba(163, 230, 53, .28); }
.promo-steam:hover { border-color: rgba(163, 230, 53, .55); }

/* — преимущества: bento-сетка — */
.landing .features {
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas: "a a b" "c d d";
}
.landing .feature { border-radius: 22px; padding: 26px; position: relative; overflow: hidden; }
.landing .feature::after {
  content: ''; position: absolute; width: 170px; height: 170px; border-radius: 50%;
  right: -60px; top: -60px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 210, 63, .1), transparent 70%);
}
.landing .feature:nth-child(1) { grid-area: a; }
.landing .feature:nth-child(2) { grid-area: b; }
.landing .feature:nth-child(3) { grid-area: c; }
.landing .feature:nth-child(4) { grid-area: d; }
.landing .feature:nth-child(1) h3, .landing .feature:nth-child(4) h3 { font-size: 20px; }
.landing .feature:nth-child(1) p, .landing .feature:nth-child(4) p { font-size: 14px; max-width: 520px; }

/* — как это работает: таймлайн — */
.landing .steps { position: relative; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.landing .steps::before {
  content: ''; position: absolute; top: 50px; left: 9%; right: 9%;
  border-top: 2px dashed rgba(255, 210, 63, .28);
}
.landing .step { text-align: center; border-radius: 22px; padding: 88px 24px 28px; position: relative; }
.landing .step .num {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 50px; border-radius: 50%; margin: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 800; font-family: 'Baloo 2', sans-serif;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--ink);
  box-shadow: 0 10px 24px rgba(255, 210, 63, .28);
}

/* — FAQ в две колонки — */
.landing .faq { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.landing .faq details { margin-bottom: 0; border-radius: 16px; }

/* — контакты: CTA-полоса — */
.landing .contact-card {
  flex-direction: column; text-align: center; gap: 20px; padding: 54px 30px;
  border-radius: 28px; border: 1px solid rgba(255, 210, 63, .35);
  background: radial-gradient(120% 170% at 50% -30%, rgba(255, 210, 63, .17), var(--panel) 60%);
}
.landing .contact-card h3 { font-size: 32px; }
.landing .contact-card p { font-size: 15px; }

/* — футер — */
.landing footer { margin-top: 14px; padding: 42px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.foot-brand .logo { margin-bottom: 10px; }
.foot-brand p { font-size: 13.5px; max-width: 300px; }
.foot-col h4 {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 4.5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}

/* — адаптив лендинга 2.0 — */
@media (max-width: 980px) {
  .landing .hero { padding: 48px 0 30px; }
  .landing .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .landing .hero h1 { font-size: 40px; }
  .show-chip.c3 { right: 0; }
  .promo-grid { grid-template-columns: 1fr; }
  .landing .features { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c" "d d"; }
  .landing .steps { grid-template-columns: 1fr; }
  .landing .steps::before { display: none; }
  .landing .faq { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .landing .topbar-in { padding: 0 8px 0 14px; gap: 12px; }
  .landing .hero h1 { font-size: 32px; }
  .landing .hero-stats { flex-wrap: wrap; padding: 12px 4px; }
  .landing .hero-stat { flex: 1 1 45%; padding: 8px 10px; }
  .landing .hero-stat + .hero-stat { border-left: none; }
  .landing .features { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; }
  .show-chip.c1 { right: 0; }
  .show-chip.c2 { display: none; }
  .show-chip.c3 { right: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Админка: сайдбар с группами и SVG-иконками ---------- */
.snav-wrap { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; }
.sgroup { margin-top: 10px; }
.sgroup:first-child { margin-top: 4px; }
.sgroup-h {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; padding: 5px 12px; cursor: pointer;
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #6e6651; font-family: inherit; transition: color .15s;
}
.sgroup-h:hover { color: var(--muted); }
.sgroup-h .chev { width: 13px; height: 13px; transition: transform .2s; opacity: .6; }
.sgroup.collapsed .chev { transform: rotate(-90deg); }
.sgroup-items { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.sgroup.collapsed .sgroup-items { display: none; }
.snav .ic svg { width: 17px; height: 17px; display: block; }
.alang { margin: 0 8px 8px; justify-content: center; }

/* бренд-аккордеон в админке (Mobile Games / Vouchers) */
.brand-host { padding: 8px 12px; }
.ba-brand { border-bottom: 1px solid var(--line); }
.ba-brand:last-child { border-bottom: none; }
.ba-head { display: flex; align-items: center; gap: 12px; padding: 11px 6px; }
.ba-toggle {
  width: 26px; height: 26px; flex: none; border: none; background: none; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.ba-toggle:hover { background: var(--panel-2); color: var(--text); }
.ba-toggle svg { width: 15px; height: 15px; transition: transform .2s; }
.ba-brand.open > .ba-head .ba-toggle svg { transform: rotate(90deg); }
.ba-img {
  width: 38px; height: 38px; flex: none; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #26210f, #1a160d); border: 1px solid var(--line);
}
.ba-img img { width: 74%; height: 74%; object-fit: contain; }
.ba-img i { font-style: normal; font-weight: 800; font-size: 13px; color: var(--accent); }
.ba-name { font-size: 14.5px; flex: 1; min-width: 0; }
.ba-count { font-size: 12px; white-space: nowrap; }
.ba-master { flex: none; }
.ba-brand.ba-off .ba-head { opacity: .5; }
.ba-brand.ba-off .ba-name::after { content: ' · OFF'; color: var(--red); font-size: 11px; font-weight: 800; }
.ba-body { padding: 0 6px 10px; }
.ba-flat { padding-top: 6px; }

/* безопасность: ступени входа */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
.sec-step { display: flex; align-items: center; gap: 10px; }
.sec-step h3 { font-size: 16px; flex: 1; }
.sec-num {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; font-family: 'Baloo 2', sans-serif;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--ink);
}
@media (max-width: 980px) { .sec-grid { grid-template-columns: 1fr; } }

/* разбор заказа (Транзакции): связка мой заказ ↔ order_id поставщика */
.ord-row { cursor: pointer; }
.ord-row:hover { background: rgba(255, 210, 63, .04); }
.sup-link code { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: var(--accent); word-break: break-all; }
.ord-detail > td { background: var(--bg-soft); padding: 0 !important; }
.od-box { display: flex; gap: 22px; flex-wrap: wrap; padding: 16px 18px; border-left: 3px solid var(--accent); }
.od-col { flex: 1; min-width: 220px; }
.od-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 9px; }
.od-arrow { align-self: center; font-size: 22px; color: var(--muted); }
.od-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.od-row:last-child { border-bottom: none; }
.od-row > span { color: var(--muted); flex: none; }
.od-row > b { text-align: right; word-break: break-all; }
.od-row.err > b { color: var(--red); }
.od-row .copy-btn { padding: 1px 6px; font-size: 11px; }
@media (max-width: 760px) { .od-arrow { display: none; } }

/* плашка устаревшей вкладки */
.stale-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 300;
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--amber); border-radius: 14px;
  padding: 12px 18px; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.stale-bar button {
  background: var(--amber); color: var(--ink); border: none; border-radius: 9px;
  padding: 6px 14px; font-weight: 800; font-family: inherit;
}

/* журнал */
.lvl-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.lvl-ok { background: var(--green); box-shadow: 0 0 6px rgba(74, 222, 128, .5); }
.lvl-warn { background: var(--amber); box-shadow: 0 0 6px rgba(251, 191, 36, .5); }
.lvl-err { background: var(--red); box-shadow: 0 0 6px rgba(251, 113, 133, .5); }

/* промокоды и чат */
.promo-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.promo-form .field { flex: 1; min-width: 130px; margin-bottom: 14px; }
.ch-qa-row { display: grid; grid-template-columns: 1fr 1.6fr 34px; gap: 8px; margin-bottom: 9px; align-items: start; }

/* ---------- Админка: вкладка Products ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.prod-card { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.prod-head { display: flex; align-items: flex-start; gap: 13px; }
.prod-ic {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: rgba(255, 210, 63, .1); border: 1px solid rgba(255, 210, 63, .25);
}
.prod-head h3 { font-size: 17px; }
.prod-head p { font-size: 12.5px; }
.prod-markup {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  border-top: 1px dashed var(--line); padding-top: 14px; font-size: 13px;
}
.prod-markup .input-sm { width: 90px; }
.prod-markup small { color: var(--accent); font-weight: 800; }
@media (max-width: 980px) { .prod-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   ВИДЖЕТ ЧАТА ПОДДЕРЖКИ (лендинг + кабинет)
   ===================================================================== */
.bn-chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 220;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(255, 210, 63, .35), 0 6px 18px rgba(0, 0, 0, .4);
  transition: transform .2s;
}
.bn-chat-fab:hover { transform: translateY(-2px) scale(1.05); }
.bn-chat-fab svg { width: 25px; height: 25px; }
.bn-chat-fab .i-close { display: none; }
.bn-chat-fab.open .i-close { display: block; }
.bn-chat-fab.open .i-open { display: none; }
.bn-chat-fab .bn-chat-dot {
  position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--bg);
  animation: pulse 2.2s ease-out infinite;
}
.bn-chat-fab.open .bn-chat-dot { display: none; }

.bn-chat-panel {
  position: fixed; right: 20px; bottom: 88px; z-index: 220;
  width: 340px; max-width: calc(100vw - 28px); max-height: min(520px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(14px) scale(.97); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.bn-chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.bn-chat-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 210, 63, .12), transparent 70%);
  border-radius: 20px 20px 0 0;
}
.bn-chat-head img { width: 32px; height: 32px; }
.bn-chat-head b { display: block; font-size: 14.5px; font-family: 'Baloo 2', sans-serif; }
.bn-chat-head span { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.bn-chat-head .on { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.bn-chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 180px; }
.bn-msg {
  max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45;
  animation: fadeUp .25s ease both;
}
.bn-msg.bot { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; }
.bn-msg.me { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: var(--ink); font-weight: 700; border-bottom-right-radius: 5px; align-self: flex-end; }
.bn-msg.typing span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  margin-right: 4px; animation: chatTyping 1s infinite;
}
.bn-msg.typing span:nth-child(2) { animation-delay: .15s; }
.bn-msg.typing span:nth-child(3) { animation-delay: .3s; margin-right: 0; }
@keyframes chatTyping { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.bn-msg-link { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 800; }
.bn-chips { display: flex; flex-wrap: wrap; gap: 7px; animation: fadeUp .3s ease both; }
.bn-chips button {
  border: 1px solid rgba(255, 210, 63, .4); background: rgba(255, 210, 63, .07); color: var(--text);
  border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; font-family: inherit;
  transition: background .15s, border-color .15s;
}
.bn-chips button:hover { background: rgba(255, 210, 63, .16); border-color: var(--accent); }
.bn-chat-foot { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.bn-chat-promo {
  border: 1px dashed rgba(255, 210, 63, .55); background: rgba(255, 210, 63, .06); color: var(--accent);
  border-radius: 12px; padding: 9px; font-size: 13px; font-weight: 800; font-family: inherit;
  transition: background .15s;
}
.bn-chat-promo:hover { background: rgba(255, 210, 63, .14); }
.bn-chat-tg { text-align: center; }

/* =====================================================================
   ГОРЯЧИЕ ТОВАРЫ (лендинг + кабинет) и доп. эффекты
   ===================================================================== */
.hot-wrap { position: relative; }
.hot-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.hot-strip::-webkit-scrollbar { display: none; width: 0; height: 0; }
.hot-nav {
  position: absolute; top: calc(50% + 2px); transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; flex: none; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 210, 63, .45);
  background: rgba(18, 16, 9, .82); color: var(--accent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  transition: background .18s, border-color .18s, transform .18s, opacity .18s;
}
.hot-nav:hover { background: rgba(255, 210, 63, .16); border-color: var(--accent); }
.hot-nav:active { transform: translateY(-50%) scale(.92); }
.hot-nav svg { width: 20px; height: 20px; }
.hot-nav.prev { left: -8px; }
.hot-nav.next { right: -8px; }
.hot-nav[hidden] { display: none; }
@media (max-width: 640px) { .hot-nav { width: 36px; height: 36px; } .hot-nav.prev { left: -4px; } .hot-nav.next { right: -4px; } }
.hot-card {
  flex: 0 0 210px; scroll-snap-align: start; cursor: pointer; position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.hot-card:hover { transform: translateY(-3px); border-color: rgba(255, 210, 63, .55); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.hot-card .hc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hot-card .hc-top img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.hot-card .hc-mono {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
  background: linear-gradient(135deg, #26210f, #1a160d); border: 1px solid var(--line); color: var(--accent);
}
.hot-card .hc-game { font-size: 12px; color: var(--muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hot-card .hc-name { font-size: 13.5px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hot-card .hc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hot-card .hc-price { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 17px; color: var(--accent); }
.hot-card .hc-fire {
  position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  background: linear-gradient(90deg, #ff6b35, #ff9558); color: #2a1205;
  border-radius: 99px; padding: 3px 8px; text-transform: uppercase;
}

/* отзывы: бегущая строка карточек */
.rev-wrap { padding: 18px 0; border-block: 1px solid var(--line); background: rgba(26, 22, 13, .35); }
.rev-track { gap: 14px; animation-duration: 70s; align-items: stretch; }
.rev-wrap:hover .rev-track { animation-play-state: paused; }
.rev-card {
  flex: 0 0 330px; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  transition: border-color .2s;
}
.rev-card:hover { border-color: rgba(255, 210, 63, .45); }
.rev-stars { color: var(--accent); letter-spacing: 3px; font-size: 15px; margin-bottom: 9px; text-shadow: 0 0 12px rgba(255, 210, 63, .35); }
.rev-card p { font-size: 13.5px; line-height: 1.55; color: var(--text); flex: 1; }
.rev-foot { display: flex; align-items: center; gap: 9px; margin-top: 13px; flex-wrap: wrap; }
.rev-foot b { font-size: 13px; }
.rev-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--green); }
.rev-ok svg { width: 12px; height: 12px; }
.rev-prod { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; }
.rev-score { color: var(--accent); border-color: rgba(255, 210, 63, .45); }

/* блик на главных кнопках */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); animation: shineSweep 3.2s ease-in-out infinite;
}
@keyframes shineSweep { 0%, 60% { left: -80%; } 90%, 100% { left: 130%; } }

/* дышащее свечение hero */
.landing .glow-1 { animation: glowBreath 7s ease-in-out infinite alternate; }
.landing .glow-2 { animation: glowBreath 9s ease-in-out infinite alternate-reverse; }
@keyframes glowBreath { from { opacity: .75; transform: scale(1); } to { opacity: 1.15; transform: scale(1.12); } }

/* усиленный ховер плиток каталога */
.landing .game-card:hover, #view-catalog .game-card:hover, #view-gifts .game-card:hover {
  border-color: rgba(255, 210, 63, .65);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 210, 63, .25), 0 0 28px rgba(255, 210, 63, .08);
}

/* SVG-иконки взамен эмодзи */
.feature .ic svg { width: 22px; height: 22px; color: var(--accent); }
.promo-card .wm svg { width: 120px; height: 120px; color: currentColor; }
.promo-tg .wm { color: #3b82f6; }
.promo-steam .wm { color: var(--lime); }
.show-chip svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; color: currentColor; }
.cart-btn svg { width: 19px; height: 19px; display: block; }

/* кабинет: панель горячих товаров и сортировка */
.cab-hot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.cab-hot-head h3 { font-size: 17px; }
.cab-fav { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.cab-fav button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 999px; padding: 7px 14px 7px 8px; font-size: 13px; font-weight: 700; font-family: inherit;
  transition: border-color .15s, transform .15s;
}
.cab-fav button:hover { border-color: var(--accent); transform: translateY(-1px); }
.cab-fav img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.sort-row { display: flex; align-items: center; gap: 10px; }

/* промокод в сводке заказа */
.promo-row { display: flex; gap: 7px; margin-top: 10px; }
.promo-row .input { flex: 1; padding: 9px 12px; font-size: 13px; text-transform: uppercase; }
.promo-ok { color: var(--lime); font-size: 12.5px; font-weight: 800; margin-top: 5px; }
.promo-bad { color: var(--red); font-size: 12.5px; font-weight: 800; margin-top: 5px; }


/* =====================================================================
   ШАПКА КАБИНЕТА: длинные ники не ломают вёрстку
   ===================================================================== */
.user-chip span:last-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { flex: none; min-width: 0; }
.cab-tabs { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cab-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 1180px) {
  .topbar-in .logo span { display: none; }      /* на тесноте остаётся только смайлик */
  .topbar-in { gap: 14px; }
}

/* шапка кабинета: растянута и дышит (лого — вкладки по центру — управление) */
.cab-top .topbar-in {
  max-width: 1640px;
  height: 70px;
  gap: 30px;
  padding: 0 30px;
}
.cab-top .cab-tabs {
  flex: 1;
  justify-content: center;
  gap: 10px;
}
.cab-top .cab-tab { padding: 9px 20px; font-size: 14.5px; }
.cab-top .topbar-right { gap: 13px; }
@media (max-width: 1280px) {
  .cab-top .topbar-in { gap: 18px; padding: 0 18px; }
  .cab-top .cab-tabs { gap: 6px; justify-content: flex-start; }
  .cab-top .cab-tab { padding: 8px 14px; font-size: 14px; }
}

/* корзинка — банановая */
.cart-btn {
  background: rgba(255, 210, 63, .12) !important;
  border: 1px solid rgba(255, 210, 63, .45) !important;
  color: var(--accent) !important;
  transition: background .15s, transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.cart-btn:hover { background: rgba(255, 210, 63, .22) !important; transform: translateY(-1px) scale(1.06); }

/* =====================================================================
   ГЛАВНАЯ КАБИНЕТА (дашборд клиента)
   ===================================================================== */
.home-hello { margin-bottom: 18px; }
.home-hello h2 { font-size: 30px; }
.home-hello .wave { display: inline-block; animation: waveBanana 2.6s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes waveBanana { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-14deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-4deg); } }
.home-stats {
  display: flex; gap: 0; border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel); padding: 16px 4px; margin-bottom: 16px;
}
.home-stat { flex: 1; text-align: center; padding: 0 12px; }
.home-stat + .home-stat { border-left: 1px dashed var(--line); }
.home-stat span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.home-stat b { font-family: 'Baloo 2', sans-serif; font-size: 23px; }
.home-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; margin-bottom: 16px; align-items: stretch; }
.home-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.home-col .home-week { flex: 1; margin-bottom: 0; }
/* новости: высота строго по левой колонке, внутри свой скролл, страницу не раздувают */
.home-news { display: flex; flex-direction: column; min-height: 0; max-height: 560px; }
.home-news h3 { flex: none; }
#homeNews { overflow-y: auto; flex: 1; min-height: 0; padding-right: 6px; }
.news-row p {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-row.long { cursor: pointer; }
.news-row.long p::after { content: ''; }
.news-row.open p { display: block; -webkit-line-clamp: unset; overflow: visible; }
.news-more { font-size: 11.5px; font-weight: 800; color: var(--accent); margin-top: 3px; display: inline-block; }
.home-daily { border-color: rgba(255, 210, 63, .45); background: radial-gradient(130% 160% at 0% 0%, rgba(255, 210, 63, .13), var(--panel) 60%); }
.hd-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.hd-gift { font-size: 30px; animation: floatY 5s ease-in-out infinite alternate; }
.hd-head h3 { font-size: 17px; }
.hd-head p { font-size: 12.5px; }
.hd-code {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1px dashed rgba(255, 210, 63, .55); border-radius: 12px; padding: 11px 14px;
}
.hd-code code { font-family: ui-monospace, Menlo, monospace; font-size: 16px; font-weight: 800; color: var(--accent); letter-spacing: .08em; flex: 1; }
.home-news h3, .home-top h3 { font-size: 17px; margin-bottom: 12px; }
.news-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.news-row:last-child { border-bottom: none; }
.news-row .news-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: none; box-shadow: 0 0 8px rgba(255, 210, 63, .5); }
.news-row p { font-size: 13.5px; line-height: 1.5; }
.news-row .muted { font-size: 11.5px; }
.ht-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.ht-info { width: 250px; flex: none; min-width: 0; }
.ht-info b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht-info .muted { font-size: 11.5px; }
.ht-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.ht-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--lime)); }
.ht-sum { width: 80px; text-align: right; font-size: 13.5px; flex: none; }
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-news { max-height: 420px; }
  .home-stats { flex-wrap: wrap; }
  .home-stat { flex: 1 1 45%; padding: 8px 10px; }
  .home-stat + .home-stat { border-left: none; }
  .ht-info { width: 150px; }
}

/* гифткарты: уровень брендов, крупные карточки */
.brand-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px 14px 18px; cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.brand-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 210, 63, .55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), 0 0 22px rgba(255, 210, 63, .07);
}
.brand-card .bc-img {
  width: 64px; height: 64px; border-radius: 17px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #26210f, #1a160d); border: 1px solid var(--line);
}
.brand-card .bc-img img { width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.brand-card .bc-img i { font-style: normal; font-weight: 800; font-size: 19px; color: var(--accent); }
.brand-card b { font-size: 14.5px; line-height: 1.25; }
.brand-card .bc-meta { font-size: 11.5px; color: var(--muted); }

/* график активности за 7 дней */
.wk-chart { display: flex; gap: 10px; align-items: flex-end; height: 150px; }
.wk-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.wk-val { font-size: 10.5px; font-weight: 800; color: var(--accent); min-height: 14px; }
.wk-bar { flex: 1; width: 100%; max-width: 46px; display: flex; align-items: flex-end; background: var(--bg-soft); border-radius: 10px; overflow: hidden; }
.wk-bar i {
  display: block; width: 100%; border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  animation: wkGrow .6s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes wkGrow { from { height: 0 !important; } }
.wk-day { font-size: 11px; color: var(--muted); font-weight: 700; }
.home-week { margin-bottom: 16px; }

/* =====================================================================
   ЖИВОСТЬ: фирменные лёгкие анимации (ненавязчиво, расслабляюще)
   ===================================================================== */
/* плывущие банановые светлячки на фоне */
.bn-ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bn-ambient i {
  position: absolute; bottom: -40px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, .5), rgba(255, 210, 63, 0) 70%);
  animation: fireflyUp linear infinite, fireflySway ease-in-out infinite alternate;
}
@keyframes fireflyUp { from { transform: translateY(0); opacity: 0; } 8% { opacity: var(--amb-o, .16); } 88% { opacity: var(--amb-o, .16); } to { transform: translateY(-110vh); opacity: 0; } }
@keyframes fireflySway { from { margin-left: 0; } to { margin-left: var(--amb-sway, 30px); } }
main, .container, .view, .admin-main { position: relative; z-index: 1; }

/* карточки гридов мягко «всплывают» одна за другой */
.pop-in { animation: popIn .45s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

/* логотип изредка подмигивает покачиванием */
.logo img { animation: logoWiggle 9s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes logoWiggle {
  0%, 90%, 100% { transform: none; }
  92% { transform: rotate(-7deg) scale(1.04); }
  95% { transform: rotate(5deg); }
  98% { transform: rotate(-2deg); }
}

/* кнопки пружинят */
.btn { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, border-color .15s, background .15s; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.98); }

/* подчёркивание-росток у пунктов меню лендинга */
.landing .nav a { position: relative; }
.landing .nav a::after {
  content: ''; position: absolute; left: 12px; right: 100%; bottom: 4px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--lime));
  transition: right .25s ease; opacity: .85;
}
.landing .nav a:hover::after { right: 12px; }

/* бейдж HOT мерцает теплом */
.hc-fire { animation: firePulse 2.4s ease-in-out infinite; }
@keyframes firePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, .4); } 50% { box-shadow: 0 0 12px 2px rgba(255, 107, 53, .25); } }

/* плавная смена видов кабинета */
.view.active { animation: viewIn .3s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* уважение к reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
