
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    background: #253992;
    height: 100%;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    background: #e0e8f3;
    min-width: 320px;
    color: #495463;
    overflow-x: hidden;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.page-user {
    opacity: 1;
}

@media (min-width: 768px) {
    body {
        font-size: 15px;
    }
}

a {
    outline: 0;
    transition: all 0.5s;
    color: #1c65c9;
    text-decoration: none;
}

a:hover,
a:focus,
a:active {
    outline: 0;
    color: #253992;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 12px;
}

h1, h2, h4, h5 {
    color: #253992;
}

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
}

.topbar-wrap {
    padding-top: 0;
    flex-shrink: 0;
    overflow: hidden;
}

.topbar {
    background: #253992;
    padding: 8px 0;
    overflow: hidden;
}

.topbar .logo {
    font-weight: 700;
    font-size: 32px;
    color: #fff;
    text-decoration: none;
    display: block;
    text-align: center;
}

.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.navbar-innr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.navbar-menu {
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin-right: 25px;
}

.navbar-menu li a {
    color: #495463;
    font-weight: 500;
    padding: 8px 0;
    display: inline-block;
    transition: all 0.3s;
}

.navbar-menu li a:hover,
.navbar-menu li.active a {
    color: #2c80ff;
}

.navbar-btns {
    display: flex;
    align-items: center;
}

.navbar-btns li {
    margin-left: 10px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.aside {
    padding: 0 15px;
}

.sidebar-right {
    width: 25%;
    order: -1;
}

.main-content {
    width: 75%;
    padding: 0 15px;
}

@media (max-width: 991px) {
    .row {
        margin: 0;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .sidebar-right,
    .main-content {
        width: 100%;
        padding: 0;
    }
    .sidebar-right {
        margin-bottom: 20px;
        order: 0;
    }
}

.card {
    background: #fff;
    box-shadow: rgb(195, 208, 224) 2px 2px 20px 0px;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
    max-width: 100%;
}

.content-area {
    background: #fff;
    overflow-x: hidden;
    max-width: 100%;
    flex: 1 0 auto;
}

.card-innr {
    padding: 16px 20px;
    border-color: #e6effb !important;
}

@media (min-width: 576px) {
    .card-innr {
        padding: 25px 30px;
    }
}

.card-head {
    padding-bottom: 18px;
}

.card-head.has-aside {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

@media (max-width: 480px) {
    .card-head.has-aside {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-head.has-aside .card-opt {
        position: absolute;
        right: 0;
        top: 0;
    }
}

.card-title {
    color: #253992;
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 0;
}

@media (min-width: 576px) {
    .card-title {
        font-size: 1.4em;
    }
}

.card-sub-title {
    text-transform: uppercase;
    color: #758698;
    letter-spacing: 0.1em;
    font-size: 12px;
    display: block;
}

.card-tyy {
    margin-top: 5px;
    padding-bottom: 10px;
    letter-spacing: 0 !important;
}

.card-tyy1 {
    padding-bottom: 3px;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 22px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.4s;
    cursor: pointer;
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 6px 15px;
    font-size: 12px;
}

.btn-primary {
    color: #fff;
    background: #2c80ff;
    border-color: #2c80ff;
    box-shadow: 0 5px 23px 0 rgba(0, 125, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #fff;
    background: #005fee;
    border-color: #005fee;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: default;
}

.btn-light {
    color: #fff;
    background: #758698;
    border-color: #758698;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
    color: #fff;
    background: #68798b;
    border-color: #68798b;
}

.btn-success {
    color: #fff;
    background: linear-gradient(to right, #0ACB90, #2BDE6D);
    border-color: transparent;
    box-shadow: 0 5px 23px 0 rgba(0, 215, 126, 0.27);
}

.btn-danger {
    color: #fff;
    background: #ff6868;
    border-color: #ff6868;
}

.bg-danger {
    background: #ff6868 !important;
    color: #fff;
}

.btn-outline {
    background: transparent;
}

.btn-outline.btn-light {
    color: #758698;
    border-color: #c9cfd6;
    background: transparent;
}

.btn-outline.btn-light:hover {
    color: #68798b !important;
    border-color: #92a0ae;
    background: transparent;
}

.btn-outline.btn-dark {
    color: #495463;
    border-color: #495463;
}

.btn-outline.btn-dark:hover {
    color: #fff;
    background: #495463;
}

.btn-facebook {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-facebook em {
    font-size: 1.2em;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.badge-light {
    color: #758698;
    background: #e6effb;
}

.badge-light:hover {
    background: #d9e7f9;
}

.badge-dim {
    background: rgba(230, 239, 251, 0.7);
}

.badge-md {
    padding: 4px 6px;
    min-width: 0 !important;
}

.input-item {
    margin-bottom: 15px;
}

.input-item-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495463;
}

.input-bordered {
    width: 100%;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #d2dde9;
    background: #fff;
    color: #495463;
    font-size: 14px;
    transition: all 0.3s;
}

.input-bordered::placeholder {
    color: #758698;
}

.input-bordered:focus {
    box-shadow: none;
    outline: none;
    border-color: #b1becc;
}

.input-bordered:disabled {
    background: rgba(230, 239, 251, 0.2);
}

.input-with-label {
    margin-bottom: 0;
}

.input-with-label label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495463;
    font-size: 14px;
}

.nav-tabs {
    display: flex;
    border-bottom: 1px solid #e6effb;
    margin-bottom: 0;
    padding: 0;
}

.nav-tabs .nav-item {
    margin-bottom: -1px;
}

.nav-tabs .nav-link {
    display: block;
    padding: 12px 20px;
    color: #758698;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    color: #2c80ff;
}

.nav-tabs .nav-link.active {
    color: #2c80ff;
    border-bottom-color: #2c80ff;
}

.nav-tabs-line {
    border-bottom: 1px solid #e6effb;
}

.tab-content {
    padding-top: 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane.show {
    display: block;
}

.fade {
    opacity: 1;
    transition: opacity 0.15s linear;
}

.token-info-list {
    padding: 0;
    margin: 0;
    padding-bottom: 0;
}

.token-info-list li {
    font-size: 64px;
    font-weight: 400;
    color: #253992;
    margin-top: 0;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .token-info-list li {
        font-size: 48px;
    }
}

.gaps-2x {
    height: 20px;
}

.form-note {
    font-size: 13px;
    color: #758698;
}

.row.no-gutters {
    margin: 0;
}

.row.no-gutters > [class*="col-"] {
    padding: 0;
}

@media (max-width: 767px) {
    .row.no-gutters {
        display: block;
    }

    .row.no-gutters > [class*="col-"] {
        width: 100%;
        margin-bottom: 15px;
    }

    .row.no-gutters > .col-md-1 {
        display: none;
        margin-bottom: 0;
    }

    /* Inner row for game controls */
    .row.no-gutters .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -8px;
    }

    .row.no-gutters .row > .col-6 {
        width: 50%;
        padding: 0 8px;
    }

    .row.no-gutters .row > .col-12 {
        width: 100%;
        padding: 0 8px;
    }
}

.col-6 {
    width: 50%;
    padding: 0 15px;
}

.col-12 {
    width: 100%;
    padding: 0 15px;
}

.col-md-6 {
    width: 50%;
    padding: 0 15px;
}

.col-md-5 {
    width: 41.666667%;
    padding: 0 15px;
}

.col-md-1 {
    width: 8.333333%;
    padding: 0 15px;
}

@media (max-width: 767px) {
    .col-md-6,
    .col-md-5,
    .col-md-1 {
        width: 100%;
        padding: 0;
    }

    .col-md-1 {
        display: none;
    }
}

.d-flex {
    display: flex !important;
}

.d-sm-flex {
    display: flex !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.text-center {
    text-align: center !important;
}

.height-100 {
    height: 100%;
}

.heded {
    min-height: 180px;
}

@media (max-width: 576px) {
    .heded {
        min-height: auto;
    }
}

.desProfit {
    display: block;
}

.mobileProfit {
    display: none;
}

@media (max-width: 576px) {
    .desProfit {
        display: none;
    }
    .mobileProfit {
        padding-top: 20px;
        display: block;
    }
    .hbetf {
        display: none;
    }

    /* Fix game section margin on mobile */
    .tab-content > .tab-pane > div[style*="margin-top:50px"] {
        margin-top: 20px !important;
    }
}

.online-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.online-count {
    font-size: 14px;
    color: #495463;
    font-weight: 500;
}

.games-header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.circle-online {
    width: 8px;
    height: 8px;
    background: linear-gradient(to right, #0ACB90, #2BDE6D);
    border-radius: 100%;
    display: inline-block;
    flex-shrink: 0;
}

.pulse-online {
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(10, 203, 144, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(10, 203, 144, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(10, 203, 144, 0);
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th {
    padding: 12px 10px;
    text-align: center;
    font-weight: 500;
    color: #758698;
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid #e6effb;
}

.table td {
    padding: 12px 10px;
    text-align: center;
    color: #495463;
    font-size: 13px;
    border-bottom: 1px solid #e6effb;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(230, 239, 251, 0.3);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

@media (max-width: 767px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

.tnx-table th,
.tnx-table td {
    white-space: nowrap;
}

.hidden-mobile {
    display: none !important;
}

.win-amount,
.text-success {
    color: #00d285 !important;
    font-weight: 500;
}

.lose-amount,
.text-danger {
    color: #ff6868 !important;
}

.chance-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.chance-progress {
    flex: 1;
    max-width: 60px;
    height: 6px;
    background: #e6effb;
    border-radius: 3px;
    overflow: hidden;
}

.chance-fill {
    height: 100%;
    background: #2c80ff;
    border-radius: 3px;
}

.chance-value {
    font-size: 12px;
    color: #758698;
    min-width: 35px;
}

.loader {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: auto;
    font-size: 10px;
    text-indent: -9999em;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid #ffffff;
    transform: translateZ(0);
    animation: load8 1.1s infinite linear;
}

@keyframes load8 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cssload-loader {
    position: relative;
    width: 54px;
    height: 54px;
    margin: 0 auto;
    border-radius: 50%;
    perspective: 780px;
}

.cssload-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 50%;
}

.cssload-inner.cssload-one {
    left: 0;
    top: 0;
    animation: cssload-rotate-one 1.15s linear infinite;
    border-bottom: 3px solid #2c80ff;
}

.cssload-inner.cssload-two {
    right: 0;
    top: 0;
    animation: cssload-rotate-two 1.15s linear infinite;
    border-right: 3px solid #758698;
}

.cssload-inner.cssload-three {
    right: 0;
    bottom: 0;
    animation: cssload-rotate-three 1.15s linear infinite;
    border-top: 3px solid #253992;
}

@keyframes cssload-rotate-one {
    0% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0);
    }
    100% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes cssload-rotate-two {
    0% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0);
    }
    100% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@keyframes cssload-rotate-three {
    0% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0);
    }
    100% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

.user-panel .user-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.user-panel .user-avatar {
    width: 50px;
    height: 50px;
    background: #e6effb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.user-panel .user-avatar i {
    font-size: 24px;
    color: #758698;
}

.user-panel .user-name {
    font-weight: 600;
    color: #253992;
    font-size: 16px;
}

.user-panel .user-id {
    font-size: 12px;
    color: #758698;
}

.user-balance-block {
    background: linear-gradient(45deg, #1c65c9 0%, #2c80ff 100%);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.user-balance-block .balance-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 5px;
}

.user-balance-block .balance-value {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}

.user-stats .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e6effb;
}

.user-stats .stat-item:last-child {
    border-bottom: none;
}

.user-stats .stat-label {
    color: #758698;
    font-size: 13px;
}

.user-stats .stat-value {
    color: #253992;
    font-weight: 500;
}

.card-opt {
    position: relative;
}

.card-opt > a {
    opacity: 0.8;
    font-weight: bold;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    background: #fff;
    border-radius: 4px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.modal-content {
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    color: #758698;
}

.popup-body {
    padding: 30px;
}

.link {
    cursor: pointer;
}

.link-light {
    color: #758698;
}

.auth-notice {
    text-align: center;
    padding: 15px;
    background: rgba(230, 239, 251, 0.5);
    border-radius: 4px;
    margin-top: 15px;
    color: #758698;
}

.auth-notice i {
    margin-right: 8px;
}

.section-header {
    display: flex;
    align-items: center;
}

.section-title {
    color: #253992;
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 0;
}

.games-count {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.games-count .dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(to right, #0ACB90, #2BDE6D);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 4s infinite;
}

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #758698;
    margin-left: auto;
}

.error-message {
    background: #ff6868;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    text-align: center;
    pointer-events: none;
}

.sap-text {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.sap-text span {
    background: #fff;
    padding: 0 15px;
    color: #758698;
    position: relative;
    z-index: 1;
}

.sap-text::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e6effb;
}

.guttar-20px {
    margin: 0 -10px;
}

.guttar-20px > li,
.guttar-20px > .col {
    padding: 0 10px;
}

.guttar-vr-20px > li,
.guttar-vr-20px > .col {
    margin-bottom: 20px;
}

.col {
    flex: 1;
}

@media (max-width: 991px) {
    .navbar-menu {
        display: none;
    }

    .navbar-menu.mmmob {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
}

@media (max-width: 576px) {
    .token-info-list li {
        font-size: 48px;
    }

    .mobile {
        display: flex;
    }
}

.ti-angle-down:before {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.ti-angle-up:before {
    content: "\f106";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.ti-close:before {
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.result-display {
    text-align: center;
    padding: 20px 0;
}

.result-number {
    font-size: 48px;
    font-weight: bold;
    color: #253992;
    letter-spacing: 5px;
}

.result-message {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 500;
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
}

[style*="display:none"],
[style*="display: none"] {
    display: none !important;
}

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 5px !important; }
.mt-2 { margin-top: 10px !important; }
.mt-3 { margin-top: 15px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 5px !important; }
.mb-2 { margin-bottom: 10px !important; }
.mb-3 { margin-bottom: 15px !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

.btn-vk {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-vk em,
.btn-vk i {
    color: #fff;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
}

.game-section {
    margin-top: 30px;
}

@media (max-width: 767px) {
    .game-section {
        margin-top: 15px;
    }
}

.game-row {
    display: flex;
    margin: 30px 0;
}

.game-left {
    flex: 1;
}

.game-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-actions {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}

.tll {
    margin-left: -15px;
    margin-top: 6px;
}

@media (max-width: 576px) {
    .tll {
        margin-left: 19px;
        margin-top: 6px;
    }
}

.black-divider {
    background: #000;
    padding: 0 20px !important;
    height: 3px;
    margin: 10px 0;
}

#hashBet {
    font-size: 10px;
    color: #758698;
    word-break: break-all;
}

.topbar-innr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 40px;
    overflow: hidden;
}

.topbar-innr .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.toggle-nav {
    flex-shrink: 0;
}

.header-balance {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-vk-mobile {
    padding: 6px 10px;
}

.btn-vk-mobile em {
    color: #fff;
    font-size: 16px;
}

.toggle-nav {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
    z-index: 1001;
}

.toggle-line {
    position: relative;
    display: block;
    width: 28px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.4s;
    border-radius: 1px;
}

.toggle-line:nth-child(2) {
    width: 70%;
}

.toggle-line:nth-child(3) {
    width: 85%;
}

.toggle-nav.active .toggle-line {
    width: 28px;
}

.toggle-nav.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.toggle-nav.active .toggle-line:nth-child(2) {
    opacity: 0;
}

.toggle-nav.active .toggle-line:nth-child(3) {
    opacity: 0;
}

.toggle-nav.active .toggle-line:nth-child(4) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.navbar {
    position: fixed;
    left: -290px;
    top: 0;
    height: 100vh;
    width: 260px;
    z-index: 1000;
    background: #fff;
    box-shadow: 0px 4px 35px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    padding: 0;
    overflow-y: auto;
}

.navbar.active {
    left: 0;
}

.navbar-mobile {
    display: block;
    padding: 20px;
    padding-top: 70px;
}

.navbar-desktop {
    display: none;
}

.navbar-mobile .navbar-menu {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.navbar-mobile .navbar-menu li {
    margin: 0;
    border-bottom: 1px solid #e6effb;
}

.navbar-mobile .navbar-menu li:last-child {
    border-bottom: none;
}

.navbar-mobile .navbar-menu li a {
    display: block;
    padding: 15px 0;
    color: #495463;
    font-weight: 500;
    font-size: 15px;
}

.navbar-mobile .navbar-menu li a:hover,
.navbar-mobile .navbar-menu li.active a {
    color: #2c80ff;
}

.navbar-auth {
    padding-top: 20px;
    border-top: 1px solid #e6effb;
}

.navbar-auth .btn {
    margin-bottom: 10px;
}

.navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.navbar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 992px) {
    .toggle-nav {
        display: none;
    }

    .topbar-innr {
        justify-content: center;
    }

    .topbar-right {
        display: none;
    }

    .navbar {
        position: relative;
        left: 0;
        top: 0;
        height: auto;
        width: 100%;
        z-index: auto;
        transition: none;
        overflow: visible;
    }

    .navbar-mobile {
        display: none;
    }

    .navbar-desktop {
        display: block;
    }

    .navbar-innr {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
    }

    .navbar-menu {
        display: flex;
        flex-direction: row;
        margin: 0;
    }

    .navbar-menu li {
        margin-right: 25px;
        border: none;
    }

    .navbar-menu li a {
        padding: 8px 0;
        display: inline-block;
    }

    .navbar-btns {
        display: flex;
        align-items: center;
    }

    .navbar-btns li {
        margin-left: 10px;
    }

    .navbar-overlay {
        display: none;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }

    .sidebar-right {
        width: 100%;
        order: 0;
        margin-bottom: 20px;
    }

    .main-content {
        width: 100%;
    }

    .card-innr {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .topbar {
        padding: 10px 0;
    }

    .topbar .logo {
        font-size: 22px;
    }

    .container {
        padding: 0 12px;
        max-width: 100%;
    }

    .row {
        margin: 0;
        margin-top: 15px;
        margin-bottom: 25px;
    }

    .aside,
    .main-content {
        padding: 0;
    }

    .card-innr {
        padding: 15px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .sidebar-right {
        width: 100%;
        order: 0;
        margin-bottom: 15px;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Table responsive for mobile */
    .table th,
    .table td {
        padding: 8px 5px;
        font-size: 11px;
    }

    .table th:first-child,
    .table td:first-child {
        padding-left: 10px;
    }

    .table th:last-child,
    .table td:last-child {
        padding-right: 10px;
    }

    /* Fix game controls on mobile */
    .col-6 {
        padding: 0 8px;
    }

    .col-12 {
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 10px 0;
    }

    .topbar .logo {
        font-size: 20px;
    }

    .header-balance {
        font-size: 12px;
    }

    .card-title {
        font-size: 1.1em;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .btn-sm {
        padding: 5px 12px;
        font-size: 11px;
    }

    .container {
        padding: 0 10px;
    }

    .card-innr {
        padding: 12px;
    }

    /* Fix inputs on small screens */
    .input-bordered {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* Fix chance bar */
    .chance-bar {
        gap: 4px;
    }

    .chance-progress {
        max-width: 40px;
    }

    .chance-value {
        font-size: 11px;
        min-width: 30px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

    .card-innr {
        padding: 10px;
    }

    .topbar .logo {
        font-size: 18px;
    }

    .table th,
    .table td {
        padding: 6px 3px;
        font-size: 10px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

body.menu-open {
    overflow: hidden;
}

.token-statistics.card-token {
    background: linear-gradient(135deg, #1c65c9 0%, #2c80ff 100%);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.user-photo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

.token-balance-mobile {
    display: block;
    text-align: center;
}

.token-balance-desktop {
    display: none;
    align-items: center;
    gap: 15px;
}

.token-balance-text {
    color: #fff;
}

.token-balance-text .card-sub-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.balance-amount {
    color: #fff;
    font-weight: 600;
    font-size: 1.6em;
    line-height: 1;
    letter-spacing: -0.02em;
}

.token-balance-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.token-balance-actions.desktop {
    display: none;
}

.btn-xs {
    padding: 5px 12px;
    font-size: 12px;
}

@media (min-width: 992px) {
    .token-balance-mobile {
        display: none;
    }

    .token-balance-desktop {
        display: flex;
    }

    .token-balance-actions.desktop {
        display: flex;
        margin-top: 15px;
    }
}

.wager-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin-top: 15px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
}

.wager-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.wager-icon i {
    animation: spin 2s linear infinite;
}

.wager-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wager-label {
    font-size: 11px;
    color: #ff9800;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wager-amount {
    font-size: 14px;
    font-weight: 600;
    color: #f57c00;
}

.sidebar-menu {
    background: #fff;
    border-radius: 6px;
    padding: 10px 0;
    margin-bottom: 15px;
    box-shadow: rgb(195, 208, 224) 2px 2px 20px 0px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .token-statistics.card-token {
        margin: 0 0 15px 0;
        border-radius: 6px;
    }

    .sidebar-menu {
        margin: 0 0 15px 0;
    }

    .user-stats-mini {
        margin: 0 0 15px 0;
    }
}

.menu-item {
    position: relative;
}

.menu-item a,
.menu-link-btn {
    display: block;
    padding: 12px 20px;
    color: #495463;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.menu-item a:hover,
.menu-link-btn:hover {
    color: #2c80ff;
    background: rgba(44, 128, 255, 0.05);
}

.menu-item.active a {
    color: #2c80ff;
    background: rgba(44, 128, 255, 0.08);
}

.menu-divider {
    margin: 10px 20px;
    border: none;
    border-top: 1px solid #e6effb;
}

.user-stats-mini {
    background: #fff;
    border-radius: 6px;
    padding: 15px 20px;
    box-shadow: rgb(195, 208, 224) 2px 2px 20px 0px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e6effb;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .stat-label {
    color: #758698;
    font-size: 13px;
}

.stat-row .stat-value {
    color: #253992;
    font-weight: 500;
    font-size: 13px;
}

.live-feed-container {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .live-feed-container .table {
        min-width: 450px;
    }
}

.live-feed-blurred {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.live-feed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 4px;
}

.live-feed-overlay .overlay-content {
    text-align: center;
    padding: 30px;
}

.live-feed-overlay .overlay-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.live-feed-overlay .btn-outline {
    color: #495463;
    border-color: #c9cfd6;
    background: transparent;
}

.live-feed-overlay .btn-outline:hover {
    color: #2c80ff;
    border-color: #2c80ff;
}

.auth-highlight {
    animation: authPulse 0.5s ease-in-out 3;
    box-shadow: 0 0 0 4px rgba(44, 128, 255, 0.4) !important;
}

@keyframes authPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(44, 128, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(44, 128, 255, 0.2);
    }
}

.site-footer {
    background: #253992;
    color: #fff;
    padding: 40px 0 0;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    min-width: 0;
}

.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo:hover {
    color: #fff;
    opacity: 0.9;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s;
}

.social-link:hover {
    background: #2c80ff;
    color: #fff;
    transform: translateY(-3px);
}

.footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-text i {
    color: #2c80ff;
    width: 16px;
}

.footer-license {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-left: -15px;
    margin-right: -15px;
}

.footer-license:hover {
    background: rgba(255, 255, 255, 0.05);
}

.footer-license:hover .license-icon {
    background: #00d285;
    color: #fff;
    transform: scale(1.1);
}

.footer-license:hover .license-verify {
    color: #00d285;
}

.license-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d285;
    font-size: 18px;
    transition: all 0.3s ease;
}

.license-text p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.license-verify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.license-verify i {
    font-size: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.age-badge {
    background: #ff6868;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 30px 0 0;
        margin-top: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-brand {
        grid-column: span 1;
        text-align: center;
    }

    .footer-description {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-contact-text {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-logo {
        font-size: 24px;
    }
}

