.home_wallet_panel {
    position: relative;
}

.wallet-panel-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 1.2rem;
    background: var(--kbz-gradient-h);
    box-shadow: var(--kbz-shadow);
    color: #fff;
    isolation: isolate;
}

.wallet-panel-card::before,
.wallet-panel-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    z-index: -1;
}

.wallet-panel-card::before {
    width: 8rem;
    height: 8rem;
    right: -1.5rem;
    top: -2rem;
}

.wallet-panel-card::after {
    width: 5rem;
    height: 5rem;
    left: -1rem;
    bottom: -1rem;
}

.wallet-panel-card--guest {
    background: linear-gradient(135deg, #0f68d8 0%, #0c4ea7 100%);
}

.wallet-panel-copy h2 {
    margin: .4rem 0 .45rem;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.03em;
}

.wallet-panel-copy p {
    margin: 0;
    max-width: 90%;
    color: rgba(255, 255, 255, 0.78);
    font-size: .86rem;
}

.wallet-panel-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 800;
}

.wallet-panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.wallet-panel-balance {
    margin-top: .35rem;
    display: flex;
    align-items: baseline;
    gap: .45rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.wallet-panel-balance small {
    color: rgba(255, 255, 255, 0.76);
    font-size: .82rem;
    font-weight: 700;
}

.wallet-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: .73rem;
    font-weight: 700;
    white-space: nowrap;
}

.wallet-panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
}

.wallet-panel-user {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    font-size: .76rem;
    font-weight: 600;
}

.wallet-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}

.wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.7rem;
    padding: 0 .95rem;
    border-radius: 999px;
    cursor: pointer;
    background: #fff;
    color: var(--kbz-blue-dark);
    font-size: .8rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(5, 53, 117, 0.18);
    transition: transform .14s ease, filter .14s ease;
}

.wallet-chip:active { transform: scale(.97); }

.wallet-chip--light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.wallet-chip--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

.services-shell {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: var(--kbz-shadow-sm);
    backdrop-filter: blur(10px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem .55rem;
    padding-top: 1rem;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    transition: transform .15s ease;
}

.service-item:active { transform: scale(.95); }

.service-icon {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.24rem;
    color: #fff;
    box-shadow: 0 12px 24px rgba(12, 84, 170, 0.14);
}

.service-icon--green { background: linear-gradient(135deg, #47c974, #249d53); }
.service-icon--orange { background: linear-gradient(135deg, #ff9c4d, #ff6d3b); }
.service-icon--blue { background: linear-gradient(135deg, #3ba5ff, #0f68d8); }
.service-icon--purple { background: linear-gradient(135deg, #9c6bff, #6548df); }
.service-icon--teal { background: linear-gradient(135deg, #27c9bf, #0aa596); }

.service-text {
    font-size: .75rem;
    color: var(--kbz-text);
    text-align: center;
    font-weight: 700;
    letter-spacing: -.01em;
}

span.game_menu_text {
    display: block;
    width: 100%;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--kbz-text-light);
    text-align: center;
    text-transform: none;
}

.game_category {
    padding-bottom: .2rem;
}

.game_category::-webkit-scrollbar { display: none; }

.game_menu_item {
    min-width: 4.7rem;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    opacity: .88;
    cursor: pointer;
    padding: .8rem .65rem;
    border-radius: 18px;
    transition: all .2s ease;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 18px rgba(7, 70, 148, 0.06);
}

.game_menu_item.game_category_active {
    opacity: 1 !important;
    background: var(--kbz-gradient-h);
    box-shadow: 0 14px 26px rgba(7, 70, 148, 0.18);
}

.game_menu_item.game_category_active span.game_menu_text,
.game_menu_item.game_category_active i { color: #fff !important; }

.game-content-wrap {
    overflow: hidden;
    padding: .5rem .75rem 0;
    min-height: 150px;
}

.game-content-wrap-bg {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: var(--kbz-shadow-sm);
    position: relative;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
}

.shine { position: relative; overflow: hidden; }

.shine:after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.08) 77%, rgba(255,255,255,.26) 92%, transparent);
    transform: rotate(35deg);
    animation: animate-shine 4s ease-in-out infinite;
}

@keyframes animate-shine {
    0% { left: -60%; }
    100% { left: 120%; }
}

.game_list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-top: .85rem;
}

.game-list-item {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    cursor: pointer;
    border-radius: 16px;
    transition: transform .15s ease;
}

.game-list-item:active { transform: scale(.96); }

.game_background {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 20px rgba(11, 76, 156, 0.08);
}

img.game_img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

span.game_name {
    font-size: .72rem;
    text-align: center;
    display: flex;
    margin-top: .42rem;
    justify-content: center;
    color: var(--kbz-text);
    font-weight: 700;
}

input#gameSearch {
    height: 2.7rem;
    line-height: 1.5;
    padding: 0 .8rem 0 2.8rem;
    background: var(--kbz-bg-soft);
    border-radius: 999px;
    border: 1px solid var(--kbz-border);
    color: var(--kbz-text);
    font-size: .84rem;
}

#gameSearch:focus {
    border-color: rgba(14, 99, 215, 0.34);
    box-shadow: 0 0 0 4px rgba(14, 99, 215, 0.08) !important;
}

input#gameSearch::placeholder {
    color: #91a4b7;
    font-size: .84rem;
}

.search-bar-container { margin-bottom: .5rem; }

.search_icon {
    transform: rotateZ(270deg);
    left: 14px;
    font-size: 1rem;
    color: #7b93a9;
}

button.pagination-btn {
    background: var(--kbz-gradient-h);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    border-radius: 999px;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all .15s ease;
    box-shadow: 0 10px 18px rgba(11, 76, 156, 0.18);
}

button.pagination-btn:disabled {
    background: #c7d4e4;
    box-shadow: none;
}

ul.winnerListUl {
    padding: 0.75rem;
    gap: 0.5rem;
    display: flex;
    flex-direction: column;
    height: 220px;
    overflow: hidden;
    position: relative;
}

ul.winnerListUl .scrollInner {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    animation: scrollUp 20s linear infinite;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

li.winnerList {
    background: linear-gradient(135deg, rgba(14, 99, 215, 0.04), rgba(89, 167, 255, 0.12));
    padding: 0.65rem 0.8rem;
    display: grid;
    grid-template-columns: 25% 35% 40%;
    align-items: center;
    border-radius: 14px;
    color: var(--kbz-text);
    border: 1px solid rgba(14, 99, 215, 0.08);
}

span.winnerUsername {
    font-size: 0.75rem;
    font-weight: 700;
}

.winAmt {
    text-align: end;
    font-weight: 800;
    color: var(--kbz-blue);
    font-size: .85rem;
}

@media (max-width: 360px) {
    .wallet-panel-copy h2 { font-size: 1.25rem; }
    .wallet-panel-balance { font-size: 1.75rem; }
    .service-icon { width: 3rem; height: 3rem; }
}
