/* BetSystem widgets — minimal, theme-agnostic styling. */
.betsystem-widget { --bs-accent: #1f7a4d; --bs-bg: #fff; --bs-line: #e3e6ea; --bs-text: #1a1d21; font-family: inherit; color: var(--bs-text); }
.bs-card { background: var(--bs-bg); border: 1px solid var(--bs-line); border-radius: 12px; padding: 16px; margin: 8px 0; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.bs-card h3, .bs-card h4 { margin: 0 0 10px; }
.bs-loading, .betsystem-loading { color: #8a9099; font-size: 14px; }

.bs-btn { background: var(--bs-accent); color: #fff; border: 0; border-radius: 8px; padding: 9px 14px; font-size: 14px; cursor: pointer; }
.bs-btn:hover { filter: brightness(1.05); }
.bs-btn-ghost { background: transparent; color: var(--bs-accent); border: 1px solid var(--bs-accent); }
.bs-btn-sm { padding: 6px 10px; font-size: 13px; }
.bs-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.bs-balance-main { display: flex; flex-direction: column; }
.bs-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #8a9099; }
.bs-amount { font-size: 28px; font-weight: 700; }
.bs-net { color: #5b626b; font-size: 13px; margin-top: 4px; }

.bs-auth label, .bs-limit-form label, .bs-range label { display: block; font-size: 13px; margin: 8px 0 4px; }
.bs-auth input, .bs-limit-form input, .bs-limit-form select, .bs-range input { width: 100%; padding: 8px; border: 1px solid var(--bs-line); border-radius: 8px; box-sizing: border-box; }
.bs-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.bs-tabs button { flex: 1; padding: 8px; border: 1px solid var(--bs-line); background: #f6f7f9; border-radius: 8px; cursor: pointer; }
.bs-tabs button.active { background: var(--bs-accent); color: #fff; border-color: var(--bs-accent); }
.bs-err { color: #c0392b; font-size: 13px; margin-top: 8px; }
.bs-msg { color: var(--bs-accent); font-size: 13px; margin-top: 8px; }

.bs-fixture { border-top: 1px solid var(--bs-line); padding: 10px 0; }
.bs-fixture:first-child { border-top: 0; }
.bs-fixture-head { font-weight: 600; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bs-fixture-time { font-weight: 400; color: #8a9099; font-size: 12px; }
.bs-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bs-odd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border: 1px solid var(--bs-line); border-radius: 8px; background: #f6f7f9; cursor: pointer; }
.bs-odd:hover { border-color: var(--bs-accent); }
.bs-odd-name { font-size: 12px; color: #5b626b; }
.bs-odd-price { font-weight: 700; }

.bs-limit-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; }
.bs-hint, .bs-period, .bs-pending { font-size: 13px; color: #5b626b; margin: 6px 0; }
.bs-pending { background: #fff7e6; border: 1px solid #ffe0a3; padding: 8px; border-radius: 8px; }

.bs-check { display: flex; align-items: center; gap: 8px; }
.bs-check input { width: auto; }

.bs-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.bs-table th, .bs-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--bs-line); }
.bs-neg { color: #c0392b; } .bs-pos { color: var(--bs-accent); }
.bs-range { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }

.bs-overlay { position: fixed; inset: 0; background: rgba(10,12,16,.6); display: flex; align-items: center; justify-content: center; z-index: 99999; }
.bs-overlay-card { background: #fff; border-radius: 14px; padding: 28px; max-width: 380px; text-align: center; }
.bs-overlay-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }

/* Pills */
.bs-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef0f3; font-size: 12px; }
.bs-pill-ok, .bs-pill-won { background: #e4f4ea; color: var(--bs-accent); }
.bs-pill-lost { background: #fdecea; color: #c0392b; }
.bs-pill-pending { background: #fff7e6; color: #b26a00; }
.bs-pill-void { background: #eef0f3; color: #5b626b; }

/* Betslip */
.bs-betslip-empty { color: #8a9099; font-size: 13px; text-align: center; }
.bs-slip-sel { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--bs-line); font-size: 14px; }
.bs-x { background: none; border: 0; color: #c0392b; font-size: 18px; cursor: pointer; line-height: 1; }

/* Casino lobby */
.bs-lobby-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bs-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.bs-cat { padding: 6px 12px; border: 1px solid var(--bs-line); background: #f6f7f9; border-radius: 999px; cursor: pointer; text-transform: capitalize; }
.bs-cat.active { background: var(--bs-accent); color: #fff; border-color: var(--bs-accent); }
.bs-lobby-bar input[type=search] { padding: 8px; border: 1px solid var(--bs-line); border-radius: 8px; }
.bs-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bs-game { border: 1px solid var(--bs-line); border-radius: 10px; overflow: hidden; text-align: center; }
.bs-game-thumb { position: relative; height: 90px; background: linear-gradient(135deg, #2b3a67, #1f7a4d); }
.bs-game-cat { position: absolute; bottom: 6px; left: 6px; font-size: 11px; color: #fff; background: rgba(0,0,0,.35); padding: 2px 6px; border-radius: 6px; text-transform: capitalize; }
.bs-jp-badge { position: absolute; top: 6px; right: 6px; background: #ffd43b; color: #1a1d21; font-weight: 700; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.bs-game-name { font-weight: 600; font-size: 14px; padding: 8px 6px 2px; }
.bs-rtp { display: block; font-size: 11px; color: #8a9099; margin-bottom: 8px; }
.bs-game .bs-btn { margin: 0 8px 10px; }

/* Game modal */
.bs-game-modal { max-width: 460px; width: 92vw; }
.bs-game-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bs-demo-reel { font-size: 44px; letter-spacing: 8px; text-align: center; padding: 20px; background: #10131a; border-radius: 12px; margin-bottom: 10px; }
.bs-game-frame { width: 100%; height: 60vh; border: 0; border-radius: 10px; }

/* Jackpots */
.bs-jp-row { display: flex; gap: 10px; flex-wrap: wrap; }
.bs-jp { flex: 1; min-width: 120px; display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #b26a00, #ffd43b); }
.bs-jp-grand { background: linear-gradient(135deg, #7b2ff7, #f107a3); }
.bs-jp-major { background: linear-gradient(135deg, #1f7a4d, #38b000); }
.bs-jp-name { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.bs-jp-val { font-size: 22px; font-weight: 800; }

/* Promotions */
.bs-promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bs-promo { border: 1px solid var(--bs-line); border-radius: 10px; padding: 14px; }
.bs-promo h4 { margin: 0 0 6px; }
.bs-terms { font-size: 11px; color: #8a9099; margin-top: 8px; }

/* Safer gambling links */
.bs-sg-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 560px) { .bs-limit-form { grid-template-columns: 1fr 1fr; } .bs-odds { grid-template-columns: 1fr 1fr 1fr; } }

/* Sportsbook catalogue */
.bs-leagues, .bs-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.bs-league { padding: 6px 12px; border: 1px solid var(--bs-line); background: #f6f7f9; border-radius: 8px; cursor: pointer; }
.bs-league.active, .bs-cat.active { background: var(--bs-accent); color: #fff; border-color: var(--bs-accent); }
.bs-more { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--bs-accent); text-decoration: none; }
.bs-market { border-top: 1px solid var(--bs-line); padding: 10px 0; }
.bs-market-h { font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #5b626b; }
.bs-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bs-feat { border: 1px solid var(--bs-line); border-radius: 10px; padding: 12px; }
.bs-feat-league { font-size: 11px; color: #8a9099; text-transform: uppercase; }
.bs-feat-teams { font-weight: 600; margin: 4px 0 8px; }

/* Winners feed */
.bs-winners { list-style: none; padding: 0; margin: 0; max-height: 320px; overflow-y: auto; }
.bs-winners li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--bs-line); font-size: 14px; }
.bs-win-who { font-weight: 600; } .bs-win-detail { color: #8a9099; font-size: 12px; margin-left: auto; }

/* Hero */
.bs-hero { border-radius: 16px; padding: 48px 28px; background: linear-gradient(135deg, #10131a, #1f7a4d); color: #fff; text-align: center; }
.bs-hero h1 { font-size: clamp(26px, 5vw, 44px); margin: 0 0 10px; }
.bs-hero p { opacity: .85; margin: 0 0 18px; }
.bs-hero-cta { display: flex; gap: 10px; justify-content: center; }
.bs-hero-rg { font-size: 11px; opacity: .6; margin-top: 18px; }

/* Referral / VIP */
.bs-refcode { font-size: 22px; font-weight: 800; letter-spacing: 3px; background: #f6f7f9; border: 1px dashed var(--bs-accent); border-radius: 10px; padding: 14px; text-align: center; margin: 10px 0; }
.bs-vip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.bs-tier { border-radius: 10px; padding: 16px; color: #fff; text-align: center; }
.bs-tier-name { font-weight: 800; } .bs-tier-perk { font-size: 12px; opacity: .9; margin-top: 4px; }
.bs-tier-0 { background: #a06a3f; } .bs-tier-1 { background: #8a929a; } .bs-tier-2 { background: linear-gradient(135deg, #b8860b, #ffd43b); color: #1a1d21; } .bs-tier-3 { background: linear-gradient(135deg, #6a3f9e, #b06ab3); }

/* Bonuses */
.bs-bonus { border: 1px solid var(--bs-line); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.bs-bonus-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bs-prog { height: 8px; background: #eef0f3; border-radius: 999px; overflow: hidden; margin: 6px 0 2px; }
.bs-prog-bar { height: 100%; background: var(--bs-accent); }
.bs-redeem { display: flex; gap: 8px; margin-top: 10px; }
.bs-redeem input { flex: 1; padding: 8px; border: 1px solid var(--bs-line); border-radius: 8px; }
