/* ============================================================
   ШРИФТЫ (лежат у нас на сервере, Google не нужен)
   Manrope — весь интерфейс и цифры, Playfair Display — заголовки.
   ============================================================ */
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/Manrope-500-cyr.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/Manrope-500-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/Manrope-700-cyr.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/Manrope-700-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/Manrope-800-cyr.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('/fonts/Manrope-800-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/PlayfairDisplay-700-cyr.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/PlayfairDisplay-700-lat.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ============================================================
   ФИРМЕННЫЙ ВИД САЙТА SpinTrade
   Подключается последним и задаёт общий стиль: фон, промо-баннер,
   плитки игр, заголовки разделов, кнопки.
   ============================================================ */

:root {
  --brand-gold: #ffd873;
  --brand-gold-2: #f5b53c;
  --brand-violet: #17102a;
}

/* ---------- фон страницы ---------- */

body {
  background-image:
    radial-gradient(900px 520px at 78% -6%, rgba(255, 200, 90, .07), transparent 62%),
    radial-gradient(700px 420px at 4% 102%, rgba(120, 80, 220, .10), transparent 58%),
    url('/img/brand/bg-pattern.jpg?v=54');
  background-size: auto, auto, 300px 300px;
  background-attachment: fixed, fixed, fixed;
  background-blend-mode: normal, normal, overlay;
}

/* Ссылка на сервис USDT — рамка в тон промо-блоку */
.usdt-link { border-color: rgba(255, 216, 115, .28); }
.usdt-link:hover { border-color: rgba(255, 216, 115, .45); }

/* ---------- блок конкурса: подача как у промо, но под длинный текст ---------- */

.konkurs {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 22px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 92% 6%, rgba(255, 207, 77, .17), transparent 56%),
    linear-gradient(120deg, #1c1636, #14101f);
  border: 1px solid rgba(255, 216, 115, .28);
  box-shadow: 0 22px 50px -28px rgba(0, 0, 0, .95);
}

.kk-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.konkurs h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #ffe9ae;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
  margin: 0;
}
.kk-dates {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 216, 115, .12);
  border: 1px solid rgba(255, 216, 115, .34);
  color: var(--brand-gold, #ffcf4d);
  white-space: nowrap;
}

.kk-intro { font-size: 13.5px; line-height: 1.55; color: #e2d9f5; margin: 0 0 16px; }

.kk-group { margin-bottom: 14px; }
.kk-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #ffcf4d;
  margin-bottom: 7px;
}
.kk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kk-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #e2d9f5;
}
.kk-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .58em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255, 216, 115, .7);
}
.kk-prizes li b {
  display: inline-block;
  min-width: 1.9em;
  font-family: var(--mono);
  font-weight: 700;
  color: #ffe9ae;
}

/* Главный приз — отдельной золотой полосой */
.kk-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 16px 0 14px;
  padding: 13px 16px;
  border-radius: var(--r);
  background: linear-gradient(100deg, rgba(255, 207, 77, .16), rgba(255, 207, 77, .04));
  border: 1px solid rgba(255, 216, 115, .36);
}
.kk-main-label { font-size: 11.5px; color: #e2d9f5; }
.kk-main-prize {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffe9ae;
  letter-spacing: -.01em;
}

.kk-when { font-size: 13px; color: #e2d9f5; margin-bottom: 8px; }
.kk-when b { color: #ffe9ae; font-weight: 700; }
.kk-note { font-size: 12px; line-height: 1.5; color: #a99fce; margin: 0; }

/* Тот же медленный проход света, что на промо */
.konkurs::after {
  content: '';
  position: absolute;
  top: -80%; bottom: -80%;
  width: 46%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 216, 115, .1), transparent);
  transform: skewX(-16deg);
  animation: sweep 9s ease-in-out infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .konkurs::after { animation: none; } }

@media (max-width: 560px) {
  .konkurs { padding: 18px 16px; }
  .konkurs h3 { font-size: 20px; }
  .kk-main-prize { font-size: 18px; }
}

/* ---------- промо-блок с настоящим баннером ---------- */

.promo {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border-color: rgba(255, 216, 115, .28);
  background:
    linear-gradient(100deg, rgba(13, 10, 24, .94) 8%, rgba(13, 10, 24, .62) 46%, rgba(13, 10, 24, .18) 78%),
    url('/img/brand/hero.jpg?v=54');
  background-size: cover;
  background-position: center right;
}

.promo h3 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
.promo p { color: #cfc6e6; max-width: 62%; }

/* Кубик справа больше не нужен: там теперь баннер */
.promo-art { display: none; }

.promo-marks span {
  background: rgba(255, 216, 115, .12);
  border: 1px solid rgba(255, 216, 115, .34);
  color: var(--brand-gold);
}

/* ---------- заголовки разделов с золотой риской ---------- */

.section-title,
.page h2,
.card-head {
  letter-spacing: -.01em;
}

.section-title::after {
  content: "";
  display: block;
  height: 26px;
  margin-top: 6px;
  background: url('/img/brand/divider.png?v=54') no-repeat left center;
  background-size: contain;
  opacity: .55;
}

/* ---------- плитки игр ---------- */

.game-tile {
  border-color: rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent) var(--panel);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.game-tile:hover {
  border-color: rgba(255, 216, 115, .45);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .5);
}

/* Обложка выше, снизу затемнение — подпись читается на любой картинке */
.tile-art { height: 116px; }
.tile-art::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(10, 8, 18, .92));
  pointer-events: none;
}

.tile-body {
  padding: 9px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.tile-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #f2eefb;
}
.tile-meta {
  font-size: 9.5px;
  color: #8c82ab;
  margin-top: 3px;
}

/* Метка режима поверх обложки — тише и аккуратнее */
.tile-flag {
  background: rgba(10, 8, 18, .72);
  border: 1px solid rgba(255, 216, 115, .3);
  color: var(--brand-gold);
  backdrop-filter: blur(3px);
}

/* ---------- кнопки ---------- */

.btn-gold,
.deposit-btn {
  background: linear-gradient(180deg, #ffe08a, var(--brand-gold-2));
  color: #231701;
  border: 0;
  box-shadow: 0 6px 18px rgba(245, 181, 60, .28);
}
.btn-gold:hover,
.deposit-btn:hover { filter: brightness(1.05); }

/* ---------- карточки разделов ---------- */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), transparent) var(--panel);
  border-color: rgba(255, 255, 255, .07);
}

/* ---------- шапка ---------- */

.topbar {
  background:
    linear-gradient(180deg, rgba(23, 16, 42, .96), rgba(13, 10, 24, .9));
  border-bottom: 1px solid rgba(255, 216, 115, .16);
  backdrop-filter: blur(8px);
}

@media (max-width: 560px) {
  .promo p { max-width: 100%; font-size: 12.5px; }
  .promo { min-height: 116px; background-position: center right -40px; }
  .tile-art { height: 100px; }
}

/* ---------- фильтр категорий: без прокрутки вбок ---------- */

.cat-bar {
  display: flex;
  flex-wrap: wrap;          /* переносим на новую строку вместо прокрутки */
  gap: 8px;
  overflow: visible;
  margin: 14px 0 6px;
  padding-bottom: 0;
}

.cat-bar .chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #b7aed2;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: .16s;
  cursor: pointer;
}
.cat-bar .chip:hover {
  color: #efeaff;
  border-color: rgba(255, 216, 115, .38);
  background: rgba(255, 216, 115, .07);
}

/* Выбранная категория — золотая */
.cat-bar .chip.active {
  color: #241701;
  background: linear-gradient(180deg, #ffe08a, var(--brand-gold-2));
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(245, 181, 60, .3);
}

/* Счётчик игр в кнопке */
.chip-n {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 0, 0, .28);
  color: inherit;
}
.cat-bar .chip.active .chip-n { background: rgba(0, 0, 0, .18); }

/* ---------- значки меню: вектор вместо эмодзи ---------- */

.rail-item .ico,
.tabbar-item .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.rail-item .ico svg,
.tabbar-item .ico svg { width: 20px; height: 20px; }

.rail-item {
  border-radius: 12px;
  transition: .16s;
}
.rail-item.active {
  background: linear-gradient(90deg, rgba(255, 216, 115, .16), transparent);
  color: var(--brand-gold);
  box-shadow: inset 3px 0 0 var(--brand-gold);
}

/* ---------- поиск игр ---------- */

#gameSearch {
  border-radius: 14px;
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}
#gameSearch:focus {
  border-color: rgba(255, 216, 115, .5);
  box-shadow: 0 0 0 3px rgba(255, 216, 115, .12);
}

/* ============================================================
   ПОЛНЫЙ ФИРМЕННЫЙ ДИЗАЙН: типографика, панели, формы, модалки,
   навигация. Ниже — всё, что видит игрок на каждом экране.
   ============================================================ */

/* ---------- типографика ---------- */

body {
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  letter-spacing: .002em;
}

.section-head { align-items: baseline; margin-bottom: 10px; }

.section-title {
  font-size: 17px;
  font-weight: 800;
  color: #f4f0ff;
}
/* Золотая риска слева у заголовка раздела */
.section-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 15px;
  margin-right: 9px;
  vertical-align: -2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffe08a, var(--brand-gold-2));
}
/* Вензель под заголовком оставляем только на главных блоках */
.section-title::after { display: none; }

.eyebrow {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a7fb0;
}

/* ---------- баланс в шапке ---------- */

.balance-value {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.uid-line { color: #7d729e; letter-spacing: .1em; }

.icon-btn {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
  transition: .16s;
}
.icon-btn:hover {
  border-color: rgba(255, 216, 115, .4);
  background: rgba(255, 216, 115, .09);
}

/* ---------- быстрые действия ---------- */

.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.quick-item {
  padding: 14px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  font-weight: 700;
  color: #ddd6f0;
  transition: .16s;
}
.quick-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 216, 115, .45);
  color: #fff;
}
.quick-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  border-radius: 12px;
  font-size: 17px;
  color: #241701;
  background: linear-gradient(180deg, #ffe08a, var(--brand-gold-2));
  box-shadow: 0 6px 14px rgba(245, 181, 60, .28);
}

/* ---------- панели и строки данных ---------- */

.card {
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
.card-head {
  font-size: 14px;
  font-weight: 800;
  color: #efeaff;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 12px;
}

.row .label { color: #8f85b3; font-size: 12.5px; }
.row .value { font-weight: 700; color: #f0ecfb; }
.row .value.up { color: #3ee0a4; }

.badge {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
}

/* ---------- формы ---------- */

.field label {
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #8a7fb0;
  margin-bottom: 6px;
  display: block;
}
input, select, textarea {
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .035);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(255, 216, 115, .55);
  background: rgba(255, 216, 115, .05);
  box-shadow: 0 0 0 3px rgba(255, 216, 115, .12);
}

.btn {
  border-radius: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .1s, filter .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #34e6ab, #12b985);
  color: #04140d;
  box-shadow: 0 8px 20px rgba(30, 200, 145, .26);
}
.btn-ghost {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #e6e1f5;
}
.btn-ghost:hover { border-color: rgba(255, 216, 115, .4); }

/* ---------- модальные окна ---------- */

.overlay { backdrop-filter: blur(6px); background: rgba(6, 4, 12, .66); }
.modal {
  border-radius: 22px;
  border: 1px solid rgba(255, 216, 115, .16);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 216, 115, .07), transparent 60%),
    linear-gradient(180deg, #1b1430, #120d20);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.modal-head {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  margin-bottom: 14px;
}
.modal-title { font-size: 16px; font-weight: 800; color: #f4f0ff; }
.close-btn {
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: .15s;
}
.close-btn:hover { background: rgba(255, 90, 90, .18); border-color: rgba(255, 90, 90, .4); }

/* ---------- пункты меню ---------- */

.menu-item {
  border-radius: 14px;
  border: 1px solid transparent;
  transition: .15s;
}
.menu-item:hover {
  background: rgba(255, 216, 115, .07);
  border-color: rgba(255, 216, 115, .25);
}
.mi-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
}
.mi-arrow { color: #6f6690; }

/* ---------- нижняя навигация на телефоне ---------- */

.nav-item.active { color: var(--brand-gold); }
.nav-item.active .ico { filter: drop-shadow(0 0 6px rgba(255, 216, 115, .55)); }

/* ---------- подсказки и заметки ---------- */

.note {
  border-radius: 13px;
  border-left: 3px solid rgba(255, 216, 115, .55);
  background: rgba(255, 216, 115, .06);
  color: #d6cdec;
}
.note.warn { border-left-color: #ffbe4d; }
.hint { color: #8a7fb0; }

/* ---------- экран входа ---------- */

.auth-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 216, 115, .18);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 216, 115, .10), transparent 62%),
    linear-gradient(180deg, #1c1533, #120d20);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6);
}
.tabs .tab.active {
  background: linear-gradient(180deg, #ffe08a, var(--brand-gold-2));
  color: #241701;
}
.flag-btn {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .04);
}
.flag-btn.on {
  border-color: rgba(255, 216, 115, .5);
  background: rgba(255, 216, 115, .1);
  color: var(--brand-gold);
}

@media (max-width: 560px) {
  .quick { grid-template-columns: repeat(2, 1fr); }
  .balance-value { font-size: 24px; }
}

/* ---------- векторные значки вместо эмодзи ---------- */

/* Значки живут в кнопках, пунктах меню и заголовках. Размер задаём по месту,
   цвет наследуется от текста — поэтому активный пункт красится золотом. */
.icon-btn svg { width: 19px; height: 19px; }
.mi-ico svg { width: 19px; height: 19px; color: var(--brand-gold); }
.quick-ico svg { width: 19px; height: 19px; }
.menu-item .mi-ico svg { color: var(--brand-gold); }
.btn svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
.eye svg { width: 15px; height: 15px; }
.tile-emoji svg { width: 34px; height: 34px; opacity: .8; }
.promo-art svg { width: 54px; height: 54px; color: var(--brand-gold); }

/* Кнопка-конверт со счётчиком: значок не должен перекрывать кружок */
.msg-btn svg { width: 19px; height: 19px; }


/* ---------- казиношные иконки: золото и красный ----------
   Нарисованные значки из общего листа. Размер держим крупным (22–34px):
   на мелком они мылятся, поэтому под них увеличены и сами кнопки. */
.ic {
  display: inline-block;
  width: 26px;
  height: 26px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: -6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6));
  image-rendering: -webkit-optimize-contrast;
}

.ic-home     { background-image: url('/img/icons/home.png?v=83'); }
.ic-earn     { background-image: url('/img/icons/earn.png?v=83'); }
.ic-games    { background-image: url('/img/icons/games.png?v=83'); }
.ic-profile  { background-image: url('/img/icons/profile.png?v=83'); }
.ic-deposit  { background-image: url('/img/icons/deposit.png?v=83'); }
.ic-withdraw { background-image: url('/img/icons/withdraw.png?v=83'); }
.ic-friends  { background-image: url('/img/icons/friends.png?v=83'); }
.ic-history  { background-image: url('/img/icons/history.png?v=83'); }
.ic-mail     { background-image: url('/img/icons/mail.png?v=83'); }
.ic-settings { background-image: url('/img/icons/settings.png?v=83'); }
.ic-lang     { background-image: url('/img/icons/lang.png?v=83'); }
.ic-lock     { background-image: url('/img/icons/lock.png?v=83'); }
.ic-support  { background-image: url('/img/icons/support.png?v=83'); }
.ic-docs     { background-image: url('/img/icons/docs.png?v=83'); }
.ic-telegram { background-image: url('/img/icons/telegram.png?v=83'); }
.ic-chip     { background-image: url('/img/icons/chip.png?v=83'); }

/* Размеры по месту: чем крупнее, тем чётче рисунок */
.rail-item .ico .ic,
.nav-item .ico .ic { width: 28px; height: 28px; }
.quick-ico .ic     { width: 34px; height: 34px; }
.mi-ico .ic        { width: 26px; height: 26px; }
.icon-btn .ic      { width: 24px; height: 24px; }

/* Под крупные значки увеличиваем и сами кнопки */
.icon-btn { width: 42px; height: 42px; }
.mi-ico { width: 40px; height: 40px; }
.quick-ico { width: 46px; height: 46px; background: rgba(255, 216, 115, .08); border: 1px solid rgba(255, 216, 115, .22); box-shadow: none; }
.rail-item .ico, .nav-item .ico { width: 28px; height: 28px; }

/* Активный пункт — значок с золотым свечением */
.rail-item.active .ic,
.nav-item.active .ic { filter: drop-shadow(0 0 9px rgba(255, 190, 70, .85)); }

/* Кнопка языка: значок и код языка в строку */
#langBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#langBtn span { font-weight: 800; font-size: 12px; letter-spacing: .04em; }

/* ============================================================
   ШАПКА, РЫНОК, ЛИДЕРЫ, SMARTEARN, ПРОФИЛЬ — казино-оформление
   ============================================================ */

/* ---------- шапка с картинкой вместо пустой полосы ---------- */

.topbar {
  position: relative;
  /* Фишки, барабаны и карты справа; слева фон уходит в чёрный под текст */
  background-color: #090610;
  background-image:
    radial-gradient(75% 140% at 26% 50%, rgba(6, 4, 12, .97) 0%, rgba(6, 4, 12, .82) 45%, transparent 78%),
    linear-gradient(180deg, rgba(9, 6, 16, .7), rgba(9, 6, 16, .84)),
    url('/img/brand/topbar-art.jpg?v=83');
  background-size: auto, auto, cover;
  background-position: center, center, center 62%;
  background-repeat: no-repeat, no-repeat, no-repeat;
  border-bottom: 1px solid rgba(255, 216, 115, .28);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .5);
}
/* Золотая нить под шапкой */
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 216, 115, .8), transparent);
}

/* Значки в круглых кнопках строго по центру */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}
.icon-btn .ic { margin: 0; vertical-align: middle; }
#langBtn { width: auto; padding: 0 12px; gap: 7px; }

/* ---------- рынок: тёмное золото вместо синего ---------- */

.mkt-row {
  background: linear-gradient(180deg, rgba(255, 255, 255, .022), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: background .15s;
}
.mkt-row:hover { background: rgba(255, 216, 115, .07); }

/* Значок монеты — нарисованная монета вместо буквы в синем кружке */
.coin-ico {
  width: 34px; height: 34px;
  background: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: transparent;
  border: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55));
}
.coin-ico[data-c="BTC"]  { background-image: url('/img/coins/BTC.png?v=83'); }
.coin-ico[data-c="ETH"]  { background-image: url('/img/coins/ETH.png?v=83'); }
.coin-ico[data-c="SOL"]  { background-image: url('/img/coins/SOL.png?v=83'); }
.coin-ico[data-c="BNB"]  { background-image: url('/img/coins/BNB.png?v=83'); }
.coin-ico[data-c="XRP"]  { background-image: url('/img/coins/XRP.png?v=83'); }
.coin-ico[data-c="DOGE"] { background-image: url('/img/coins/DOGE.png?v=83'); }
.coin-ico[data-c="ADA"]  { background-image: url('/img/coins/ADA.png?v=83'); }
.coin-ico[data-c="TRX"]  { background-image: url('/img/coins/TRX.png?v=83'); }
.coin-ico[data-c="AVAX"] { background-image: url('/img/coins/AVAX.png?v=83'); }
.coin-ico[data-c="TON"]  { background-image: url('/img/coins/TON.png?v=83'); }
.coin-ico[data-c="USDT"] { background-image: url('/img/coins/USDT.png?v=83'); }
.coin-ico[data-c="ECO"]  { background-image: url('/img/coins/ECO.png?v=83'); }

/* ---------- лидеры: золотой пьедестал вместо синих плашек ---------- */

.leader { border-bottom: 1px solid rgba(255, 255, 255, .05); transition: background .15s; }
.leader:hover { background: rgba(255, 216, 115, .06); }

.leader-pos,
.leader .pos {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 9px;
  font-weight: 800;
  font-size: 12px;
  color: #cfc4ea;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
}
/* Первая тройка — золото, серебро, бронза */
.leader:nth-child(1) .leader-pos, .leader:nth-child(1) .pos {
  background: linear-gradient(180deg, #ffe08a, #e9a825); color: #241701; border-color: transparent;
  box-shadow: 0 4px 12px rgba(233, 168, 37, .35);
}
.leader:nth-child(2) .leader-pos, .leader:nth-child(2) .pos {
  background: linear-gradient(180deg, #e8ecf5, #9aa3b8); color: #1a1d26; border-color: transparent;
}
.leader:nth-child(3) .leader-pos, .leader:nth-child(3) .pos {
  background: linear-gradient(180deg, #e0a56a, #a9682f); color: #24140a; border-color: transparent;
}
.leader:nth-child(1) { background: linear-gradient(90deg, rgba(255, 216, 115, .10), transparent); }

/* ---------- SmartEarn: монета ECO по-богатому ---------- */

.market-tabs .chip.active,
.sub-tabs .chip.active {
  background: linear-gradient(180deg, #ffe08a, var(--brand-gold-2));
  color: #241701;
  border-color: transparent;
}

#pageEarn .card:first-of-type {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 216, 115, .25);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 216, 115, .12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .02), transparent) var(--panel);
}
/* Крупная монета ECO в углу карточки курса */
#pageEarn .card:first-of-type::after {
  content: "";
  position: absolute;
  right: -18px; top: -14px;
  width: 130px; height: 130px;
  background: url('/img/coins/ECO.png?v=83') no-repeat center/contain;
  opacity: .18;
  pointer-events: none;
}

/* ---------- профиль ---------- */

#pageProfile .card-head { color: var(--brand-gold); }
#pageProfile .badge.green { background: rgba(38, 224, 164, .16); color: #4ef0b6; }
#pageProfile .badge.grey  { background: rgba(255, 255, 255, .07); color: #a99fce; }

/* Ежедневный вход: дни как фишки, сегодняшний золотой */
.daily-day {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent);
}
.daily-day.today {
  border-color: rgba(255, 216, 115, .7);
  background: linear-gradient(180deg, rgba(255, 216, 115, .16), transparent);
  box-shadow: 0 0 0 1px rgba(255, 216, 115, .25), 0 8px 20px rgba(0, 0, 0, .4);
}
.daily-day.done { opacity: .55; }

/* ============================================================
   ТЕКСТУРЫ: панели, рынок, лидеры и модальные окна
   Тёмно-синие заливки заменены тканью и золотом.
   ============================================================ */

/* ---------- панели разделов ---------- */

.card,
.card.flush {
  background-color: #140f22;
  background-image:
    linear-gradient(rgba(17, 12, 28, .92), rgba(14, 10, 24, .95)),
    url('/img/brand/panel.jpg?v=83');
  background-size: auto, 300px 300px;
  border-color: rgba(255, 216, 115, .16);
}

/* ---------- рынок ---------- */

#marketRows,
.mkt-head {
  background: #130e21;
}
.mkt-head {
  border-bottom: 1px solid rgba(255, 216, 115, .22);
  color: #b6a9d8;
}
.mkt-row { background-image: none; background-color: transparent; }
.mkt-row:nth-child(odd) { background-color: rgba(255, 255, 255, .015); }
.mkt-row .price { font-weight: 800; color: #f4f0ff; }
.mkt-row .chg.up { color: #3ee0a4; }
.mkt-row .chg.down { color: #ff6b7d; }

/* ---------- лидеры ---------- */

#leadersBox,
.leaders-card {
  background-color: #130e21;
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 216, 115, .08), transparent 55%),
    linear-gradient(rgba(17, 12, 28, .92), rgba(14, 10, 24, .95)),
    url('/img/brand/panel.jpg?v=83');
  background-size: auto, auto, 300px 300px;
  border: 1px solid rgba(255, 216, 115, .18);
  border-radius: 18px;
  overflow: hidden;
}
.leader:nth-child(odd) { background-color: rgba(255, 255, 255, .014); }
.leader-name { color: #f2eefb; font-weight: 700; }
.leader-sub { color: #8f85b3; }

/* ---------- модальные окна: бархат ---------- */

.modal {
  /* Ткань даём еле заметной: без затемнения текстура забивала текст */
  background-color: #140f22;
  background-image:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 216, 115, .10), transparent 58%),
    linear-gradient(rgba(16, 11, 26, .93), rgba(13, 9, 22, .95)),
    url('/img/brand/velvet.jpg?v=83');
  background-size: auto, auto, 340px 340px;
  border: 1px solid rgba(255, 216, 115, .22);
}
.modal-title { letter-spacing: -.01em; }
.modal-head { border-bottom-color: rgba(255, 216, 115, .2); }

/* Внутренние блоки окон не должны спорить с фоном */
.modal .card,
.modal .note,
.modal .row {
  background-image: none;
  background-color: rgba(0, 0, 0, .25);
  border-color: rgba(255, 216, 115, .14);
}

/* Поля ввода в окнах — темнее фона, с золотым фокусом */
.modal input,
.modal select,
.modal textarea {
  background: rgba(0, 0, 0, .34);
  border-color: rgba(255, 216, 115, .18);
}

/* Ступени рефералки */
.ref-tier {
  background: rgba(0, 0, 0, .26);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 13px;
}
.ref-tier.done,
.ref-tier.active {
  border-color: rgba(255, 216, 115, .6);
  background: linear-gradient(90deg, rgba(255, 216, 115, .14), rgba(0, 0, 0, .26));
}

/* Строки истории операций */
.tx-row {
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 12px;
  margin-bottom: 6px;
}
.tx-row:hover { border-color: rgba(255, 216, 115, .28); }

/* Пункты меню в окне: своя тёмная подложка, чтобы текст не спорил с тканью */
.modal .menu-item {
  background: rgba(0, 0, 0, .34);
  border: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 8px;
}
.modal .menu-item:hover {
  background: rgba(255, 216, 115, .1);
  border-color: rgba(255, 216, 115, .35);
}
.modal .menu-item small { color: #9a90bd; }

/* ============================================================
   КАРТИНКИ ПОД ЛИДЕРАМИ И РЫНКОМ
   Рисунок стоит справа, слева уходит в чёрный — строки читаются.
   ============================================================ */

#leaderList,
#marketCard {
  position: relative;
  background-color: #0d0918;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  background-position: center, right center;
  border: 1px solid rgba(255, 216, 115, .18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 216, 115, .1);
  overflow: hidden;
}

#leaderList {
  background-image:
    linear-gradient(90deg, rgba(11, 7, 20, .97) 26%, rgba(11, 7, 20, .9) 55%, rgba(11, 7, 20, .66) 100%),
    url('/img/brand/leaders.jpg?v=83');
}

#marketCard {
  background-image:
    linear-gradient(90deg, rgba(11, 7, 20, .97) 26%, rgba(11, 7, 20, .9) 55%, rgba(11, 7, 20, .68) 100%),
    url('/img/brand/market.jpg?v=83');
}

/* Строки прозрачные, чтобы рисунок был виден насквозь */
#leaderList .leader,
#marketCard .mkt-row,
#marketCard .mkt-head,
#marketRows {
  background: transparent;
}
#leaderList .leader,
#marketCard .mkt-row {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
#leaderList .leader:hover,
#marketCard .mkt-row:hover { background: rgba(255, 216, 115, .09); }
#marketCard .mkt-head { border-bottom: 1px solid rgba(255, 216, 115, .26); }

/* ---------- баланс: золото под казино ---------- */

.topbar .uid-line {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #a08fd0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}

.topbar .balance-label {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #cbb9ff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}

/* Сумма — литое золото с мягким свечением */
.topbar .balance-value {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .01em;
  background: linear-gradient(180deg, #fff6d6 0%, #ffd873 42%, #e2a53b 72%, #ffe9ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .95)) drop-shadow(0 0 14px rgba(255, 190, 70, .35));
}
.topbar .balance-value small {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-left: 6px;
  -webkit-text-fill-color: #b9a6e6;
  color: #b9a6e6;
  filter: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}

/* ============================================================
   ПРОФИЛЬ: картинки под карточками
   ============================================================ */

#identityCard,
#faceCard,
#securityCard,
#verifBlock {
  position: relative;
  background-color: #0d0918;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  background-position: center, right center;
  border: 1px solid rgba(255, 216, 115, .18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 216, 115, .1);
  overflow: hidden;
}

#identityCard {
  background-image:
    linear-gradient(90deg, rgba(11, 7, 20, .97) 30%, rgba(11, 7, 20, .9) 58%, rgba(11, 7, 20, .7) 100%),
    url('/img/brand/profile.jpg?v=83');
}
#verifBlock {
  background-image:
    linear-gradient(90deg, rgba(11, 7, 20, .97) 30%, rgba(11, 7, 20, .9) 58%, rgba(11, 7, 20, .7) 100%),
    url('/img/brand/profile.jpg?v=83');
}
#faceCard,
#securityCard {
  background-image:
    linear-gradient(90deg, rgba(11, 7, 20, .97) 30%, rgba(11, 7, 20, .9) 58%, rgba(11, 7, 20, .7) 100%),
    url('/img/brand/security.jpg?v=83');
}

/* Строки профиля прозрачные, чтобы рисунок просвечивал */
#identityCard .row { background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .07); }
#identityCard .row .label { color: #a396c9; }
#identityCard .row .value { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }

/* Кнопки на карточках с рисунком — плотнее, чтобы текст читался */
#identityCard .btn-ghost,
#faceCard .btn-ghost,
#securityCard .btn-ghost {
  background: rgba(10, 6, 18, .82);
  border: 1px solid rgba(255, 216, 115, .26);
}
#identityCard .btn-ghost:hover,
#faceCard .btn-ghost:hover,
#securityCard .btn-ghost:hover {
  background: rgba(255, 216, 115, .14);
  border-color: rgba(255, 216, 115, .55);
}
#faceCard .hint { text-shadow: 0 1px 5px rgba(0, 0, 0, .95); }

/* ============================================================
   ТИПОГРАФИКА: дорогой читаемый набор вместо системного
   ============================================================ */

:root {
  --sans: 'Manrope', 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Manrope', 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
}

body, button, input, select, textarea {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Цифры одинаковой ширины — колонки не пляшут */
.num, .value, .price, .chg, .balance-value, .uid-line,
.leader-pct, .leader-sub, input[type=number], .mkt-row .price, .mkt-row .chg {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'ss01' 1;
  letter-spacing: 0;
}

/* Заголовки разделов — благородная антиква */
.section-title,
.modal-title,
.card-head > span:first-child,
.card-head {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: .01em;
}
.section-title { font-size: 20px; color: #fff; }
.card-head {
  font-size: 16px;
  color: #ffd873;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
}

/* Подписи строк — светлее и крупнее, читаются поверх картинок */
.row .label, .label { color: #b3a6d6; font-size: 13px; font-weight: 500; }
.row .value, .value { color: #fff; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.hint, .note { color: #b7abd8; font-size: 13px; line-height: 1.55; }

/* Кнопки — плотный набор в разрядку */
.btn { font-family: var(--sans); font-weight: 800; letter-spacing: .02em; }
.chip { font-family: var(--sans); font-weight: 800; }
label { font-family: var(--sans); letter-spacing: .14em; font-weight: 700; }

/* ---------- SmartEarn: картинка под карточкой ---------- */

#earnCoin > .card,
#earnMusic > .card {
  position: relative;
  background-color: #0d0918;
  background-image:
    linear-gradient(90deg, rgba(11, 7, 20, .97) 32%, rgba(11, 7, 20, .9) 60%, rgba(11, 7, 20, .68) 100%),
    url('/img/brand/earn.jpg?v=83');
  background-repeat: no-repeat, no-repeat;
  background-size: auto, cover;
  background-position: center, right center;
  border: 1px solid rgba(255, 216, 115, .2);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 216, 115, .1);
  overflow: hidden;
}
#earnCoin .row, #earnMusic .row { background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .07); }

/* Цена ECO — тем же золотом, что баланс в шапке */
#earnCoin .balance-value {
  background: linear-gradient(180deg, #fff6d6 0%, #ffd873 42%, #e2a53b 72%, #ffe9ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .95));
}
#earnCoin input, #earnMusic input { background: rgba(8, 5, 15, .8); }

/* ============================================================
   ЭКРАН ВХОДА, КНОПКИ, SMARTEARN — золото вместо синего
   ============================================================ */

/* ---------- фон экрана входа ---------- */

.auth {
  background-color: #07050d;
  background-image:
    linear-gradient(180deg, rgba(7, 5, 13, .92) 0%, rgba(7, 5, 13, .8) 45%, rgba(7, 5, 13, .93) 100%),
    url('/img/brand/auth.jpg?v=83');
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed;
}
.auth-card {
  background: rgba(10, 7, 18, .9);
  border: 1px solid rgba(255, 216, 115, .28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 216, 115, .12);
  backdrop-filter: blur(6px);
}

/* Кнопка канала: иконка была без размера и растягивалась на всю кнопку */
.tg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 99px;
  background: rgba(255, 216, 115, .1);
  border: 1px solid rgba(255, 216, 115, .42);
  color: #ffd873;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: .16s;
}
.tg-pill svg { width: 17px; height: 17px; flex: none; }
.tg-pill:hover { background: rgba(255, 216, 115, .18); border-color: rgba(255, 216, 115, .7); }

/* Выбор языка: код языка в ровной золотой плашке */
.auth-langs .flag-btn {
  background: rgba(10, 7, 18, .8);
  border: 1px solid rgba(255, 255, 255, .1);
  gap: 10px;
}
.auth-langs .flag-btn .fl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 216, 115, .14);
  border: 1px solid rgba(255, 216, 115, .3);
  color: #ffd873;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.auth-langs .flag-btn.active,
.auth-langs .flag-btn[aria-current="true"] {
  border-color: rgba(255, 216, 115, .65);
  background: rgba(255, 216, 115, .12);
}

/* ---------- SmartEarn: добиваем синее ---------- */

#earnCoin > .card,
#earnMusic > .card,
#pageEarn > .card {
  background-color: #0b0714 !important;
  background-image:
    linear-gradient(90deg, rgba(11, 7, 20, .96) 30%, rgba(11, 7, 20, .88) 58%, rgba(11, 7, 20, .6) 100%),
    url('/img/brand/earn.jpg?v=83') !important;
  background-size: auto, cover !important;
  background-position: center, right center !important;
  background-repeat: no-repeat, no-repeat !important;
}

/* Свечи графика: золото вместо мятного, вишня вместо синего */
#pageEarn .candle.u { background: linear-gradient(180deg, #ffd873, #c9922c) !important; }
#pageEarn .candle.d { background: linear-gradient(180deg, #b4384a, #7d2130) !important; }

/* Подсказка под полем — тёмная с золотой чертой */
#pageEarn .note,
.modal .note,
.card .note {
  background: rgba(8, 5, 14, .78);
  border: 1px solid rgba(255, 216, 115, .18);
  border-left: 3px solid #ffd873;
  color: #d6cbf0;
}

/* Поля и кнопки покупки */
#pageEarn input,
#pageEarn select {
  background: rgba(6, 4, 11, .85);
  border: 1px solid rgba(255, 216, 115, .22);
  color: #fff;
}
#pageEarn input:focus { border-color: rgba(255, 216, 115, .6); box-shadow: 0 0 0 3px rgba(255, 216, 115, .12); }

#pageEarn .btn-primary {
  background: linear-gradient(135deg, #ffe9ae, #ffd873 35%, #d4a537 70%, #b8831f);
  color: #241500 !important;
  border: 1px solid rgba(255, 233, 174, .5);
  box-shadow: 0 12px 28px -10px rgba(212, 165, 55, .75);
}
#pageEarn .btn-primary:hover:not(:disabled) { filter: brightness(1.07); }

/* Вкладки ECO / Музыка */
#pageEarn .chip.active {
  background: linear-gradient(135deg, #ffd873, #d4a537);
  color: #241500;
  border-color: rgba(255, 233, 174, .6);
}

/* ---------- вход: картинка внутри карточки, синего нет ---------- */

/* Картинка живёт внутри самой карточки, а не только на подложке */
.auth-card form,
.auth-card #authFace {
  background-color: #0a0713 !important;
  background-image:
    linear-gradient(180deg, rgba(10, 7, 19, .93) 0%, rgba(10, 7, 19, .88) 55%, rgba(10, 7, 19, .96) 100%),
    url('/img/brand/auth.jpg?v=83') !important;
  background-size: auto, cover !important;
  background-position: center, center 30% !important;
  background-repeat: no-repeat, no-repeat !important;
  border: 1px solid rgba(255, 216, 115, .26) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 216, 115, .12) !important;
}

/* Переключатель Вход / Регистрация / Face ID */
.auth .tabs {
  background: rgba(6, 4, 12, .78);
  border: 1px solid rgba(255, 216, 115, .2);
}
.auth .tab { color: #bdb0e0; font-weight: 800; }
.auth .tab.active { color: #241500; }

/* Поля ввода были светло-сиреневыми — делаем чёрные с золотой рамкой */
.auth input,
.auth input[type=text],
.auth input[type=email],
.auth input[type=password],
.auth input[type=tel] {
  background: rgba(5, 3, 10, .88) !important;
  border: 1px solid rgba(255, 216, 115, .24) !important;
  color: #fff !important;
  caret-color: #ffd873;
}
.auth input::placeholder { color: #7a6ea0 !important; }
.auth input:focus {
  border-color: rgba(255, 216, 115, .65) !important;
  box-shadow: 0 0 0 3px rgba(255, 216, 115, .13) !important;
}
.auth label { color: #b9a6e6; }

/* Забыли пароль и прочие тихие кнопки */
.auth .btn-ghost {
  background: rgba(6, 4, 12, .8);
  border: 1px solid rgba(255, 216, 115, .22);
  color: #e7dcff;
}
.auth .btn-ghost:hover { background: rgba(255, 216, 115, .12); border-color: rgba(255, 216, 115, .55); }

/* Подпись под логотипом и ссылки внизу — в золото */
.auth-tag { color: #c7b4ff; letter-spacing: .28em; }
.auth .hint a { color: #c8a94f !important; }
.auth .hint { color: #8e82b4; }

/* Синие акценты логотипа убираем: только золото */
.brand-word,
.auth-brand {
  background: linear-gradient(100deg, #ffe9ae 0%, #ffd873 40%, #d4a537 70%, #ffe9ae 100%) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 4px 22px rgba(255, 190, 70, .4)) !important;
}
.brand-mark { filter: drop-shadow(0 4px 18px rgba(255, 190, 70, .45)) !important; }

/* ============================================================
   ВХОД: дорогой вид — фото уходит в атмосферу, кант, блик
   ============================================================ */

/* Фото само по себе пёстрое: размываем и приглушаем, оно работает
   как свет в зале, а не как коллаж на баннере. */
.auth {
  position: relative;
  background: #06040b !important;
  overflow: hidden;
}
.auth::before {
  content: "";
  position: fixed;
  inset: -40px;
  background: url('/img/brand/auth.jpg?v=83') center/cover no-repeat;
  filter: blur(7px) brightness(.42) saturate(.9);
  transform: scale(1.06);
  z-index: 0;
}
/* Виньетка: свет собирается к центру, края уходят в чёрный */
.auth::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(90% 65% at 50% 38%, rgba(255, 190, 70, .12), transparent 62%),
    radial-gradient(120% 100% at 50% 50%, transparent 30%, rgba(4, 3, 8, .82) 100%);
  z-index: 0;
  pointer-events: none;
}
.auth-card { position: relative; z-index: 2; }

/* ---------- карточка: золотой кант ---------- */

.auth-card form,
.auth-card #authFace {
  position: relative;
  background-color: rgba(9, 6, 16, .82) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  border-radius: 20px !important;
  padding: 26px 24px 26px !important;
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, .9),
    inset 0 1px 0 rgba(255, 233, 174, .16) !important;
  backdrop-filter: blur(14px) saturate(1.1);
}
/* Кант в две линии: тонкое золото снаружи, тёплый отблеск внутри */
.auth-card form::before,
.auth-card #authFace::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(150deg,
    rgba(255, 233, 174, .75) 0%,
    rgba(212, 165, 55, .3) 28%,
    rgba(255, 216, 115, .08) 52%,
    rgba(212, 165, 55, .34) 78%,
    rgba(255, 233, 174, .7) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
/* Внутри — еле заметная фактура сукна, чтобы поле не было плоским */
.auth-card form::after,
.auth-card #authFace::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 190, 70, .1), transparent 60%),
    url('/img/brand/auth.jpg?v=83') center 28% / cover no-repeat;
  opacity: .13;
  mix-blend-mode: screen;
  pointer-events: none;
}
.auth-card form > *,
.auth-card #authFace > * { position: relative; z-index: 1; }

/* ---------- шапка: вензель под слоганом ---------- */

.auth-tag {
  position: relative;
  color: #d9c9a2 !important;
  font-size: 11px !important;
  letter-spacing: .34em !important;
  margin-bottom: 34px !important;
}
.auth-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 190px;
  height: 9px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent, rgba(255, 216, 115, .55) 22%, rgba(255, 216, 115, .55) 78%, transparent) center/100% 1px no-repeat,
    conic-gradient(from 45deg, #ffd873 0 25%, transparent 0 100%) center/9px 9px no-repeat;
}

/* ---------- переключатель ---------- */

.auth .tabs {
  background: rgba(4, 3, 9, .72);
  border: 1px solid rgba(255, 216, 115, .16);
  border-radius: 14px;
  padding: 5px;
}
.auth .tab {
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: .02em;
  color: #b6a8d8;
  transition: .18s;
}
.auth .tab:hover:not(.active) { color: #ffd873; background: rgba(255, 216, 115, .07); }
.auth .tab.active {
  background: linear-gradient(135deg, #ffe9ae, #ffd873 38%, #cf9c2f) !important;
  color: #221400 !important;
  box-shadow: 0 6px 16px -6px rgba(212, 165, 55, .8), inset 0 1px 0 rgba(255, 255, 255, .6);
}

/* ---------- поля ---------- */

.auth label {
  font-size: 9.5px !important;
  letter-spacing: .22em !important;
  color: #9c8fc4 !important;
}
.auth input,
.auth input[type=text],
.auth input[type=email],
.auth input[type=password],
.auth input[type=tel] {
  height: 52px;
  border-radius: 13px !important;
  font-size: 15px !important;
  font-weight: 600;
  background: rgba(4, 3, 9, .8) !important;
  border: 1px solid rgba(255, 216, 115, .2) !important;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .7) !important;
  transition: .18s;
}
.auth input:hover { border-color: rgba(255, 216, 115, .34) !important; }

/* ---------- кнопка входа: золото с бегущим бликом ---------- */

.auth .btn-primary {
  position: relative;
  overflow: hidden;
  height: 54px;
  border-radius: 14px;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffeec2 0%, #ffd873 34%, #d9a939 62%, #b8831f 100%) !important;
  color: #201300 !important;
  border: 1px solid rgba(255, 240, 200, .55) !important;
  box-shadow:
    0 16px 34px -12px rgba(212, 165, 55, .85),
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -2px 6px rgba(120, 78, 8, .35) !important;
}
.auth .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  animation: goldSheen 4.5s ease-in-out infinite;
}
@keyframes goldSheen {
  0%, 62% { left: -60%; }
  92%, 100% { left: 120%; }
}

.auth .btn-ghost {
  height: 46px;
  border-radius: 13px;
  background: rgba(4, 3, 9, .6);
  border: 1px solid rgba(255, 255, 255, .09);
  color: #c3b6e4;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ---------- низ экрана ---------- */

.auth-langs .flag-btn {
  height: 46px;
  border-radius: 13px;
  background: rgba(6, 4, 12, .66);
  font-size: 13px;
  color: #cfc3ec;
}
.auth-langs .flag-btn:hover { border-color: rgba(255, 216, 115, .45); }
.tg-pill {
  background: rgba(6, 4, 12, .6);
  border-color: rgba(255, 216, 115, .3);
  color: #e8d5a0;
  font-weight: 700;
  letter-spacing: .02em;
}
.auth .hint { font-size: 11px !important; letter-spacing: .04em; }

@media (prefers-reduced-motion: reduce) {
  .auth .btn-primary::after { animation: none; display: none; }
}

/* ============================================================
   ШАПКА НА ТЕЛЕФОНЕ: баланс и кнопки не наезжают друг на друга
   ============================================================ */

.topbar-inner { align-items: center; }
.balance-value { white-space: nowrap; }
.balance-value small { white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }

@media (max-width: 720px) {
  /* Две строки: сверху баланс, снизу кнопки — места хватает всем */
  .topbar-inner {
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 10px 12px;
  }
  .topbar-inner > div:first-child { flex: 1 1 100%; min-width: 0; }
  .top-actions {
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 7px;
  }
  .top-actions .deposit-btn {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }
  .top-actions .icon-btn { width: 40px; height: 40px; flex: none; }
  #langBtn { width: auto !important; padding: 0 11px !important; height: 40px; }
  .topbar .balance-value { font-size: 26px; }
  .topbar .balance-value small { font-size: 11px; margin-left: 5px; }
  .topbar .uid-line, .topbar .balance-label { font-size: 9.5px; }
}

@media (max-width: 380px) {
  .topbar .balance-value { font-size: 23px; }
  .top-actions { gap: 6px; }
  .top-actions .icon-btn { width: 37px; height: 37px; }
  .top-actions .deposit-btn { font-size: 12px; padding: 0 10px; }
}

/* ---------- баннер «Играйте честно»: текст поверх картинки ---------- */

/* Слева фон почти чёрный: монеты остаются видны, а текст читается */
.promo {
  background-image:
    linear-gradient(100deg, rgba(8, 5, 14, .97) 0%, rgba(8, 5, 14, .93) 38%, rgba(8, 5, 14, .6) 66%, rgba(8, 5, 14, .2) 100%),
    url('/img/brand/hero.jpg?v=83') !important;
}
.promo h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  color: #ffe9ae;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .95);
}
.promo p {
  color: #e2d9f5 !important;
  max-width: 58%;
  font-size: 13px;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .95);
}
.promo-marks span {
  background: rgba(8, 5, 14, .8);
  border: 1px solid rgba(255, 216, 115, .45);
  color: #ffd873;
  text-shadow: none;
}

@media (max-width: 720px) {
  .promo {
    background-image:
      linear-gradient(100deg, rgba(8, 5, 14, .97) 0%, rgba(8, 5, 14, .94) 52%, rgba(8, 5, 14, .68) 82%, rgba(8, 5, 14, .3) 100%),
      url('/img/brand/hero.jpg?v=83') !important;
  }
  .promo p { max-width: 88%; }
}

/* ============================================================
   СОГЛАСИЕ НА COOKIE
   Отказаться так же легко, как согласиться — обе кнопки на виду.
   ============================================================ */

.cookie-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9000;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .26s ease, transform .26s cubic-bezier(.2, .9, .3, 1);
  pointer-events: none;
}
.cookie-bar.show { opacity: 1; transform: none; pointer-events: auto; }

.cookie-in {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(9, 6, 16, .96);
  border: 1px solid rgba(255, 216, 115, .3);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 233, 174, .14);
  backdrop-filter: blur(14px);
}

.cookie-txt b {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  color: #ffd873;
  margin-bottom: 4px;
}
.cookie-txt p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #bcb0dc;
}
.cookie-txt a { color: #ffd873; text-decoration: underline; text-underline-offset: 2px; }

.cookie-btns { display: flex; gap: 9px; flex: none; }
.cookie-btns button {
  height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .16s;
  white-space: nowrap;
}
.cookie-btns .ck-need {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #ded3f5;
}
.cookie-btns .ck-need:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.cookie-btns .ck-all {
  background: linear-gradient(135deg, #ffe9ae, #ffd873 38%, #d4a537);
  border: 1px solid rgba(255, 240, 200, .5);
  color: #241500;
  box-shadow: 0 10px 24px -10px rgba(212, 165, 55, .8);
}
.cookie-btns .ck-all:hover { filter: brightness(1.06); }

@media (max-width: 720px) {
  .cookie-bar { left: 8px; right: 8px; bottom: 8px; }
  .cookie-in { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .cookie-btns button { flex: 1 1 0; padding: 0 10px; }
  .cookie-txt p { font-size: 12px; }
}

/* ---------- лидеры: кубок к правому краю, места — медалями ---------- */

/* Раньше картинка растягивалась на весь блок и кубок стоял посередине
   прямо под именами. Теперь она прижата вправо и занимает свою колонку. */
#leaderList {
  background-size: auto, auto 112% !important;
  background-position: center, right -20px center !important;
  background-image:
    linear-gradient(90deg, rgba(11, 7, 20, .99) 0%, rgba(11, 7, 20, .97) 52%, rgba(11, 7, 20, .82) 74%, rgba(11, 7, 20, .5) 100%),
    url('/img/brand/leaders.jpg?v=83') !important;
}

/* Проценты не должны налезать на кубок */
#leaderList .leader-pct {
  padding-left: 14px;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .95);
}
#leaderList .leader-name,
#leaderList .leader-sub { text-shadow: 0 1px 6px rgba(0, 0, 0, .95); }

/* Места: золото, серебро, бронза — остальные тихие */
#leaderList .rank {
  width: 28px; height: 28px;
  border-radius: 9px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06);
  color: #b9abdb;
  flex: none;
}
#leaderList .leader:nth-child(1) .rank {
  background: linear-gradient(160deg, #fff2c8, #ffd873 45%, #c9922c);
  border-color: rgba(255, 240, 200, .75);
  color: #241500;
  box-shadow: 0 6px 16px -6px rgba(212, 165, 55, .9), inset 0 1px 0 rgba(255, 255, 255, .8);
}
#leaderList .leader:nth-child(2) .rank {
  background: linear-gradient(160deg, #ffffff, #cfd6e4 45%, #8e97ab);
  border-color: rgba(255, 255, 255, .7);
  color: #1b1f2a;
}
#leaderList .leader:nth-child(3) .rank {
  background: linear-gradient(160deg, #f4c6a0, #cd7f42 48%, #8e5322);
  border-color: rgba(244, 198, 160, .6);
  color: #2a1403;
}

/* ============================================================
   КУБКИ У ЛИДЕРОВ, РОВНЫЕ МОНЕТЫ, ЗОЛОТОЙ USDT, МУЗЫКА
   ============================================================ */

/* ---------- места 1-2-3 — настоящие кубки ---------- */

#leaderList .leader:nth-child(1) .rank,
#leaderList .leader:nth-child(2) .rank,
#leaderList .leader:nth-child(3) .rank {
  width: 34px;
  height: 34px;
  background-color: transparent !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 0 !important;
  box-shadow: none !important;
  color: transparent !important;      /* цифра остаётся для читалок */
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .8));
}
#leaderList .leader:nth-child(1) .rank { background-image: url('/img/brand/cup-gold.png?v=83') !important; }
#leaderList .leader:nth-child(2) .rank { background-image: url('/img/brand/cup-silver.png?v=83') !important; }
#leaderList .leader:nth-child(3) .rank { background-image: url('/img/brand/cup-bronze.png?v=83') !important; }

/* ---------- монеты: один размер, строго по центру ---------- */

.mkt-row .coin { display: flex; align-items: center; gap: 11px; min-width: 0; }
.coin-ico {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px;
  background-size: 34px 34px !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  border-radius: 0;
  align-self: center;
}

/* ---------- USDT везде золотом ---------- */

.mkt-row .coin small,
.balance-value small,
.pair-sub small,
.usdt {
  color: #d9a93c !important;
  font-weight: 800;
  -webkit-text-fill-color: #d9a93c !important;
}
.topbar .balance-value small {
  color: #e8c260 !important;
  -webkit-text-fill-color: #e8c260 !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .9);
}

/* ---------- музыка: картинка вместо сиреневого ---------- */

#earnMusic .player,
#earnMusic > .card {
  position: relative;
  background-color: #0b0714 !important;
  background-image:
    linear-gradient(90deg, rgba(11, 7, 20, .96) 26%, rgba(11, 7, 20, .88) 56%, rgba(11, 7, 20, .58) 100%),
    url('/img/brand/music.jpg?v=83') !important;
  background-size: auto, cover !important;
  background-position: center, right center !important;
  background-repeat: no-repeat, no-repeat !important;
  border: 1px solid rgba(255, 216, 115, .2) !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 216, 115, .1);
  overflow: hidden;
}

/* Обложка в золотом кольце */
#earnMusic .disc {
  border: 2px solid rgba(255, 216, 115, .55);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .9), 0 0 22px rgba(255, 190, 70, .22);
}
#earnMusic .track-name {
  font-family: 'Playfair Display', Georgia, serif;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .95);
}
#earnMusic .track-artist { color: #c0b2e4; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }

/* Кнопка воспроизведения — золото вместо мятного */
#earnMusic .player-btns button {
  background: rgba(8, 5, 14, .8);
  border: 1px solid rgba(255, 216, 115, .3);
  color: #ffd873;
}
#earnMusic .player-btns button.main,
#earnMusic .player-btns .play,
#earnMusic .player-btns > button:nth-child(2) {
  background: linear-gradient(135deg, #ffe9ae, #ffd873 38%, #d4a537) !important;
  border: 1px solid rgba(255, 240, 200, .55) !important;
  color: #241500 !important;
  box-shadow: 0 12px 28px -10px rgba(212, 165, 55, .85);
}
#earnMusic .progress { background: rgba(255, 255, 255, .1); }
#earnMusic .progress-fill { background: linear-gradient(90deg, #ffd873, #d4a537) !important; }
#earnMusic .hint, #earnMusic .note { text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }

/* ---------- места: первые три кубками, дальше медали ---------- */

/* С четвёртого места — тёмная медаль с золотой цифрой */
#leaderList .rank {
  width: 32px !important;
  height: 32px !important;
  flex: none;
  background-color: transparent !important;
  background-image: url('/img/brand/medal-dark.png?v=83') !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #ffd873 !important;
  font-weight: 900;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .75));
}

/* Пьедестал: золотой, серебряный и бронзовый кубки, цифра не нужна */
#leaderList .leader:nth-child(1) .rank,
#leaderList .leader:nth-child(2) .rank,
#leaderList .leader:nth-child(3) .rank {
  width: 34px !important;
  height: 34px !important;
  color: transparent !important;      /* цифра остаётся для читалок */
  text-shadow: none !important;
}
#leaderList .leader:nth-child(1) .rank { background-image: url('/img/brand/cup-gold.png?v=83') !important; }
#leaderList .leader:nth-child(2) .rank { background-image: url('/img/brand/cup-silver.png?v=83') !important; }
#leaderList .leader:nth-child(3) .rank { background-image: url('/img/brand/cup-bronze.png?v=83') !important; }

/* ============================================================
   ФИЛЬТР ИГР: фишка-жетон, подпись и счётчик под ней
   ============================================================ */

#catBar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  overflow: visible;
  padding: 2px 0 4px;
  margin-bottom: 14px;
}

.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 88px;
  padding: 10px 6px 8px;
  border-radius: 15px;
  background: rgba(10, 7, 18, .72);
  border: 1px solid rgba(255, 255, 255, .07);
  cursor: pointer;
  transition: .16s;
}
.cat-btn:hover {
  border-color: rgba(255, 216, 115, .45);
  background: rgba(255, 216, 115, .07);
  transform: translateY(-1px);
}
.cat-btn.active {
  border-color: rgba(255, 216, 115, .75);
  background: linear-gradient(180deg, rgba(255, 216, 115, .16), rgba(255, 216, 115, .06));
  box-shadow: 0 10px 24px -12px rgba(212, 165, 55, .9), inset 0 1px 0 rgba(255, 233, 174, .3);
}

.cat-ic {
  width: 42px;
  height: 42px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .75));
  transition: transform .16s;
}
.cat-btn:hover .cat-ic { transform: scale(1.06); }
.cat-btn.active .cat-ic { filter: drop-shadow(0 3px 10px rgba(255, 190, 70, .55)); }

.cat-ic[data-cat="all"]       { background-image: url('/img/cats/all.png?v=83'); }
.cat-ic[data-cat="multistep"] { background-image: url('/img/cats/multistep.png?v=83'); }
.cat-ic[data-cat="crash"]     { background-image: url('/img/cats/crash.png?v=83'); }
.cat-ic[data-cat="slots"]     { background-image: url('/img/cats/slots.png?v=83'); }
.cat-ic[data-cat="table"]     { background-image: url('/img/cats/table.png?v=83'); }
.cat-ic[data-cat="cards"]     { background-image: url('/img/cats/cards.png?v=83'); }
.cat-ic[data-cat="wheel"]     { background-image: url('/img/cats/wheel.png?v=83'); }
.cat-ic[data-cat="arcade"]    { background-image: url('/img/cats/arcade.png?v=83'); }
.cat-ic[data-cat="classic"]   { background-image: url('/img/cats/classic.png?v=83'); }
.cat-ic[data-cat="lottery"]   { background-image: url('/img/cats/all.png?v=83'); }

.cat-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #cabee8;
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cat-btn.active .cat-name { color: #ffd873; }

.cat-btn .chip-n {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #a99fce;
  margin: 0;
}
.cat-btn.active .chip-n {
  background: rgba(255, 216, 115, .18);
  border-color: rgba(255, 216, 115, .4);
  color: #ffd873;
}

@media (max-width: 720px) {
  #catBar { gap: 7px; }
  .cat-btn { width: calc(25% - 6px); padding: 9px 4px 7px; }
  .cat-ic { width: 36px; height: 36px; }
  .cat-name { font-size: 10px; }
}
@media (max-width: 380px) {
  .cat-btn { width: calc(33.333% - 5px); }
}

/* ---------- выбор языка: три в ряд, без сироты во второй строке ---------- */

.auth-langs,
#langModalList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.auth-langs .flag-btn,
#langModalList .flag-btn {
  justify-content: center;
  gap: 8px;
  padding: 11px 8px;
  text-align: center;
}
.auth-langs .flag-btn .fl,
#langModalList .flag-btn .fl { flex: none; }

/* Внутри окна «Язык» выбранный подсвечиваем золотом, а не мятным */
#langModalList .flag-btn.on,
#langModalList .flag-btn.active {
  border-color: rgba(255, 216, 115, .7) !important;
  background: linear-gradient(180deg, rgba(255, 216, 115, .16), rgba(255, 216, 115, .05)) !important;
  box-shadow: 0 8px 20px -10px rgba(212, 165, 55, .8) !important;
  color: #ffd873;
}

@media (max-width: 420px) {
  .auth-langs .flag-btn,
  #langModalList .flag-btn { padding: 10px 5px; font-size: 12px; gap: 6px; }
  .auth-langs .flag-btn .fl,
  #langModalList .flag-btn .fl { min-width: 26px; padding: 2px 4px; font-size: 9px; }
}
