:root {
    --casino-bg: #050506;
    --casino-bg-soft: #0b0b0d;
    --casino-panel: rgba(20, 20, 24, .78);
    --casino-panel-strong: rgba(29, 29, 34, .92);
    --casino-line: rgba(255, 255, 255, .09);
    --casino-line-strong: rgba(255, 255, 255, .16);
    --casino-text: #ffffff;
    --casino-muted: #a9abb6;
    --casino-soft: #777a87;
    --casino-red: #e50914;
    --casino-red-2: #9f0813;
    --casino-green: #22c55e;
    --casino-gold: #f5b841;
    --casino-radius: 20px;
    --casino-shadow: 0 28px 90px rgba(0, 0, 0, .5);
}

html {
    scroll-behavior: smooth;
}

body.premium-home-active,
body:has(.premium-dashboard) {
    margin: 0;
    overflow-x: hidden;
    background: var(--casino-bg);
    color: var(--casino-text);
    font-family: Inter, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
}

.premium-dashboard,
.premium-dashboard *,
.premium-dashboard *:before,
.premium-dashboard *:after,
body.premium-home-active .app-header,
body.premium-home-active .app-header *,
body.premium-home-active .app-footer,
body.premium-home-active .app-footer * {
    box-sizing: border-box;
}

body.premium-home-active .app-header,
body:has(.premium-dashboard) .app-header {
    position: sticky;
    top: 0;
    z-index: 120;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background:
        linear-gradient(90deg, rgba(229, 9, 20, .18), transparent 28%),
        rgba(6, 6, 8, .84);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .48);
    backdrop-filter: blur(20px);
}

body.premium-home-active .app-header-inner,
body:has(.premium-dashboard) .app-header-inner {
    width: min(1680px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

body.premium-home-active .app-brand,
body:has(.premium-dashboard) .app-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

body.premium-home-active .app-brand-logo,
body:has(.premium-dashboard) .app-brand-logo {
    width: 152px;
    height: 48px;
    display: inline-flex;
    align-items: center;
}

body.premium-home-active .app-brand-logo img,
body:has(.premium-dashboard) .app-brand-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(229, 9, 20, .22));
}

body.premium-home-active .app-game-nav,
body:has(.premium-dashboard) .app-game-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 5px;
    border: 1px solid var(--casino-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

body.premium-home-active .app-game-nav a,
body:has(.premium-dashboard) .app-game-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    font-weight: 760;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.premium-home-active .app-game-nav a:hover,
body.premium-home-active .app-game-nav a.is-active,
body:has(.premium-dashboard) .app-game-nav a:hover,
body:has(.premium-dashboard) .app-game-nav a.is-active {
    color: #fff;
    background: linear-gradient(180deg, rgba(229, 9, 20, .96), rgba(159, 8, 19, .96));
    box-shadow: 0 12px 32px rgba(229, 9, 20, .24);
}

body.premium-home-active .app-game-nav .material-symbols-outlined,
body:has(.premium-dashboard) .app-game-nav .material-symbols-outlined {
    font-size: 18px;
}

body.premium-home-active .app-header-actions,
body:has(.premium-dashboard) .app-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

body.premium-home-active .app-wallet-pill,
body.premium-home-active .app-icon-btn,
body.premium-home-active .app-menu-btn,
body.premium-home-active .login-btn,
body.premium-home-active .register-btn,
body:has(.premium-dashboard) .app-wallet-pill,
body:has(.premium-dashboard) .app-icon-btn,
body:has(.premium-dashboard) .app-menu-btn,
body:has(.premium-dashboard) .login-btn,
body:has(.premium-dashboard) .register-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--casino-line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 820;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

body.premium-home-active .app-icon-btn,
body.premium-home-active .app-menu-btn,
body:has(.premium-dashboard) .app-icon-btn,
body:has(.premium-dashboard) .app-menu-btn {
    width: 42px;
    padding: 0;
}

body.premium-home-active .app-wallet-pill:hover,
body.premium-home-active .app-icon-btn:hover,
body.premium-home-active .app-menu-btn:hover,
body:has(.premium-dashboard) .app-wallet-pill:hover,
body:has(.premium-dashboard) .app-icon-btn:hover,
body:has(.premium-dashboard) .app-menu-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(229, 9, 20, .46);
    background: rgba(229, 9, 20, .16);
    box-shadow: 0 14px 35px rgba(229, 9, 20, .14);
}

body.premium-home-active .app-icon-btn-muted,
body:has(.premium-dashboard) .app-icon-btn-muted {
    opacity: .62;
}

body.premium-home-active .register-btn,
body:has(.premium-dashboard) .register-btn {
    border-color: rgba(229, 9, 20, .58);
    background: linear-gradient(180deg, #e50914, #9f0813);
    box-shadow: 0 16px 38px rgba(229, 9, 20, .28);
}

.premium-dashboard {
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 26px 18px 70px;
    background:
        radial-gradient(circle at 8% 0%, rgba(229, 9, 20, .18), transparent 30%),
        radial-gradient(circle at 88% 8%, rgba(255, 255, 255, .08), transparent 24%),
        linear-gradient(180deg, #08080a 0%, #050506 54%, #08080a 100%);
    isolation: isolate;
}

.premium-dashboard:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .82), transparent 68%);
    z-index: -1;
}

.dashboard-shell {
    width: min(1680px, 100%);
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.lobby-content {
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: 22px;
}

.casino-sidebar {
    position: sticky;
    top: 100px;
    min-height: calc(100vh - 126px);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 16px;
    border: 1px solid var(--casino-line);
    border-radius: var(--casino-radius);
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03)), rgba(12, 12, 14, .86);
    box-shadow: var(--casino-shadow);
    backdrop-filter: blur(18px);
}

.sidebar-search,
.sidebar-nav a,
.sidebar-guide,
.sidebar-guide-actions button,
.sidebar-wallet,
.category-strip,
.lobby-hero,
.game-card,
.live-card,
.promo-card,
.winner-ticker,
.stat-card {
    border: 1px solid var(--casino-line);
    background: var(--casino-panel);
    backdrop-filter: blur(18px);
}

.sidebar-search {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    padding: 0 14px;
    color: var(--casino-muted);
}

.sidebar-nav {
    display: grid;
    align-content: start;
    gap: 8px;
}

.sidebar-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 14px;
    padding: 0 13px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-size: 14px;
    font-weight: 760;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    transform: translateX(2px);
    border-color: rgba(229, 9, 20, .48);
    color: #fff;
    background: rgba(229, 9, 20, .14);
}

.sidebar-nav .material-symbols-outlined {
    font-size: 20px;
    color: #fff;
}

.sidebar-wallet {
    border-radius: 16px;
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(229, 9, 20, .24), transparent 62%),
        rgba(255, 255, 255, .06);
}

.sidebar-wallet span,
.sidebar-wallet a,
.wallet-mini-grid span,
.game-meta span,
.live-stats span,
.stat-card small {
    color: var(--casino-muted);
    font-size: 12px;
    font-weight: 760;
}

.sidebar-wallet strong {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.sidebar-wallet div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.sidebar-wallet a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
}

.sidebar-guide {
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 12px;
    background:
        linear-gradient(135deg, rgba(245, 184, 65, .16), transparent 56%),
        rgba(255, 255, 255, .055);
}

.sidebar-guide-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-guide-head > .material-symbols-outlined {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 184, 65, .34);
    border-radius: 13px;
    color: #fff;
    background: rgba(245, 184, 65, .13);
}

.sidebar-guide-head strong,
.wallet-guide-modal h3 {
    display: block;
    margin: 0;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0;
}

.sidebar-guide-head small {
    display: block;
    margin-top: 2px;
    color: var(--casino-muted);
    font-size: 11px;
    font-weight: 760;
}

.sidebar-guide-actions {
    display: grid;
    gap: 8px;
}

.sidebar-guide-actions button {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    padding: 0 12px;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    font-weight: 830;
    text-align: left;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.sidebar-guide-actions button:hover {
    transform: translateX(2px);
    border-color: rgba(245, 184, 65, .42);
    color: #fff;
    background: rgba(245, 184, 65, .12);
}

.sidebar-guide-actions .material-symbols-outlined {
    font-size: 20px;
    color: #fff;
}

.wallet-guide-modal .modal-dialog {
    width: min(980px, calc(100% - 28px));
    max-width: 980px;
}

.wallet-guide-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--casino-line-strong);
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 0%, rgba(229, 9, 20, .2), transparent 32%),
        rgba(12, 12, 14, .96);
    box-shadow: var(--casino-shadow);
}

.wallet-guide-modal .modal-header {
    align-items: flex-start;
    gap: 18px;
    border-bottom: 1px solid var(--casino-line);
    padding: 18px;
}

.wallet-guide-modal h3 {
    margin-top: 12px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1;
}

.guide-modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--casino-line-strong);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.wallet-guide-modal .modal-body {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.wallet-guide-player {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    border: 1px solid var(--casino-line);
    border-radius: 18px;
    background: rgba(5, 5, 6, .82);
}

.wallet-guide-player iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 340px;
    display: block;
    border: 0;
}

.wallet-guide-empty {
    min-height: 340px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 28px;
    color: var(--casino-muted);
    text-align: center;
}

.wallet-guide-empty .material-symbols-outlined {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 184, 65, .28);
    border-radius: 18px;
    color: #fff;
    background: rgba(245, 184, 65, .12);
}

.wallet-guide-empty strong {
    color: #fff;
    font-size: 18px;
}

.wallet-guide-empty small {
    color: var(--casino-muted);
    font-weight: 720;
}

.lobby-hero {
    position: relative;
    min-width: 0;
    max-width: 100%;
    min-height: clamp(520px, 43vw, 650px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    border-radius: var(--casino-radius);
    padding: 16px;
    overflow: hidden;
    box-shadow: var(--casino-shadow);
}

.hero-slider {
    position: relative;
    min-width: 0;
    max-width: 100%;
    min-height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #101014;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.025);
    pointer-events: none;
    transition: opacity .72s ease, transform 1.1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide:not(.is-active) .hero-slide-content {
    visibility: hidden;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(1.06) contrast(1.05);
}

.hero-slide-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 66% 26%, rgba(229, 9, 20, .34), transparent 34%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .12), transparent 30%),
        linear-gradient(135deg, #151519, #050506 72%);
}

.hero-slide-placeholder .material-symbols-outlined {
    color: rgba(255, 255, 255, .16);
    font-size: clamp(120px, 18vw, 260px);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 5, 6, .94), rgba(5, 5, 6, .66) 39%, rgba(5, 5, 6, .18) 72%),
        linear-gradient(180deg, rgba(5, 5, 6, .08), rgba(5, 5, 6, .72));
}

.hero-slide-content {
    position: absolute;
    z-index: 2;
    left: clamp(20px, 5vw, 58px);
    bottom: clamp(82px, 8vw, 112px);
    width: min(600px, calc(100% - 40px));
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    width: fit-content;
    border: 1px solid var(--casino-line-strong);
    border-radius: 999px;
    padding: 0 12px;
    color: rgba(255, 255, 255, .88);
    background: rgba(255, 255, 255, .075);
    font-size: 11px;
    font-weight: 860;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-kicker .material-symbols-outlined {
    font-size: 17px;
    color: #fff;
}

.hero-slide-content h1 {
    max-width: 720px;
    margin: 18px 0 0;
    color: #fff;
    font-size: clamp(38px, 5.2vw, 76px);
    line-height: .96;
    font-weight: 900;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.hero-slide-content p {
    max-width: 560px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .75);
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.65;
}

.casino-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--casino-line-strong);
    border-radius: 999px;
    padding: 0 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 860;
    text-decoration: none;
    cursor: pointer;
    transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.casino-btn:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.01);
}

.casino-btn:disabled {
    cursor: not-allowed;
    opacity: .68;
    transform: none;
    box-shadow: none;
}

.casino-btn-primary {
    border-color: rgba(229, 9, 20, .58);
    background: linear-gradient(180deg, #e50914 0%, #9f0813 100%);
    box-shadow: 0 18px 45px rgba(229, 9, 20, .3);
}

.casino-btn-dark {
    background: rgba(255, 255, 255, .07);
}

.casino-btn-dark:hover {
    border-color: rgba(229, 9, 20, .48);
    background: rgba(229, 9, 20, .15);
}

.casino-btn i {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    pointer-events: none;
    background: rgba(255, 255, 255, .5);
    transform: translate(-50%, -50%);
    animation: ripple .65s ease-out forwards;
}

.hero-slide-content .casino-btn {
    margin-top: 26px;
}

.hero-controls {
    position: absolute;
    left: 36px;
    bottom: 34px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-controls > button,
.hero-dots {
    border: 1px solid var(--casino-line-strong);
    background: rgba(5, 5, 6, .54);
    backdrop-filter: blur(16px);
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.hero-controls > button:hover {
    transform: translateY(-2px);
    border-color: rgba(229, 9, 20, .5);
    background: rgba(229, 9, 20, .22);
}

.hero-dots {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 0 12px;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .32);
    padding: 0;
    transition: width .24s ease, background .24s ease, border-color .24s ease;
}

.hero-dots button.is-active {
    width: 30px;
    border-color: rgba(229, 9, 20, .9);
    background: #e50914;
    box-shadow: 0 0 22px rgba(229, 9, 20, .58);
}

.wallet-card {
    position: relative;
    z-index: 4;
    min-width: 0;
    max-width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--casino-line-strong);
    border-radius: 16px;
    padding: 20px;
    background:
        linear-gradient(135deg, rgba(229, 9, 20, .28), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .04)),
        rgba(12, 12, 14, .82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}

.wallet-card:after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 15px;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 32%);
}

.wallet-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.wallet-card-top > .material-symbols-outlined,
.game-logo,
.live-card-head > div > .material-symbols-outlined,
.promo-card > .material-symbols-outlined,
.stat-card > .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(229, 9, 20, .38);
    border-radius: 16px;
    background: rgba(229, 9, 20, .16);
    color: #fff;
}

.wallet-card-top small {
    display: block;
    color: var(--casino-muted);
    font-size: 12px;
    font-weight: 760;
}

.wallet-card-top strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: clamp(24px, 2.8vw, 36px);
    line-height: 1;
}

.wallet-mini-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wallet-mini-grid div,
.game-meta div,
.live-stats div {
    min-width: 0;
    border: 1px solid var(--casino-line);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, .045);
}

.wallet-mini-grid strong,
.game-meta strong,
.live-stats strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 16px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.wallet-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: var(--casino-radius);
    padding: 10px;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-strip button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 15px;
    color: rgba(255, 255, 255, .76);
    background: rgba(255, 255, 255, .055);
    font-weight: 800;
    transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}

.category-strip button:hover,
.category-strip button.is-active {
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(229, 9, 20, .42);
    background: linear-gradient(180deg, rgba(229, 9, 20, .95), rgba(159, 8, 19, .95));
}

.dashboard-section {
    display: grid;
    gap: 18px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.section-heading h2 {
    margin: 10px 0 0;
    color: #fff;
    font-size: clamp(26px, 3.4vw, 48px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 0;
}

.section-heading a,
.live-pulse {
    color: var(--casino-muted);
    text-decoration: none;
    font-weight: 820;
}

.section-heading a:hover {
    color: #fff;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.all-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.game-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--casino-radius);
    padding: 18px;
    box-shadow: var(--casino-shadow);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.game-card:hover,
.live-card:hover,
.promo-card:hover,
.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(229, 9, 20, .42);
    box-shadow: 0 32px 100px rgba(0, 0, 0, .58), 0 0 0 1px rgba(229, 9, 20, .12);
}

.game-card:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .09), transparent 30%),
        radial-gradient(circle at 78% 10%, color-mix(in srgb, var(--game-accent, #e50914) 42%, transparent), transparent 34%);
}

.game-card-green:before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .09), transparent 30%),
        radial-gradient(circle at 78% 10%, rgba(34, 197, 94, .18), transparent 34%);
}

.favorite-btn {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 4;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--casino-line-strong);
    border-radius: 999px;
    color: #fff;
    background: rgba(5, 5, 6, .5);
    backdrop-filter: blur(12px);
}

.live-badge {
    position: absolute;
    z-index: 4;
    left: 18px;
    top: 18px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(34, 197, 94, .34);
    border-radius: 999px;
    padding: 0 10px;
    color: #fff;
    background: rgba(34, 197, 94, .14);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.live-badge span,
.live-pulse i {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: var(--casino-green);
    box-shadow: 0 0 16px rgba(34, 197, 94, .9);
    animation: breathe 2.2s ease-in-out infinite;
}

.live-badge.status-coming-soon,
.live-badge.status-maintenance,
.live-badge.status-disabled {
    border-color: rgba(245, 184, 65, .34);
    background: rgba(245, 184, 65, .13);
}

.live-badge.status-maintenance,
.live-badge.status-disabled {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
}

.live-badge.status-coming-soon span,
.live-badge.status-maintenance span,
.live-badge.status-disabled span {
    background: var(--casino-gold);
    box-shadow: 0 0 16px rgba(245, 184, 65, .8);
}

.game-art {
    position: relative;
    z-index: 2;
    min-height: clamp(230px, 24vw, 330px);
    display: grid;
    place-items: center;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .075), transparent 40%),
        rgba(255, 255, 255, .035);
}

.game-art img {
    width: min(460px, 86%);
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 28px 44px rgba(0, 0, 0, .56));
    animation: float-slow 5.5s ease-in-out infinite;
}

.compact-game-art {
    min-height: 210px;
}

.compact-game-art img {
    max-height: 180px;
}

.game-placeholder-art {
    width: min(190px, 74%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 32px;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .18), transparent 34%),
        linear-gradient(145deg, color-mix(in srgb, var(--game-accent, #e50914) 52%, #15151a), #08080a);
    box-shadow: 0 28px 56px rgba(0, 0, 0, .42);
}

.game-placeholder-art strong {
    color: #fff;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 1;
    font-weight: 950;
}

.coming-soon-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 24px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 50% 32%, rgba(229, 9, 20, .28), transparent 32%),
        rgba(5, 5, 6, .72);
    backdrop-filter: blur(7px);
}

.coming-soon-overlay .material-symbols-outlined {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(229, 9, 20, .24);
}

.coming-soon-overlay strong {
    font-size: 22px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .08em;
}

.coming-soon-overlay small {
    color: rgba(255, 255, 255, .76);
    font-weight: 780;
}

.color-wheel {
    display: grid;
    grid-template-columns: repeat(2, 90px);
    gap: 15px;
}

.color-wheel span {
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .2), transparent 38%),
        #15151a;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .34);
}

.color-wheel span:nth-child(2n) {
    color: var(--casino-green);
}

.color-wheel span:nth-child(3n) {
    color: var(--casino-red);
}

.game-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.game-category {
    color: var(--casino-muted);
    font-size: 12px;
    font-weight: 860;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.game-card h3,
.live-card h3,
.promo-card h3 {
    margin: 7px 0 0;
    color: #fff;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1;
    font-weight: 900;
}

.game-card p,
.promo-card p {
    margin: 8px 0 0;
    color: var(--casino-muted);
    line-height: 1.55;
}

.game-logo img,
.live-card-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.live-card-icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(229, 9, 20, .38);
    border-radius: 16px;
    padding: 8px;
    background: rgba(229, 9, 20, .16);
}

.all-game-card .game-card-body {
    min-height: 114px;
}

.all-game-card h3 {
    font-size: clamp(21px, 2.2vw, 28px);
}

.all-game-card .game-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-game-card].is-hidden {
    display: none;
}

.empty-game-lobby {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 1px dashed rgba(255, 255, 255, .18);
    border-radius: var(--casino-radius);
    color: var(--casino-muted);
    background: rgba(255, 255, 255, .035);
    text-align: center;
}

.empty-game-lobby .material-symbols-outlined {
    color: #fff;
    font-size: 46px;
}

.empty-game-lobby strong {
    color: #fff;
    font-size: 20px;
}

.empty-game-lobby p {
    max-width: 360px;
    margin: 0;
}

.mode-row {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mode-row span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--casino-line);
    border-radius: 999px;
    padding: 0 10px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    font-size: 12px;
    font-weight: 820;
}

.game-meta {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.game-card > .casino-btn {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 16px;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.live-card {
    position: relative;
    border-radius: var(--casino-radius);
    padding: 18px;
    box-shadow: var(--casino-shadow);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.live-card .live-badge {
    position: static;
}

.live-card-head,
.live-card-head > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-card-head {
    justify-content: space-between;
}

.live-card h3 {
    font-size: 24px;
}

.live-card small {
    display: block;
    margin-top: 4px;
    color: var(--casino-muted);
}

.live-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.live-card .casino-btn {
    width: 100%;
    margin-top: 16px;
}

.live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.promo-winner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
    gap: 18px;
}

.compact-section {
    min-width: 0;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.promo-card,
.stat-card {
    border-radius: var(--casino-radius);
    padding: 18px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.promo-card h3 {
    font-size: 22px;
}

.promo-card a {
    display: inline-flex;
    margin-top: 14px;
    color: #fff;
    font-weight: 860;
    text-decoration: none;
}

.winner-ticker {
    height: 338px;
    position: relative;
    overflow: hidden;
    border-radius: var(--casino-radius);
    padding: 12px;
    mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
}

.winner-track {
    display: grid;
    gap: 10px;
    animation: winner-scroll 16s linear infinite;
}

.winner-ticker:hover .winner-track {
    animation-play-state: paused;
}

.winner-row {
    min-height: 58px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--casino-line);
    border-radius: 14px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .045);
}

.winner-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #e50914, #9f0813);
    font-weight: 900;
}

.winner-row strong,
.winner-row small {
    display: block;
}

.winner-row strong {
    color: #fff;
    font-size: 14px;
}

.winner-row small {
    margin-top: 3px;
    color: var(--casino-muted);
    font-size: 12px;
}

.winner-row em {
    color: var(--casino-green);
    font-style: normal;
    font-weight: 900;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    min-height: 158px;
    display: grid;
    align-content: space-between;
}

.stat-card strong {
    display: block;
    color: #fff;
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1;
    font-weight: 900;
    overflow-wrap: anywhere;
}

body.premium-home-active .app-footer,
body:has(.premium-dashboard) .app-footer {
    border-top: 1px solid var(--casino-line);
    background: #060607;
}

body.premium-home-active .app-footer-inner,
body:has(.premium-dashboard) .app-footer-inner {
    width: min(1680px, calc(100% - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, .55fr));
    gap: 24px;
    padding: 34px 0;
}

body.premium-home-active .footer-brand-block p,
body:has(.premium-dashboard) .footer-brand-block p {
    max-width: 420px;
    margin: 14px 0 0;
    color: var(--casino-muted);
    line-height: 1.65;
}

body.premium-home-active .footer-socials,
body:has(.premium-dashboard) .footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

body.premium-home-active .footer-socials a,
body:has(.premium-dashboard) .footer-socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--casino-line);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
}

body.premium-home-active .footer-link-group,
body:has(.premium-dashboard) .footer-link-group {
    display: grid;
    align-content: start;
    gap: 9px;
}

body.premium-home-active .footer-link-group strong,
body:has(.premium-dashboard) .footer-link-group strong {
    color: #fff;
    margin-bottom: 5px;
}

body.premium-home-active .footer-link-group a,
body:has(.premium-dashboard) .footer-link-group a,
body.premium-home-active .app-footer-bottom,
body:has(.premium-dashboard) .app-footer-bottom {
    color: var(--casino-muted);
    text-decoration: none;
}

body.premium-home-active .app-footer-bottom,
body:has(.premium-dashboard) .app-footer-bottom {
    width: min(1680px, calc(100% - 36px));
    min-height: 58px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--casino-line);
}

body.premium-home-active .age-limit,
body:has(.premium-dashboard) .age-limit {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229, 9, 20, .42);
    border-radius: 999px;
    color: #fff;
    background: rgba(229, 9, 20, .16);
    font-weight: 900;
}

.reveal-up {
    animation: reveal-up .72s cubic-bezier(.2, .7, .2, 1) both;
}

.reveal-up:nth-child(2) { animation-delay: .06s; }
.reveal-up:nth-child(3) { animation-delay: .12s; }
.reveal-up:nth-child(4) { animation-delay: .18s; }

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(30);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(.74);
        opacity: .72;
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@keyframes winner-scroll {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1400px) {
    body.premium-home-active .app-header-inner,
    body:has(.premium-dashboard) .app-header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    body.premium-home-active .app-game-nav,
    body:has(.premium-dashboard) .app-game-nav {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.premium-home-active .app-game-nav::-webkit-scrollbar,
    body:has(.premium-dashboard) .app-game-nav::-webkit-scrollbar {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .casino-sidebar {
        position: relative;
        top: auto;
        min-height: auto;
        grid-template-rows: auto;
    }

    .sidebar-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sidebar-guide-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lobby-hero,
    .promo-winner-grid {
        grid-template-columns: 1fr;
    }

    .wallet-card {
        min-height: 280px;
    }

    .live-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    body.premium-home-active .app-header-inner,
    body:has(.premium-dashboard) .app-header-inner {
        width: calc(100% - 22px);
        min-height: 66px;
        grid-template-columns: auto 1fr;
        gap: 10px;
    }

    body.premium-home-active .app-brand-logo,
    body:has(.premium-dashboard) .app-brand-logo {
        width: 104px;
        height: 42px;
    }

    body.premium-home-active .app-game-nav,
    body:has(.premium-dashboard) .app-game-nav {
        order: 3;
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-bottom: 8px;
    }

    body.premium-home-active .app-header-actions .app-icon-btn,
    body.premium-home-active .app-header-actions .app-icon-btn-muted,
    body:has(.premium-dashboard) .app-header-actions .app-icon-btn,
    body:has(.premium-dashboard) .app-header-actions .app-icon-btn-muted {
        display: none;
    }

    .premium-dashboard {
        padding: 18px 11px 52px;
    }

    .featured-grid,
    .all-games-grid,
    .live-grid,
    .promo-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide-content h1 {
        font-size: 42px;
        line-height: 1.02;
    }
}

@media (max-width: 720px) {
    body.premium-home-active,
    body:has(.premium-dashboard) {
        max-width: 100vw;
        overflow-x: hidden;
    }

    body.premium-home-active .app-header,
    body:has(.premium-dashboard) .app-header {
        overflow: hidden;
    }

    body.premium-home-active .app-header-actions,
    body:has(.premium-dashboard) .app-header-actions {
        gap: 6px;
        min-width: 0;
        max-width: 100%;
    }

    body.premium-home-active .app-game-nav,
    body:has(.premium-dashboard) .app-game-nav {
        display: none;
    }

    body.premium-home-active .app-wallet-pill,
    body:has(.premium-dashboard) .app-wallet-pill {
        max-width: 118px;
        overflow: hidden;
    }

    body.premium-home-active .login-btn,
    body.premium-home-active .register-btn,
    body:has(.premium-dashboard) .login-btn,
    body:has(.premium-dashboard) .register-btn {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0 12px;
        font-size: 12px;
    }

    .casino-sidebar {
        display: grid;
        gap: 10px;
        padding: 10px;
    }

    .sidebar-search,
    .sidebar-nav,
    .sidebar-wallet {
        display: none;
    }

    .sidebar-guide {
        padding: 12px;
    }

    .sidebar-guide-head {
        display: none;
    }

    .wallet-guide-modal .modal-dialog {
        width: min(100% - 16px, 980px);
    }

    .wallet-guide-player,
    .wallet-guide-player iframe,
    .wallet-guide-empty {
        min-height: 240px;
    }

    .lobby-hero {
        min-height: auto;
        width: 100%;
        padding: 10px;
        overflow: hidden;
    }

    .hero-slider {
        min-height: 520px;
    }

    .hero-slide img {
        object-position: 62% center;
    }

    .hero-slide-overlay {
        background:
            linear-gradient(180deg, rgba(5, 5, 6, .72), rgba(5, 5, 6, .42) 32%, rgba(5, 5, 6, .94)),
            linear-gradient(90deg, rgba(5, 5, 6, .74), rgba(5, 5, 6, .16));
    }

    .hero-slide-content {
        left: 18px;
        right: auto;
        bottom: 82px;
        width: min(305px, calc(100% - 36px));
        max-width: 305px;
        overflow: hidden;
    }

    .hero-slide-content h1 {
        font-size: 32px;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .hero-slide-content p {
        font-size: 14px;
    }

    .hero-controls {
        left: 16px;
        right: 16px;
        bottom: 16px;
        justify-content: space-between;
        gap: 8px;
        pointer-events: none;
    }

    .hero-controls > button,
    .hero-dots {
        pointer-events: auto;
    }

    .hero-controls > button {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .hero-dots {
        min-height: 38px;
        padding: 0 14px;
        gap: 7px;
    }

    .wallet-card {
        min-height: auto;
    }

    .wallet-actions,
    .wallet-mini-grid,
    .game-meta,
    .live-stats,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .game-art {
        min-height: 220px;
    }

    .color-wheel {
        grid-template-columns: repeat(2, 72px);
    }

    .color-wheel span {
        width: 72px;
        height: 72px;
        border-radius: 18px;
        font-size: 28px;
    }

    .live-card-head {
        align-items: start;
        flex-direction: column;
    }

    .winner-ticker {
        height: 310px;
    }

    .winner-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .winner-avatar {
        width: 38px;
        height: 38px;
    }

    .winner-row em {
        grid-column: 2;
    }

    body.premium-home-active .app-footer-inner,
    body:has(.premium-dashboard) .app-footer-inner,
    body.premium-home-active .app-footer-bottom,
    body:has(.premium-dashboard) .app-footer-bottom {
        width: calc(100% - 24px);
    }

    body.premium-home-active .app-footer-inner,
    body:has(.premium-dashboard) .app-footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    body.premium-home-active .app-header-inner,
    body:has(.premium-dashboard) .app-header-inner {
        width: calc(100% - 18px);
        display: flex;
        align-items: center;
        justify-content: space-between;
        overflow: hidden;
    }

    body.premium-home-active .app-brand-logo,
    body:has(.premium-dashboard) .app-brand-logo {
        width: 78px;
    }

    body.premium-home-active .login-btn,
    body.premium-home-active .register-btn,
    body:has(.premium-dashboard) .login-btn,
    body:has(.premium-dashboard) .register-btn {
        min-height: 36px;
        padding: 0 9px;
        font-size: 11px;
    }

    body.premium-home-active .app-header-actions,
    body:has(.premium-dashboard) .app-header-actions {
        flex: 0 1 auto;
        width: auto !important;
        max-width: calc(100vw - 104px) !important;
        position: static !important;
        transform: none !important;
        justify-content: flex-end;
        overflow: visible !important;
        margin-left: auto !important;
    }

    .premium-dashboard {
        padding-inline: 8px;
    }

    .hero-slider {
        min-height: 500px;
    }

    .hero-slide-content h1 {
        font-size: 30px;
        width: 290px;
        max-width: 100%;
    }

    .category-strip {
        border-radius: 16px;
    }
}

/* Bet X Online brand refresh */
body.premium-home-active .app-brand-logo,
body:has(.premium-dashboard) .app-brand-logo {
    width: 260px !important;
    height: 76px !important;
}

body.premium-home-active .app-brand-logo img,
body:has(.premium-dashboard) .app-brand-logo img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

@media (max-width: 640px) {
    body.premium-home-active .app-brand-logo,
    body:has(.premium-dashboard) .app-brand-logo {
        width: 160px !important;
        height: 52px !important;
    }
}

@media (max-width: 767px) {
    body.premium-home-active .app-header,
    body:has(.premium-dashboard) .app-header,
    body.premium-home-active .app-header-inner,
    body:has(.premium-dashboard) .app-header-inner,
    body.premium-home-active .app-header-actions,
    body:has(.premium-dashboard) .app-header-actions {
        overflow: visible !important;
    }
}

/* USDT premium lobby polish */
body.premium-home-active,
body:has(.premium-dashboard) {
    --casino-green: #19d27c;
    --casino-gold: #ffd166;
    --usdt-mint: #42f2a7;
    --usdt-deep: #08251a;
}

.premium-dashboard {
    background:
        radial-gradient(circle at 11% 4%, rgba(25, 210, 124, .16), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(229, 9, 20, .2), transparent 28%),
        linear-gradient(180deg, #08090a 0%, #050506 48%, #090707 100%);
}

.premium-dashboard:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 38%, rgba(25, 210, 124, .06) 38.2% 38.8%, transparent 39% 100%),
        linear-gradient(245deg, transparent 0 58%, rgba(255, 209, 102, .045) 58.1% 58.7%, transparent 59% 100%);
}

body.premium-home-active .app-header,
body:has(.premium-dashboard) .app-header {
    background:
        linear-gradient(90deg, rgba(229, 9, 20, .22), transparent 30%),
        linear-gradient(270deg, rgba(25, 210, 124, .12), transparent 34%),
        rgba(8, 8, 10, .88);
}

body.premium-home-active .app-game-nav,
body:has(.premium-dashboard) .app-game-nav,
.casino-sidebar,
.lobby-hero,
.category-strip,
.game-card,
.live-card,
.promo-card,
.winner-ticker,
.stat-card {
    box-shadow:
        0 28px 90px rgba(0, 0, 0, .52),
        inset 0 1px 0 rgba(255, 255, 255, .07);
}

.casino-sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .026)),
        radial-gradient(circle at 20% 0%, rgba(25, 210, 124, .1), transparent 38%),
        rgba(11, 11, 14, .88);
}

.sidebar-guide {
    border-color: rgba(25, 210, 124, .18);
    background:
        linear-gradient(145deg, rgba(25, 210, 124, .16), rgba(255, 209, 102, .09) 48%, rgba(255, 255, 255, .035)),
        rgba(8, 10, 11, .86);
}

.sidebar-guide-head > .material-symbols-outlined {
    border-color: rgba(25, 210, 124, .38);
    background:
        radial-gradient(circle at 35% 20%, rgba(255, 255, 255, .22), transparent 36%),
        rgba(25, 210, 124, .16);
    color: var(--usdt-mint);
    box-shadow: 0 12px 30px rgba(25, 210, 124, .16);
}

.sidebar-guide-actions button,
.sidebar-guide .sidebar-guide-actions button.wallet-guide-btn {
    min-height: 48px;
    border-color: rgba(255, 255, 255, .11);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
        rgba(0, 0, 0, .28);
}

.sidebar-guide-actions button:hover,
.sidebar-guide .sidebar-guide-actions button.wallet-guide-btn:hover {
    border-color: rgba(25, 210, 124, .46);
    background:
        linear-gradient(145deg, rgba(25, 210, 124, .18), rgba(255, 209, 102, .08)),
        rgba(0, 0, 0, .24);
    box-shadow: 0 16px 32px rgba(25, 210, 124, .1);
}

.sidebar-wallet {
    position: relative;
    overflow: hidden;
    border-color: rgba(25, 210, 124, .22);
    background:
        radial-gradient(circle at 82% 10%, rgba(25, 210, 124, .22), transparent 36%),
        linear-gradient(145deg, rgba(229, 9, 20, .16), rgba(255, 255, 255, .045) 52%, rgba(25, 210, 124, .09)),
        rgba(8, 8, 10, .9);
}

.sidebar-wallet:before {
    content: "USDT";
    position: absolute;
    right: 12px;
    top: 12px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(25, 210, 124, .32);
    border-radius: 999px;
    padding: 0 9px;
    color: var(--usdt-mint);
    background: rgba(25, 210, 124, .09);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
}

.sidebar-wallet small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    font-weight: 820;
}

.lobby-hero {
    border-color: rgba(255, 255, 255, .13);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .028)),
        radial-gradient(circle at 85% 0%, rgba(25, 210, 124, .12), transparent 30%),
        rgba(9, 9, 11, .84);
}

.hero-slider {
    background:
        radial-gradient(circle at 76% 16%, rgba(25, 210, 124, .16), transparent 30%),
        #070708;
}

.hero-slide-overlay {
    background:
        linear-gradient(90deg, rgba(5, 5, 6, .95), rgba(5, 5, 6, .62) 42%, rgba(5, 5, 6, .18) 74%),
        linear-gradient(180deg, rgba(5, 5, 6, .06), rgba(5, 5, 6, .78)),
        radial-gradient(circle at 84% 74%, rgba(25, 210, 124, .14), transparent 30%);
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.hero-trust-row span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 0 11px;
    color: rgba(255, 255, 255, .72);
    background: rgba(0, 0, 0, .34);
    font-size: 12px;
    font-weight: 820;
    backdrop-filter: blur(12px);
}

.hero-trust-row b {
    color: var(--usdt-mint);
    font-weight: 950;
}

.wallet-card {
    border-color: rgba(25, 210, 124, .28);
    background:
        radial-gradient(circle at 78% 8%, rgba(25, 210, 124, .3), transparent 34%),
        radial-gradient(circle at 12% 80%, rgba(255, 209, 102, .12), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .036)),
        rgba(7, 8, 9, .88);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, .5),
        0 0 0 1px rgba(25, 210, 124, .08),
        inset 0 1px 0 rgba(255, 255, 255, .09);
}

.wallet-card:before {
    content: "";
    position: absolute;
    right: -70px;
    top: 52px;
    width: 190px;
    aspect-ratio: 1;
    border: 1px solid rgba(25, 210, 124, .18);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .2), transparent 28%),
        radial-gradient(circle, rgba(25, 210, 124, .2), rgba(25, 210, 124, .03) 62%, transparent 64%);
    filter: blur(.1px);
}

.wallet-card:after {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .11), transparent 30%),
        linear-gradient(245deg, transparent, rgba(25, 210, 124, .09));
}

.wallet-network-pill {
    position: relative;
    z-index: 2;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    border: 1px solid rgba(25, 210, 124, .3);
    border-radius: 999px;
    padding: 0 12px;
    color: #fff;
    background: rgba(25, 210, 124, .1);
    box-shadow: 0 16px 36px rgba(25, 210, 124, .1);
}

.wallet-network-pill .material-symbols-outlined {
    color: var(--usdt-mint);
    font-size: 19px;
}

.wallet-network-pill strong,
.wallet-network-pill small {
    line-height: 1;
}

.wallet-network-pill strong {
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wallet-network-pill small {
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    font-weight: 760;
}

.wallet-card-top > .material-symbols-outlined {
    border-color: rgba(25, 210, 124, .34);
    background:
        radial-gradient(circle at 34% 22%, rgba(255, 255, 255, .2), transparent 34%),
        rgba(25, 210, 124, .15);
    color: var(--usdt-mint);
}

.wallet-mini-grid div {
    border-color: rgba(255, 255, 255, .11);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .026)),
        rgba(0, 0, 0, .22);
}

.wallet-mini-grid div:nth-child(2),
.wallet-mini-grid div:nth-child(3) {
    border-color: rgba(25, 210, 124, .18);
}

.wallet-mini-grid div:nth-child(2) strong,
.wallet-mini-grid div:nth-child(3) strong {
    color: var(--usdt-mint);
}

.casino-btn-primary {
    border-color: rgba(229, 9, 20, .7);
    background:
        linear-gradient(180deg, #ff1f31 0%, #b50012 100%);
    box-shadow: 0 18px 45px rgba(229, 9, 20, .34);
}

.wallet-card .casino-btn-primary {
    border-color: rgba(25, 210, 124, .42);
    background: linear-gradient(180deg, #20dc84, #07864b);
    box-shadow: 0 18px 45px rgba(25, 210, 124, .25);
}

.wallet-card .casino-btn-dark {
    border-color: rgba(255, 209, 102, .22);
    background: rgba(255, 209, 102, .08);
}

.category-strip button.is-active,
.category-strip button:hover {
    box-shadow: 0 16px 32px rgba(229, 9, 20, .22);
}

.game-card:hover,
.live-card:hover,
.promo-card:hover,
.stat-card:hover {
    box-shadow:
        0 32px 100px rgba(0, 0, 0, .58),
        0 0 0 1px rgba(25, 210, 124, .08),
        0 0 38px rgba(229, 9, 20, .08);
}

.stat-card > .material-symbols-outlined,
.promo-card > .material-symbols-outlined {
    border-color: rgba(25, 210, 124, .24);
    background: rgba(25, 210, 124, .1);
    color: var(--usdt-mint);
}

@media (max-width: 1180px) {
    .wallet-card {
        min-height: 300px;
    }
}

@media (max-width: 720px) {
    .hero-trust-row {
        gap: 7px;
        margin-top: 14px;
    }

    .hero-trust-row span {
        min-height: 30px;
        padding: 0 9px;
        font-size: 11px;
    }

    .wallet-network-pill {
        min-height: 38px;
        max-width: 100%;
    }

    .wallet-network-pill small {
        display: none;
    }

    .wallet-card {
        padding: 16px;
        gap: 14px;
    }

    .wallet-card .wallet-mini-grid,
    .wallet-card .wallet-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wallet-card .wallet-mini-grid div {
        padding: 10px;
    }

    .wallet-card .casino-btn {
        min-height: 44px;
        padding: 0 10px;
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .hero-trust-row {
        max-width: 290px;
    }

    .hero-trust-row span {
        flex: 0 0 auto;
    }

    .wallet-card-top strong {
        font-size: 28px;
    }
}

/* Lower welcome sections */
.home-poster-section {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    padding: 18px;
    background:
        radial-gradient(circle at 18% 0%, rgba(229, 9, 20, .16), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(25, 210, 124, .12), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .018)),
        rgba(7, 7, 9, .82);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, .44),
        inset 0 1px 0 rgba(255, 255, 255, .06);
}

.home-poster-section:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, #000, transparent 86%);
}

.home-poster-section > * {
    position: relative;
    z-index: 1;
}

.home-poster-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 16px;
    align-items: start;
}

.home-poster-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
        rgba(5, 5, 7, .82);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .4),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

.home-poster-card:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 22%),
        radial-gradient(circle at 76% 8%, rgba(229, 9, 20, .2), transparent 34%);
    mix-blend-mode: screen;
}

.home-poster-card img {
    width: 100%;
    height: auto;
    display: block;
}

.promo-winner-grid,
.stats-section {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    padding: 18px;
    background:
        radial-gradient(circle at 14% 0%, rgba(25, 210, 124, .11), transparent 32%),
        radial-gradient(circle at 88% 12%, rgba(229, 9, 20, .12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
        rgba(7, 7, 9, .78);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, .42),
        inset 0 1px 0 rgba(255, 255, 255, .06);
}

.promo-winner-grid:before,
.stats-section:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, #000, transparent 82%);
}

.promo-winner-grid > *,
.stats-section > * {
    position: relative;
    z-index: 1;
}

.compact-section .section-heading h2,
.stats-section .section-heading h2 {
    font-size: clamp(30px, 3.2vw, 48px);
}

.promo-card {
    min-height: 182px;
    display: grid;
    align-content: start;
    border-color: rgba(255, 255, 255, .1);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .022)),
        rgba(9, 9, 12, .78);
}

.promo-card:hover {
    border-color: rgba(25, 210, 124, .28);
}

.promo-card > .material-symbols-outlined {
    margin-bottom: 14px;
}

.promo-card a {
    width: fit-content;
    min-height: 34px;
    align-items: center;
    border: 1px solid rgba(25, 210, 124, .2);
    border-radius: 999px;
    padding: 0 10px;
    color: #fff;
    background: rgba(25, 210, 124, .08);
}

.winner-ticker {
    height: 310px;
    border-color: rgba(25, 210, 124, .14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)),
        rgba(5, 5, 7, .72);
    mask-image: linear-gradient(180deg, #000 0%, #000 86%, transparent 100%);
}

.winner-row {
    min-height: 62px;
    border-color: rgba(255, 255, 255, .09);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .026)),
        rgba(0, 0, 0, .24);
}

.winner-avatar {
    background: linear-gradient(180deg, #ff1f31, #a70011);
    box-shadow: 0 10px 24px rgba(229, 9, 20, .18);
}

.winner-row em {
    color: var(--usdt-mint);
    white-space: nowrap;
}

.stats-grid {
    gap: 16px;
}

.stat-card {
    min-height: 150px;
    border-color: rgba(25, 210, 124, .12);
    background:
        radial-gradient(circle at 22% 0%, rgba(25, 210, 124, .12), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
        rgba(8, 8, 10, .78);
}

.stat-card strong {
    font-size: clamp(25px, 2.2vw, 38px);
}

@media (min-width: 1181px) {
    .casino-sidebar {
        position: fixed;
        top: 96px;
        left: max(18px, calc((100vw - 1680px) / 2 + 18px));
        width: 260px;
        min-height: auto;
        max-height: calc(100vh - 118px);
        overflow-y: auto;
        scrollbar-width: none;
        z-index: 20;
    }

    .casino-sidebar::-webkit-scrollbar {
        display: none;
    }

    .lobby-content {
        grid-column: 2;
    }
}

@media (max-width: 1180px) {
    .home-poster-section,
    .promo-winner-grid,
    .stats-section {
        padding: 14px;
    }

    .home-poster-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .home-poster-section,
    .promo-winner-grid,
    .stats-section {
        border-radius: 18px;
        padding: 12px;
    }

    .home-poster-section .section-heading h2,
    .compact-section .section-heading h2,
    .stats-section .section-heading h2 {
        font-size: 30px;
    }

    .home-poster-grid {
        gap: 12px;
    }

    .home-poster-card {
        border-radius: 16px;
    }

    .winner-ticker {
        height: 280px;
    }
}
