/* ═══ RAJA888-STYLE LOBBY ═══ */

/* ─── Promo carousel ─── */
.raja-promo {
    position: relative;
    overflow: hidden;
    background: #000;
    user-select: none;
}
.raja-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.raja-slide {
    flex: 0 0 100%;
    min-height: 240px;
    max-height: 340px;
    position: relative;
    background: linear-gradient(120deg, #1a0a00 0%, #0a0a0a 60%);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.raja-slide-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.7;
}
.raja-slide-content {
    position: relative;
    z-index: 2;
    padding: 24px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    width: 100%;
}
.raja-slide-content h2 {
    font-size: clamp(1.1rem, 4vw, 1.7rem);
    font-weight: 900;
    color: var(--brand);
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    margin-bottom: 6px;
    line-height: 1.2;
    text-transform: uppercase;
}
.raja-slide-content p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 14px;
}
.raja-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px; height: 36px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #fff;
    transition: background 0.2s;
}
.raja-arrow:hover { background: rgba(245,197,24,0.8); color: #000; }
.raja-arrow.prev { left: 10px; }
.raja-arrow.next { right: 10px; }
.raja-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.raja-dot {
    width: 6px; height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s;
    cursor: pointer;
}
.raja-dot.active { background: var(--brand); width: 18px; }

/* ─── Online counter ─── */
.raja-online {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    font-weight: 700;
}
.raja-online .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 8px var(--live);
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}
.raja-online-count { color: var(--brand); font-size: 1rem; font-weight: 900; }
.raja-online-label { color: var(--text-secondary); font-weight: 500; font-size: 0.85rem; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.5} }

/* ─── Category tiles ─── */
.raja-tiles-wrap {
    overflow-x: auto;
    padding: 14px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.raja-tiles-wrap::-webkit-scrollbar { display: none; }
.raja-tiles {
    display: flex;
    gap: 10px;
    min-width: max-content;
}
.raja-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    min-width: 90px;
    border-radius: 14px;
    background: var(--bg-panel);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.raja-tile .tile-icon {
    font-size: 1.8rem;
    line-height: 1;
}
.raja-tile .tile-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.raja-tile:hover, .raja-tile.active {
    border-color: var(--brand);
    background: rgba(245,197,24,0.1);
}
.raja-tile.active .tile-label { color: var(--brand); }
.raja-tile.new-tile { border-color: rgba(233,30,99,0.5); }
.raja-tile.new-tile .tile-label { color: var(--danger); }
.raja-tile.new-tile.active { border-color: var(--danger); background: rgba(233,30,99,0.1); }

/* ─── Filter toolbar ─── */
.raja-toolbar {
    padding: 0 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.raja-selects {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.raja-select-wrap {
    position: relative;
    flex: 1;
    min-width: 100px;
}
.raja-select {
    appearance: none;
    width: 100%;
    padding: 9px 32px 9px 12px;
    background: var(--bg-panel);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}
.raja-select:focus, .raja-select:hover { border-color: var(--brand); }
.raja-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.7rem;
}
.raja-search-wrap {
    position: relative;
}
.raja-search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    opacity: 0.5;
    color: var(--text-muted);
}
.raja-search {
    width: 100%;
    padding: 10px 14px 10px 36px;
    background: var(--bg-panel);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.88rem;
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
}
.raja-search:focus { border-color: var(--brand); }
.raja-search::placeholder { color: var(--text-muted); }

/* ─── Section headers ─── */
.raja-section {
    padding: 0 16px 16px;
}
.raja-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.raja-section-head h2 {
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.raja-section-head h2 .r-icon {
    color: var(--brand);
    font-size: 1.1rem;
}
.raja-section-more {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--brand);
    font-weight: 700;
}

/* ─── Horizontal scroll row ─── */
.raja-hscroll-wrap {
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.raja-hscroll-wrap::-webkit-scrollbar { display: none; }
.raja-hscroll {
    display: flex;
    gap: 10px;
    min-width: max-content;
}
.raja-hscroll .game-card {
    flex: 0 0 140px;
    width: 140px;
    aspect-ratio: 3/4;
}

/* ─── Main game grid ─── */
.raja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
@media (max-width: 480px) {
    .raja-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .raja-hscroll .game-card { flex: 0 0 120px; width: 120px; }
}

/* ─── Recent wins sidebar ─── */
.raja-wins-section {
    padding: 0 16px 24px;
}
.raja-wins-section .raja-section-head { margin-bottom: 10px; }
.raja-win-list { display: flex; flex-direction: column; gap: 6px; }
.raja-win-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.82rem;
}
.raja-win-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.raja-win-info { flex: 1; min-width: 0; }
.raja-win-user { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.raja-win-game { font-size: 0.73rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.raja-win-amount { font-weight: 900; color: var(--live); white-space: nowrap; flex-shrink: 0; }

/* ─── No results ─── */
.raja-no-results {
    grid-column: 1/-1;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
