/* Common Styles */
:root {
    --bg-color: #15191c;
    --header-bg: #1a1b22;
    --primary-gold: #ffc107;
    --primary-teal: #3da78e;
    --text-color: #ffffff;
    --card-bg: #1e1f26;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Arita-dotum-Medium', 'GmarketSansMedium', var(--bs-font-sans-serif);
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    pointer-events: none;
}

.sidebar-overlay.active {
    display: block;
    pointer-events: auto;
}


a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: transparent;
}

.header-auth {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    padding-left: max(16px, calc((100vw - 1248px) / 2));
    padding-right: max(16px, calc((100vw - 1248px) / 2));
    position: relative;
    z-index: 5;
    background: #15191c;
}

.header-left-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user-id {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
}

.lv-icon {
    height: 16px;
    filter: brightness(0.9);
}

.user-nick {
    font-weight: 500;
}

.header-letter-icon {
    color: #888;
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    padding-top: 5px;
}

.header-letter-icon:hover {
    color: #fff;
}

.header-top-buttons {
    display: flex;
    gap: 4px;
}

.header-top-buttons button {
    height: 28px;
    padding: 0 12px;
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.h-btn-charge {
    background: #249fb0;
}

.h-btn-withdraw {
    background: #b03434;
}

.h-btn-history {
    background: #3b445b;
}

.h-btn-partner {
    background: #2196F3 !important;
}

.header-user-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 13px;
    margin-left: auto;
}

.h-stat-item {
    font-weight: 500;
    white-space: nowrap;
}

.h-blue-val {
    color: #4da9ff;
    margin: 0 4px;
    font-weight: 700;
}

.h-btn-convert {
    height: 24px;
    padding: 0 8px;
    background: #d32f2f;
    border: none;
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 4px;
}

.h-btn-convert:hover {
    background: #f44336;
}

.h-logout-link {
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    margin-left: 0;
    white-space: nowrap;
    background: transparent;
    border: none;
    cursor: pointer;
}

.h-logout-link:hover {
    color: var(--primary-teal);
}

.header-user-stats .h-logout-link {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.header-container::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 40px;
    background: #15191c;
    z-index: -1;
}

.header-container::after {
    display: none;
}

.header-nav {
    min-height: 70px;
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    align-content: center;
    padding: 12px max(16px, calc((100vw - 1248px) / 2));
    column-gap: clamp(24px, 3vw, 48px);
    row-gap: 10px;
    position: relative;
    z-index: 3;
    background: #1e2329;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 8px 12px;
}

.header-nav:has(.partnerweb) {
    min-height: 70px;
    height: 70px;
    padding-top: 6px;
    padding-bottom: 6px;
    column-gap: clamp(12px, 1.5vw, 24px);
    row-gap: 0;
    overflow: hidden;
}

.header-menu {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: clamp(14px, 2vw, 32px);
    row-gap: 12px;
    width: 100%;
}

.header-nav:has(.partnerweb) .header-menu {
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(8px, 1vw, 16px);
    row-gap: 0;
    overflow: hidden;
}

.header-menu-left {
    justify-self: end;
    justify-content: flex-end;
}

.header-menu-right {
    justify-self: start;
    justify-content: flex-start;
}

.header-menu a {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ccc;
    transition: color 0.2s;
    line-height: 1.2;
    text-align: center;
    position: relative;
    padding: 4px clamp(4px, 0.6vw, 12px) 8px;
    flex: 0 1 auto;
    min-width: 0;
}

.header-menu a.partnerweb {
    font-size: 1rem;
}

.header-nav:has(.partnerweb) .header-menu a {
    padding: 0 2px 6px;
    line-height: 1.05;
}

.header-menu a.partnerweb small {
    font-size: 11px;
    margin-top: 3px;
}

.header-nav:has(.partnerweb) .header-menu a.partnerweb {
    font-size: 0.82rem;
    letter-spacing: -0.02em;
}

.header-nav:has(.partnerweb) .header-menu a.partnerweb small {
    font-size: 9px;
    margin-top: 2px;
}

.header-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-gold);
    transition: transform 0.3s ease;
}

.header-menu a:hover::after {
    transform: translateX(-50%) scale(1);
}

.header-menu a small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

.header-menu a:hover {
    color: var(--primary-gold);
}

.header-logo {
    flex: 0 0 auto;
    text-align: center;
    width: 350px;
    max-width: min(350px, 28vw);
    position: relative;
    z-index: 4;
    justify-self: center;
    align-self: center;
    vertical-align: middle;
}

.header-nav:has(.partnerweb) .header-logo {
    width: 220px;
    max-width: min(220px, 19vw);
}

.header-logo img {
    height: 70px;
    width: auto;
    max-height: min(70px, 10vh);
    object-fit: contain;
}

.header-nav:has(.partnerweb) .header-logo img {
    height: 48px;
    max-height: 48px;
}

.main-banner {
    background: #0f1116;
}

.main-banner .slide img,
.main-banner .slide video {
    max-height: 520px;
    object-fit: cover;
}

.btn-login, .btn-join {
    height: 28px;
    padding: 0 14px;
    border-radius: 0;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 12px;
    line-height: 28px;
}

.btn-login {
    background-color: var(--primary-gold);
    color: #000;
}

.btn-join {
    background-color: #2b2f34;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Banner */
.main-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.main-banner img, .main-banner video {
    width: 100%;
    display: block;
}

/* Provider Carousel */
.provider-carousel-container {
    background-color: #0f1116;
    padding: 0;
    overflow: hidden;
}

.banner-logos-container {
    background-color: #15191c;
    /*padding: 15px 0;*/
    overflow: hidden;
    /*margin-bottom: 20px;*/
}

.logo-item {
    flex: 0 0 auto;
    width: 220px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-width: 180px;
    /*max-height: 60px;*/
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: brightness(1.1);
}

@media (max-width: 960px) {
    .banner-logos-container {
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .logo-item {
        width: 160px;
        height: 60px;
    }

    .logo-item img {
        max-width: 130px;
        max-height: 45px;
    }
}

.carousel-row {
    display: flex;
    gap: 0;
    /*margin-bottom: 10px;*/
}

.carousel-track {
    display: flex;
    gap: 10px;
    white-space: nowrap;
    padding: 0 12px;
}

.carousel-item {
    flex: 0 0 auto;
}

.carousel-item img {
    width: 220px;
    height: 95px;
    object-fit: cover;
    border-radius: 0;
    filter: saturate(0.9);
    opacity: 0.55;
    transition: opacity 0.2s, filter 0.2s;
}

.carousel-item:hover img {
    opacity: 0.9;
    filter: saturate(1.05);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.scroll-left .carousel-track {
    animation: scroll-left 40s linear infinite;
}

.scroll-right .carousel-track {
    animation: scroll-right 40s linear infinite;
}

/* Category Boxes */
.category-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    flex: 1;
    /*background-color: var(--card-bg);*/
    border-radius: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    transition: transform 0.5s;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.category-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.btn-start {
    background: linear-gradient(#fff4c2, #e7c97a);
    padding: 8px 18px;
    border-radius: 0;
    color: #111;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

/* Progressive Jackpot */
.jackpot-banner {
    position: relative;
    overflow: hidden;
    height: auto;
    margin: 10px auto 40px;
    max-width: 1200px;
    border-radius: 0;
    background: #16181f;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.jackpot-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.9;
}

.jackpot-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 26px;
}

.jackpot-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jackpot-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.jackpot-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jackpot-amount {
    display: flex;
    font-size: 40px;
    font-weight: 900;
    color: var(--primary-gold);
    gap: 5px;
}

.jackpot-currency {
    margin-right: 10px;
    color: #d7b86a;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Jackpot spinning animation logic */
.jackpot-digits {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #ffd37c;
    font-weight: 900;
    font-size: 44px;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.jackpot-digit {
    overflow: hidden;
    height: 52px;
    width: 28px;
    background: transparent;
    border-radius: 0;
    border: none;
}

.digit-container {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.digit-container span {
    display: block;
    height: 52px;
    line-height: 52px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #1e2329;
    padding: 50px 0;
    text-align: center;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-vendor-title {
    font-size: 18px;
    margin-bottom: 30px;
    color: #888;
}

.footer-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.footer-partners img {
    height: 30px;
    opacity: 0.5;
}

.footer-lang {
    margin-bottom: 20px;
}

.footer-copyright {
    color: #555;
    font-size: 14px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-box.auth-modal {
    width: 560px;
    max-width: calc(100vw - 40px);
    max-height: 92vh;
    padding: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #0b1426 0%, #081225 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auth-titlebar {
    height: 46px;
    background: #0a1222;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
    height: 46px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
}

.auth-tab {
    flex: 1 1 0;
    height: 46px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 14px;
}

.auth-tab.active {
    color: #f1c84c;
    border-bottom-color: #f1c84c;
}

.auth-panel {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px 48px 34px;
}

.auth-panel-login {
    overflow-y: hidden;
}

.modal-logo {
    text-align: center;
    margin: 26px 0 10px;
    flex: 0 0 auto;
}

.modal-logo img {
    height: 56px;
}

.auth-panel p {
    margin: 0 0 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.auth-field-row {
    margin-bottom: 12px;
}

.auth-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}

.auth-inline {
    display: flex;
    gap: 10px;
}

.auth-inline > input,
.auth-inline > select {
    flex: 1 1 auto;
    min-width: 0;
}

.auth-side-btn {
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #2b2f34;
    color: #fff;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
}

.auth-select {
    height: 42px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: 0;
    padding: 0 10px;
}

.modal-box {
    background: var(--card-bg);
    width: 400px;
    border-radius: 0;
    padding: 0;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1;
}

.modal-form input {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 0 16px;
    margin-bottom: 12px;
    color: #fff;
    border-radius: 0;
    box-sizing: border-box;
    font-size: 14px;
}

.modal-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.modal-form input:focus {
    outline: none;
    border-color: #2d7cff;
    box-shadow: 0 0 0 2px rgba(45, 124, 255, 0.25);
}

.modal-form button {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    background: #249fb0;
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 0;
    cursor: pointer;
    font-size: 15px;
}

.modal-form button:active {
    transform: translateY(1px);
}

.modal-form .auth-btn-row button {
    width: auto;
    flex: 1 1 0;
}

.modal-form .auth-captcha-refresh {
    width: auto;
    height: 42px;
    min-height: 42px;
    margin-bottom: 0;
}

.auth-captcha-img {
    display: block;
    flex-shrink: 0;
    max-width: 150px;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
    background-color: white;
    margin-bottom: 0;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 960px) {
    .modal-box.auth-modal {
        width: 520px;
    }

    .auth-panel {
        padding: 0 22px 26px;
    }
}

.pc {
    display: block !important;
}

.mob {
    display: none !important;
}

@media (max-width: 960px) {
    .pc {
        display: none !important;
    }

    .mob {
        display: block !important;
    }
}

/* Mobile sidebars must remain closed until JS opens them */
#sidebar.mob,
#sidebar-right.mob {
    display: none !important;
}

#sidebar.mob.active,
#sidebar-right.mob.active {
    display: flex !important;
}

#container, #contents, #main_content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #0a1424;
}

/* Casino & Slot Pages */
.sub_content_arr {
    padding: 30px max(16px, calc((100vw - 1248px) / 2));
    min-height: 80vh;
}

.sub_content_arr .submain-img {
    display: none;
}

.sub_content_arr .companys {
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
}

.sub_content_arr .companys h6 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 26px 0;
    padding: 0;
    text-shadow: none;
}

.sub_content_arr .companys h6 small {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin-left: 10px;
}

.sub_content_arr .companys ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub_content_arr .companys li {
    width: 100%;
    padding: 0;
    margin: 0;
    float: none;
    display: flex;
}

.sub_content_arr .companys-title,
.sub_content_arr .companys-title2 {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #1a1d24;
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    height: 100%;
}

.sub_content_arr .companys-title:hover,
.sub_content_arr .companys-title2:hover {
    border-color: var(--primary-gold);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.sub_content_arr .companys-title .provider-card-media,
.sub_content_arr .companys-title2 .provider-card-media {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: block;
}

.sub_content_arr .companys-title .provider-card-model,
.sub_content_arr .companys-title2 .provider-card-model {
    position: relative;
    z-index: 2;
    width: calc(100% + 10px);
    height: auto;
    display: block;
    transform: scale(1.05);
    margin: -5px 0px -20px -5px;
    object-fit: cover;
}

.sub_content_arr .companys-title .provider-card-bg,
.sub_content_arr .companys-title2 .provider-card-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.sub_content_arr .companys-title .provider-card-logo,
.sub_content_arr .companys-title2 .provider-card-logo {
    position: absolute;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
    top: 75%;
    bottom: 12px;
    width: auto;
    max-width: min(82%, 268px);
    max-height: calc(46% - 12px);
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    padding: 0;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
}

.sub_content_arr .companys-title span,
.sub_content_arr .companys-title2 span,
.sub_content_arr .companys-title2 a span {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(10, 15, 22);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 8px;
    border-top: 1px solid rgba(33, 150, 243, 0.3);
    text-align: center;
}

.sub_content_arr .companys-title2 a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Mobile Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #16202f;
    z-index: 10001;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
}

.sidebar-user-section {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user-section.guest {
    cursor: pointer;
    background: #131313;
}

.sidebar-user-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #232a35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.sidebar-user-lvl img {
    height: 20px;
    display: block;
}

.sidebar-username {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.sidebar-user-section.guest i {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-user-stats {
    margin-top: 15px;
}

.sidebar-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.sidebar-stat-row:last-child {
    border-bottom: none;
}

.sidebar-stat-row .label {
    font-size: 13px;
    color: #3da78e;
}

.sidebar-stat-row .val {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #fff;
    font-weight: 600;
}

.sidebar-stat-row .val i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.sidebar-logout-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    cursor: pointer;
}

.sidebar-logout-row i {
    font-size: 16px;
}

.sidebar-menu-container {
    flex: 1;
    overflow-y: auto;
}

.sidebar-group-label {
    padding: 15px 15px 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    background: #080f1c;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-accordion {
    margin-top: 0;
}

.sidebar-acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.sidebar-acc-header i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.sidebar-acc-item.active .sidebar-acc-header {
    color: #3da78e;
}

.sidebar-acc-item.active .sidebar-acc-header i {
    transform: rotate(180deg);
}

.sidebar-acc-content {
    max-height: 0;
    overflow: hidden;
    background: #111823;
    transition: max-height 0.3s ease-out;
}

.sidebar-acc-item.active .sidebar-acc-content {
    max-height: 500px;
}

.sidebar-acc-inner {
    padding: 5px 0;
}

.sidebar-acc-content a {
    display: block;
    padding: 10px 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}


/* Small Desktop/Tablet */
@media (max-width: 1280px) and (min-width: 961px) {
    .header-stats-group {
        gap: 12px;
    }

    .header-stat-label {
        font-size: 11px;
    }

    .header-stat-value {
        font-size: 13px;
    }

    .header-action-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .header-nickname {
        font-size: 13px;
    }

    .header-convert-btn {
        padding: 3px 8px;
        font-size: 10px;
    }

    .header-logout-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 960px) {
    /*body {*/
    /*    padding-bottom: 70px;*/
    /*}*/
    .header-container {
        padding: 0;
    }

    .header-auth,
    .header-nav {
        display: none !important;
    }

    .header-menu {
        display: none;
    }

    .header-logo img {
        height: 30px;
    }

    .category-section {
        flex-direction: column;
    }

    .jackpot-amount {
        font-size: 24px;
    }

    .carousel-item img {
        width: 120px;
        height: 55px;
    }

    .jackpot-banner {
        height: 95px;
        margin: 0 12px 24px;
        max-width: none;
    }

    .jackpot-inner {
        padding: 0 14px;
    }

    .jackpot-title {
        font-size: 14px;
    }

    .jackpot-digits {
        font-size: 22px;
        letter-spacing: 0.5px;
    }

    .jackpot-digit {
        height: 26px;
        width: 14px;
    }

    .digit-container span {
        height: 26px;
        line-height: 26px;
    }

    .footer-partners img {
        height: 20px;
    }

    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #1a1b22;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        border-top: 1px solid #333;
        z-index: 1000;
    }

    .mobile-nav-item {
        text-align: center;
        font-size: 10px;
        color: #888;
    }

    .mobile-nav-item i {
        font-size: 20px;
        display: block;
        margin-bottom: 5px;
    }

    .mobile-nav-item.active {
        color: var(--primary-gold);
    }

    .sub_content_arr {
        padding: 20px 15px;
    }

    .sub_content_arr .companys h6 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .sub_content_arr .companys h6 small {
        font-size: 14px;
        margin-left: 8px;
    }

    .sub_content_arr .companys ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sub_content_arr .companys-title:hover,
    .sub_content_arr .companys-title2:hover {
        transform: none;
    }

    .mob-header-sticky {
        position: sticky;
        top: 0;
        z-index: 1002;
        width: 100%;
        align-self: flex-start;
    }

    .hader_arr {
        position: relative;
        top: auto;
        height: 56px !important;
        background: #15191c !important;
        padding: 0 14px !important;
    }

    .hader_arr.mob {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        align-items: center !important;
        column-gap: 10px;
    }

    .hader_arr.mob .navbar-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        justify-self: center;
        margin: 0 !important;
        min-width: 0;
        position: relative;
        z-index: 1;
    }

    .hader_arr.mob .topbtn-arr {
        display: flex !important;
        justify-content: flex-end;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        position: relative;
        z-index: 1;
    }

    .hader_arr.mob .topbtn-arr button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: auto !important;
        white-space: nowrap !important;
    }

    .hader_arr .left-togle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 24px !important;
        color: #fff !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 6px 8px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        position: relative;
        z-index: 9999;
        cursor: pointer !important;
        pointer-events: auto !important;
        line-height: 1 !important;
    }

    .hader_arr .left-togle i {
        color: #fff !important;
        line-height: 1 !important;
    }

    .hader_arr .navbar-brand img {
        height: 50px !important;
    }

    .hader_arr .topbtn-arr {
        gap: 10px !important;
        align-items: center;
    }

    .hader_arr .topbtn-arr button {
        background: transparent !important;
        color: #fff !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1;
    }

    .hader_arr .topbtn-arr button.partner-btn {
        background: #2196F3 !important;
        color: #fff !important;
        padding: 5px 10px !important;
        border-radius: 4px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }

    .hader_arr .topbtn-arr .login-modal {
        color: var(--primary-teal) !important;
    }

    .top-info-mm {
        height: auto !important;
        background: #0f1116 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 6px 8px !important;
    }

    .top-info-mm ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        height: auto !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .top-info-mm li {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
    }

    .top-info-mm li a {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 11px !important;
        color: #cbd0d6 !important;
        white-space: nowrap !important;
        max-width: 100%;
    }

    .top-info-mm li a i {
        color: var(--primary-gold);
    }

    .top-info-mm li a span {
        color: #fff;
        font-weight: 700;
    }

    .mobile-nav {
        height: 60px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        align-items: center;
    }

    .mobile-nav-item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .mobile-nav-item i {
        margin-bottom: 0;
        font-size: 18px;
    }

    footer.pc {
        display: block !important;
    }

    footer.mob {
        display: none !important;
    }

    footer.pc .vendor-title {
        padding-top: 24px !important;
        padding-bottom: 12px !important;
        font-size: 20px !important;
    }

    footer.pc .footer-content {
        padding: 26px 16px 20px !important;
    }

    footer.pc .footer-logo img {
        height: 32px !important;
    }

    footer.pc .footer-lang > div {
        gap: 8px !important;
    }

    footer.pc .footer-lang button {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }

    footer.pc .footer-copyright {
        font-size: 12px !important;
    }
}

/* BBS / Letter / QnA Modern Styles */
.page-sub-fill {
    width: 100%;
    background-color: #0a1424;
}

.page-sub-fill--game {
    background-color: #07090a;
}

.page-sub-fill--partner {
    padding-bottom: 0;
    min-height: 0;
}

.sidebar-menu-container.partnerweb {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
    padding-top: 12px;
    padding-bottom: 8px;
}

.sub_content_arr {
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
    padding: 60px 16px 100px;
    min-height: 80vh;
    background-color: #0a1424;
}

.page-header-modern {
    margin-bottom: 30px;
}

.page-header-modern h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-align: left;
}

.page-header-modern .divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.sub-title-modern {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    text-align: center;
}

.bbs-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    gap: 0;
    background: rgba(0, 0, 0, 0.2);
}

.bbs-tab {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.bbs-tab:last-child {
    border-right: none;
}

.bbs-tab.active {
    color: var(--primary-gold);
    font-weight: 700;
}

.bbs-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gold);
}

.bbs-list-modern {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Increased margin between items */
}

.bbs-item {
    background: #16202f;
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 12px;
}

.bbs-item:hover {
    background: #1c2a3d;
}

.bbs-item-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 6px;
}

.bbs-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.bbs-checkbox.active {
    background: #289caf;
    border-color: #289caf;
}

.bbs-checkbox i {
    color: #fff;
    font-size: 12px;
    display: none;
}

.bbs-checkbox.active i {
    display: block;
}

.bbs-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.bbs-badge.read {
    background: #b03434;
}

.bbs-badge.unread {
    background: #289caf;
}

.bbs-badge.status-wait {
    background: #555;
}

.bbs-badge.status-done {
    background: #289caf;
}

.bbs-badge.status-checked {
    background: #3b445b;
}

.bbs-title {
    flex: 1;
    font-size: 14px;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bbs-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.bbs-content-box {
    display: none;
    padding: 24px 16px;
    background: #0d1a2d;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd0d6;
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
}

.bbs-content-box .qna-q-box,
.bbs-content-box .qna-a-box {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
}

.bbs-content-box pre {
    white-space: pre;
    overflow-x: auto;
}

.bbs-content-box img {
    max-width: 100%;
    height: auto;
}

.bbs-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.bbs-actions button, .bbs-actions a {
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #3b445b;
}

.btn-delete-all {
    background: #b03434 !important;
}

.btn-write {
    background: #289caf !important;
}

.btn-account-ask {
    background: #3da78e !important;
}

.btn-delete-all,
.btn-write,
.btn-account-ask,
.btn-read-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.btn-read-all {
    background: #4a5568 !important;
}

/* Modern Pagination */
.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 4px;
}

.pagination-modern button, .pagination-modern a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1b22;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.pagination-modern .active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #000;
    font-weight: 700;
}

.pagination-modern .disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* QnA Header Modern */
.qna-header-modern {
    text-align: center;
    margin-bottom: 30px;
}

.qna-sub-text {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.qna-btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

@media (min-width: 961px) {
    .qna_wrap .page-header-modern .header-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }

    .qna_wrap .page-header-modern h3 {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 15px;
    }


    .qna_wrap .qna-header-modern {
        display: none;
    }
}

.qna-btn-group button {
    height: 44px;
    padding: 0 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    color: #fff;
}

@media (max-width: 960px) {
    .qna-btn-group {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .qna-btn-group button {
        width: 70%;
        height: 50px;
        font-size: 16px;
    }

    .qna-sub-text {
        font-size: 15px;
    }
}

/* QnA Form Modern (PC Specific Side-by-Side Labels) */
.qna-form-modern {
    background: #16202f;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-row {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0;
}

.form-row:last-of-type {
    border-bottom: none;
}

.form-label {
    width: 160px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    margin-bottom: 0;
}

.form-input-container {
    flex: 1;
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

.form-input-modern {
    width: 100%;
    background: #252f41;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
}

.form-textarea-modern {
    min-height: 300px;
    resize: none;
}

@media (max-width: 960px) {
    .form-row {
        flex-direction: column;
    }

    .form-label {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        background: transparent;
        color: #888;
        font-size: 12px;
    }

    .form-input-container {
        padding: 0 16px 16px 16px;
    }

    .form-textarea-modern {
        min-height: 200px;
    }
}

/* PC Table Style */
.pc-table-modern {
    width: 100%;
    border-collapse: collapse;
    color: #ccc;
    background: #16202f;
    border-radius: 8px;
    overflow: hidden;
}

.pc-table-modern th {
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pc-table-modern td {
    padding: 18px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 14px;
    text-align: center;
    color: #ddd;
}

.pc-table-modern tr:last-child td {
    border-bottom: none;
}

.pc-table-modern tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.pc-table-modern .subject {
    text-align: left;
    padding-left: 30px;
    color: #fff;
    cursor: pointer;
}

.pc-table-modern .status-wait {
    color: #888;
}

.pc-table-modern .status-done {
    color: white;
}

.pc-table-modern .status-checked {
    color: #3b445b;
}

/* Event Modern */
.event-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.event-card-modern {
    background: #16202f;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.event-card-modern:hover {
    transform: translateY(-4px);
}

.event-img-modern {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.event-info-modern {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-title-modern {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-event-detail {
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 960px) {
    .sub_content_arr {
        padding: 30px 15px 60px;
    }

    .page-header-modern {
        display: none;
    }

    .event-grid-modern {
        grid-template-columns: 1fr;
    }

    .bbs-tab {
        font-size: 13px;
        padding: 12px 0;
    }

    .bbs-date {
        display: none;
    }

    .sub-title-modern {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .pc-only {
        display: none !important;
    }

    .mob-only {
        display: block !important;
    }
}

@media (min-width: 961px) {
    .mob-only {
        display: none !important;
    }
}

.mob-only {
    display: none;
}

.info-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    color: #fff;
    background: #0a1424;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.info-title {
    font-size: 18px;
    font-weight: 700;
    color: #cbd0d6;
    white-space: nowrap;
}

.info-divider {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.info-section {
    background: #16202f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.info-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.info-subtitle {
    text-align: center;
    color: #8e99b3;
    margin-bottom: 24px;
}

.info-profile-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.info-profile-head img {
    width: 40px;
    height: 40px;
}

.info-user-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 120px 1fr);
    gap: 16px 24px;
    align-items: center;
}

.info-label {
    color: #8e99b3;
    font-size: 13px;
    white-space: nowrap;
}

.info-value {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.info-note {
    color: #8e99b3;
    font-size: 12px;
    margin-bottom: 16px;
}

/* Cash In/Out/Log Shared Styles */
.cash-page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.cash-top-nav {
    display: flex;
    background: #16202f;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.cash-top-tab {
    flex: 1;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #8e99b3;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.cash-top-tab.active {
    color: var(--primary-gold);
}

.cash-top-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gold);
}

.cash-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cash-page-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.btn-bank-ask {
    background: #289caf;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cash-form-section {
    background: #16202f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
}

.cash-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.cash-form-label {
    width: 120px;
    font-size: 14px;
    font-weight: 600;
    color: #cbd0d6;
}

.cash-form-label span {
    color: #ff4d4d;
    margin-left: 4px;
}

.cash-input-box {
    flex: 1;
    position: relative;
}

.cash-input-box input {
    width: 100%;
    height: 48px;
    background: #252f41;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
}

.cash-input-box .unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8e99b3;
    font-size: 14px;
}

.cash-unit-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 12px;
}

.cash-note-box {
    margin-top: 16px;
    background: #0d1a2d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 14px 16px;
    color: #cbd0d6;
    font-size: 12px;
    line-height: 1.6;
}

.btn-unit {
    background-color: rgb(40, 156, 175);
    border: 1px solid transparent;
    border-radius: 0.3rem;
    color: rgb(255, 255, 255);
    font-size: 1.1rem;
    margin: 0.15rem;
    min-width: 62px;
    padding: 0.5rem 0px;
    cursor: pointer;
}

.btn-unit.reset {
    background-color: rgb(40, 156, 175);
}

.cash-note-small {
    text-align: center;
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 12px;
}

.cash-submit-container {
    margin-top: 30px;
    text-align: center;
}

.btn-cash-submit {
    min-width: 240px;
    height: 50px;
    background: #2a99a6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.cash-pwd-box {
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
}

.cash-pwd-note {
    background: #0d1a2d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    color: #ff4d4d;
    font-size: 14px;
}

.cash-table-modern {
    width: 100%;
    border-collapse: collapse;
    background: #16202f;
    border-radius: 8px;
    overflow: hidden;
}

.cash-table-modern th {
    height: 44px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 13px;
    font-weight: 600;
    color: #8e99b3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cash-table-modern td {
    height: 50px;
    padding: 0 10px;
    text-align: center;
    font-size: 13px;
    color: #cbd0d6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cash-status-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.status-wait { background: #555; color: #fff; }
.status-done { background: #289caf; color: #fff; }
.status-cancel { background: #b03434; color: #fff; }

.info-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
    margin: 0 auto;
}

.info-form-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    align-items: center;
}

.info-form-label {
    color: #8e99b3;
    font-size: 14px;
}

.info-form-input {
    width: 100%;
    padding: 12px;
    background: #252a3d;
    border: 1px solid #3e455e;
    border-radius: 6px;
    color: #fff;
}

.info-primary-btn {
    margin: 20px auto 0;
    display: block;
    min-width: 200px;
    background: #2a99a6;
    border: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.xchg-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 16px 60px;
    color: #fff;
}

.xchg-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.xchg-title {
    font-size: 18px;
    font-weight: 700;
    color: #cbd0d6;
    white-space: nowrap;
}

.xchg-divider {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.xchg-panels {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.xchg-panel {
    background: #16202f;
    border: 1px solid #2d2b45;
    border-radius: 12px;
    padding: 20px;
    min-width: 260px;
    flex: 1;
    max-width: 420px;
}

.xchg-panel-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 16px;
}

.xchg-panel-title.accent {
    color: #3da78e;
}

.xchg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.xchg-row:last-child {
    margin-bottom: 0;
}

.xchg-label {
    color: #cbd0d6;
    font-size: 14px;
}

.xchg-value {
    color: #fff;
    font-weight: 700;
    background: #101521;
    border: 1px solid #2a3244;
    padding: 10px 14px;
    border-radius: 8px;
    min-width: 120px;
    text-align: right;
}

.xchg-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a3244;
    color: #cbd0d6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.xchg-input-section {
    text-align: center;
    margin-bottom: 24px;
}

.xchg-input-label {
    color: #8e99b3;
    margin-bottom: 8px;
}

.xchg-input-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.xchg-input-row input {
    max-width: 420px;
    width: 100%;
    padding: 12px;
    background: #252a3d;
    border: 1px solid #3e455e;
    border-radius: 6px;
    color: #fff;
    text-align: center;
}

.xchg-max-btn {
    padding: 12px 18px;
    border: 1px solid #3da78e;
    background: transparent;
    color: #3da78e;
    border-radius: 6px;
    cursor: pointer;
    min-width: 80px;
}

.xchg-reset-btn {
    padding: 12px 18px;
    border: 1px solid #3e455e;
    background: #2f374a;
    color: #cbd0d6;
    border-radius: 6px;
    cursor: pointer;
    min-width: 80px;
}

.xchg-note {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 10px;
}

.xchg-submit {
    display: block;
    margin: 18px auto 0;
    padding: 12px 24px;
    background: #2a99a6;
    border: none;
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    min-width: 200px;
}

.xchg-history {
    margin-top: 30px;
}

.xchg-history-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.xchg-history table {
    width: 100%;
    border-collapse: collapse;
}

.xchg-history th, .xchg-history td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: #cbd0d6;
}

.xchg-history .btnDel {
    background: #3b445b;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
}

.xchg-history .btn-delete-all {
    height: 28px;
    padding: 0 10px;
    font-size: 11px;
}

.xchg-history .paging_box {
    display: flex;
    justify-content: center;
    margin-top: 14px;
    gap: 4px;
}

.xchg-history .paging_box ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.xchg-history .paging_box li {
    display: inline-flex;
}

.xchg-history .paging_box li a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1b22;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.xchg-history .paging_box li.active a,
.xchg-history .paging_box li a.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #000;
    font-weight: 700;
}

.xchg-history .paging_box li.disabled a {
    opacity: 0.3;
    pointer-events: none;
}

.xchg-history .paging_box li a:hover {
    border-color: rgba(104, 158, 255, 1);
}

.xchg-history th {
    background: rgba(0, 0, 0, 0.35);
    font-size: 13px;
}

.xchg-note-box {
    margin-top: 24px;
    background: #16202f;
    border: 1px solid #2d2b45;
    border-radius: 10px;
    padding: 16px;
    color: #cbd0d6;
}

.xchg-note-box .title {
    font-weight: 700;
    margin-bottom: 8px;
}

.xchg-rate-box {
    margin-top: 24px;
    background: #16202f;
    border: 1px solid #2d2b45;
    border-radius: 10px;
    padding: 16px;
    color: #cbd0d6;
}

@media (max-width: 960px) {
    .sub_content_arr {
        padding: 30px 15px 60px;
    }

    .info-section {
        padding: 18px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-stats {
        grid-template-columns: 1fr;
    }

    .info-form-row {
        grid-template-columns: 1fr;
    }

    .cash-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .cash-form-label {
        width: 100%;
    }

    .cash-input-box {
        width: 100%;
    }

    .cash-header-row {
        justify-content: flex-end;
    }

    .cash-page-title {
        display: none;
    }

    .cash-unit-buttons {
        grid-template-columns: repeat(4, 1fr);
    }

    .cash-form-section {
        padding: 10px;
        background: transparent;
        border: none;
    }

    .cash-top-nav {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }

    .bbs-tabs {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }

    .jackpot-banner-mob .jackpot-inner {
        justify-content: center;
        top: 73%;
        bottom: auto;
        left: 0;
        right: 0;
        transform: translateY(-50%);
    }

    .xchg-header {
        margin-bottom: 18px;
    }

    .xchg-panels {
        flex-direction: row;
        gap: 12px;
    }

    .xchg-panel {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
        max-width: none;
    }

    .xchg-arrow {
        display: none;
    }

    .xchg-input-row {
        gap: 8px;
    }

    .xchg-input-row input {
        max-width: 100%;
        flex: 1;
    }

    .xchg-max-btn {
        flex-shrink: 0;
    }

    .xchg-reset-btn {
        width: 80px;
        flex-shrink: 0;
    }
}

.mob-header-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mob-header-toolbar .left-togle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 6px 8px;
    margin: 0;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.mob-header-toolbar .left-togle i {
    color: #fff;
    line-height: 1;
}

.mob-header-mail {
    font-size: 22px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

#popup-zone {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    z-index: 100000;
    padding: 0 10px;
    pointer-events: none;
}

#popup-zone .notice_popup {
    position: relative;
    width: min(398px, calc(100vw - 20px));
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    background: #fff;
}

.popup_content {
    width: 100%;
    height: auto;
    color: #000;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    flex: 0 1 auto;
    min-height: 0;
}

.popup_content > *:first-child {
    margin-top: 0;
}

.popup_content > *:last-child {
    margin-bottom: 0;
}

.popup_content.no-padding > * :last-child {
    margin-bottom: 0;
}

.popup_bottom {
    color: #fff;
    width: 100%;
    padding: 0;
    background: #000001;
    margin: 0;
    flex-shrink: 0;
}

.popup_bottom span {
    text-align: center;
    display: block;
}

.popup_bottom label {
    background: #ccc;
    color: #000;
    border-radius: 5px;
    width: 200px;
    font-size: 12px;
    height: 30px;
    line-height: 30px;
    display: block;
    margin: 8px auto;
    cursor: pointer;
}

.popup_top {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    height: 50px;
    flex-shrink: 0;
    position: relative;
}

.popup_top .btn_close,
.popup_top a.btn_close {
    position: absolute;
    right: 6px;
    top: 0;
    height: 50px;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    float: none;
    margin: 0;
}

.popup_content img {
    width: 100% !important;
    height: auto;
    max-height: 763px;
    display: block;
    margin: 0;
    vertical-align: top;
}

.poplogo2 {
    width: auto;
    height: 40px;
    max-width: 180px;
    object-fit: contain;
    display: block;
    margin: 0;
    position: static;
}

@media (max-width: 768px) {
    #popup-zone {
        top: 72px;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
}

.modal-overlay.modal-auth-root {
    z-index: 12000;
}

.modal-box.auth-modal.auth-modal-wide {
    width: 620px;
    max-width: calc(100vw - 24px);
}

.auth-lead {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 18px;
    font-size: 14px;
}

.auth-captcha-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.auth-captcha-row input {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.auth-captcha-refresh {
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #2b2f34;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.auth-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.auth-btn-secondary {
    flex: 1;
    height: 52px;
    padding: 0 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

.auth-btn-secondary:hover {
    border-color: #f1c84c;
    color: #f1c84c;
}

.register-modal-scroll {
    max-height: min(72vh, 640px);
    overflow-y: auto;
    padding-right: 44px;
}

.register-modal-scroll .auth-field-row:last-child {
    margin-bottom: 0;
}

.auth-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    margin-bottom: 0;
}

.auth-inline-phone {
    flex-wrap: wrap;
    align-items: center;
}

.auth-select-narrow {
    width: 72px;
    flex: 0 0 auto;
    min-width: 72px;
}

.auth-phone-sep {
    color: rgba(255, 255, 255, 0.45);
    flex: 0 0 auto;
}

button.modal-close {
    background: transparent;
    border: none;
    font: inherit;
    padding: 8px 12px;
    margin: 0;
}

.modal-form .auth-side-btn {
    width: auto;
    height: 42px;
}
