.button.primary,
.header-toggle .active,
.account-button {
    color: #fff;
}
:root {
    --sidebar-width: 220px;
}
.authenticated {
    --sidebar-width: 240px;
}
.main-content {
    background: var(--background);
}

.banner-slide picture {
    display: block;
    border-radius: inherit;
    overflow: hidden;
}
.content-page .card,
.finance-dialog {
    background: var(--surface);
    border-color: var(--surface-border);
}
.top-bar {
    background: var(--surface-inset);
}
.left-header {
    flex: 1;
    min-width: 0;
    gap: 24px;
}
.left-header .logo {
    flex: 0 0 calc(var(--sidebar-width) - 32px);
}
.header-explore {
    display: flex;
    gap: 26px;
    height: 64px;
    align-items: stretch;
}
.header-explore a {
    display: flex;
    position: relative;
    align-items: center;
    gap: 8px;
    color: #859abb;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.header-explore .icon {
    width: 17px;
    height: 17px;
}
.header-explore a:hover,
.header-explore .active {
    color: #d7e9ff;
}
.header-explore .active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #5b98ff;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -3px 16px #2563eb77;
}
.header-search {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 150px;
    max-width: 320px;
    height: 35px;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background: var(--surface-inset);
}
.header-search .icon {
    color: #678cc3;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.header-search input {
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 10px;
    color: #d7e9ff;
}
.header-search input::placeholder {
    color: #8095b7;
}
.header-search:focus-within {
    border-color: #6ea8ff;
}
.header-search button {
    padding: 0;
    background: transparent;
    border: 0;
    color: #7793bb;
}
.content-page .table-wrap .table-heading {
    padding: 22px 24px 18px;
}
.header-reward {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    margin-right: 24px;
    padding-left: 20px;
    border-left: 1px solid #213352;
    white-space: nowrap;
}
.header-reward img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.header-reward span {
    display: grid;
    gap: 5px;
}
.header-reward small {
    color: #7d96bb;
    font-size: 8px;
    letter-spacing: 0.08em;
}
.header-reward strong {
    color: #d7e9ff;
    font-size: 11px;
}
.header-reward b {
    color: #6ea8ff;
    margin-left: 7px;
}
.header-buttons .header-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 44px;
    padding: 7px 15px;
    background: linear-gradient(160deg, #3276f4, #2154cb);
    border-color: #477dde;
    border-radius: 11px;
    box-shadow: inset 0 1px 0 #ffffff12;
}
.header-cta-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 750;
}
.header-cta-label .icon {
    width: 14px;
    height: 14px;
}
.header-cta-note {
    color: #c3dbff;
    font-size: 8px;
    line-height: 1.2;
    font-weight: 500;
}
.user-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}
.account-button {
    padding: 0;
    overflow: hidden;
    background: var(--surface-raised);
    border-color: var(--surface-border);
}
.account-avatar {
    padding: 0;
    overflow: hidden;
}
.button-with-badge {
    position: relative;
}
.button-badge {
    position: absolute;
    top: -9px;
    right: -4px;
    display: block;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 8px;
    line-height: 1.1;
    font-weight: 800;
    color: #102b51;
    background: #b6dcff;
    border: 1px solid #e3f1ff;
    box-shadow: 0 3px 9px #0005;
    white-space: nowrap;
}
.hamburger-btn {
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--surface-border);
    border-radius: 11px;
    background: var(--surface-raised);
}
.hamburger-btn span {
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #d7e9ff;
    transition: width 0.2s;
}
.hamburger-btn span:nth-child(2) {
    width: 11px;
    align-self: flex-start;
}
.hamburger-btn:hover span:nth-child(2) {
    width: 16px;
}
.terms-check input[type='checkbox'],
.content-page input[type='checkbox'] {
    appearance: none;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--surface-border);
    border-radius: 6px;
    background: var(--surface-inset);
    display: grid;
    place-content: center;
    cursor: pointer;
}
.terms-check input[type='checkbox']::after,
.content-page input[type='checkbox']::after {
    content: '';
    width: 9px;
    height: 5px;
    border: solid #fff;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg) scale(0);
}
.terms-check input[type='checkbox']:checked,
.content-page input[type='checkbox']:checked {
    background: var(--primary);
    border-color: #79aeff;
}
.terms-check input[type='checkbox']:checked::after,
.content-page input[type='checkbox']:checked::after {
    transform: rotate(-45deg) scale(1);
}
.terms-check input[type='checkbox']:focus-visible,
.content-page input[type='checkbox']:focus-visible {
    outline: 2px solid #79aeff;
    outline-offset: 3px;
}
.affiliate-pagination-summary {
    margin-top: 22px;
    color: var(--muted);
    font-size: 11px;
}
.deposit-promotion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--surface-border);
    border-radius: 13px;
    background: var(--surface-raised);
}
.deposit-promotion-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #2563eb33;
    color: #89baff;
}
.deposit-promotion div {
    display: grid;
    gap: 5px;
}
.deposit-promotion small {
    font-size: 8px;
    color: #8fbdff;
    letter-spacing: 0.08em;
}
.deposit-promotion strong {
    font-size: 13px;
}
.deposit-promotion p {
    color: #93aacc;
    font-size: 10px;
}
.bonus-amount-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.bonus-amount-options button {
    display: grid;
    gap: 6px;
    padding: 13px 7px 9px;
    background: var(--surface-raised);
    border: 1px solid var(--surface-border);
    border-radius: 11px;
    color: #dbeaff;
    text-align: center;
    transition:
        background 0.2s,
        border-color 0.2s;
}
.bonus-amount-options button:hover,
.bonus-amount-options .is-active {
    background: #164183;
    border-color: #7db2ff;
}
.bonus-amount-options small {
    font-size: 9px;
    color: #9aafd0;
}
.bonus-amount-options strong {
    font-size: 13px;
}
.bonus-amount-options button > span {
    border-radius: 5px;
    background: #2563eb25;
    font-size: 9px;
    padding: 5px 0;
    color: #9bc8ff;
}
.deposit-bonus-summary {
    display: grid;
    grid-template-columns: 1fr 16px 1fr 1.3fr;
    align-items: center;
    gap: 10px;
    padding: 14px;
    margin-bottom: 20px;
    background: var(--surface-inset);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
}
.deposit-bonus-summary div {
    display: grid;
    gap: 7px;
}
.deposit-bonus-summary div > span {
    font-size: 9px;
    color: #8ca6ce;
}
.deposit-bonus-summary strong {
    font-size: 13px;
    color: #e0edff;
}
.deposit-bonus-summary .bonus-math {
    color: #6d8ebd;
}
.deposit-bonus-summary .bonus-total {
    border-left: 1px solid #2c4469;
    padding-left: 12px;
}
.deposit-bonus-summary .bonus-total strong {
    color: #93c3ff;
    font-size: 16px;
}
.deposit-bonus-summary > small {
    grid-column: 1 / -1;
    color: #889fbe;
    font-size: 9px;
    line-height: 1.6;
    padding-top: 4px;
}
.payment-bonus-summary {
    display: grid;
    gap: 13px;
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    background: var(--surface-raised);
}
.payment-bonus-summary > span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
}
.payment-bonus-summary strong {
    margin-left: auto;
    color: #b0d4ff;
}
.payment-bonus-summary .icon {
    width: 17px;
    height: 17px;
    color: #79aeff;
}
@media (min-width: 901px) {
    .hamburger-btn {
        display: none;
    }
}
@media (max-width: 1200px) {
    .header-reward {
        display: none;
    }
}
@media (max-width: 1000px) {
    .header-explore {
        gap: 18px;
    }
    .left-header {
        gap: 15px;
    }
}
@media (max-width: 900px) {
    .header-explore {
        display: none;
    }
    .left-header {
        gap: 10px;
        flex: initial;
    }
    .left-header .logo {
        flex: initial;
    }
}
@media (max-width: 600px) {
    .top-bar .left-header {
        flex: 1;
        gap: 8px;
        overflow: hidden;
    }
    .top-bar .logo {
        flex: 1;
        min-width: 0;
    }
    .top-bar .logo .brand-wordmark {
        max-width: 100%;
        font-size: 15px;
    }
    .top-bar .logo img {
        max-width: 100%;
        max-height: 30px;
        object-fit: contain;
    }
    .top-bar .header-buttons {
        flex-shrink: 0;
        gap: 6px;
    }
    .header-balance {
        white-space: nowrap;
        padding: 8px;
        gap: 0;
        font-size: 11px;
    }
    .header-balance > .icon {
        display: none;
    }
    .header-buttons .account-button {
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
    }
    .hamburger-btn {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    .header-buttons .header-cta {
        padding: 5px 11px;
        min-height: 38px;
        gap: 2px;
    }
    .header-cta-label {
        font-size: 11px;
    }
    .header-cta-note {
        font-size: 7px;
    }
    .button-badge {
        font-size: 7px;
        top: -8px;
        padding: 3px 5px;
    }
    .bonus-amount-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bonus-amount-options button {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        text-align: left;
        padding: 11px;
        gap: 5px;
    }
    .bonus-amount-options button > small {
        grid-column: 1 / -1;
    }
    .bonus-amount-options button > span {
        font-size: 8px;
        text-align: center;
    }
    .bonus-amount-options strong {
        font-size: 11px;
        white-space: nowrap;
    }
    .deposit-bonus-summary {
        gap: 7px;
        padding: 12px;
    }
    .deposit-bonus-summary strong {
        font-size: 11px;
    }
    .deposit-bonus-summary .bonus-total strong {
        font-size: 14px;
    }
}
.brand-wordmark {
    display: inline-block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: var(--foreground);
}
.logo .brand-wordmark {
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.footer-about .brand-wordmark {
    margin-bottom: 14px;
}
.left-sidebar {
    padding: 18px 10px;
    background: var(--surface-inset);
}

.search-form {
    border: 1px solid var(--surface-border);
    border-radius: 13px;
    background: var(--surface-inset);
    color: #6ea8ff;
    min-height: 48px;
}
.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #2563eb15;
}
.search-form input {
    color: var(--foreground);
}
.search-form input::placeholder {
    color: #8095b7;
}
.search-form button {
    color: #6ea8ff;
}
.currency-input input[type='number'] {
    appearance: textfield;
    -moz-appearance: textfield;
}
.currency-input input[type='number']::-webkit-outer-spin-button,
.currency-input input[type='number']::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.account-page {
    max-width: 1000px;
}
.account-page .eyebrow {
    display: inline-block;
    margin-bottom: 8px;
}
.account-summary {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    margin: 0 0 24px;
}
.account-avatar {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    height: 64px;
    width: 64px;
    border-radius: 18px;
    background: var(--surface-raised);
    color: #fff;
    font-weight: 800;
    font-size: 27px;
    box-shadow: 0 7px 25px #2563eb22;
}
.account-identity {
    min-width: 0;
    flex: 1;
}
.account-identity h2 {
    overflow-wrap: anywhere;
    margin-bottom: 4px;
}
.account-identity p {
    color: #b8c5df;
    overflow-wrap: anywhere;
}
.account-identity small {
    color: var(--muted);
    font-size: 11px;
    display: block;
    margin-top: 8px;
}
.account-member {
    color: #b6c9ed;
    font-size: 11px;
    padding: 7px 10px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    white-space: nowrap;
}
.account-tabs {
    margin-bottom: 20px;
}
.account-panel.card {
    padding: 28px;
    border-radius: 16px;
}
.account-panel-heading {
    margin-bottom: 24px;
}
.account-panel-heading p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}
.account-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 22px;
}
.account-form .field small {
    font-size: 11px;
    font-weight: 400;
}
.account-form-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.account-form-footer > span {
    font-size: 11px;
}
.security-form {
    max-width: 620px;
}
.account-balances {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.account-balances > div {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding: 22px;
    background: var(--surface-inset);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.account-balances span {
    color: var(--muted);
    font-size: 12px;
}
.account-balances strong {
    color: #b5c9fc;
    font-size: 27px;
}
.account-wallet-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-top: 24px;
    font-size: 12px;
    color: #6ea8ff;
}
.account-wallet-links span {
    padding-left: 7px;
}
.account-session {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
}
.account-session p {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 900px) {
    .left-sidebar {
        padding: 52px 14px 90px;
    }
}
@media (max-width: 600px) {
    .account-summary {
        padding: 18px;
        gap: 13px;
        flex-wrap: wrap;
    }
    .account-avatar {
        height: 52px;
        width: 52px;
        border-radius: 15px;
        font-size: 23px;
    }
    .account-member {
        margin-left: 65px;
    }
    .account-panel.card {
        padding: 20px;
    }
    .account-fields,
    .account-balances {
        grid-template-columns: minmax(0, 1fr);
    }
    .account-form-footer,
    .account-session {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }
    .account-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }
    .account-tabs button {
        flex-shrink: 0;
        padding-inline: 13px;
        font-size: 12px;
    }
}
.header-register {
    position: relative;
    overflow: visible;
    gap: 7px;
}
.registration-badge {
    position: absolute;
    top: -7px;
    right: -5px;
    padding: 3px 6px;
    border-radius: 7px;
    border: 2px solid #07122d;
    background: #58b4ff;
    box-shadow: 0 2px 7px #0004;
    color: #071a39;
    font-size: 7px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.025em;
    white-space: nowrap;
}
.top-bar .header-buttons .deposit-top,
.user-dialog .user-menu-actions .primary {
    background: linear-gradient(150deg, #21b971, #0c9651);
    border-color: #32cf85;
    color: #fff;
    box-shadow:
        inset 0 1px 0 #ffffff25,
        0 3px 12px #15ad6420;
}
.top-bar .header-buttons .deposit-top:hover,
.user-dialog .user-menu-actions .primary:hover {
    background: linear-gradient(150deg, #29cc7f, #12a95d);
}
