/* ============================================================
   WBET sidebar / menu look (cloned from nexusrivo.wo3yulsti.com)
   Fixes: opaque rb-surface-active pills -> WBET subtle rows
   with a green-gradient active row and gold icon highlight.
   Loaded last so it wins.
   ============================================================ */

/* ---- Inactive rows: faint translucent surface, no shadow ---- */
.rb-sidebar .rb-nav-row {
    background-image: none !important;
    background-color: color-mix(in srgb, var(--rb-text) 3.5%, transparent) !important;
    box-shadow: none !important;
    height: 36px;
    min-height: 36px;
    position: relative;
}
.rb-sidebar .rb-nav-row:hover {
    background-color: color-mix(in srgb, var(--rb-text) 7%, transparent) !important;
    background-image: none !important;
    color: var(--rb-text);
}

/* ---- Active row: green gradient tint (WBET) ---- */
.rb-sidebar .rb-nav-row.text-white\/86,
.rb-sidebar .rb-nav-row.rb-nav-row--active,
.rb-nav-row.rb-nav-row--active {
    background-color: transparent !important;
    background-image: linear-gradient(90deg,
        color-mix(in srgb, var(--rb-gold) 14%, transparent) 0%,
        color-mix(in srgb, var(--rb-gold) 4%, transparent) 100%) !important;
    box-shadow: none !important;
    color: var(--rb-text);
}

/* Left glow on the active row (WBET span: bg --rb-glow-left).
   Painted under the label via z-index 0; the row clips it (overflow-hidden). */
.rb-sidebar .rb-nav-row.text-white\/86::before,
.rb-sidebar .rb-nav-row.rb-nav-row--active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 96px;
    border-radius: 0 999px 999px 0;
    filter: blur(16px);
    background-image: var(--rb-glow-left);
    pointer-events: none;
    z-index: 0;
}

/* Subtle gold border sheen on active row (WBET :after) */
.rb-sidebar .rb-nav-row.text-white\/86::after,
.rb-sidebar .rb-nav-row.rb-nav-row--active::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    padding: 1px;
    background: linear-gradient(#0000 22%,
        color-mix(in srgb, var(--rb-gold) 18%, transparent) 62%,
        color-mix(in srgb, var(--rb-gold) 40%, transparent) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

/* ---- Icon tile + icon accent turn gold on hover/active ---- */
.rb-nav-row:hover .rb-nav-tile,
.rb-nav-row.text-white\/86 .rb-nav-tile,
.rb-nav-row.rb-nav-row--active .rb-nav-tile {
    background: color-mix(in srgb, var(--rb-gold) 18%, transparent) !important;
    color: var(--rb-gold);
}
.rb-nav-row:hover [aria-hidden="true"],
.rb-nav-row.text-white\/86 [aria-hidden="true"],
.rb-nav-row.rb-nav-row--active [aria-hidden="true"] {
    color: var(--rb-gold);
}

/* ---- Flat rows (bottom links: VIP, Início, Afiliados, Suporte) ---- */
.rb-sidebar .rb-nav-row--flat {
    background-color: transparent !important;
}
.rb-sidebar .rb-nav-row--flat:hover {
    background-color: color-mix(in srgb, var(--rb-text) 7%, transparent) !important;
}

/* ---- Subitems (Lobby, Jogos Populares, ...) ---- */
.rb-nav-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--rb-text-soft);
    transition: background-color 0.15s ease, color 0.15s ease;
}
.rb-nav-subitem:hover {
    background-color: color-mix(in srgb, var(--rb-text) 6%, transparent);
    color: var(--rb-text);
}
.rb-nav-subitem:hover .rb-nav-tile {
    background: color-mix(in srgb, var(--rb-gold) 18%, transparent);
    color: var(--rb-gold);
}
.rb-nav-subitem .rb-nav-tile {
    width: 26px;
    height: 26px;
}

/* ---- Top lobby pills: WBET 20px leading icon ---- */
.rb-nav-pill-item > svg {
    width: 20px;
    height: 20px;
}

/* ---- Top segmented pills (Cassino / Esportes) ---- */
.rb-sidebar .rb-nav-segment {
    background: color-mix(in srgb, var(--rb-text) 3.5%, transparent);
}
.rb-sidebar .rb-nav-segment:hover {
    background: color-mix(in srgb, var(--rb-text) 11%, transparent);
}

/* ---- Nav row / tile icons: force 18px (WBET). SVGs use width="1em"
   and otherwise resolve against the inherited 15px font-size. Flat
   footer rows keep their native 15px icon. ---- */
.rb-sidebar .rb-nav-row:not(.rb-nav-row--flat) [aria-hidden="true"] > svg,
.rb-sidebar .rb-nav-row:not(.rb-nav-row--flat) .rb-nav-tile > svg {
    width: 18px;
    height: 18px;
}

/* ---- Footer segments: rounded outer corners (WBET) ---- */
.rb-sidebar .rb-nav-segment:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.rb-sidebar .rb-nav-segment:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* ---- Sidebar labels: WBET weight 600 ---- */
.rb-sidebar .rb-nav-row .type-small,
.rb-sidebar .rb-nav-pill-item .type-small {
    font-weight: 600;
}

/* ---- Top lobby pills: match WBET /markets (flat, 13.5px/600) ---- */
.rb-sidebar .rb-nav-pill-item {
    background-image: none;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.52);
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: none;
}
.rb-sidebar .rb-nav-pill-item:hover {
    color: rgba(255, 255, 255, 0.82);
}
.rb-sidebar .rb-nav-pill-item.rb-surface-active {
    background-image: linear-gradient(180deg, #2C2852 0%, #2C2852 100%);
    color: #fff;
}
.rb-sidebar .rb-nav-pill-item .type-small {
    font-size: 13.5px;
    font-weight: 600;
}
.rb-sidebar .rb-nav-pill-item > svg {
    color: currentColor;
}

/* ---- Pills container: solid WBET surface ---- */
.rb-sidebar section > .rb-surface-sunken {
    background-image: none;
    background-color: #0E1124;
}

/* ---- Footer panel: WBET /markets subtle surface ---- */
.rb-sidebar .rb-nav-panel {
    background-image: none;
    background-color: rgba(255, 255, 255, 0.035);
    border-radius: 12px;
}

/* ---- Footer flat rows: 26px rounded tile like WBET ---- */
.rb-sidebar .rb-nav-row--flat .rb-nav-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(160, 160, 160, 0.55);
}
.rb-sidebar .rb-nav-row--flat .rb-nav-tile > span > svg,
.rb-sidebar .rb-nav-row--flat .rb-nav-tile > svg {
    width: 15px;
    height: 15px;
}
.rb-sidebar .rb-nav-row--flat:hover .rb-nav-tile {
    background: color-mix(in srgb, var(--rb-gold) 18%, transparent);
    color: var(--rb-gold);
}
