:root,
body.dark-mode {
    --primary: #e3141b;
    --white: #ffffff;
    --black: #0b0b0d;
    --bgLight: #0b0b0d;
    --bgDark: #121216;
    --bgDark2: #1a1a20;
    --borderColor: #2a2a31;
    --gray: #a7a9b4;
    --shadow: 0 8px 24px rgba(0, 0, 0, .45);
    --rb-red: #e3141b;
    --rb-red2: #8f0a0f;
    --rb-silver: linear-gradient(145deg, #2b2c33 0%, #17181d 45%, #24252c 100%);
    --rb-silver-edge: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.04));
}

html, body {
    background: #050506 !important;
    color: #f2f2f4;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
}

body.rb .navbar.fixed-top,
.skitter-large-box { display: none !important; }

.rb-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(5, 5, 6, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(227, 20, 27, .35);
}
.rb-header .rb-brand img { max-height: 40px; width: auto; display: block; }
.rb-header .rb-header-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rb-header .rb-balance { width: auto !important; max-width: none !important; min-width: 118px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 7px 14px; border-radius: 12px; background: var(--rb-silver); border: 1px solid #34353d; }
.rb-header .rb-balance-label { white-space: nowrap; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #b9bac3; }
.rb-header .rb-balance-value { white-space: nowrap; font-size: clamp(16px, 4.4vw, 21px); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; color: #fff; }
.rb-header .rb-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(145deg, var(--rb-red), var(--rb-red2)); color: #fff; font-weight: 800; text-decoration: none; }
.rb-header .rb-btn-sports { white-space: nowrap; }
.rb-burger { background: transparent; border: 0; padding: 6px; cursor: pointer; }
.rb-burger svg { width: 26px; height: 26px; fill: #fff; }

.rb-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none !important; cursor: pointer; border: 0; }
.rb-btn-red { background: linear-gradient(145deg, var(--rb-red), var(--rb-red2)); color: #fff !important; box-shadow: 0 6px 18px rgba(227, 20, 27, .35); }
.rb-btn-ghost { background: transparent; color: #fff !important; border: 1px solid #3a3b44; }

.rb-side {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    overflow-y: auto;
    z-index: 1050;
    background: #0b0b0d;
    border-right: 1px solid #25262d;
    padding: 18px 14px;
    transform: translateX(-105%);
    transition: transform .25s ease;
}
.rb-side.rb-open { transform: translateX(0); }
.rb-side-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 1040; display: none; }
.rb-side-backdrop.rb-open { display: block; }
.rb-side-block { margin-bottom: 18px; }
.rb-side-title { margin: 0 0 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #8d8f99; }
.rb-side-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #e9e9ee !important; text-decoration: none !important; font-weight: 600; }
.rb-side-link img { width: 26px; height: 26px; object-fit: contain; }
.rb-side-link:hover, .rb-side-link.active { background: var(--rb-silver); box-shadow: inset 0 0 0 1px #34353d; }

.rb-hero {
    position: relative;
    margin: 12px;
    padding: 26px 22px;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(120% 140% at 100% 0%, rgba(227, 20, 27, .55) 0%, rgba(227, 20, 27, 0) 55%), var(--rb-silver);
    border: 1px solid #34353d;
    box-shadow: var(--shadow);
}
.rb-hero h2 { margin: 0 0 6px; font-size: clamp(24px, 6vw, 38px); font-weight: 900; letter-spacing: -.02em; color: #fff; }
.rb-hero p { margin: 0 0 16px; color: #c9cad2; max-width: 520px; }
.rb-hero img { position: absolute; right: -10px; bottom: -14px; width: clamp(110px, 30vw, 200px); opacity: .95; pointer-events: none; }

.wrapper, .content, .leftbar, .rightbar { background: transparent !important; }
.leftbar, .rightbar { background: #0b0b0d !important; border-color: #1f2026 !important; }
.btn-custom { background: linear-gradient(145deg, var(--rb-red), var(--rb-red2)) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important; }
.btn-custom.light { background: var(--rb-silver) !important; color: #e9e9ee !important; box-shadow: inset 0 0 0 1px #34353d; }
.card, .modal-content, .dropdown-menu, .table, .form-control, .form-select { background: var(--rb-silver) !important; color: #f2f2f4 !important; border-color: #34353d !important; }
a { color: #ff4b51; }
.text-dark { color: #e9e9ee !important; }

.bottom-bar { background: rgba(5, 5, 6, .96) !important; border-top: 1px solid rgba(227, 20, 27, .35) !important; }
.bottom-bar a { color: #e9e9ee !important; }

.banner-section { padding: 110px 0 40px !important; background: radial-gradient(120% 140% at 100% 0%, rgba(227, 20, 27, .45) 0%, rgba(227, 20, 27, 0) 55%), #0b0b0d !important; }

.rb-footer { margin-top: 30px; padding: 26px 16px 90px; text-align: center; color: #8d8f99; border-top: 1px solid #1f2026; background: #050506; }
.rb-footer img { height: 34px; width: auto; margin-bottom: 10px; }
.rb-footer a { color: #c9cad2; margin: 0 8px; text-decoration: none; }

@media (max-width: 480px) {
    .rb-header .rb-brand img { max-width: 118px; height: auto; }
    .rb-header .rb-btn-red { padding-left: 12px; padding-right: 12px; font-size: 14px; }
    .rb-header .rb-balance { min-width: 104px; padding: 6px 11px; }
    .rb-header .rb-btn-sports { display: none; }
}
@media (max-width: 380px) {
    .rb-header .rb-brand img { max-width: 92px; }
    .rb-header .rb-balance-value { font-size: 15px; }
}
