.raika-bonuses {
    width: min(100%, 1480px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: #f7f9ff;
}

.raika-bonus-loading.hidden,
.raika-bonus-grid.hidden,
.raika-bonus-history.hidden,
.raika-bonuses-error.hidden,
.raika-deposit-bonus-list.hidden,
.raika-bonus-history-empty.hidden,
.raika-rank-progress.hidden {
    display: none !important;
}

.raika-bonuses-head {
    position: relative;
    min-height: 224px;
    padding: 38px 42px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(circle at 74% 10%, rgba(100, 167, 255, .45), transparent 28%),
        linear-gradient(118deg, #0e284d 0%, #124c9a 55%, #0878ff 100%);
}

.raika-bonuses-head::before,
.raika-bonuses-head::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(188, 219, 255, .18);
    border-radius: 50%;
    pointer-events: none;
}

.raika-bonuses-head::before {
    width: 370px;
    height: 370px;
    right: -40px;
    top: -190px;
}

.raika-bonuses-head::after {
    width: 270px;
    height: 270px;
    right: 10px;
    top: -140px;
}

.raika-bonuses-head > div {
    position: relative;
    z-index: 2;
    max-width: 760px;
    text-align: left !important;
}

.raika-bonuses-kicker {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: #c8ddff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.raika-bonuses-kicker svg {
    width: 20px;
    height: 20px;
}

.raika-bonuses-head h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.055em;
    text-align: left !important;
}

.raika-bonuses-head p {
    max-width: 650px;
    margin: 18px 0 0;
    color: rgba(229, 239, 255, .76);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
    text-align: left !important;
}

.raika-bonuses-head-art {
    position: absolute;
    z-index: 1;
    right: -12px;
    bottom: -38px;
    width: 310px;
    height: 310px;
    object-fit: contain;
    filter: drop-shadow(0 24px 34px rgba(1, 17, 47, .42));
}

.raika-bonus-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    overflow: hidden;
    border: 1px solid #272f3a;
    border-radius: 19px;
    background: #171c22;
}

.raika-bonus-tabs button {
    min-width: 0;
    height: 66px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #919cab;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.raika-bonus-tabs button:hover {
    background: #20262e;
    color: #dbe5f3;
}

.raika-bonus-tabs button.is-active {
    background: #252c35;
    color: #fff;
}

.raika-bonus-tab-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .055);
}

.raika-bonus-tabs button.is-active .raika-bonus-tab-icon {
    background: #087cff;
    color: #fff;
}

.raika-bonus-tab-icon svg {
    width: 19px;
    height: 19px;
}

.raika-bonus-loading {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.raika-bonus-loading span {
    height: 300px;
    border-radius: 26px;
    background: linear-gradient(100deg, #171d25 20%, #202a36 40%, #171d25 60%);
    background-size: 300% 100%;
    animation: raikaBonusLoading 1.25s ease infinite;
}

@keyframes raikaBonusLoading {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.raika-bonus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.raika-bonus-card {
    position: relative;
    min-width: 0;
    min-height: 310px;
    padding: 30px;
    display: flex;
    overflow: hidden;
    border-radius: 27px;
    isolation: isolate;
    transition: opacity .22s ease, transform .22s ease;
}

.raika-bonus-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 22px);
    pointer-events: none;
}

.raika-bonus-card.is-filtered-out,
.raika-deposit-bonus-list.is-filtered-out,
.raika-bonus-history.is-filtered-out {
    display: none !important;
}

.raika-bonus-grid[data-active-filter="rank"] .raika-bonus-card-rank {
    grid-column: 1 / -1;
}

.raika-bonus-grid[data-active-filter="rank"] .raika-bonus-card-rank .raika-bonus-card-copy {
    width: min(58%, 700px);
}

.raika-bonus-grid[data-active-filter="rank"] .raika-bonus-card-rank .raika-bonus-card-art {
    width: 40%;
    height: 108%;
    right: 0;
    bottom: -15%;
}

.raika-bonus-grid[data-active-filter="active"] .raika-bonus-card-active {
    grid-column: 1 / -1;
}

.raika-bonus-grid[data-active-filter="active"] .raika-bonus-card-active .raika-bonus-card-copy {
    width: min(58%, 700px);
}

.raika-bonus-grid[data-active-filter="active"] .raika-bonus-card-active .raika-bonus-card-art {
    width: 42%;
    height: 112%;
    right: -3%;
    bottom: -13%;
}

.raika-bonus-card-copy {
    position: relative;
    z-index: 3;
    width: min(62%, 450px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left !important;
}

.raika-bonus-card-copy > *,
.raika-bonus-card h2,
.raika-bonus-card p,
.raika-bonus-value,
.raika-bonus-status {
    text-align: left !important;
}

.raika-bonus-card-label {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(3, 20, 48, .24);
    color: rgba(238, 245, 255, .84);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.raika-bonus-card h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(27px, 2.5vw, 39px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.raika-bonus-card h2 b {
    color: #9bcbff;
    font: inherit;
}

.raika-bonus-card p {
    margin: 12px 0 18px;
    color: rgba(226, 236, 250, .72);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.48;
}

.raika-bonus-value {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.raika-bonus-value span {
    color: rgba(221, 234, 250, .62);
    font-size: 12px;
    font-weight: 700;
}

.raika-bonus-value strong {
    color: #fff;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.raika-bonus-action {
    min-height: 45px;
    margin-top: auto;
    padding: 0 21px;
    border: 0;
    border-radius: 14px;
    background: #087cff;
    box-shadow: 0 10px 24px rgba(0, 97, 224, .26);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.raika-bonus-value + .raika-bonus-action {
    margin-top: 18px;
}

.raika-bonus-action:hover:not(:disabled) {
    background: #2b90ff;
    transform: translateY(-1px);
}

.raika-bonus-action:disabled {
    background: rgba(8, 31, 62, .58);
    color: rgba(221, 233, 248, .56);
    box-shadow: none;
    cursor: default;
}

.raika-bonus-status {
    margin-top: auto;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(1, 15, 37, .28);
    color: rgba(230, 240, 254, .78);
    font-size: 12px;
    font-weight: 700;
}

.raika-bonus-card-art {
    position: absolute;
    z-index: 2;
    right: -5px;
    bottom: -18px;
    width: 47%;
    height: 96%;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
    filter: drop-shadow(0 18px 25px rgba(0, 9, 28, .32));
}

.raika-bonus-card-rings {
    position: absolute;
    z-index: 0;
    right: -60px;
    top: -50px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
}

.raika-bonus-card-rings::before,
.raika-bonus-card-rings::after {
    content: "";
    position: absolute;
    inset: 44px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.raika-bonus-card-rings::after { inset: 90px; }

.raika-bonus-card-rakeback {
    background: linear-gradient(135deg, #112b52 0%, #0d5fc2 58%, #1688ff 100%);
}

.raika-bonus-card-rakeback .raika-bonus-card-art {
    width: 50%;
    height: 103%;
    right: -3%;
    bottom: -8%;
}

.raika-bonus-card-weekly {
    background: linear-gradient(135deg, #10335c 0%, #0871d2 58%, #04a0da 100%);
}

.raika-bonus-card-rank {
    background: linear-gradient(135deg, #182850 0%, #234d9f 55%, #307dee 100%);
}

.raika-bonus-card-active {
    background: linear-gradient(135deg, #132640 0%, #185296 55%, #0a78e8 100%);
}

.raika-bonus-card-deposit {
    background: linear-gradient(135deg, #102b53 0%, #1165c5 58%, #168aff 100%);
}

.raika-bonus-card-weekly .raika-bonus-card-art { width: 48%; height: 103%; right: -3%; bottom: -4%; }
.raika-bonus-card-rank .raika-bonus-card-art { width: 45%; right: -1%; bottom: -12%; }
.raika-bonus-card-active .raika-bonus-card-art { width: 55%; height: 112%; right: -8%; bottom: -13%; }
.raika-bonus-card-deposit .raika-bonus-card-art { width: 44%; right: -1%; }

.raika-rank-progress {
    width: 100%;
    margin: 3px 0 14px;
}

.raika-rank-progress > div {
    margin-bottom: 7px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    color: rgba(225, 235, 249, .72);
    font-size: 11px;
    font-weight: 700;
}

.raika-rank-progress > div b {
    max-width: 52%;
    color: #fff;
    text-align: right;
}

.raika-rank-progress > i {
    width: 100%;
    height: 8px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 14, 36, .34);
}

.raika-rank-progress > i em {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #78b6ff, #fff);
    box-shadow: 0 0 14px rgba(148, 198, 255, .5);
    transition: width .55s ease;
}

.raika-deposit-bonus-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.raika-deposit-bonus-list.is-single .raika-bonus-card {
    grid-column: 1 / -1;
}

.raika-deposit-bonus-list.is-single .raika-bonus-card-copy {
    width: min(58%, 700px);
}

.raika-deposit-bonus-list.is-single .raika-bonus-card-art {
    width: 44%;
    height: 110%;
    right: -4%;
    bottom: -10%;
}

.raika-bonus-history {
    padding: 26px;
    border: 1px solid #272f39;
    border-radius: 25px;
    background: #151a20;
}

.raika-bonus-history > header {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.raika-bonus-history > header span {
    color: #7f8b9c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.raika-bonus-history > header h2 {
    margin: 3px 0 0;
    color: #f7f9fd;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.raika-bonus-history > header button {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 13px;
    background: #20262e;
    color: #aab6c8;
    cursor: pointer;
}

.raika-bonus-history > header button svg {
    width: 19px;
    height: 19px;
}

.raika-bonus-history-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.raika-bonus-history-list article {
    min-width: 0;
    min-height: 69px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    background: #1c222a;
}

.raika-bonus-history-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(8, 124, 255, .15);
    color: #6fb2ff;
}

.raika-bonus-history-icon svg {
    width: 20px;
    height: 20px;
}

.raika-bonus-history-list article > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.raika-bonus-history-list article strong {
    overflow: hidden;
    color: #e9eef6;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.raika-bonus-history-list article small {
    margin-top: 2px;
    color: #788494;
    font-size: 11px;
    font-weight: 600;
}

.raika-bonus-history-list article > b {
    color: #61adff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.raika-bonus-history-empty {
    padding: 38px;
    border-radius: 17px;
    background: #1c222a;
    color: #7f8b9a;
    text-align: center;
    font-weight: 700;
}

.raika-bonuses-error {
    min-height: 270px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #29323d;
    border-radius: 25px;
    background: #151a20;
    text-align: center;
}

.raika-bonuses-error strong { font-size: 20px; }
.raika-bonuses-error span { color: #8591a1; }
.raika-bonuses-error button {
    min-height: 42px;
    margin-top: 12px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    background: #087cff;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

html[data-theme="light"] .raika-bonuses { color: #172335; }
html[data-theme="light"] .raika-bonus-tabs,
html[data-theme="light"] .raika-bonus-history,
html[data-theme="light"] .raika-bonuses-error {
    border-color: #d8e0ea;
    background: #fff;
}
html[data-theme="light"] .raika-bonus-tabs button { color: #687589; }
html[data-theme="light"] .raika-bonus-tabs button:hover,
html[data-theme="light"] .raika-bonus-tabs button.is-active { background: #eaf0f7; color: #172335; }
html[data-theme="light"] .raika-bonus-history > header h2 { color: #172335; }
html[data-theme="light"] .raika-bonus-history-list article,
html[data-theme="light"] .raika-bonus-history-empty { background: #f1f5f9; }
html[data-theme="light"] .raika-bonus-history-list article strong { color: #243348; }
html[data-theme="light"] .raika-bonus-history > header button { background: #edf2f7; color: #627187; }

@media (max-width: 1180px) {
    .raika-bonus-card-copy { width: 66%; }
    .raika-bonus-card-art { width: 43%; right: -4%; }
    .raika-bonuses-head-art { right: -10px; opacity: .88; }
}

@media (max-width: 860px) {
    .raika-bonuses { gap: 15px; }
    .raika-bonuses-head { min-height: 190px; padding: 28px; border-radius: 24px; }
    .raika-bonuses-head > div { max-width: calc(100% - 170px); }
    .raika-bonuses-head p { margin-top: 13px; font-size: 15px; }
    .raika-bonuses-head-art { width: 190px; height: 190px; right: -5px; bottom: -20px; }
    .raika-bonus-grid, .raika-bonus-loading { grid-template-columns: 1fr; }
    .raika-deposit-bonus-list { grid-template-columns: 1fr; }
    .raika-bonus-history-list { grid-template-columns: 1fr; }
    .raika-bonus-tabs button { height: 60px; padding: 0 10px; font-size: 13px; }
}

@media (max-width: 640px) {
    .raika-bonuses { width: 100%; gap: 12px; padding-bottom: 14px; }
    .raika-bonuses-head { min-height: 178px; padding: 23px 20px; border-radius: 21px; }
    .raika-bonuses-head > div { max-width: calc(100% - 105px); }
    .raika-bonuses-kicker { margin-bottom: 8px; font-size: 9px; }
    .raika-bonuses-kicker svg { width: 16px; height: 16px; }
    .raika-bonuses-head h1 { font-size: 39px; }
    .raika-bonuses-head p { max-width: 250px; margin-top: 11px; font-size: 12px; line-height: 1.42; }
    .raika-bonuses-head-art { width: 139px; height: 139px; right: -17px; bottom: -9px; }

    .raika-bonus-tabs {
        grid-template-columns: repeat(4, minmax(74px, 1fr));
        gap: 4px;
        padding: 5px;
        overflow-x: auto;
        border-radius: 16px;
        scrollbar-width: none;
    }
    .raika-bonus-tabs::-webkit-scrollbar { display: none; }
    .raika-bonus-tabs button {
        height: 58px;
        padding: 5px 7px;
        flex-direction: column;
        gap: 4px;
        border-radius: 12px;
        font-size: 10px;
        white-space: nowrap;
    }
    .raika-bonus-tab-icon { flex-basis: 28px; width: 28px; height: 28px; border-radius: 9px; }
    .raika-bonus-tab-icon svg { width: 16px; height: 16px; }

    .raika-bonus-loading span { height: 274px; border-radius: 21px; }
    .raika-bonus-card { min-height: 284px; padding: 23px 20px; border-radius: 22px; }
    .raika-bonus-card-copy { width: 66%; }
    .raika-bonus-card-label { margin-bottom: 9px; padding: 7px 9px; font-size: 9px; }
    .raika-bonus-card h2 { font-size: 27px; }
    .raika-bonus-card p { margin: 9px 0 13px; font-size: 11px; line-height: 1.4; }
    .raika-bonus-value strong { font-size: 22px; }
    .raika-bonus-action { min-height: 41px; padding: 0 16px; font-size: 12px; }
    .raika-bonus-status { padding: 8px 9px; font-size: 9px; }
    .raika-bonus-card-art { width: 47%; height: 88%; right: -5%; bottom: -6%; }
    .raika-bonus-card-rakeback .raika-bonus-card-art { width: 49%; height: 91%; right: -5%; bottom: -8%; }
    .raika-bonus-card-weekly .raika-bonus-card-art { width: 47%; height: 92%; right: -4%; bottom: -5%; }
    .raika-bonus-card-rank .raika-bonus-card-art { width: 48%; right: -3%; bottom: -9%; }
    .raika-bonus-grid[data-active-filter="rank"] .raika-bonus-card-rank .raika-bonus-card-copy { width: 70%; }
    .raika-bonus-grid[data-active-filter="rank"] .raika-bonus-card-rank .raika-bonus-card-art { width: 50%; height: 96%; right: -5%; bottom: -12%; }
    .raika-bonus-grid[data-active-filter="active"] .raika-bonus-card-active .raika-bonus-card-copy { width: 70%; }
    .raika-bonus-grid[data-active-filter="active"] .raika-bonus-card-active .raika-bonus-card-art { width: 52%; height: 102%; right: -8%; bottom: -12%; }
    .raika-bonus-card-active .raika-bonus-card-art { width: 52%; height: 102%; right: -8%; bottom: -12%; }
    .raika-bonus-card-deposit .raika-bonus-card-art { width: 45%; right: -2%; }
    .raika-deposit-bonus-list.is-single .raika-bonus-card-copy { width: 70%; }
    .raika-deposit-bonus-list.is-single .raika-bonus-card-art { width: 49%; height: 101%; right: -5%; bottom: -9%; }
    .raika-rank-progress > div { font-size: 9px; }

    .raika-bonus-history { padding: 18px 14px; border-radius: 21px; }
    .raika-bonus-history > header { margin-bottom: 13px; }
    .raika-bonus-history > header span { font-size: 9px; }
    .raika-bonus-history > header h2 { font-size: 19px; }
    .raika-bonus-history > header button { width: 39px; height: 39px; }
    .raika-bonus-history-list article { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; padding: 10px; }
    .raika-bonus-history-icon { width: 38px; height: 38px; }
    .raika-bonus-history-list article strong { font-size: 11px; }
    .raika-bonus-history-list article > b { font-size: 11px; }
}

@media (max-width: 390px) {
    .raika-bonuses-head > div { max-width: calc(100% - 84px); }
    .raika-bonuses-head-art { width: 122px; right: -24px; }
    .raika-bonus-card-copy { width: 70%; }
    .raika-bonus-card h2 { font-size: 24px; }
    .raika-bonus-card-art { opacity: .9; }
}
