/* ============================================================
   BetFury Theme  –  v2.0 Premium
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bf-bg-body: #0d1117;
    --bf-bg-sidebar: #111923;
    --bf-bg-header: #111923;
    --bf-bg-card: #1c2330;
    --bf-bg-card-hover: #212940;
    --bf-primary: linear-gradient(1turn, #c4003b .8%, #fb1949);
    --bf-primary-hover: #3b73f5;
    --bf-secondary: #ff3b30;
    --bf-success: #1dd46b;
    --bf-warning: #ffb800;
    --bf-text-main: #e6edf3;
    --bf-text-muted: #a7b5ca;
    --bf-text-dim: #484f58;
    --bf-border: #30363d8f;
    --bf-radius: 10px;
    --bf-radius-sm: 7px;
    --bf-radius-lg: 16px;
    --bf-sidebar-width: 240px;
    --bf-header-height: 64px;
    --bf-overlay: rgba(0, 0, 0, 0.7);
    --bf-transition: 0.2s ease;
    --bf-font: 'Montserrat', Arial, 'Segoe UI', Helvetica, sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: var(--bf-bg-body);
    color: var(--bf-text-main);
    font-family: var(--bf-font);
    margin: 0;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: var(--bf-text-main);
    text-decoration: none;
    transition: color var(--bf-transition);
}

a:hover {
    color: var(--bf-primary);
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bf-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bf-text-muted);
}

/* ── App wrapper ────────────────────────────────────────────── */
#bf-app-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ================================================================
   SIDEBAR
================================================================ */
#bf-sidebar {
    width: var(--bf-sidebar-width);
    flex-shrink: 0;
    height: 100vh;
    background: var(--bf-bg-sidebar);
    /* border-right: 1px solid var(--bf-border); */
    display: flex;
    flex-direction: column;
    transition: transform var(--bf-transition);
    z-index: 1050;
    overflow: hidden;
}

/* Brand / Logo */
.bf-sidebar-brand {
    height: var(--bf-header-height);
    display: flex;
    align-items: center;
    padding: 0 16px;
    /* border-bottom: 1px solid var(--bf-border); */
    gap: 10px;
    flex-shrink: 0;
}

.bf-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--bf-text-main);
    letter-spacing: -0.2px;
    white-space: nowrap;
}

/* Nav scroll area */
.bf-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 8px;
}

/* Section Labels */
.bf-nav-section-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--bf-text-dim);
    letter-spacing: 0.9px;
    padding: 10px 12px 4px;
    text-transform: uppercase;
}

/* Nav Item */
.bf-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: var(--bf-radius-sm);
    color: var(--bf-text-muted);
    font-weight: 500;
    font-size: 15.5px;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--bf-transition), color var(--bf-transition);
    margin-bottom: 2px;
    position: relative;
}

.bf-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--bf-text-main);
}

.bf-nav-item.active {
    background: rgba(18, 85, 232, 0.12);
    color: var(--bf-primary);
    font-weight: 600;
}

.bf-nav-item.active .bf-nav-icon {
    color: var(--bf-primary);
}

/* Nav Icon */
.bf-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
    color: inherit;
}

.bf-nav-label {
    flex: 1;
    white-space: nowrap;
}

/* Nav Separator */
.bf-nav-separator {
    height: 1px;
    background: var(--bf-border);
    margin: 10px 4px;
}

/* Nav Badge (amount) */
.bf-nav-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(18, 85, 232, 0.2);
    color: var(--bf-primary);
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Nav Badge NEW */
.bf-nav-badge-new {
    font-size: 9px;
    font-weight: 700;
    background: var(--bf-secondary);
    color: #fff;
    padding: 2px 6px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Sidebar Footer */
.bf-sidebar-foot {
    border-top: 1px solid var(--bf-border);
    padding: 12px;
    flex-shrink: 0;
}

.bf-foot-balance-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--bf-radius-sm);
    border: 1px solid var(--bf-border);
    transition: background var(--bf-transition);
    color: var(--bf-text-main);
}

.bf-foot-balance-row:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--bf-text-main);
}

.bf-foot-coin-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.bf-foot-balance-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bf-foot-balance-label {
    font-size: 10px;
    color: var(--bf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bf-foot-balance-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--bf-text-main);
}

.bf-foot-balance-arrow {
    color: var(--bf-text-dim);
    font-size: 12px;
}

.bf-foot-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    background: var(--bf-primary);
    color: #fff;
    border-radius: var(--bf-radius-sm);
    font-weight: 600;
    font-size: 13px;
    transition: background var(--bf-transition);
    width: 100%;
}

.bf-foot-login-btn:hover {
    background: var(--bf-primary-hover);
    color: #fff;
}


/* ================================================================
   HEADER
================================================================ */
#bf-header {
    height: var(--bf-header-height);
    background: var(--bf-bg-header);
    border-bottom: 1px solid var(--bf-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 16px;
    flex-shrink: 0;
    gap: 12px;
    z-index: 1040;
    position: sticky;
    top: 0;
}

.bf-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.bf-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Sidebar Toggle Button */
.bf-sidebar-toggle {
    background: none;
    border: none;
    color: var(--bf-text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--bf-radius-sm);
    display: none;
    /* desktop: sidebar is fixed, no toggle needed */
    transition: color var(--bf-transition), background var(--bf-transition);
    flex-shrink: 0;
}

.bf-sidebar-toggle:hover {
    color: var(--bf-text-main);
    background: rgba(255, 255, 255, 0.06);
}

/* Balance Pill */
.bf-balance-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--bf-border);
    border-radius: 20px;
    padding: 5px 12px 5px 8px;
    cursor: pointer;
    user-select: none;
    transition: background var(--bf-transition);
    white-space: nowrap;
}

.bf-balance-pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bf-balance-coin {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.bf-balance-amount {
    font-weight: 700;
    font-size: 14px;
    color: var(--bf-text-main);
}

.bf-balance-chevron {
    font-size: 10px;
    color: var(--bf-text-muted);
    margin-left: 2px;
}

/* Balance Dropdown */
.bf-balance-dropdown-menu {
    background: var(--bf-bg-card);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    min-width: 200px;
    padding: 4px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.bf-balance-dropdown-menu .dropdown-item {
    color: var(--bf-text-main);
    font-size: 13px;
    padding: 8px 16px;
    gap: 8px;
}

.bf-balance-dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--bf-text-main);
}

/* Deposit / Withdraw CTA */
.bf-btn-deposit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bf-success);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background var(--bf-transition), transform 0.1s;
    white-space: nowrap;
    text-decoration: none;
    background: linear-gradient(1turn, #c4003b .8%, #fb1949);
    box-shadow: 0 3px 16px #ff234180, inset 0 4px 3px #ffffff4d;
}

.bf-btn-deposit:hover {
    background: #fb1949;
    color: #fff;
    transform: translateY(-1px);
}

/* Outline Login Button (guest) */
.bf-btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--bf-border);
    border-radius: 8px;
    color: var(--bf-text-main);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: border-color var(--bf-transition), color var(--bf-transition);
    text-decoration: none;
    background-color: #ffffff1f;
    border-color: transparent;
    color: #ffffffd6;
}

.bf-btn-outline:hover {
    border-color: var(--bf-text-muted);
    color: var(--bf-text-main);
}

/* Icon Buttons (Notifications, Chat …) */
.bf-header-icon-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bf-border);
    border-radius: 50%;
    color: var(--bf-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: background var(--bf-transition), color var(--bf-transition);
    flex-shrink: 0;
}

.bf-header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bf-text-main);
}

/* Profile Avatar Button */
.bf-profile-avatar-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bf-border);
    background: var(--bf-bg-card);
    padding: 0;
    cursor: pointer;
    transition: border-color var(--bf-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bf-profile-avatar-btn:hover {
    border-color: var(--bf-primary);
}

.bf-profile-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Dropdown */
.bf-profile-dropdown {
    background: var(--bf-bg-card);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    min-width: 200px;
    padding: 4px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.bf-profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.bf-profile-dropdown-header img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--bf-border);
}

.bf-profile-dropdown .dropdown-item {
    color: var(--bf-text-muted);
    font-size: 13px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background var(--bf-transition), color var(--bf-transition);
}

.bf-profile-dropdown .dropdown-item i {
    width: 16px;
    text-align: center;
}

.bf-profile-dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--bf-text-main);
}

.bf-profile-dropdown .dropdown-item.text-danger {
    color: #ff4d4d !important;
}

.bf-profile-dropdown .dropdown-item.text-danger:hover {
    background: rgba(255, 77, 77, 0.07);
}

/* Mobile logo */
.bf-mobile-logo span {
    font-size: 14px;
    font-weight: 700;
}

/* ================================================================
   CONTENT AREA
================================================================ */
#bf-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

#bf-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0px 0 0;
}

/* ================================================================
   MOBILE OVERLAY
================================================================ */
.bf-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bf-overlay);
    z-index: 1045;
    backdrop-filter: blur(2px);
}

.bf-overlay.show {
    display: block;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 991.98px) {
    #bf-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }

    #bf-sidebar.show {
        transform: translateX(0);
    }

    .bf-sidebar-toggle {
        display: flex !important;
    }

    #bf-main-content {
        padding: 16px;
    }
}

/* ================================================================
   BOOTSTRAP OVERRIDES (Global Dark Theme)
================================================================ */
.card {
    background: var(--bf-bg-card);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    color: var(--bf-text-main);
    box-shadow: 0px 0px 16px 0px #4950573d;
}

.card-header,
.card-footer {
    background: rgba(0, 0, 0, 0.15);
    border-color: var(--bf-border);
    color: var(--bf-text-main);
}

.modal-content {
    background: var(--bf-bg-card) !important;
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    color: var(--bf-text-main);
}

.modal-header {
    border-color: var(--bf-border);
}

.modal-footer {
    border-color: var(--bf-border);
}

.btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

/* ── Tables (global dark theme) ──────────────────────────── */
.table {
    color: var(--bf-text-main);
    --bs-table-bg: transparent;
    --bs-table-color: var(--bf-text-main);
    --bs-table-border-color: var(--bf-border);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
    border-color: var(--bf-border);
    margin-bottom: 0;
}

.table thead tr,
.table thead th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--bf-text-dim) !important;
    border-color: var(--bf-border) !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 16px;
}

.table tbody tr {
    background: transparent;
    border-color: var(--bf-border);
    transition: background 0.15s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.table td,
.table th {
    border-color: var(--bf-border);
    vertical-align: middle;
    color: var(--bf-text-main);
    padding: 12px 16px;
    background: transparent;
}

/* Fix Bootstrap's --bs-table-bg bleed on th/td */
.table> :not(caption)>*>* {
    background-color: transparent;
    box-shadow: none;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    background: rgba(255, 255, 255, 0.025) !important;
    color: var(--bf-text-main);
}

.table-bordered> :not(caption)>*>* {
    border-color: var(--bf-border);
}

.table-hover>tbody>tr:hover>* {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--bf-text-main);
}

.form-control,
.form-select {
    background: var(--bf-bg-body);
    border: 1px solid var(--bf-border);
    color: var(--bf-text-main);
    border-radius: var(--bf-radius-sm);
}

.form-control:focus,
.form-select:focus {
    background: var(--bf-bg-card);
    border-color: var(--bf-primary);
    color: var(--bf-text-main);
    box-shadow: 0 0 0 3px rgba(18, 85, 232, 0.2);
}

.form-control::placeholder {
    color: var(--bf-text-dim);
}

textarea.form-control {
    color: var(--bf-text-main);
}

.input-group-text {
    background: var(--bf-bg-header);
    border-color: var(--bf-border);
    color: var(--bf-text-muted);
}

.text-muted {
    color: var(--bf-text-muted) !important;
}

.border {
    border-color: var(--bf-border) !important;
}

.btn-primary {
    background: var(--bf-primary);
    border-color: var(--bf-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--bf-primary-hover);
    border-color: var(--bf-primary-hover);
}

.btn-success {
    background: var(--bf-success);
    border-color: var(--bf-success);
    color: #fff;
}

.btn-custom,
body a.btn-custom {
    /* background: var(--bf-bg-card) !important; */
    border: 1px solid var(--bf-border) !important;
    color: var(--bf-text-main) !important;
    border-radius: var(--bf-radius-sm) !important;
    transition: background var(--bf-transition);
    background: linear-gradient(1turn, #c4003b .8%, #fb1949);
    box-shadow: 0 3px 16px #ff234180, inset 0 4px 3px #ffffff4d;
}

.btn-custom:hover,
body a.btn-custom:hover {
    /* background: var(--bf-bg-card-hover) !important; */
    color: var(--bf-text-main) !important;
}

.dropdown-menu {
    background: var(--bf-bg-card);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-sm);
}

.dropdown-item {
    color: var(--bf-text-muted);
    font-size: 13px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--bf-text-main);
}

.dropdown-divider {
    border-color: var(--bf-border);
}

.dropdown-item.active,
.dropdown-item:active {
    background: rgba(18, 85, 232, 0.15);
    color: var(--bf-primary);
}

.accordion-item {
    background: var(--bf-bg-card);
    border-color: var(--bf-border);
    color: var(--bf-text-main);
}

.accordion-button {
    background: var(--bf-bg-card);
    color: var(--bf-text-main);
}

.accordion-button:not(.collapsed) {
    background: rgba(18, 85, 232, 0.08);
    color: var(--bf-primary);
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background: transparent;
    color: var(--bf-text-muted);
}

.alert-info {
    background: rgba(18, 85, 232, 0.1);
    border-color: rgba(18, 85, 232, 0.3);
    color: var(--bf-text-main);
}

/* Offers / Carousels */
.main-cards,
.featured-cards,
.partners-offers-cards {
    background: var(--bf-bg-card) !important;
    border: 1px solid var(--bf-border) !important;
    border-radius: var(--bf-radius);
    box-shadow: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main-cards:hover,
.featured-cards:hover,
.partners-offers-cards:hover {
    transform: translateY(-3px);
    background: var(--bf-bg-card-hover) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

.main-title,
.featured-title {
    color: var(--bf-text-main) !important;
    font-weight: 600;
}

.network-title,
.featured-text {
    color: var(--bf-text-muted) !important;
    font-size: 12px;
}

.section-heading {
    color: var(--bf-text-main);
    font-weight: 700;
    font-size: 1.15rem;
}

/* Sidebar Sidebar-toggle on desktop (close btn inside sidebar on mobile) */
#bf-sidebar-close {
    margin-right: auto;
}

/* Owl Carousel Arrows */
.owl-prev,
.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6) !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
}

.owl-prev {
    left: -0.5rem !important;
}

.owl-next {
    right: -0.5rem !important;
}

.owl-prev span,
.owl-next span {
    font-size: 36px !important;
    line-height: 0.5 !important;
    color: #fff !important;
    opacity: 1 !important;
}

/* ================================================================
   FOOTER
================================================================ */
#bf-footer {
    background: var(--bf-bg-sidebar);
    border-top: 1px solid var(--bf-border);
    font-size: 13px;
    color: var(--bf-text-muted);
}

/* ── Partners Strip ────────────────────────────────────────── */
.bf-footer-partners {
    border-bottom: 1px solid var(--bf-border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.bf-partners-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--bf-text-dim);
    white-space: nowrap;
    flex-shrink: 0;
}

.bf-partners-carousel {
    flex: 1;
    min-width: 0;
}

.bf-partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.bf-partner-item img {
    height: 22px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(0.6);
    transition: filter 0.2s ease;
}

.bf-partner-item img:hover {
    filter: brightness(0) invert(1);
}

/* ── Main Grid ─────────────────────────────────────────────── */
.bf-footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 36px 32px;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .bf-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .bf-footer-main {
        grid-template-columns: 1fr;
        padding: 24px 20px;
        gap: 20px;
    }
}

/* Brand Column */
.bf-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--bf-text-main);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.bf-footer-logo img {
    height: 28px;
    width: auto;
}

.bf-footer-logo:hover {
    color: var(--bf-text-main);
}

.bf-footer-tagline {
    color: var(--bf-text-muted);
    line-height: 1.65;
    font-size: 12.5px;
    margin-bottom: 16px;
    max-width: 300px;
}

.bf-footer-copy {
    font-size: 11.5px;
    color: var(--bf-text-dim);
    margin: 0;
}

/* Link Columns */
.bf-footer-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--bf-text-dim);
    margin-bottom: 14px;
}

.bf-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bf-footer-list a {
    color: var(--bf-text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.bf-footer-list a i {
    width: 14px;
    text-align: center;
    font-size: 12px;
}

.bf-footer-list a:hover {
    color: var(--bf-text-main);
}

/* Language selector */
.bf-footer-lang-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bf-border);
    color: var(--bf-text-muted);
    font-size: 12px;
    border-radius: var(--bf-radius-sm);
    padding: 5px 10px;
    cursor: pointer;
}

.bf-footer-lang-select:focus {
    border-color: var(--bf-primary);
    box-shadow: none;
    color: var(--bf-text-main);
    background: rgba(255, 255, 255, 0.08);
}

/* ── Bottom Bar ────────────────────────────────────────────── */
.bf-footer-bottom {
    border-top: 1px solid var(--bf-border);
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--bf-text-dim);
}

.bf-footer-bottom-links {
    display: flex;
    gap: 20px;
}

.bf-footer-bottom-links a {
    color: var(--bf-text-dim);
    font-size: 12px;
    transition: color 0.2s ease;
}

.bf-footer-bottom-links a:hover {
    color: var(--bf-text-muted);
}

/* ================================================================
   AUTH PAGES
================================================================ */

/* ── Shared Wrapper ────────────────────────────────────────── */
.bf-auth-wrapper {
    display: flex;
    min-height: calc(100vh - var(--bf-header-height));
    min-height: 100%;
}

/* ── Left Branding Panel ───────────────────────────────────── */
.bf-auth-panel-left {
    width: 420px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #0d1117 0%, #111923 60%, #161b22 100%);
    border-right: 1px solid var(--bf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

/* subtle radial glow BG */
.bf-auth-panel-left::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(18, 85, 232, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.bf-auth-panel-left::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 0, 59, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.bf-auth-panel-left-inner {
    position: relative;
    z-index: 1;
}

.bf-auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    text-decoration: none;
    color: var(--bf-text-main);
    font-size: 18px;
    font-weight: 700;
}

.bf-auth-logo img {
    height: 32px;
    width: auto;
}

.bf-auth-headline {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bf-text-main);
    line-height: 1.2;
    margin-bottom: 16px;
}

.bf-auth-headline span {
    background: linear-gradient(135deg, #c4003b, #fb1949);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bf-auth-subline {
    color: var(--bf-text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.bf-auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bf-auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bf-text-muted);
    font-size: 14px;
}

.bf-auth-features li i {
    width: 32px;
    height: 32px;
    background: rgba(18, 85, 232, 0.12);
    color: var(--bf-primary, #1255e8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Right Form Panel ──────────────────────────────────────── */
.bf-auth-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* ── Centered Wrapper (for non-split pages) ─────────────────── */
.bf-auth-centered {
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.bf-auth-centered .bf-auth-form-box {
    max-width: 440px;
    width: 100%;
}

/* ── Form Box ──────────────────────────────────────────────── */
.bf-auth-form-box {
    width: 100%;
    max-width: 460px;
}

.bf-auth-mobile-logo {
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    text-decoration: none;
    color: var(--bf-text-main);
    font-size: 16px;
    font-weight: 700;
}

.bf-auth-mobile-logo img {
    height: 28px;
    width: auto;
}

.bf-auth-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(196, 0, 59, 0.1);
    color: #fb1949;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.bf-auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bf-text-main);
    margin-bottom: 6px;
}

.bf-auth-desc {
    color: var(--bf-text-muted);
    font-size: 13.5px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.bf-auth-time-note {
    font-size: 12px;
    color: var(--bf-text-dim);
    margin-bottom: 16px;
}

/* ── Alerts ────────────────────────────────────────────────── */
.bf-auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: var(--bf-radius-sm);
    font-size: 13px;
    margin-bottom: 18px;
}

.bf-auth-alert i {
    font-size: 15px;
    flex-shrink: 0;
}

.bf-auth-alert-success {
    background: rgba(29, 212, 107, 0.1);
    color: #1dd46b;
    border: 1px solid rgba(29, 212, 107, 0.2);
}

.bf-auth-alert-error {
    background: rgba(255, 49, 49, 0.09);
    color: #ff4d4d;
    border: 1px solid rgba(255, 49, 49, 0.2);
}

/* ── Form Elements ─────────────────────────────────────────── */
.bf-auth-form {
    width: 100%;
}

.bf-form-group {
    margin-bottom: 16px;
}

.bf-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .bf-form-row-2 {
        grid-template-columns: 1fr;
    }
}

.bf-form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--bf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}

.bf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bf-input-icon {
    position: absolute;
    left: 13px;
    color: var(--bf-text-dim);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.bf-form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-sm);
    color: var(--bf-text-main);
    font-size: 14px;
    padding: 11px 40px 11px 38px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.bf-form-input:focus {
    border-color: var(--bf-primary, #1255e8);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(18, 85, 232, 0.15);
}

.bf-form-input::placeholder {
    color: var(--bf-text-dim);
}

select.bf-form-input {
    padding-left: 38px;
    cursor: pointer;
}

.bf-input-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--bf-text-dim);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color 0.2s ease;
    z-index: 1;
}

.bf-input-toggle:hover {
    color: var(--bf-text-muted);
}

.bf-input-error {
    display: block;
    font-size: 11.5px;
    color: #ff4d4d;
    margin-top: 5px;
}

.bf-otp-input {
    letter-spacing: 6px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding-left: 38px;
}

/* ── Password Rules ────────────────────────────────────────── */
.bf-password-rules {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius-sm);
    padding: 10px 14px;
    margin-top: 8px;
}

.bf-password-rules p {
    font-size: 12px;
    color: var(--bf-text-dim);
    margin: 2px 0;
}

.bf-password-rules p.error.matched {
    color: var(--bf-success);
}

/* ── Misc Auth Elements ────────────────────────────────────── */
.bf-auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.bf-auth-link {
    color: #4d87f5;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bf-auth-link:hover {
    color: var(--bf-primary-hover, #3b73f5);
}

.bf-auth-switch {
    text-align: center;
    color: var(--bf-text-muted);
    font-size: 13px;
    margin-top: 20px;
}

.bf-auth-tos {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.bf-tos-checkbox {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #1255e8;
    cursor: pointer;
}

.bf-auth-tos label {
    font-size: 12.5px;
    color: var(--bf-text-muted);
    line-height: 1.6;
    cursor: pointer;
}

/* ── Submit Button ─────────────────────────────────────────── */
.bf-auth-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #c4003b 0%, #fb1949 100%);
    color: #fff;
    border: none;
    border-radius: var(--bf-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    box-shadow: 0 4px 20px rgba(255, 35, 65, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.bf-auth-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: #fff;
}

.bf-auth-submit-btn:active {
    transform: translateY(0);
}

/* ── Page wrapper ────────────────────────────────────────────── */
.of-page {
    padding: 0 0 40px;
}

/* ── Section shell ───────────────────────────────────────────── */
.of-section {
    padding: 20px 24px 12px;
}

.of-hero-section {
    padding-top: 10px;
}

.of-live-section {
    padding-top: 8px;
}

/* Section header */
.of-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.of-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--bf-text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.of-label-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bf-primary, #c4003b);
    flex-shrink: 0;
}

.of-label-dot-live {
    background: #1dd46b;
    box-shadow: 0 0 6px #1dd46b;
    animation: of-pulse 1.6s ease-in-out infinite;
}

@keyframes of-pulse {

    0%,
    100% {
        box-shadow: 0 0 4px #1dd46b;
    }

    50% {
        box-shadow: 0 0 10px #1dd46b;
    }
}

.of-live-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    background: rgba(29, 212, 107, 0.12);
    color: #1dd46b;
    border: 1px solid rgba(29, 212, 107, 0.25);
    border-radius: 20px;
    padding: 2px 7px;
}

/* Nav controls */
.of-section-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.of-view-all {
    font-size: 12px;
    font-weight: 700;
    color: var(--bf-text-muted);
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bf-border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.of-view-all:hover {
    color: var(--bf-text-main);
    background: rgba(255, 255, 255, 0.09);
}

.of-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--bf-border);
    color: var(--bf-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.of-nav-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--bf-text-main);
}

/* ── HERO cards ──────────────────────────────────────────────── */
.of-hero-card {
    display: block;
    text-decoration: none;
    background: var(--bf-bg-card);
    border: 1px solid var(--bf-border);
    border-radius: var(--bf-radius);
    overflow: hidden;
    width: 135px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.of-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
    border-color: rgba(196, 0, 59, 0.35);
}

.of-mini-img-wrap {
    position: relative;
    width: 100%;
    height: 210px !important;
    overflow: hidden;
}

.of-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.of-device-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.of-device-badges i {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 5px;
    padding: 3px 5px;
    font-size: 11px;
}

.of-hero-body {
    padding: 12px 14px;
}

.of-hero-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.of-hero-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--bf-text-main);
    margin-bottom: 3px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.of-hero-network {
    font-size: 11px;
    color: var(--bf-text-dim);
}

.of-hero-price {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
    color: #ffb400;
    flex-shrink: 0;
}

/* ── MINI cards (featured / games) — BetFury portrait style ── */
.of-mini-card {
    display: block;
    text-decoration: none;
    position: relative;
    width: 135px !important;
    border-radius: 12px;
    overflow: hidden;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
}

.of-mini-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Cover image area */
.of-mini-img-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.of-mini-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 0;
    border: none;
}

/* Gradient overlay on image */
.of-mini-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    pointer-events: none;
}

/* Device icons float top-left */
.of-mini-device {
    position: absolute;
    top: 7px;
    left: 7px;
    display: flex;
    gap: 3px;
    z-index: 2;
}

.of-mini-device i {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 4px;
    padding: 3px 4px;
    font-size: 9px;
}

/* Text sits at bottom inside the image */
.of-mini-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    z-index: 2;
}

.of-mini-title {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
}

.of-mini-network {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.of-mini-price {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 800;
    color: #ffb400;
    margin-top: 3px;
}

/* ── Iframe modal ────────────────────────────────────────────── */
.of-iframe-modal {
    background: var(--bf-bg-card) !important;
    border: 1px solid var(--bf-border) !important;
}

.of-iframe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--bf-border);
    background: rgba(255, 255, 255, 0.03);
}

.of-iframe-header h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--bf-text-main);
    margin: 0;
}

.of-iframe-close {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--bf-border) !important;
    font-size: 18px !important;
}

.of-iframe-body {
    position: relative;
}

.of-iframe-spinner {
    text-align: center;
    padding: 40px;
    color: var(--bf-text-muted);
}

/* Hide Owl UI clutter */
.owl-dots,
.owl-nav {
    display: none !important;
}

.ow-logo-wrap {
    width: 125px;
    height: 188px;
    background: #1a222b;
    /* height: 150px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    border-radius: 8px;
    margin-right: 3px;
    margin-bottom: 8px;
}

.ow-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    /* transform: translate(-50%); */
    height: 100%;
    width: 100%;
    background: #49505726;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-weight: 600;
    gap: 4px;
    color: red;
    cursor: not-allowed;
    backdrop-filter: blur(3px);
}

.of-mini-price img {
    height: 14px;
    width: 14px !important;
}

.provider img.ow-logo {
    max-width: 85px;
    max-height: 85px;
    border-radius: 8px;
    object-fit: cover;
    margin-top: 20px;
}

.ow-body {
    background: #21252961;
    /* min-height: 55px; */
    border-radius: 0 0 8px 8px;
    padding: 8px;
}

.ow-name {
    color: #c4003b;
    font-weight: 600;
    font-size: 18px;
}

/* mobile nav */
.mobile-nav {
    bottom: 0;
    box-shadow: 0 -6px 69.5px #00000047;
    position: fixed;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: 100%;
    z-index: 104;
    display: none;
    background: var(--bf-bg-sidebar);
    min-height: 50px;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 8px;
    grid-row-gap: 0px;
}

.mobile-nav a.bf-nav-item {
    justify-content: center;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: grid;
    }

    section.of-section {
        padding: 4px;
    }

    .pf-content,
    .sp-content,
    .lb-table-section,
    .lb-podium-section,
    .rw-grid-section {
        padding: 24px 4px !important;
    }

    .lb-podium-section {
        overflow-x: hidden;
    }
}