.g_sidebar {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 10px;
}

.g_sidebar .row {
    background: #1D2028;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.g_md_n {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #fff;
    font-size: 18px;
}

.g_md_n i {
    margin-right: 10px;
    font-size: 24px;
}

.b_label {
    color: #8e98b7;
    font-size: 14px;
    margin-bottom: 5px;
}

.b_input {
    width: 100%;
    height: 40px;
    background: #262B38;
    border: 1px solid #363C4E;
    border-radius: 4px;
    color: #fff;
    padding: 0 15px;
    font-size: 16px;
}

.b_input_btns {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
}

.b_input_btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #363C4E;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.b_input_btn:hover {
    background: #2FB54E;
}

.b_input_bottom {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.b_input_bottom > div {
    flex: 1;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #363C4E;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
}

.b_input_bottom > div:hover {
    background: #2FB54E;
}

.g_sidebar_footer {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.g_sidebar_footer_button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #262B38;
    border-radius: 4px;
    color: #8e98b7;
    cursor: pointer;
    transition: all 0.3s;
}

.g_sidebar_footer_button:hover {
    background: #2FB54E;
    color: #fff;
}

.game__wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.hilo-select {
    padding: 10px;
    text-align: center;
    background: #262B38;
    border-radius: 4px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.hilo-select:hover {
    background: #2FB54E;
}

.hilo-select i {
    font-size: 20px;
    margin-bottom: 5px;
}

.hilo-mul {
    font-size: 14px;
    color: #8e98b7;
}

.coin-select {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.g_btn {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2FB54E;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.g_btn:hover {
    background: #27a044;
}

.mt5 {
    margin-top: 5px;
}

.mt10 {
    margin-top: 10px;
}

.m0 {
    margin: 0;
}

.g_s {
    cursor: pointer;
    transition: all 0.3s;
}

.g_s:hover {
    background: #2FB54E;
}

.g_follow {
    position: relative;
}

.game-container {
    background: #1D2028;
    border-radius: 6px;
    padding: 20px;
    position: relative;
    margin-bottom: 20px;
    flex: 0 0 75%;
    max-width: 75%;
}

.blackjack_container_split {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.blackjack_container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.blackjack_card {
    position: absolute;
    width: 120px;
    height: 174px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fff;
    transform-origin: center;
}

.blackjack_card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.blackjack_card.up {
    background-color: #fff;
}

.blackjack_card.down {
    background-image: url('../img/cards/card_back.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blackjack_card span {
    position: absolute;
    font-size: 18px;
    font-weight: bold;
}

.blackjack_card span.pos-0 {
    top: 5px;
    left: 5px;
}

.blackjack_card span.pos-1 {
    bottom: 5px;
    right: 5px;
    transform: rotate(180deg);
}

.blackjack_card span.rank {
    margin-right: 3px;
}

.blackjack_card span.suit {
    font-size: 20px;
}

.blackjack_card.down span {
    display: none;
}

.blackjack_score {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.blackjack_score.dealer {
    top: 20px;
    left: 20px;
}

.blackjack_score.player {
    bottom: 20px;
    left: 20px;
}

.deck {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 140px;
    perspective: 1000px;
}

.deck > div {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.deck > div > div {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #2b3040;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#dealer, #player {
    position: absolute;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
}

#dealer {
    top: 20px;
}

#player {
    bottom: 20px;
}

#dhand, #phand {
    position: relative;
    width: 80%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.insurance {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insurance-container {
    background: #2b3040;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    color: #fff;
}

.insurance-desc {
    margin: 15px 0;
    font-size: 14px;
    color: #8e98b7;
}

.blackjack_button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background: #3490dc;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blackjack_button:hover {
    background: #2779bd;
}

.blackjack_button.bb_disabled {
    background: #8e98b7;
    cursor: not-allowed;
}

.card_history_red {
    color: #e3342f;
}

.card_history_black {
    color: #2b3040;
}

.blackjack_game_result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    color: #fff;
    z-index: 1000;
}

.blackjack_game_result .mul {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.blackjack_game_result .te {
    font-size: 16px;
}

.wg_win {
    border: 2px solid #38c172;
}

.wg_lose {
    border: 2px solid #e3342f;
}
