/* KINGBET theme - generated from the FIVEBET theme by tools/make_theme.py (edit the palette there, not here) */
/* FIVEBET dark premium — component layer (desktop + mobile).
   Loaded after the skin and fivebet-vars.css. Visual only: no element is hidden, moved or re-wired. */
:root {
    --fb-page: #1b1d21; --fb-head: #1e2125; --fb-surf: #23262b; --fb-surf2: #2a2d33; --fb-raise: #33373e;
    --fb-border: #3b4048; --fb-text: #e8eaee; --fb-muted: #9aa1ae;
    --fb-gold: #c40000; --fb-gold-l: #ff3b30; --fb-gold-d: #8e0000;
    --fb-gold-grad: linear-gradient(180deg, #e52b2b 0%, #c40000 55%, #8e0000 100%);
    --fb-silver-grad: linear-gradient(180deg, #ffffff 0%, #c9ced6 100%);
    --fb-glow: 0 0 0 1px rgba(196, 0, 0, .55), 0 0 14px rgba(196, 0, 0, .35);
    --fb-radius: 10px;
}

html, body { background: var(--fb-page) !important; color: var(--fb-text); }
body { background-image: radial-gradient(1200px 500px at 50% -200px, rgba(196, 0, 0, .07), transparent 70%) !important; background-attachment: fixed !important; }
::selection { background: var(--fb-gold); color: #000; }
* { scrollbar-color: #42464d transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #42464d; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--fb-gold-d); }
a { transition: color .15s; }

/* ── header ─────────────────────────────────────────── */
.top-header, .top-header-container { background: linear-gradient(180deg, #1f2226 0%, #1b1d21 100%) !important; }
.top-header { border-bottom: 1px solid rgba(196, 0, 0, .18); }
.menu-main, .menu-main ul, .menu-left { background: #1b1d21 !important; }
.menu-main { border-bottom: 1px solid var(--fb-border); box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.menu-main a, .menu-left a { color: #d9dde4 !important; letter-spacing: .04em; position: relative; }
.menu-main a:hover, .menu-left a:hover, .menu-main li.active > a, .menu-main .active a { color: var(--fb-gold-l) !important; }
.menu-left > li > a::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -2px; height: 2px; border-radius: 2px; background: var(--fb-gold-grad); transform: scaleX(0); transition: transform .2s; }
.menu-left > li > a:hover::after, .menu-left > li.active > a::after { transform: scaleX(1); }

/* inputs everywhere (login, search, coupon id, importo) */
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="tel"], input[type="search"], input:not([type]), select, textarea, .form-control {
    background: #1d2024 !important; color: var(--fb-text) !important; border: 1px solid var(--fb-border) !important; border-radius: 8px !important;
}
input:focus, select:focus, textarea:focus, .form-control:focus { border-color: var(--fb-gold) !important; box-shadow: 0 0 0 3px rgba(196, 0, 0, .18) !important; outline: none !important; }
input::placeholder, textarea::placeholder { color: #7d8492 !important; opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--fb-gold); }
/* the skin's checked radio in the agents' area (/master) is --p-color-bg-03 = the dark surface: invisible here */
.user-profile-body .checkbox input[type="radio"]:checked { border-color: var(--fb-gold) !important; }
.user-profile-body .checkbox input[type="radio"]:checked::before { background-color: var(--fb-gold) !important; }

/* primary actions: gold; secondary: graphite */
.btn-primary, .btn-warning, .btn-login, .login-btn, button[type="submit"].btn, #btnLogin, .btn-prenota, .bottone-prenota {
    background: var(--fb-gold-grad) !important; color: #111 !important; border: 0 !important; font-weight: 700 !important; border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(196, 0, 0, .25);
}
.btn-primary:hover, .btn-warning:hover, .btn-login:hover, #btnLogin:hover { filter: brightness(1.08); box-shadow: 0 6px 20px rgba(196, 0, 0, .35); }
.btn-default, .btn-secondary { background: var(--fb-surf2) !important; color: var(--fb-text) !important; border: 1px solid var(--fb-border) !important; }
.btn-danger { border-radius: 8px !important; }

/* ── side boxes / cards ─────────────────────────────── */
.col-box, .box, .panel, .panel-default, .card, .coupon, .widget {
    background: var(--fb-surf) !important; border: 1px solid var(--fb-border) !important; border-radius: var(--fb-radius) !important; color: var(--fb-text);
}
.col-box { box-shadow: 0 8px 24px rgba(0, 0, 0, .3); overflow: hidden; }
.panel-heading, .box-heading, .discipline-heading, .sports-new-head, .col-box > .title, .col-box .title-box {
    background: linear-gradient(90deg, #1b1f29 0%, #23262b 100%) !important; color: #f2f3f5 !important; border-bottom: 1px solid var(--fb-border) !important;
}

/* tournament header (was a yellow band): graphite with a gold edge */
.championship_betts .box-heading {
    background: linear-gradient(90deg, #26292e 0%, #1c1f23 70%) !important; border: 1px solid var(--fb-border) !important; border-left: 4px solid var(--fb-gold) !important;
    border-radius: var(--fb-radius) var(--fb-radius) 0 0 !important;
}
.championship_betts .box-heading, .championship_betts .box-heading * { color: #f4f5f7 !important; }
.text_category_centrale { font-weight: 700; letter-spacing: .02em; }
.championship_betts .crossclose { color: var(--fb-gold) !important; }

/* market group pills */
.odds_buttongroup, .bottone-blu-quote, .macro-market-button-section .btn, .cont_quotes .btn {
    background: var(--fb-surf2) !important; color: #d6dae1 !important; border: 1px solid var(--fb-border) !important; border-radius: 999px !important; transition: all .15s;
}
.odds_buttongroup:hover, .cont_quotes .btn:hover { border-color: var(--fb-gold) !important; color: var(--fb-gold-l) !important; }
.odds_buttongroup.activated, .cont_quotes .btn.activated, .cont_quotes .btn.active {
    background: var(--fb-gold-grad) !important; color: #111 !important; border-color: transparent !important; font-weight: 700;
}
.icon-accordion { background: var(--fb-gold-grad) !important; color: #111 !important; border-radius: 999px !important; }
.icon-accordion * { color: #111 !important; }

/* tables / event rows */
table, .table { color: var(--fb-text); }
.table > thead > tr > th, .table th { background: #1d2024 !important; color: #aeb4bf !important; border-color: var(--fb-border) !important; }
.table > tbody > tr > td, .table td, .table-bordered, .table-bordered td, .table-bordered th { border-color: #222733 !important; }
.event-row { background: var(--fb-surf) !important; transition: background .15s; }
.event-row:nth-child(even) { background: #161a22 !important; }
.event-row:hover { background: #1c2130 !important; }
.events-time-championship-time { color: var(--fb-gold-l) !important; font-weight: 700; }
.events-time-championship-id { color: var(--fb-muted) !important; }
.events-time-championship-team div { color: #f1f2f4 !important; font-weight: 600; }
.matchStatistic, .matchStatistic i { color: #8d95a3 !important; }
.matchStatistic:hover i { color: var(--fb-gold) !important; }

/* ── odds buttons: dark cards, gold glow ────────────── */
/* :is(#id, button) lifts specificity over the skin's long !important selectors (most played, live, ...) */
html body .quote_btn:is(#fb-theme, button), html body .outcomeCount:is(#fb-theme, button) {
    background-color: #1c2029 !important; background-image: linear-gradient(180deg, #282b31 0%, #191d27 100%) !important; color: #f5f6f8 !important;
    border: 1px solid #40444b !important; border-radius: 8px !important; font-weight: 700 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); transition: transform .12s, box-shadow .15s, border-color .15s, background .15s;
}
html body .quote_btn:is(#fb-theme, button):hover:not(:disabled), html body .outcomeCount:is(#fb-theme, button):hover { border-color: var(--fb-gold) !important; color: var(--fb-gold-l) !important; box-shadow: var(--fb-glow); transform: translateY(-1px); }
html body .quote_btn:is(#fb-theme, button).active, html body .quote_btn:is(#fb-theme, button).selected, html body .quote_btn:is(#fb-theme, button).activated, .quote_btn.activated, .quote_btn.quota-selezionata, .quote_btn.btn-selected, .quote_btn.qt-active {
    background-color: var(--fb-gold) !important; background-image: var(--fb-gold-grad) !important; color: #111 !important; border-color: transparent !important; box-shadow: 0 0 16px rgba(196, 0, 0, .45) !important;
}
html body .quote_btn:is(#fb-theme, button):disabled, html body .quote_btn:is(#fb-theme, button)[disabled] { background-image: none !important; background-color: #15181f !important; color: #545b69 !important; border-color: #222733 !important; box-shadow: none !important; }
html body .quote_btn:is(#fb-theme, button).tripla { border-color: #2db44a !important; }
html body .quote_btn:is(#fb-theme, button).quadrupla { border-color: #2f8fff !important; }
html body .quote_btn:is(#fb-theme, button).quintupla { border-color: #ff5e5e !important; }
.outcomeContainer > div:first-child { color: var(--fb-muted) !important; }

/* event window (modal) */
.modal-content { background: #1d2024 !important; color: var(--fb-text) !important; border: 1px solid var(--fb-border) !important; border-radius: 14px !important; box-shadow: 0 30px 80px rgba(0, 0, 0, .6) !important; }
.modal-header { border-bottom: 1px solid var(--fb-border) !important; }
.modal-footer { border-top: 1px solid var(--fb-border) !important; }
.modal-title, .modal-header, .modal-header * { color: #f4f5f7 !important; }
.modal-header .close, .modal .close { color: var(--fb-gold) !important; opacity: 1 !important; text-shadow: none !important; }
.modal-backdrop.in, .modal-backdrop.show { opacity: .75 !important; background: #000 !important; }
.marketGroupModal { background: var(--fb-surf) !important; border: 1px solid #2e3238 !important; border-radius: var(--fb-radius) !important; margin-bottom: 8px !important; padding: 0 12px 4px !important; }
.marketGroupModal .sports-new-head { background: transparent !important; border: 0 !important; color: var(--fb-gold-l) !important; font-weight: 700; letter-spacing: .03em; padding: 10px 0 2px !important; }
.marketGroupModal, .marketGroupModal div { color: #d8dce3; }

/* dropdowns */
.dropdown-menu { background: #141821 !important; border: 1px solid var(--fb-border) !important; border-radius: 10px !important; box-shadow: 0 12px 32px rgba(0, 0, 0, .5) !important; }
.dropdown-menu > li > a, .dropdown-menu a { color: #dfe2e8 !important; }
.dropdown-menu > li > a:hover, .dropdown-menu a:hover { background: #282b31 !important; color: var(--fb-gold-l) !important; }

/* time filter + small toggles */
.time-filter .active, .filter-time .active, .btn-time.active, [class*="time"] .selected { background: var(--fb-gold-grad) !important; color: #111 !important; }

/* betslip */
#coupon, .coupon-container, .schedina, .betslip { background: var(--fb-surf) !important; }
.label, .badge { border-radius: 6px; }

/* footer */
footer, .footer, .footer-container, .sub-footer { background: #08090c !important; color: #9aa1ae !important; border-top: 1px solid rgba(196, 0, 0, .15); }
footer a, .footer a { color: #c9ced6 !important; }
footer a:hover, .footer a:hover { color: var(--fb-gold-l) !important; }

/* cookie bar */
.cc-window, .cc-banner { background: rgba(10, 12, 16, .96) !important; color: #dfe2e8 !important; border-top: 1px solid rgba(196, 0, 0, .25); backdrop-filter: blur(6px); }
.cc-btn, .cc-allow, .cc-dismiss { background: var(--fb-gold-grad) !important; color: #111 !important; border: 0 !important; border-radius: 8px !important; font-weight: 700 !important; }
.cc-link { color: var(--fb-gold-l) !important; }

/* sweetalert */
.swal2-popup, .sweet-alert { background: #1d2024 !important; color: var(--fb-text) !important; border: 1px solid var(--fb-border); border-radius: 14px !important; }
.swal2-title, .swal2-html-container, .sweet-alert h2, .sweet-alert p { color: var(--fb-text) !important; }
.swal2-confirm, .sweet-alert button.confirm { background: var(--fb-gold-grad) !important; color: #111 !important; }

/* live: sport band + outcome labels */
.sport_header { background: linear-gradient(90deg, #26292e 0%, #1c1f23 70%) !important; border-left: 4px solid var(--fb-gold) !important; border-bottom: 1px solid var(--fb-border) !important; }
.sport_header, .sport_header * { color: #f4f5f7 !important; }
.odd_outcome { color: var(--fb-muted) !important; }
.quote_btn .odd_outcome { color: inherit !important; }

/* cookie consent (both skins) */
.cc-window { background: rgba(30, 33, 37, .97) !important; color: #dfe2e8 !important; border: 1px solid rgba(196, 0, 0, .25) !important; box-shadow: 0 10px 40px rgba(0, 0, 0, .6) !important; }
.cc-window .cc-message, .cc-window span { color: #dfe2e8 !important; }

/* event window: roomier odds */
.marketGroupModal .quote_btn { min-width: 84px; padding: 7px 10px !important; font-size: 13px !important; }

/* mobile event window (panel / moreOddContainer markup; the skin uses very specific !important rules) */
html body div.modal div.panel-body ul li div.moreOddContainer .moreOddButton button,
html body div.windowquote div.panel-body ul li div.moreOddButton button {
    background-color: #1c2029 !important; background-image: linear-gradient(180deg, #282b31 0%, #191d27 100%) !important;
    color: #f5f6f8 !important; border: 1px solid #40444b !important; border-radius: 8px !important; min-height: 40px; font-weight: 700 !important; text-align: center !important;
}
html body div.modal div.panel-body ul li div.moreOddContainer .moreOddButton button.activated,
html body div.windowquote div.panel-body ul li div.moreOddButton button.activated {
    background-color: var(--fb-gold) !important; background-image: var(--fb-gold-grad) !important; color: #111 !important; border-color: transparent !important;
}
html body div.modal div.panel-body ul li div.moreOddContainer .moreOddButton button:disabled { background-image: none !important; background-color: #15181f !important; color: #545b69 !important; }
html body div.modal div.modal-body ul li:nth-child(odd) div.panel { background-color: var(--fb-surf) !important; }
.moreOutcomeName { color: var(--fb-muted) !important; font-size: 12px; margin-bottom: 4px; }
.modal .panel { background: var(--fb-surf) !important; border: 1px solid #2e3238 !important; border-radius: var(--fb-radius) !important; box-shadow: none !important; }
.modal .panel-heading { background: transparent !important; border: 0 !important; color: var(--fb-gold-l) !important; font-weight: 700; letter-spacing: .03em; }
.modal .panel-heading * { color: var(--fb-gold-l) !important; }

html body .cc-window.cc-window[class*="cc-color-override"], html body .cc-window { background-color: rgba(30, 33, 37, .97) !important; border: 1px solid rgba(196, 0, 0, .3) !important; border-radius: 12px !important; background: rgba(30, 33, 37, .97) !important; color: #dfe2e8 !important; }
html body .cc-window .cc-message { color: #dfe2e8 !important; }
html body .cc-window[class*="cc-color-override"] .cc-link { color: var(--fb-gold-l) !important; }

/* mobile login / account sheets */
.modal-header-custom { background: linear-gradient(90deg, #26292e 0%, #1c1f23 100%) !important; border-bottom: 2px solid var(--fb-gold) !important; }
.modal-header-custom, .modal-header-custom * { color: var(--fb-gold-l) !important; }
#userModal { z-index: 100050 !important; }
#userModal .modal-content { box-shadow: 0 20px 60px rgba(0, 0, 0, .75) !important; }
#userModal .list-group { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; }
#userModal .list-group-item { display: flex; width: 100%; text-transform: none; font-size: 15px; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--fb-surf2) !important;
    border: 1px solid var(--fb-border) !important; border-radius: 10px !important; color: #eef0f3 !important; font-weight: 600; text-decoration: none; }
#userModal .list-group-item::after { content: "\203A"; color: var(--fb-gold); font-size: 20px; line-height: 1; }
#userModal .list-group-item:hover, #userModal .list-group-item:active { border-color: var(--fb-gold) !important; color: var(--fb-gold-l) !important; }
.bottone-login, .btn.bottone-login { background-color: var(--fb-gold) !important; background-image: var(--fb-gold-grad) !important; color: #111 !important; border: 0 !important; font-weight: 700 !important; border-radius: 10px !important; }
.saldoUtente { color: var(--fb-gold-l) !important; }
#userModal .list-group-item { justify-content: flex-start; }
#userModal .list-group-item .badge { margin-left: auto; background: var(--fb-gold) !important; color: #111 !important; }
#userModal .list-group-item::after { margin-left: 12px; }
#userModal .list-group-item:not(:has(.badge))::after { margin-left: auto; }

/* ── silver lines (over / under): brushed-metal hairlines framing bars and headings ── */
:root {
    --fb-silver-line: linear-gradient(90deg, rgba(160, 166, 176, .15) 0%, #aeb4bd 10%, #ffffff 50%, #aeb4bd 90%, rgba(160, 166, 176, .15) 100%);
    --fb-silver-solid: linear-gradient(90deg, #6f7580 0%, #d9dde3 30%, #ffffff 50%, #d9dde3 70%, #6f7580 100%);
}
/* full-width bars: line over and under */
.top-header, .menu-main, #menuscroll, footer, .footer, .subfooter, .sub-footer {
    border-top: 2px solid transparent !important; border-bottom: 2px solid transparent !important;
    border-image: var(--fb-silver-line) 1 !important;
}
.top-header { border-top-width: 0 !important; }
.menu-main { box-shadow: 0 6px 24px rgba(0, 0, 0, .35), 0 1px 12px rgba(220, 225, 232, .08); }
/* section headings (keep the gold left edge): silver hairline over and under */
.championship_betts .box-heading, .sport_header {
    background: var(--fb-silver-solid) top / 100% 2px no-repeat, var(--fb-silver-solid) bottom / 100% 2px no-repeat,
                linear-gradient(90deg, #26292e 0%, #1c1f23 70%) !important;
    border-top: 0 !important; border-bottom: 0 !important;
}
.col-box > .panel-heading, .col-box .box-heading, .discipline-heading, .panel-heading, .modal-header, .modal-header-custom {
    background-image: var(--fb-silver-line), linear-gradient(90deg, #1b1f29 0%, #23262b 100%) !important;
    background-size: 100% 2px, 100% 100% !important; background-position: bottom, 0 0 !important; background-repeat: no-repeat !important;
    border-bottom: 0 !important;
}
.modal-header-custom { border-bottom: 0 !important; }
.modal .panel-heading { background-image: none !important; }
.modal-content { border-top: 2px solid #dfe3e8 !important; }
.marketGroupModal { border-top: 1px solid rgba(207, 212, 219, .35) !important; }
.events-time-championship-id, .matchStatistic i { color: #b7bcc5 !important; }

/* ---- sports cash-out (player ticket list / detail: skin hook [onclick="getCashout(this)"], offer = .btncashout) ---- */
[onclick="getCashout(this)"].btncashout { background: var(--fb-gold-grad) !important; color: #111 !important; border: 1px solid #8e0000 !important; font-weight: 700; }
[onclick="getCashout(this)"].btncashout:hover, [onclick="getCashout(this)"].btncashout:focus { color: #000 !important; filter: brightness(1.08); }
button[onclick="getCashout(this)"]:not(.btncashout) { background: #1d2024 !important; color: var(--fb-muted) !important; border: 1px solid var(--fb-border) !important; opacity: 1 !important; }
.player-area .bs-cashout { margin-right: 4px; min-width: 96px; }

/* player area: date inputs as tall as the text inputs (profile, filters) */
.user-profile-body input[type="date"].form-control { height: 34px; padding-top: 4px; padding-bottom: 4px; }


/* ── KINGBET only: solid brand menu bar, brand buttons, coloured odds (generated by tools/make_theme.py) ── */
:root { --br-accent: #c40000; --br-on: #ffffff; --br-odd: #ff8a1e; }
.btn-primary, .btn-warning, .btn-gold, [class*="btn-login"], .activated, .quote_btn.activated, .btn-odd-rank.activated,
.menu-left > li.active > a, .tasti_dx a.active { color: #ffffff !important; }
/* other text sitting on the brand colour: menu labels (span inside the link), active time filter, active sport tab */
.menu-main a span, .menu-left a span, .timeRange.activeTime, .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus,
.home-content-toggles .btn.active, #subfooter a.sport-icon span, #subfooter a.sport-icon i { color: #ffffff !important; }
.menu-main, .menu-main ul, .menu-left { background: linear-gradient(180deg, #c40000 0%, #a10000 100%) !important; border-bottom: 0 !important; }
.menu-main a, .menu-left a { color: #ffffff !important; font-weight: 700; }
.menu-main a:hover, .menu-left a:hover, .menu-main li.active > a, .menu-main .active a { color: #ffffff !important; background: rgba(0, 0, 0, .18) !important; }
.menu-left > li > a::after { background: #ffffff !important; }
html body .quote_btn.btn-odd-rank:is(#fb-theme, button), html body .outcomeCount.btn-odd-rank:is(#fb-theme, button) { color: var(--br-odd) !important; }
html body .quote_btn.btn-odd-rank.activated:is(#fb-theme, button) { background: var(--br-accent) !important; border-color: var(--br-accent) !important; color: var(--br-on) !important; }
