:root {
    --bv-bg: #10171d;
    --bv-border: rgba(255,255,255,.08);
    --bv-text: #f4f7f5;
    --bv-muted: #b8c0bc;
    --bv-green: var(--accent-green, #00e701);
    --bv-radius: 12px;
}

* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bv-page, .promotions-page { margin: 0; min-height: 100vh; background: var(--bv-bg); color: var(--bv-text); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
.bv-page button, .bv-page input, .promotions-page button { font: inherit; }
.bv-page button:focus-visible, .bv-page a:focus-visible, .bv-page input:focus-visible, .promotions-page a:focus-visible { outline: 3px solid color-mix(in srgb, var(--bv-green) 72%, white) !important; outline-offset: 2px; }

.bv-shell, .promo-shell { width: min(1500px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 84px; }
.bv-title-row { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.bv-title-row h1, .promo-heading h1 { margin: 0; font-size: 25px; letter-spacing: -.5px; }
.bv-code-form { display: grid; grid-template-columns: minmax(180px, 270px) auto; gap: 8px; padding: 5px; border: 1px solid var(--bv-border); border-radius: var(--bv-radius); background: #111713; }
.bv-code-form input { min-width: 0; height: 44px; padding: 0 14px; border: 0; background: transparent; color: #fff; font-size: 14px; outline: 0; }
.bv-code-form input::placeholder { color: #8f9793; }
.bv-code-form button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: #313634; color: #fff; font-weight: 800; white-space: nowrap; cursor: pointer; }
.bv-code-form button:active, .bv-card-action:active, .bv-level-button:active { transform: scale(.985); }

.bv-setup-notice { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid rgba(255,191,0,.32); border-radius: var(--bv-radius); background: rgba(255,191,0,.08); color: #ffe29a; font-size: 13px; }

.bv-claimed { position: relative; display: grid; min-height: 292px; grid-template-columns: 58% 42%; overflow: hidden; margin-bottom: 30px; border-radius: var(--bv-radius); background: radial-gradient(circle at 78% 48%, rgba(12,116,105,.34), transparent 27%), linear-gradient(112deg, #111c1e 0%, #102321 57%, #151323 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); }
.bv-claimed::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(9,16,18,.15), transparent 58%, rgba(87,7,56,.13)); }
.bv-claimed-copy { position: relative; z-index: 2; align-self: center; margin-left: 24px; padding: 28px 30px; border-radius: var(--bv-radius); background: rgba(10,17,18,.62); }
.bv-claimed-copy > span { display: block; margin-bottom: 9px; color: var(--bv-muted); font-size: 17px; font-weight: 700; text-transform: capitalize; }
.bv-claimed-total { display: inline-block; margin-right: 24px; color: var(--bv-green); font-size: 35px; font-weight: 900; letter-spacing: -.8px; vertical-align: middle; }
.bv-claimed-copy > button { min-width: 190px; height: 55px; border: 0; border-radius: 9px; background: #0b1112; color: #fff; font-weight: 800; cursor: pointer; }
.bv-claimed-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.bv-claimed-breakdown div { display: grid; gap: 2px; min-width: 0; padding-right: 24px; }
.bv-claimed-breakdown div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.08); }
.bv-claimed-breakdown small { color: var(--bv-muted); font-weight: 600; }
.bv-claimed-breakdown strong { font-size: 16px; }
.bv-claimed-visual { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.bv-claimed-visual::before { content: ''; position: absolute; width: 270px; height: 270px; border-radius: 50%; background: radial-gradient(circle, rgba(73,225,102,.18), transparent 67%); filter: blur(8px); }
.bv-claimed-visual .bv-sprite { width: 245px; height: 190px; transform: rotate(-7deg); }

.bv-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 22px; padding: 5px; border-radius: var(--bv-radius); background: var(--bg-card, #213743); }
.bv-tabs button { height: 57px; border: 0; border-radius: 9px; background: transparent; color: #bdc4c0; font-size: 18px; font-weight: 800; cursor: pointer; }
.bv-tabs button.is-active { background: var(--bg-card, #213743); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 1px 0 rgba(255,255,255,.04); }
.bv-tabs button span { display: inline-flex; min-width: 23px; height: 23px; align-items: center; justify-content: center; margin-left: 6px; border-radius: 7px; background: #19e982; color: #07391f; font-size: 13px; }

.bv-bonus-grid { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bv-bonus-grid.is-active { display: grid; }
.bv-bonus-card { position: relative; display: flex; min-width: 0; min-height: 410px; flex-direction: column; overflow: hidden; padding: 16px 24px 24px; border-radius: var(--bv-radius); background: var(--bg-card, #213743); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.bv-card-art { width: 172px; height: 132px; align-self: center; margin-top: 0; }
.bv-card-heading { position: relative; display: flex; min-height: 47px; align-items: flex-start; justify-content: center; }
.bv-bonus-card h3 { min-height: 31px; margin: 2px 0 14px; color: #fff; font-size: 21px; font-weight: 900; line-height: 1.18; text-align: center; letter-spacing: -.35px; }
.bv-card-info { position: absolute; top: 3px; right: 0; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 0; background: transparent; color: #cbd3cf; font-size: 16px; cursor: pointer; transition: color .18s ease, transform .18s ease; }
.bv-card-info:hover { color: var(--bv-green); transform: scale(1.08); }
.bv-card-panel { display: grid; align-content: start; gap: 8px; min-height: 108px; padding: 12px 13px; border-radius: 10px; background: rgba(17,21,20,.62); color: #c3d9e8; }
.bv-card-panel p { margin: 0; font-size: 15px; line-height: 1.35; }
.bv-stat-row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.bv-stat-row strong { color: #fff; text-align: right; white-space: nowrap; }
.bv-card-action { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; gap: 7px; margin-top: auto; padding: 0 14px; border: 0; border-radius: 9px; background: #323634; color: #fff; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; transition: filter .18s ease, transform .18s ease; }
.bv-card-action:hover { filter: brightness(1.12); }
.bv-card-action.is-primary { background: linear-gradient(90deg, #10e78c, #71f128); color: #063a22; }
.bv-card-action.is-locked { background: #454846; color: #d4d6d5; cursor: not-allowed; }
.bv-cashback-action { font-size: 14px; line-height: 1.3; }
.bv-cashback-action.is-countdown { background: #202725; color: #c6d0cc; cursor: default; flex-wrap: wrap; gap: 4px; padding-block: 10px; }
.bv-cashback-action [data-cashback-timer] { color: #f7f8f7; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bv-rules-link { position: absolute; top: 0; right: 0; z-index: 2; min-width: 100px; height: 37px; border: 0; border-radius: 0 0 0 10px; background: rgba(15,29,21,.66); color: #fff; font-size: 14px; cursor: pointer; }

.bv-sprite { flex: 0 0 auto; background-image: url('bonus-vip/rewards-sprite.png'); background-repeat: no-repeat; background-size: 400% 300%; }
.bv-sprite--crown { background-position: 0 0; }
.bv-sprite--moneybag { background-position: 33.333% 0; }
.bv-sprite--calendar { background-position: 66.667% 0; }
.bv-sprite--sports { background-position: 100% 0; }
.bv-sprite--wallet { background-position: 0 50%; }
.bv-sprite--month { background-position: 33.333% 50%; }
.bv-sprite--cashbag { background-position: 66.667% 50%; }
.bv-sprite--gift { background-position: 100% 50%; }
.bv-sprite--shield { background-position: 0 100%; }
.bv-sprite--wheel { background-position: 33.333% 100%; }
.bv-sprite--download { background-position: 66.667% 100%; }
.bv-sprite--gachapon { background-position: 100% 100%; }

.bv-vip-shell { padding-top: 20px; }
.bv-vip-hero { position: relative; display: grid; min-height: 274px; grid-template-columns: 260px 1fr; align-items: center; overflow: hidden; padding: 26px 72px 24px 36px; border: 1px solid rgba(255,255,255,.42); border-radius: 30px; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--vip-tone) 76%, #d8aa7d), transparent 60%), linear-gradient(105deg, color-mix(in srgb, var(--vip-tone) 84%, #ad7958), color-mix(in srgb, var(--vip-tone) 52%, #d9b08d)); box-shadow: inset 0 1px 0 rgba(255,255,255,.24); }
.bv-vip-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: radial-gradient(rgba(255,255,255,.65) .7px, transparent .7px); background-size: 6px 6px; mix-blend-mode: overlay; }
.bv-vip-medal { position: relative; z-index: 1; width: 220px; height: 200px; filter: drop-shadow(0 15px 14px rgba(63,31,14,.28)); }
.bv-vip-main { position: relative; z-index: 1; min-width: 0; padding-top: 8px; }
.bv-vip-account { font-size: 16px; font-weight: 800; }
.bv-vip-main h1 { margin: 16px 0 56px; font-size: 48px; font-style: italic; letter-spacing: -1.5px; }
.bv-progress-copy { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 15px; }
.bv-progress { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.72); }
.bv-progress span { display: block; height: 100%; border-radius: inherit; background: var(--bv-green); }
.bv-level-button { position: absolute; top: 27px; right: 70px; z-index: 2; min-width: 252px; height: 42px; border: 0; border-radius: var(--bv-radius); background: rgba(82,80,64,.35); color: #22ea96; font-weight: 900; cursor: pointer; }
.bv-level-button i { margin-left: 10px; }
.bv-benefits-title { margin: 28px 0; text-align: center; font-size: 25px; color: #eefa98; }
.bv-benefits-title i { margin: 0 10px; color: #a8b8b7; font-size: 13px; }
.bv-benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bv-benefit { display: grid; min-height: 168px; grid-template-columns: 1fr 126px; align-items: center; gap: 12px; padding: 20px 16px 15px 24px; border-radius: var(--bv-radius); background: var(--bg-card, #213743); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.bv-benefit h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.14; }
.bv-benefit p { margin: 0 0 14px; color: #bdc3c0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.bv-benefit small { color: #bec2c0; font-weight: 800; }
.bv-benefit small i { margin-right: 5px; color: #ff9400; }
.bv-benefit.is-unlocked small, .bv-benefit.is-unlocked small i { color: var(--bv-green); }
.bv-benefit-art { width: 126px; height: 116px; }

.bv-dialog { width: min(520px, calc(100vw - 28px)); padding: 22px; border: 1px solid var(--bv-border); border-radius: 15px; background: #232725; color: #fff; box-shadow: 0 26px 90px rgba(0,0,0,.56); }
.bv-dialog::backdrop { background: rgba(3,7,9,.74); backdrop-filter: blur(4px); }
.bv-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.bv-dialog-head h2 { margin: 0; font-size: 20px; }
.bv-dialog-head button { width: 38px; height: 38px; border: 0; border-radius: 8px; background: #393d3b; color: #fff; cursor: pointer; }
.bv-dialog > p { margin: 0; color: #c8cecb; line-height: 1.55; }
.bv-loss-refund-dialog > p { margin-bottom: 18px; }
.bv-loss-refund-table { width: 100%; overflow: hidden; border-collapse: separate; border-spacing: 0; border-radius: 10px; background: #191d1b; }
.bv-loss-refund-table th, .bv-loss-refund-table td { padding: 12px 14px; text-align: left; }
.bv-loss-refund-table th { background: #303532; color: #cbd3cf; font-size: 13px; }
.bv-loss-refund-table td { border-top: 1px solid rgba(255,255,255,.07); }
.bv-loss-refund-table td:last-child { color: var(--bv-green); font-weight: 800; text-align: right; }
.bv-levels-dialog { width: min(1280px, calc(100vw - 36px)); max-height: calc(100dvh - 36px); }
.bv-level-table-wrap { max-height: calc(100dvh - 130px); overflow: auto; border-radius: 10px; }
.bv-level-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #292d2b; font-size: 14px; }
.bv-level-table th, .bv-level-table td { padding: 13px 16px; text-align: center; white-space: nowrap; }
.bv-level-table th { position: sticky; top: 0; z-index: 1; background: #343a37; color: #c4cac7; }
.bv-level-table td:first-child, .bv-level-table th:first-child { text-align: left; }
.bv-level-table tbody tr:nth-child(odd) { background: rgba(0,0,0,.12); }
.bv-level-table tbody tr.is-current { box-shadow: inset 3px 0 0 var(--bv-green); }
.bv-mini-badge { display: inline-flex; width: 27px; height: 27px; align-items: center; justify-content: center; margin-right: 10px; border-radius: 8px; background: color-mix(in srgb, var(--badge), #151817 34%); color: #fff; }

.bv-toast { position: fixed; right: 20px; bottom: 92px; z-index: 10000; max-width: min(390px, calc(100vw - 40px)); padding: 13px 16px; border-radius: 10px; background: #333936; color: #fff; font-size: 14px; font-weight: 700; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; box-shadow: 0 12px 35px rgba(0,0,0,.35); }
.bv-toast.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.bv-toast.is-error { background: #642c32; }

.promo-shell { width: min(1500px, calc(100% - 52px)); padding-top: 31px; }
.promo-heading { margin-bottom: 19px; }
.promo-heading h1 { font-size: 26px; font-weight: 800; letter-spacing: -.55px; }
.promo-filters { display: flex; align-items: center; margin-top: 18px; }
.promo-filter { display: inline-flex; min-width: 113px; min-height: 53px; align-items: center; justify-content: center; padding: 0 24px; border: 5px solid #292c2b; border-radius: 13px; background: var(--bg-card, #213743); color: #f5f6f5; font-size: 19px; font-weight: 800; line-height: 1; }
.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.promo-card { display: flex; min-width: 0; min-height: 448px; flex-direction: column; overflow: hidden; padding: 18px; border-radius: 14px; background: var(--bg-card, #213743); color: #f7f8f7; box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.promo-card > img { display: block; width: 100%; aspect-ratio: 2.42 / 1; flex: 0 0 auto; border-radius: 14px; object-fit: cover; background: #181d20; }
.promo-card-content { display: flex; min-height: 229px; flex: 1; flex-direction: column; align-items: flex-start; padding-top: 18px; }
.promo-card h2 { margin: 0 0 27px; color: #f7f8f7; font-size: 20px; font-weight: 800; line-height: 1.22; letter-spacing: -.32px; }
.promo-card p { margin: 0 0 28px; color: #bfc3c1; font-size: 17px; font-weight: 600; line-height: 1.3; }
.promo-card-action { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; margin-top: auto; padding: 0 19px; border-radius: 10px; background: #3d403f; color: #24ee91; font-size: 19px; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.promo-card-action:hover { background: #484c4a; color: #38f3a2; }
.promo-card-action:active { transform: scale(.98); }
.promo-empty { padding: 60px 20px; border: 1px dashed #3b4140; border-radius: 14px; background: #242726; text-align: center; color: #bac4c9; }
.promo-empty > i { margin-bottom: 14px; font-size: 32px; }
.promo-empty h2 { margin: 0 0 6px; color: #fff; }
.promo-empty p { margin: 0; }

@media (max-width: 1080px) {
    .bv-bonus-grid, .bv-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bv-vip-hero { grid-template-columns: 210px 1fr; padding-right: 32px; }
    .bv-vip-medal { width: 190px; height: 175px; }
    .bv-level-button { right: 32px; }
}

@media (max-width: 760px) {
    .bv-shell, .promo-shell { width: calc(100% - 20px); padding-top: 14px; }
    .promo-heading { margin-bottom: 14px; }
    .promo-heading h1 { font-size: 22px; }
    .promo-filters { margin-top: 13px; }
    .promo-filter { min-width: 96px; min-height: 47px; padding: 0 19px; border-width: 4px; border-radius: 12px; font-size: 16px; }
    .bv-title-row { align-items: stretch; flex-direction: column; gap: 12px; }
    .bv-title-row h1 { font-size: 21px; }
    .bv-code-form { grid-template-columns: 1fr auto; }
    .bv-code-form button { padding: 0 12px; font-size: 12px; }
    .bv-claimed { min-height: 250px; grid-template-columns: 1fr; }
    .bv-claimed-copy { margin: 10px; padding: 20px; }
    .bv-claimed-copy > button { min-width: 130px; }
    .bv-claimed-visual { display: none; }
    .bv-claimed-breakdown { margin-top: 22px; }
    .bv-claimed-breakdown div { padding-right: 9px; }
    .bv-claimed-breakdown div + div { padding-left: 9px; }
    .bv-tabs button { height: 48px; font-size: 14px; }
    .bv-bonus-grid, .bv-benefits-grid, .promo-grid { grid-template-columns: 1fr; gap: 12px; }
    .promo-card { min-height: 0; padding: 12px; border-radius: 12px; }
    .promo-card > img { border-radius: 11px; }
    .promo-card-content { min-height: 205px; padding-top: 16px; }
    .promo-card h2 { margin-bottom: 18px; font-size: 18px; }
    .promo-card p { margin-bottom: 24px; font-size: 15px; }
    .promo-card-action { min-height: 46px; padding: 0 17px; border-radius: 9px; font-size: 16px; }
    .bv-bonus-card { min-height: 384px; }
    .bv-vip-hero { grid-template-columns: 104px 1fr; min-height: 255px; padding: 18px 18px 20px 12px; border-radius: 20px; }
    .bv-vip-medal { width: 105px; height: 115px; }
    .bv-vip-main { align-self: end; }
    .bv-vip-main h1 { margin: 9px 0 48px; font-size: 30px; }
    .bv-vip-account { font-size: 12px; }
    .bv-level-button { top: 18px; right: 18px; min-width: 180px; height: 38px; font-size: 12px; }
    .bv-progress-copy { font-size: 11px; }
    .bv-benefits-title { margin: 24px 0 18px; font-size: 20px; }
    .bv-benefit { grid-template-columns: 1fr 100px; min-height: 150px; padding-left: 18px; }
    .bv-benefit-art { width: 100px; height: 94px; }
    .bv-level-table th, .bv-level-table td { padding: 11px 12px; font-size: 12px; }
}

@media (max-width: 430px) {
    .bv-code-form { grid-template-columns: 1fr; }
    .bv-code-form button { width: 100%; }
    .bv-claimed-total { font-size: 29px; }
    .bv-claimed-copy > button { min-width: 112px; height: 48px; }
    .bv-claimed-breakdown small { font-size: 10px; }
    .bv-claimed-breakdown strong { font-size: 12px; }
    .bv-vip-hero { grid-template-columns: 84px 1fr; }
    .bv-vip-medal { width: 86px; height: 100px; }
    .bv-level-button { min-width: 164px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
