/* Slot lobby v2 — dark navy (match homepage) */
.slot-lobby-v2 {
    --slot-accent: transparent;
    --slot-accent-visible: #4da3e0;
    --slot-accent-soft: #1a2540;
    --slot-bg: #080d1a;
    --slot-surface: #161f33;
    --slot-text: #e8f1ff;
    --slot-muted: #8fa0b8;
    background: var(--slot-bg);
    min-height: calc(100vh - 112px);
}

/* Top categories: home-style PNG icons (legacy FA pills disabled) */
.slot-top-cats.kz-home__cats .slot-top-cat {
    border: 0 !important;
    background: transparent !important;
    color: #e8f1ff !important;
    min-width: 60px;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.slot-top-cats.kz-home__cats .slot-top-cat.active,
.slot-top-cats.kz-home__cats .slot-top-cat.is-active {
    background: transparent !important;
    color: #e8f1ff !important;
}

.slot-top-cats.kz-home__cats .slot-top-cat.active .kz-home__cat-icon,
.slot-top-cats.kz-home__cats .slot-top-cat.is-active .kz-home__cat-icon {
    box-shadow: 0 4px 12px rgba(77, 163, 224, 0.25);
    transform: translateY(-1px) scale(1.04);
}

/* Body: sidebar + main — one linked surface */
.slot-lobby-v2__body {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 180px);
    background: #0b142b;
}

/* Provider sidebar */
.slot-sidebar {
    flex: 0 0 92px;
    width: 92px;
    background: transparent;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
}

.slot-sidebar__search {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #4da3e0;
    cursor: pointer;
}

.slot-sidebar__search i {
    font-size: 18px;
}

.slot-sidebar__search-input {
    display: none;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.slot-sidebar__search-input.open {
    display: block;
}

.slot-sidebar__search-input input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    font-size: 11px;
    outline: none;
    background: #0a1428;
    color: #e8f1ff;
}

.slot-sidebar__list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0 12px;
    list-style: none;
    margin: 0;
}

.slot-sidebar__list::-webkit-scrollbar {
    width: 0;
}

.slot-provider {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 8px 4px;
    margin: 2px 2px;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    background: transparent;
}

.slot-provider.active {
    background: transparent;
    color: #4da3e0;
    box-shadow: none;
}

.slot-provider.active::after {
    display: none;
}

.slot-provider__logo {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    object-fit: contain;
    object-position: center center;
    border-radius: 10px;
    background: transparent;
    padding: 0;
    display: block;
    border: none;
    box-shadow: none;
    image-rendering: -webkit-optimize-contrast;
}

.slot-provider__name {
    display: none !important;
}

.slot-provider.active .slot-provider__logo {
    background: transparent;
    border-color: transparent;
}

.slot-provider.active .slot-provider__name {
    color: #4da3e0;
    font-weight: 500;
}

.slot-provider__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 500;
    color: #fff;
    background: #ef4444;
    line-height: 1.3;
}

/* Main content */
.slot-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.slot-main__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    box-sizing: border-box;
    padding: 0 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: var(--slot-surface);
}

.slot-tabs {
    display: flex;
    gap: 16px;
    align-items: center;
    height: 100%;
}

.slot-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: var(--slot-muted);
    cursor: pointer;
    letter-spacing: 0.3px;
}

.slot-tab.active {
    color: var(--slot-accent-visible);
}

.slot-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--slot-accent-visible);
    border-radius: 2px 2px 0 0;
}

.slot-tab__dot {
    position: absolute;
    top: 10px;
    right: -8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

.slot-tools {
    display: flex;
    gap: 12px;
    align-items: center;
    height: 100%;
    color: var(--slot-muted);
}

.slot-tools i {
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Game grid */
.slot-grid-wrap {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 6px 80px;
    box-sizing: border-box;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 6px;
    width: 100%;
    box-sizing: border-box;
}

.slot-game {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.slot-game__thumb {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #1a2540;
    box-shadow: none;
    flex-shrink: 0;
}

.slot-game__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.slot-game__name {
    flex: 1;
    min-height: 28px;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--slot-text);
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    padding: 0 1px;
}

.slot-grid-loading,
.slot-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 16px;
    color: var(--slot-muted);
    font-size: 13px;
}

.slot-grid-loading i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--slot-accent-visible);
}

/* Provider cards on INDEX view */
.slot-provider-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    cursor: pointer;
    text-align: center;
}

.slot-provider-card__img {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #1a2540;
    box-shadow: none;
}

.slot-provider-card__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    object-position: center center;
    padding: 8px;
    box-sizing: border-box;
}

.slot-provider-card__label {
    min-height: 28px;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 500;
    color: var(--slot-text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
    word-break: break-word;
}

/* Hide legacy slot lobby chrome when v2 active */
.slot-lobby-v2 .search[_ngcontent-serverapp-c172],
.slot-lobby-v2 .game-lobby-content.flex {
    display: none !important;
}

.slot-lobby-v2 app-game-lobby .wrapper > .list,
.slot-lobby-v2 .wrapper[_ngcontent-serverApp-c168] .swiper.list {
    display: none !important;
}

.slot-lobby-v2 .wrapper[_ngcontent-serverApp-c168] {
    padding-top: 0 !important;
}

/* Reset legacy game-item styles inside v2 grid */
.slot-lobby-v2 .section-game-content.slot-grid {
    display: grid !important;
}

.slot-lobby-v2 .section-game-content .slot-game,
.slot-lobby-v2 .section-game-content .slot-provider-card {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    vertical-align: unset !important;
}

.slot-lobby-v2 .section-game-content img {
    border-radius: 0;
}

.slot-lobby-v2 .slot-main__toolbar {
    height: 44px;
    padding: 0 10px;
    gap: 8px;
    flex-wrap: nowrap;
    overflow: hidden;
    align-items: center;
}

.slot-lobby-v2 .slot-tabs {
    gap: 14px;
    flex-shrink: 0;
    height: 100%;
    align-items: center;
}

.slot-lobby-v2 .slot-tools {
    gap: 10px;
    flex-shrink: 0;
    height: 100%;
    align-items: center;
}

/* Sidebar active: no blue fill (override global lobby styles) */
.slot-lobby-v2 .slot-sidebar .slot-provider.active {
    background: transparent !important;
    color: var(--slot-text) !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.slot-lobby-v2 .slot-sidebar .slot-provider.active::after {
    display: none !important;
}

.slot-lobby-v2 .slot-sidebar .slot-provider.active .slot-provider__name {
    color: var(--slot-text) !important;
}
