/* =========================================================
   Mostbet5.kz — главная страница (тёмная тема как у Mostbet)
   ========================================================= */

:root {
    --mb-bg: #0a2255;
    --mb-bg-deep: #061741;
    --mb-bg-top: #04153b;
    --mb-surface: #112d6a;
    --mb-surface-2: #16356f;
    --mb-surface-3: #1a4080;
    --mb-border: rgba(255, 255, 255, 0.08);
    --mb-border-2: rgba(255, 255, 255, 0.14);
    --mb-text: #ffffff;
    --mb-text-dim: #b8c8e3;
    --mb-text-muted: #7e92b6;
    --mb-orange: #ff6b1c;
    --mb-orange-hover: #ff7e36;
    --mb-cyan: #1ba6e0;
    --mb-cyan-hover: #28b9f5;
    --mb-yellow: #ffc53d;
    --mb-gold: #ffe27a;
    --mb-red: #e8302a;
    --mb-teal: #16a59e;
    --mb-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    --mb-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --mb-radius: 12px;
    --mb-radius-sm: 8px;
    --mb-radius-lg: 18px;
    --mb-content-max: 1620px;
    --mb-sidebar-w: 232px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.mb-theme {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Kazakh", sans-serif;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--mb-text);
    background: var(--mb-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.mb-theme img, body.mb-theme picture { max-width: 100%; height: auto; display: block; }
body.mb-theme a { color: inherit; text-decoration: none; transition: color .2s, background .2s, opacity .2s; }
body.mb-theme h1, body.mb-theme h2, body.mb-theme h3 { margin: 0; font-weight: 800; line-height: 1.2; color: var(--mb-text); }
body.mb-theme ul { list-style: none; margin: 0; padding: 0; }
body.mb-theme button { font: inherit; cursor: pointer; }

.mb-container { width: 100%; max-width: var(--mb-content-max); margin: 0 auto; padding: 0 16px; }

/* ========== Top utility bar ========== */
.mb-topbar {
    background: var(--mb-bg-top);
    color: var(--mb-text);
    padding: 0;
    border-bottom: 1px solid var(--mb-border);
    font-size: 12.5px;
    position: relative;
    z-index: 60;
}
.mb-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 38px;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.mb-topbar__inner::-webkit-scrollbar { display: none; }
.mb-topbar__left, .mb-topbar__right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mb-topbar__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--mb-text-dim);
    border: 0;
    border-radius: 18px;
    font-size: 12.5px;
    white-space: nowrap;
    transition: background .18s;
    cursor: pointer;
    font-weight: 500;
}
.mb-topbar__chip:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.mb-topbar__chip svg { width: 14px; height: 14px; flex-shrink: 0; }
.mb-topbar__chip--gold {
    background: linear-gradient(135deg, #ffd24a 0%, #f0a921 100%);
    color: #4a2a02;
    font-weight: 700;
}
.mb-topbar__chip--gold:hover { background: linear-gradient(135deg, #ffd75a 0%, #ffb937 100%); color: #4a2a02; }
.mb-topbar__chip--teal {
    background: linear-gradient(135deg, #1ec3ba 0%, #128f87 100%);
    color: #fff;
    font-weight: 700;
}
.mb-topbar__chip--teal:hover { color: #fff; opacity: .92; }
.mb-topbar__dl {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--mb-text-dim); padding: 5px 8px; font-size: 12px; font-weight: 600;
}
.mb-topbar__dl span { display: inline-flex; gap: 4px; }
.mb-topbar__dl svg { width: 14px; height: 14px; opacity: .9; }
.mb-topbar__dl:hover { color: #fff; }

.mb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 7px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    border: 0;
    transition: transform .12s, filter .15s, background .15s, color .15s;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: .02em;
}
.mb-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.mb-btn:active { transform: translateY(0); }
.mb-btn--orange { background: var(--mb-orange); color: #fff; }
.mb-btn--cyan { background: var(--mb-cyan); color: #fff; }
.mb-btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid var(--mb-border-2); }
.mb-btn--ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.mb-btn--lg { padding: 10px 28px; font-size: 14px; }
.mb-btn--xl { padding: 14px 32px; font-size: 15px; border-radius: 28px; }

/* ========== Main nav ========== */
.mb-nav {
    background: linear-gradient(180deg, var(--mb-surface) 0%, var(--mb-bg) 100%);
    padding: 12px 0;
    border-bottom: 1px solid var(--mb-border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.mb-nav__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 56px;
}
.mb-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.mb-logo img { height: 32px; width: auto; }
.mb-logo__svg { display: flex; align-items: center; gap: 0; font-weight: 900; font-size: 22px; letter-spacing: -.02em; }
.mb-logo__svg .star { color: var(--mb-red); font-size: 26px; line-height: 1; }
.mb-logo__svg .text { color: #fff; }

.mb-mainmenu { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: nowrap; overflow-x: auto; }
.mb-mainmenu::-webkit-scrollbar { display: none; }
.mb-mainmenu__item {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px;
    color: var(--mb-text-dim);
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: background .18s, color .18s;
    white-space: nowrap;
    cursor: pointer;
}
.mb-mainmenu__item:hover { background: rgba(255,255,255,.06); color: #fff; }
.mb-mainmenu__item.active { color: #fff; background: rgba(255,255,255,.05); }
.mb-mainmenu__item--aviator {
    background: linear-gradient(135deg, #ee2c4f 0%, #b91450 100%);
    color: #fff !important;
    font-weight: 800;
    font-style: italic;
    padding: 9px 18px !important;
}
.mb-mainmenu__item--aviator:hover { filter: brightness(1.1); }
.mb-mainmenu__item--bonus {
    border: 1.5px solid var(--mb-yellow);
    color: var(--mb-yellow) !important;
    font-weight: 800;
}
.mb-mainmenu__item--bonus:hover { background: rgba(255,200,50,.1); color: var(--mb-yellow) !important; }

/* ========== Layout ========== */
.mb-layout {
    display: grid;
    grid-template-columns: var(--mb-sidebar-w) 1fr;
    gap: 16px;
    width: 100%;
    max-width: var(--mb-content-max);
    margin: 0 auto;
    padding: 16px;
}

/* ========== Sidebar ========== */
.mb-sidebar {
    background: linear-gradient(180deg, var(--mb-surface) 0%, var(--mb-bg-deep) 100%);
    border-radius: var(--mb-radius);
    padding: 14px 12px;
    height: fit-content;
    position: sticky;
    top: 88px;
    border: 1px solid var(--mb-border);
}
.mb-bonus-card {
    background: var(--mb-bg-top);
    border: 2px solid var(--mb-yellow);
    border-radius: 12px;
    padding: 14px 12px 12px;
    text-align: center;
    margin-bottom: 14px;
    position: relative;
    box-shadow: 0 0 24px rgba(255, 197, 61, .14);
}
.mb-bonus-card__crown {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    font-size: 30px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
}
.mb-bonus-card__title { color: var(--mb-yellow); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin: 4px 0 6px; }
.mb-bonus-card__amount { font-size: 13px; line-height: 1.25; color: #fff; font-weight: 700; margin-bottom: 8px; }
.mb-bonus-card__amount strong { display: block; font-size: 26px; color: var(--mb-yellow); margin-top: 2px; }
.mb-bonus-card .mb-btn { width: 100%; }

.mb-sidebar__pills { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 12px; }
.mb-sidebar__pill {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    background: var(--mb-surface-2);
    border-radius: 8px;
    color: var(--mb-text-dim);
    font-weight: 600;
    font-size: 13px;
    transition: background .15s, color .15s;
    border: 1px solid var(--mb-border);
}
.mb-sidebar__pill:hover { background: var(--mb-surface-3); color: #fff; }
.mb-sidebar__pill .ico { font-size: 16px; flex-shrink: 0; }

.mb-search {
    width: 100%;
    padding: 9px 12px 9px 34px;
    background: var(--mb-bg-deep);
    border: 1px solid var(--mb-border-2);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    margin-bottom: 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237e92b6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");
    background-repeat: no-repeat;
    background-position: 11px center;
}
.mb-search:focus { outline: none; border-color: var(--mb-cyan); background-color: var(--mb-surface); }
.mb-search::placeholder { color: var(--mb-text-muted); }

.mb-categories { display: flex; flex-direction: column; gap: 2px; }
.mb-categories__item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--mb-text-dim);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.mb-categories__item:hover { background: rgba(255,255,255,.06); color: #fff; }
.mb-categories__item.active { background: var(--mb-cyan); color: #fff; }
.mb-categories__item.active .ico { color: #fff; }
.mb-categories__item .ico { font-size: 18px; flex-shrink: 0; width: 22px; text-align: center; }

/* Mobile burger handling */
.mb-burger {
    display: none;
    background: rgba(255,255,255,.08);
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #fff;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}
.mb-burger svg { width: 20px; height: 20px; }

@media (max-width: 1100px) {
    .mb-layout { grid-template-columns: 1fr; }
    .mb-sidebar { position: relative; top: auto; display: none; }
    .mb-sidebar.open { display: block; }
    .mb-burger { display: inline-flex; }
    .mb-mainmenu { display: none; }
}

/* ========== Hero row ========== */
.mb-hero-row { display: grid; grid-template-columns: 1fr 320px; gap: 16px; margin-bottom: 16px; }
@media (max-width: 1100px) { .mb-hero-row { grid-template-columns: 1fr; } }

.mb-hero {
    position: relative;
    border-radius: var(--mb-radius-lg);
    overflow: hidden;
    aspect-ratio: 16/7;
    background: var(--mb-surface);
    box-shadow: var(--mb-shadow);
}
.mb-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.mb-hero__slide.active { opacity: 1; }
.mb-hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,34,85,0.55) 0%, rgba(10,34,85,0.05) 60%, rgba(10,34,85,0.0) 100%);
    pointer-events: none;
}
.mb-hero__content {
    position: absolute;
    left: 32px; top: 50%;
    transform: translateY(-50%);
    max-width: 56%;
    z-index: 2;
    color: #fff;
}
.mb-hero__title { font-size: clamp(20px, 3.4vw, 38px); margin: 0 0 10px; line-height: 1.05; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.mb-hero__sub { font-size: clamp(13px, 1.4vw, 16px); margin: 0 0 18px; max-width: 360px; color: rgba(255,255,255,.92); }
.mb-hero__cta { background: var(--mb-orange); color: #fff; padding: 14px 36px; border-radius: 30px; font-size: 16px; font-weight: 800; display: inline-block; text-transform: uppercase; box-shadow: 0 4px 14px rgba(255,107,28,.4); }
.mb-hero__cta:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.mb-hero__prize { position: absolute; right: 28px; bottom: 22px; font-size: clamp(20px, 2.4vw, 36px); font-weight: 900; color: var(--mb-gold); text-shadow: 0 0 14px rgba(255,226,122,.6), 0 2px 6px rgba(0,0,0,.5); letter-spacing: .02em; }

.mb-hero__dots {
    position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 3;
}
.mb-hero__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); border: 0; cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.mb-hero__dot.active { background: var(--mb-yellow); transform: scale(1.3); }

/* ========== Winners feed ========== */
.mb-winners {
    background: linear-gradient(180deg, var(--mb-surface) 0%, var(--mb-bg-deep) 100%);
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius-lg);
    padding: 14px 12px;
    overflow: hidden;
}
.mb-winners__head {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 6px 12px;
    border-bottom: 1px solid var(--mb-border);
    margin-bottom: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.mb-winners__head .trophy {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--mb-yellow), #ffa61a);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #4a2a02;
    flex-shrink: 0;
}
.mb-winners__head .trophy svg { width: 16px; height: 16px; }
.mb-winners__head .title { font-size: 12px; line-height: 1.2; max-width: 200px; }
.mb-winners__list {
    display: flex; flex-direction: column;
    gap: 4px;
    max-height: 350px;
    overflow: hidden;
}
.mb-win-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    padding: 6px 4px;
    border-radius: 8px;
    align-items: center;
    transition: opacity .35s, transform .4s;
    background: rgba(255,255,255,0.02);
}
.mb-win-item.fade-in { animation: winFadeIn .5s ease-out; }
@keyframes winFadeIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.mb-win-item__img {
    width: 36px; height: 36px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--mb-bg-deep);
    flex-shrink: 0;
}
.mb-win-item__img img { width: 100%; height: 100%; object-fit: cover; }
.mb-win-item__info { font-size: 11px; line-height: 1.25; min-width: 0; }
.mb-win-item__game { color: var(--mb-text); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-win-item__user { color: var(--mb-text-muted); font-size: 10.5px; }
.mb-win-item__amount {
    background: var(--mb-yellow); color: #4a2a02;
    padding: 4px 8px; border-radius: 6px;
    font-weight: 800; font-size: 11.5px; white-space: nowrap;
}

/* ========== Filter row ========== */
.mb-filter {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 16px;
    background: var(--mb-surface);
    border-radius: var(--mb-radius);
    margin-bottom: 16px;
    border: 1px solid var(--mb-border);
}
.mb-filter__label { color: var(--mb-text-dim); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.mb-filter__select {
    background: var(--mb-bg-deep);
    color: #fff;
    border: 1px solid var(--mb-border-2);
    padding: 7px 30px 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}
.mb-filter__select:hover { background-color: var(--mb-surface-2); }

/* ========== Game rows ========== */
.mb-section { margin-bottom: 28px; }
.mb-section__head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 12px;
    padding: 0 4px;
}
.mb-section__title {
    display: flex; align-items: center; gap: 10px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.mb-section__title .ico {
    width: 26px; height: 26px;
    background: linear-gradient(135deg, var(--mb-cyan), #1a82c0);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px;
    flex-shrink: 0;
}
.mb-section__nav { display: flex; align-items: center; gap: 8px; }
.mb-section__nav button {
    width: 32px; height: 32px;
    background: var(--mb-surface);
    border: 1px solid var(--mb-border-2);
    border-radius: 50%;
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.mb-section__nav button:hover { background: var(--mb-surface-3); }
.mb-section__nav button svg { width: 14px; height: 14px; }
.mb-section__all {
    color: var(--mb-cyan);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 6px 14px;
    background: rgba(27,166,224,0.08);
    border-radius: 16px;
    transition: background .15s;
}
.mb-section__all:hover { background: rgba(27,166,224,0.18); color: var(--mb-cyan); }

.mb-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.mb-game-grid--scroll {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}
.mb-game-grid--scroll::-webkit-scrollbar { height: 6px; }
.mb-game-grid--scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 3px; }
.mb-game-grid--scroll::-webkit-scrollbar-track { background: transparent; }
.mb-game-grid--scroll .mb-game-card { scroll-snap-align: start; }

.mb-game-card {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--mb-surface);
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    isolation: isolate;
}
.mb-game-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.mb-game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.mb-game-card:hover img { transform: scale(1.04); }
.mb-game-card__badge {
    position: absolute; top: 6px; left: 6px;
    padding: 3px 7px;
    background: var(--mb-red);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
    z-index: 2;
}
.mb-game-card__badge--new { background: var(--mb-cyan); }
.mb-game-card__badge--rm { background: linear-gradient(135deg, var(--mb-orange), #d94a07); }
.mb-game-card__rm-corner {
    position: absolute; top: 6px; left: 6px;
    width: 26px; height: 26px;
    background: linear-gradient(135deg, var(--mb-orange) 0%, #d94a07 100%);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    z-index: 2;
}
.mb-game-card__hover {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10,34,85,.95) 100%);
    opacity: 0; transition: opacity .2s;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 12px;
    z-index: 1;
}
.mb-game-card:hover .mb-game-card__hover { opacity: 1; }
.mb-game-card__name {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.mb-game-card__play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.7);
    width: 48px; height: 48px;
    background: var(--mb-orange);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .2s, transform .2s;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.mb-game-card:hover .mb-game-card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (max-width: 700px) {
    .mb-game-grid { grid-template-columns: repeat(3, 1fr); }
    .mb-game-grid--scroll { grid-auto-columns: 30vw; }
}

/* ========== Promo cards row ========== */
.mb-promo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.mb-promo {
    position: relative;
    border-radius: var(--mb-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--mb-surface);
    box-shadow: var(--mb-shadow);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}
.mb-promo:hover { transform: translateY(-2px); box-shadow: var(--mb-shadow-lg); }
.mb-promo img { width: 100%; height: 100%; object-fit: cover; }
.mb-promo__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(95deg, rgba(10,34,85,.92) 0%, rgba(10,34,85,.55) 50%, rgba(10,34,85,.0) 100%);
    pointer-events: none;
}
.mb-promo__content { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); max-width: 60%; z-index: 2; color: #fff; }
.mb-promo__title { font-size: 18px; line-height: 1.1; margin: 0 0 6px; text-transform: uppercase; }
.mb-promo__desc { font-size: 12.5px; color: rgba(255,255,255,.86); margin: 0 0 10px; line-height: 1.35; }
.mb-promo__cta { display: inline-block; padding: 7px 18px; background: var(--mb-orange); color: #fff; border-radius: 16px; font-size: 12px; font-weight: 800; text-transform: uppercase; }

@media (max-width: 900px) { .mb-promo-row { grid-template-columns: 1fr; } }

/* ========== Providers row ========== */
.mb-providers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.mb-provider {
    aspect-ratio: 16/10;
    background: var(--mb-surface);
    border: 1px solid var(--mb-border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--mb-text);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: .04em;
    text-transform: lowercase;
    transition: background .2s, transform .2s;
    position: relative;
    overflow: hidden;
}
.mb-provider:hover { background: var(--mb-surface-3); transform: translateY(-2px); }
.mb-provider__name { z-index: 2; }
.mb-provider__bg-icons {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    gap: 4px; opacity: .14;
    z-index: 1;
}
.mb-provider__bg-icons span {
    width: 22px; height: 22px;
    background: var(--mb-yellow);
    border-radius: 50%;
}

@media (max-width: 1100px) { .mb-providers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .mb-providers-grid { grid-template-columns: repeat(2, 1fr); } }

/* ========== Footer ========== */
.mb-foot {
    background: var(--mb-bg-deep);
    margin-top: 32px;
    padding: 36px 0 22px;
    border-top: 1px solid var(--mb-border);
}
.mb-foot__logo { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; flex-wrap: wrap; gap: 14px; }
.mb-foot__logo .lg { display: inline-flex; align-items: center; gap: 0; font-weight: 900; font-size: 26px; color: #fff; }
.mb-foot__logo .lg .star { color: var(--mb-red); font-size: 32px; line-height: 1; }
.mb-foot__age { background: var(--mb-red); color: #fff; padding: 5px 12px; border-radius: 18px; font-size: 13px; font-weight: 800; }
.mb-foot__links {
    display: flex; flex-wrap: wrap;
    gap: 6px 26px;
    padding: 18px 0;
    border-top: 1px solid var(--mb-border);
    border-bottom: 1px solid var(--mb-border);
}
.mb-foot__link { color: var(--mb-cyan); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; transition: color .15s; }
.mb-foot__link:hover { color: #fff; }
.mb-foot__pays {
    display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-around;
    padding: 22px 0;
}
.mb-foot__pays .pay {
    color: rgba(255,255,255,.78);
    font-weight: 800; font-size: 18px;
    letter-spacing: .04em;
    font-family: -apple-system, sans-serif;
    text-transform: lowercase;
}
.mb-foot__bottom { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--mb-border); font-size: 12px; color: var(--mb-text-muted); }
.mb-foot__bottom .lic { background: rgba(255,255,255,.04); border-radius: 6px; padding: 5px 10px; }
.mb-foot__bottom .lang a { color: var(--mb-cyan); font-weight: 700; }

.mb-foot__dl { display: inline-flex; align-items: center; gap: 8px; }
.mb-foot__dl-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--mb-border-2);
    padding: 7px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px; font-weight: 600;
}
.mb-foot__dl-btn svg { width: 14px; height: 14px; }

/* ========== Helpers ========== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
    .mb-topbar__inner { padding-right: 8px; }
    .mb-topbar__chip { padding: 4px 9px; font-size: 11.5px; }
    .mb-hero__content { left: 18px; max-width: 65%; }
    .mb-hero__cta { padding: 10px 22px; font-size: 13px; }
}

/* =============================================
   POLISH PASS — улучшения после первого раунда
   ============================================= */

/* --- Custom rounded Mostbet star (replaces emoji ★) --- */
.mb-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mb-red);
}
.mb-star svg { width: 1em; height: 1em; }

/* Logo refresh — use custom SVG-based star */
.mb-logo__svg {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #fff;
}
.mb-logo__svg .star {
    color: var(--mb-red);
    font-size: 1em;
    line-height: 1;
    margin: 0 1px;
    display: inline-flex;
    align-items: center;
}
.mb-logo__svg .star svg { width: 0.95em; height: 0.95em; transform: translateY(1px); }

/* Footer logo same */
.mb-foot__logo .lg .star { display: inline-flex; align-items: center; }
.mb-foot__logo .lg .star svg { width: 1em; height: 1em; transform: translateY(1px); }

/* --- Inline icon system (replaces emojis) --- */
.mb-ico-svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: currentColor;
}
.mb-ico-svg svg { width: 100%; height: 100%; }

/* Sidebar pill icons */
.mb-sidebar__pill .mb-ico-svg { color: var(--mb-yellow); }
.mb-sidebar__pill:hover .mb-ico-svg { color: #fff; }

/* "NEW" red badge (replaces 🆕 emoji) */
.mb-pill-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px; height: 14px;
    padding: 0 5px;
    background: var(--mb-red);
    color: #fff;
    font-size: 8.5px;
    font-weight: 900;
    border-radius: 3px;
    letter-spacing: .04em;
    line-height: 1;
    transform: rotate(-6deg);
}

/* Categories — use proper colored backgrounds for icons */
.mb-categories__item .mb-ico-svg {
    width: 22px; height: 22px;
    color: var(--mb-cyan);
    transition: color .15s;
}
.mb-categories__item:hover .mb-ico-svg { color: #fff; }
.mb-categories__item.active .mb-ico-svg { color: #fff; }

/* --- Bonus card crown SVG --- */
.mb-bonus-card__crown-svg {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 30px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
}

/* --- Game card: always-visible name on mobile --- */
.mb-game-card__name-static {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 8px 8px 7px;
    background: linear-gradient(180deg, transparent 0%, rgba(4,21,59,.92) 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
    pointer-events: none;
    transition: opacity .2s;
}
.mb-game-card:hover .mb-game-card__name-static { opacity: 0; }
@media (min-width: 1024px) {
    /* On desktop hide static name by default — show on hover via overlay */
    .mb-game-card__name-static { opacity: 0; }
    .mb-game-card:hover .mb-game-card__name-static { opacity: 0; }
}
@media (max-width: 1023px) {
    /* Mobile/tablet — always visible */
    .mb-game-card__name-static { opacity: 1; }
    .mb-game-card__hover { display: none; }
}

/* --- Provider tile — background image --- */
.mb-provider {
    background-color: var(--mb-bg-deep);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}
.mb-provider::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,34,85,.0) 60%, rgba(10,34,85,.85) 100%);
    pointer-events: none;
    transition: background .2s;
}
.mb-provider:hover::after { background: linear-gradient(180deg, rgba(10,34,85,.0) 40%, rgba(10,34,85,.95) 100%); }
.mb-provider__name {
    position: relative;
    z-index: 2;
    margin-top: auto;
    align-self: flex-end;
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}
.mb-provider {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 !important;
}
.mb-provider__bg-icons { display: none !important; }

/* --- Payment cards in footer (replaces plain text) --- */
.mb-pay-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    min-width: 60px;
    padding: 0 10px;
    background: rgba(255,255,255,.92);
    border-radius: 4px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .03em;
    box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.mb-pay-plate--mc {
    background: #fff;
    color: #ff5f00;
    position: relative;
    padding: 0 14px;
}
.mb-pay-plate--visa { background: #1a1f71; color: #fff; font-style: italic; }
.mb-pay-plate--maestro { background: #fff; color: #0079be; }
.mb-pay-plate--btc { background: linear-gradient(135deg, #f7931a 0%, #d97a05 100%); color: #fff; }
.mb-pay-plate--usdt { background: #26a17b; color: #fff; }
.mb-pay-plate--paynet { background: #fff; color: #0a72d1; }
.mb-pay-plate--oxxo { background: #f8d722; color: #d12a26; }
.mb-pay-plate--qiwi { background: #fc8c02; color: #fff; }

/* MC dual-circle visual */
.mb-pay-plate--mc::before, .mb-pay-plate--mc::after {
    content: '';
    width: 12px; height: 12px;
    border-radius: 50%;
}
.mb-pay-plate--mc::before { background: #eb001b; }
.mb-pay-plate--mc::after { background: #f79e1b; margin-left: -4px; opacity: .9; }
.mb-pay-plate--mc { gap: 0; padding: 0 10px; }
.mb-pay-plate--mc span { margin-left: 4px; font-size: 10px; color: #1a1a1a; font-weight: 800; }

.mb-foot__pays {
    gap: 14px;
    padding: 22px 0;
    flex-wrap: wrap;
}

/* --- Hero: keep prize from overlapping content on small screens --- */
@media (max-width: 760px) {
    .mb-hero { aspect-ratio: 16/9; }
    .mb-hero__prize { font-size: 18px !important; right: 12px; bottom: 36px; }
    .mb-hero__content { max-width: 70%; left: 16px; }
    .mb-hero__title { font-size: 18px !important; }
    .mb-hero__sub { font-size: 12px !important; max-width: 100%; }
    .mb-hero__cta { padding: 8px 18px; font-size: 12px; }
}

/* --- BONUS BUY pill polish --- */
.mb-mainmenu__item--bonus {
    box-shadow: 0 0 14px rgba(255,200,50,.25);
}

/* --- Aviator menu item: italic + glow + slight background bleed --- */
.mb-mainmenu__item--aviator {
    box-shadow: 0 4px 14px rgba(238, 44, 79, 0.32);
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
    letter-spacing: .03em;
    text-transform: lowercase;
}

/* --- Topbar: add subtle glow to gold/teal chips --- */
.mb-topbar__chip--gold { box-shadow: 0 2px 10px rgba(240,169,33,.3); }
.mb-topbar__chip--teal { box-shadow: 0 2px 10px rgba(20,159,150,.3); }

/* --- Footer copy (license + lang) — better spacing --- */
.mb-foot__bottom { gap: 18px; }
.mb-foot__bottom .lic {
    background: linear-gradient(135deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 100%);
    border: 1px solid rgba(255,255,255,.08);
}

/* =============================================
   POLISH PASS 2: Skeleton, scroll-fade, active state
   ============================================= */

/* --- Skeleton shimmer on game cards before image loads --- */
.mb-game-card {
    background-image: linear-gradient(110deg, #14306b 8%, #1d4a8f 22%, #14306b 38%);
    background-size: 200% 100%;
    background-position: 0 0;
    animation: mb-shimmer 1.6s linear infinite;
}
.mb-game-card.is-loaded {
    background-image: none;
    background-color: var(--mb-surface);
    animation: none;
}
.mb-game-card img,
.mb-game-card picture { opacity: 0; transition: opacity .35s ease; }
.mb-game-card.is-loaded img,
.mb-game-card.is-loaded picture { opacity: 1; }

@keyframes mb-shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

/* --- Same skeleton for promo and hero --- */
.mb-promo, .mb-hero {
    background-image: linear-gradient(110deg, #14306b 8%, #1d4a8f 22%, #14306b 38%);
    background-size: 200% 100%;
    animation: mb-shimmer 1.6s linear infinite;
}
.mb-promo.is-loaded, .mb-hero.is-loaded {
    background-image: none;
    background-color: var(--mb-surface);
    animation: none;
}
.mb-promo img { transition: opacity .4s; }
.mb-hero__slide img { transition: opacity .4s; }
.mb-promo:not(.is-loaded) img,
.mb-hero:not(.is-loaded) .mb-hero__slide img { opacity: 0; }

/* Provider tiles also get shimmer */
.mb-provider:not(.is-loaded) {
    animation: mb-shimmer 1.6s linear infinite;
    background-size: 200%;
}

/* --- Fade-in / slide-up for game cards on scroll --- */
.mb-game-card {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s;
    will-change: opacity, transform;
}
.mb-game-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger: delay successive cards within a row by ~50ms each */
.mb-game-grid .mb-game-card:nth-child(1) { transition-delay: 0ms; }
.mb-game-grid .mb-game-card:nth-child(2) { transition-delay: 50ms; }
.mb-game-grid .mb-game-card:nth-child(3) { transition-delay: 100ms; }
.mb-game-grid .mb-game-card:nth-child(4) { transition-delay: 150ms; }
.mb-game-grid .mb-game-card:nth-child(5) { transition-delay: 200ms; }
.mb-game-grid .mb-game-card:nth-child(6) { transition-delay: 250ms; }
.mb-game-grid .mb-game-card:nth-child(7) { transition-delay: 280ms; }
.mb-game-grid .mb-game-card:nth-child(8) { transition-delay: 300ms; }
.mb-game-grid .mb-game-card:nth-child(9) { transition-delay: 320ms; }
.mb-game-grid .mb-game-card:nth-child(10) { transition-delay: 340ms; }

/* Reset hover transform consistency: keep hover lifted even after fade-in */
.mb-game-card.is-visible:hover {
    transform: translateY(-3px);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .mb-game-card { opacity: 1; transform: none; transition: none; }
    .mb-game-card.is-loaded { animation: none; }
    .mb-promo, .mb-hero, .mb-provider { animation: none; }
}

/* --- Active sidebar category: vibrant cyan→teal gradient + left bar --- */
.mb-categories__item {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}
.mb-categories__item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: linear-gradient(180deg, var(--mb-orange), #ffd24a);
    transition: width .22s ease;
    border-radius: 0 4px 4px 0;
}
.mb-categories__item:hover::before { width: 3px; }
.mb-categories__item.active {
    background: linear-gradient(135deg, rgba(27,166,224,.95) 0%, rgba(20,134,180,.85) 100%);
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 4px 14px rgba(27,166,224,.25), inset 0 1px 0 rgba(255,255,255,.12);
    color: #fff;
    transform: translateX(2px);
}
.mb-categories__item.active::before {
    width: 4px;
    background: linear-gradient(180deg, var(--mb-yellow), var(--mb-orange));
    border-radius: 0;
}

/* Same effect for sidebar pills active state */
.mb-sidebar__pill { position: relative; overflow: hidden; }
.mb-sidebar__pill::after {
    content: '';
    position: absolute;
    left: 0; top: 50%; bottom: 50%;
    width: 3px;
    background: var(--mb-yellow);
    transition: top .22s ease, bottom .22s ease;
    border-radius: 0 3px 3px 0;
}
.mb-sidebar__pill:hover::after { top: 6px; bottom: 6px; }

/* --- Smooth hero slide entrance --- */
.mb-hero__slide.active img,
.mb-hero__slide.active .mb-hero__content { animation: mb-heroFadeIn .8s cubic-bezier(.2,.8,.2,1); }
@keyframes mb-heroFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   POLISH PASS 3: Proper KZ flag + language switcher
   ============================================= */
.mb-flag-kz {
    display: inline-block;
    width: 22px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255,255,255,.12);
    vertical-align: middle;
}
.mb-flag-kz svg { display: block; width: 100%; height: 100%; }

.mb-flag-ru {
    display: inline-block;
    width: 22px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(180deg, #fff 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66%);
    box-shadow: 0 0 0 1px rgba(255,255,255,.12);
    vertical-align: middle;
}

/* Segmented language switcher (replaces basic ghost button) */
.mb-lang {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 3px;
    gap: 2px;
    font-size: 12px;
    flex-shrink: 0;
}
.mb-lang__opt {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 8px;
    border-radius: 18px;
    color: var(--mb-text-dim);
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1;
    transition: background .15s, color .15s;
}
.mb-lang__opt:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.mb-lang__opt.active {
    background: linear-gradient(135deg, var(--mb-cyan), #1485b8);
    color: #fff;
    box-shadow: 0 2px 8px rgba(27, 166, 224, 0.32);
}
.mb-lang__opt.active:hover { background: linear-gradient(135deg, var(--mb-cyan), #1485b8); }

/* Hide standalone ghost lang button in nav (replaced by topbar switcher) */
.mb-nav__inner > .mb-btn--ghost { display: none; }

@media (max-width: 600px) {
    .mb-lang__opt { padding: 4px 7px 4px 6px; font-size: 11px; }
    .mb-flag-kz, .mb-flag-ru { width: 18px; height: 12px; }
}

/* =============================================
   POLISH PASS 4: Real SVG payment logos
   ============================================= */
.mb-foot__pays {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-around;
    padding: 24px 0;
}
.mb-pay-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 44px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform .15s ease, box-shadow .15s ease;
}
.mb-pay-logo:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.mb-pay-logo svg { display: block; width: 100%; height: 100%; }
.mb-pay-logo--dark { background: #1A1F71; }
.mb-pay-logo--btc { background: linear-gradient(135deg, #f7931a 0%, #d77a05 100%); }
.mb-pay-logo--usdt { background: linear-gradient(135deg, #2fb98e 0%, #1f8a68 100%); }
.mb-pay-logo--qiwi { background: #FF8C00; }
.mb-pay-logo--oxxo { background: #FFCB05; }
@media (max-width: 600px) {
    .mb-pay-logo { width: 58px; height: 36px; }
    .mb-foot__pays { gap: 10px; padding: 18px 0; }
}

/* Hide old text plates if any leak through */
.mb-pay-plate { display: none !important; }

/* =============================================
   POLISH PASS 5: Proper Android + Apple icons in topbar
   ============================================= */
.mb-topbar__dl {
    gap: 8px;
}
.mb-topbar__dl span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.mb-topbar__dl svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform .15s ease;
}
.mb-topbar__dl:hover svg { transform: scale(1.15); }
