/*!
 * core-member.css — rebuilt from source CSS
 */

/* ===== all.css ===== */
/* 檔案以 UTF-8 提供（伺服器 header 已指定）；@charset 需位於檔案最頂端否則被忽略，串接後已無效故移除 */
/* @import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css); */

/* CSS Document */
/* allpage */
/* all */
/* Brand tokens live in theme-blue-gold.css (single source of truth).
   Load that file via head_theme_override / head_auth — do not redefine :root here. */

/* option test */
.form-control option {
  background-color: #222; /* 深色背景 */
  color: #fff;            /* 白色文字 */
  border: 1px solid #555; /* 邊框顏色可自行調整 */
}

#Slot,#Casino,#Sport,#Keno,#Chess {
  scroll-margin-top: 72px;
}

*:hover {
    transition: 0.3s;
}

/* body.no-scroll {
    overflow: hidden; 
  } */

html {
    height: 100svh;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    overflow: auto;
    height: 100svh;
    caret-color: auto;
    /* 預設由瀏覽器處理 */
     overscroll-behavior: contain; /* ✅ 阻止滾動穿透 + 橡皮筋 */
  -webkit-overflow-scrolling: touch; /* ✅ 手機正常滑動但不彈性 */
  touch-action: pan-y; /* ✅ 只允許垂直拖動 */
}

/* 移除非輸入類元件的焦點邊框 */
*:not(input):not(textarea):not([contenteditable]) {
    outline: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

::-webkit-scrollbar {
    display: none;
    /*隱藏滾輪*/
}

/* 移除自動帶入樣式 */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    background-color: white !important;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

input {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    user-select: none;
    /* 無法選取 */
    pointer-events: none;
    /* 點擊事件穿透遮罩 */
}

#loadOut {
    display: none;
}

.loading-page {
    background: var(--color-bg);
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-page .counter {
    text-align: center;
}

.loading-page .counter span {
    color: white;
    font-size: 1.3rem;
    margin-top: -4px;
}

.loading-page .counter hr {
    background: var(--color-btn);
    border: none;
    height: 1px;
}

.loading-page .counter {
    position: relative;
    width: 200px;
}

.counter>.logo-size {
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
    box-sizing: border-box;
    letter-spacing: 0.05rem;
    background-color: var(--color-bg) !important;
    color: var(--color-w100);
}

div {
    box-sizing: border-box;
}

ul {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

a {
    text-decoration-line: none;
    cursor: pointer;
}

button {
    border: none;
    padding: 0;
}

input::placeholder {
    color: var(--color-w65);
}

.hide {
    display: none;
}

.block {
    display: block;
}

.disabled {
    cursor: not-allowed;
}

.red {
    color: var(--color-btn);
}

.white {
    color: var(--color-w100);
}

.green {
    color: #00d500;
}

.margin-T8 {
    margin-top: 8px;
}

.margin-B16 {
    margin-bottom: 16px;
}

.margin-right {
    margin-right: 4px;
}

.btn {
    width: auto;
    height: 40px;
    cursor: pointer;
    background-color: transparent;
    padding: 0 0.8rem;
}

.highlight-t {
    font-size: larger;
    font-weight: bold;
}

.promo-popup td,
.promo-popup th {
    padding: 5px;
}

/* 優惠詳情內的表格（後台 HTML，欄數／內容長度不固定）：
   由 promotion.js 外掛 .promo-table-wrap 捲動容器；表格依內容自然撐開、最小滿版，溢出時只橫滑表格 */
.promo-popup .promo-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.promo-popup .promo-table-wrap > table {
    /* 後台內容常帶 inline width，需覆蓋才能自然撐開 */
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
}

/* 長段文字仍在單格內折行，避免整張表被一句話拉到極寬 */
.promo-popup .promo-table-wrap > table td,
.promo-popup .promo-table-wrap > table th {
    max-width: 22rem;
    overflow-wrap: break-word;
}



/* 登入／註冊彈窗的欄位是透明底線樣式，用 --color-nav 當 inset 底色會蓋成整塊色塊。
   改讓 Chrome 的自動填入底色只裁切到文字，欄位維持透明。 */
#registerModal2 input:-webkit-autofill,
#registerModal2 input:-webkit-autofill:hover,
#registerModal2 input:-webkit-autofill:focus,
#registerModal2 input:-webkit-autofill:active,
#loginModal2 input:-webkit-autofill,
#loginModal2 input:-webkit-autofill:hover,
#loginModal2 input:-webkit-autofill:focus,
#loginModal2 input:-webkit-autofill:active {
    -webkit-background-clip: text !important;
    background-clip: text !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background-color: transparent !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    border-color: #777 !important;
    transition: background-color 600000s 0s;
}

@media screen and (max-width:767px) {
    html {
        font-size: 15px;
    }
}

/* ===== components/navbar.css ===== */
/* 頂部導航：消息未讀 badge（原 navbar.ejs inline） */
.profile-news-unread-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d7b16a;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}

/* ===== index_navbar.css ===== */
/* 注意：navbar.css 已於上方「components/navbar.css」區塊內嵌，原檔頭的 @charset / @import 為串接殘留，放在檔案中段會被瀏覽器忽略並報錯，故移除 */

/* CSS Document */
.header {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    z-index: 10;
}

.header .tophd {
    width: 100%;
    height: auto;
    min-height: 60px;
    box-shadow: 0px 0px 8.4px 5px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    padding: 0.3% 0px;
    backdrop-filter: blur(0.5rem);
    background-color: #000000a3;
    border-bottom: 1px solid #ffffff75;
}

/* 導航左欄 */
.navbar-L {
    color: beige;
    display: flex;
    align-items: center;
    width: 60%;
}

.logo-size {
    width: 100%;
    max-width: 18rem;
    padding-left: 16px;
}

@keyframes line {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 導航右欄 */
.navbar-R {
    width: 40%;
    z-index: 101;
}

.navbar-R>div,
.navbar-R>div>div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-right: 16px;
}

.navbar-R .btn {
    /* width: 40%; */
    /* max-width: 80px; */
}

.normal-btn {
    border: 1px solid var(--color-w65) !important;
    color: var(--color-w65);
}

.normal-btn:hover {
    border: 1px solid var(--color-w100) !important;
    color: var(--color-w100) !important;
}

.btn.red-btn {
    background-color: var(--color-btn);
    color: var(--color-w100);
}

.btn.red-btn:hover {
    box-shadow: 1px 0px 8px 1px inset #8d0f01;
    color: var(--color-w100) !important;
}

.bell {
    width: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.mycash {
    width: auto;
    min-width: 112px;
    display: flex !important;
    align-items: center;
    gap: 4px;
    justify-content: space-evenly;
}

.mycash>span {
    display: flex;
}

/* 導航菜單 */
.centerbox {
    margin: 0 auto;
    width: 70%;
    height: 100%;
    max-width: 1280px;
}

.logo {
    float: left;
    width: 15%;
    height: 100%;
    text-align: right;
    line-height: 55px;
}

.logo>a>img {
    width: 100%;
    vertical-align: middle;
}


.content_all {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    height: auto;
    padding-top: 92px;
}

/* login/register */
.modal {
    backdrop-filter: blur(0.5rem);
    background-color: var(--color-b19);
}

.modal-style-2 {}

.modal-style-2 .modal-login {
    width: 350px;
    margin: 80px auto 0 auto;
}

.modal-style-2 .modal-login a {
    text-decoration: none !important;
}

.modal-style-2 .modal-login .modal-content {
    padding: 20px;
    border-radius: 5px;
    border: none;
}

.modal-style-2 .modal-login .modal-header {
    border-bottom: none;
    position: relative;
    justify-content: center;
}

.modal-style-2 .modal-login .close {
    position: absolute;
    top: -10px;
    right: 0px;
}

.modal-style-2 .close:focus,
.modal-style-2 .close:active {
    outline: none !important;
    box-shadow: none;
}

.modal-style-2 .modal-login h4 {
    color: var(--style-2-color);
    text-align: center;
    font-size: 18px;
    margin-top: 0;
    border-bottom: 0;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 3px;
    font-weight: bold;
}

.modal-style-2 .modal-login .modal-content {
    color: #999;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
    padding: 25px;
}

.modal-style-2 .modal-login .form-group {
    margin: 16px 0;
}

.modal-style-2 .modal-login label {
    font-weight: normal;
    font-size: 13px;
    margin-top: 16px;
}

.modal-style-2 .modal-login .modal-body {
    padding: 0;
}

.modal-style-2 .modal-login .form-control {
    min-height: 38px;
    padding-left: 5px;
    box-shadow: none !important;
    border-width: 0 0 1px 0;
    border-radius: 0;
    font-size: 13px
}

.modal-style-2 .modal-login .form-control:focus {
    border-color: #ccc;
}

.modal-style-2 .modal-login .input-group-addon {
    min-width: 22px;
    max-width: 42px;
    text-align: center;
    background: none;
    border-width: 0 0 1px 0;
    padding-left: 5px;
    border-radius: 0;
    margin-right: 10px;
    padding-top: 15px;
}

.modal-style-2 .modal-login .btn {
    font-size: 15px;
    font-weight: bold;
    background: var(--color-btn);
    color: var(--color-w100);
    border-radius: 25px;
    border: none;
    min-width: 140px;
    margin: 0 auto;
    padding: 10px;
    outline: none !important;
}

/* .modal-style-2 .modal-login .btn:hover,
.modal-style-2 .modal-login .btn:focus {
    background: var(--style-2-color);
} */
.modal-style-2 input:-internal-autofill-selected {
    background-color: transparent !important;
}

.modal-style-2 .modal-login .hint-text {
    text-align: center;
    padding: 16px 0;
    font-size: 13px;
}

.modal-style-2 .modal-login .modal-footer {
    color: #999;
    border-color: #dee4e7;
    text-align: center;
    margin: 0 -25px -25px;
    font-size: 13px;
    justify-content: center;
}

.modal-style-2 .modal-login a {
    color: #fff;
    text-decoration: underline;
}

.modal-style-2 .modal-login a:hover {
    text-decoration: none;
}

.modal-style-2 .modal-login a {
    color: var(--color-w100);
    text-decoration: none;
}

.modal-style-2 .modal-login a:hover {
    text-decoration: underline;
}

.modal-style-2 .modal-login .fa {
    font-size: 16px;
}

.dark.modal-style-2 .modal-content {
    background: var(--color-nav);
    color: #fff !important;
}

.dark.modal-style-2 .close,
.modal-style-2.dark .modal-login h4 {
    color: #fff !important;
}

.dark.modal-style-2 .modal-login .form-control {
    background: transparent !important;
    color: #fff;
    border-color: #777;
    /* background-color: var(--color-nav); */
}

.dark.modal-style-2 .modal-login .input-group-addon {
    color: #9E9E9E;
}

.dark.modal-style-2 .modal-login .modal-footer {
    border: none;
}

/* .dark.modal-style-2 .modal-login .btn{
    background: #70807e;
} */
.dark .text-danger {
    color: #777 !important;
}

.show-password,
.check-terms {
    display: flex;
    align-items: center;
    gap: 4px;
}

.check-terms {
    gap: 8px;
}

.check-terms a {
    color: var(--color-btn) !important;
}

@media only screen and (max-width: 360px) {
    .modal-style-2 .modal-login {
        width: 100%;
        margin: 5px;
    }

    .modal-style-2 .modal-login form {
        width: 100%;
    }
}

/* footer */
.footer_wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#footer .decoration-line,
#footer .footer-site-links-divider {
    display: none !important;
    margin: 0;
    border: none;
}

.footer-nav-box {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    height: auto;
    color: var(--color-w65);
}

.footer-nav-box>p {
    font-size: 0.8rem;
}

/* footer 第一行：logo + 連結列（兩端對齊） */
.footer-top-bar {
    width: 100%;
    max-width: 1600px;
    margin: 12px auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.footer-brand img,
.footer-brand .logo-size {
    height: 40px !important;
    width: auto !important;
    max-width: 220px;
    padding: 0 !important;
    object-fit: contain;
    display: block;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--color-w65);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.18s ease, background 0.18s ease;
}

.footer-links a:hover {
    color: var(--color-w100);
    background: var(--color-w10);
}

.footer-links a i {
    color: var(--color-btn);
    font-size: 0.82rem;
}

.footer-link-divider {
    color: var(--color-w18);
    font-size: 0.85rem;
    user-select: none;
}

/* footer 描述區 */
.footer-desc-box {
    flex-direction: column;
    padding: 0 16px;
}

.footer-desc-box .footer-desc-title {
    color: var(--color-w100);
    font-size: 1rem;
    font-weight: 600;
    margin: 12px 0 10px;
    letter-spacing: 0.3px;
}

.footer-desc-box p {
    color: var(--color-w65);
    font-size: 0.82rem;
    line-height: 1.85;
    margin: 0 0 20px;
}

.footer-copyright {
    margin-top: 8px !important;
    padding-top: 0;
    border-top: none;
    color: var(--color-w65) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.4px;
    text-align: center;
}


@media screen and (min-width: 768px) {
    .sm-profile-site-links {
        display: none !important;
    }
}

@media screen and (max-width: 575px) {
    .footer-link-divider {
        display: none;
    }
}

/* footer */
/* footer # */


@media screen and (min-width:768px) and (max-width:1024px) {

    .banner,
    .gamenav,
    .footer_wrapper {
        width: 98svw;
        margin: 0 auto;
    }

    .footer-nav-item>div:first-child {
        width: 25%;
    }

    .footer-nav-item>div:last-child {
        width: 75%;
    }

    .footer_wrapper {
        padding-bottom: 80px;
    }
}

@media screen and (min-width:1024px) {}

/* ============================================================ */
/* [MODIFIED START] auth-modal 新版登入/註冊彈窗樣式             */
/* 參照 登入註冊窗口.html 設計                                   */
/* Bootstrap Modal 結構完整保留，CSS 只覆蓋視覺，不覆蓋 display  */
/* ============================================================ */

/* --- 遮罩：只加 backdrop blur，不動 Bootstrap display/position --- */
.modal-style-2.dark.modal {
    backdrop-filter: blur(8px);
    background-color: rgba(6, 15, 34, 0.55) !important;
}

/* --- 對話框：寬度上限 + 垂直置中 --- */
.auth-modal-dialog {
    width: 100%;
    max-width: 420px;
    margin: 2.5rem auto;
    animation: authFadeIn 0.25s ease-out;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 卡片本體：覆蓋 Bootstrap .modal-content 視覺 --- */
.auth-modal-inner.modal-content {
    background: linear-gradient(165deg, rgba(14, 26, 48, 0.98) 0%, rgba(8, 16, 34, 0.99) 100%) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(199, 164, 95, 0.28) !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
    overflow: hidden;
    padding: 0;
}

/* --- 頂部標題列 --- */
.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(199, 164, 95, 0.18);
    background: linear-gradient(180deg, rgba(10, 20, 40, 0.72) 0%, rgba(8, 16, 34, 0.45) 100%);
}

.auth-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f0ddb0;
    letter-spacing: 0.03em;
}

.auth-modal-close {
    background: transparent;
    border: none;
    color: var(--color-w65);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    transition: color 0.15s;
}

.auth-modal-close:hover {
    color: var(--color-w100);
}

/* --- 主體內容 --- */
.auth-modal-body {
    padding: 22px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-modal-body form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- 通用輸入欄位包裝 --- */
.auth-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-field-icon {
    position: absolute;
    left: 12px;
    color: var(--color-w65);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

.auth-field {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--color-w25);
    border-width: 0 0 1px 0;
    /* border-radius: 8px; */
    padding: 10px 12px 10px 36px;
    color: var(--color-w100);
    font-size: 0.875rem;
    transition: border-color 0.2s, background-color 0.2s;
    outline: none;
}

.auth-field::placeholder {
    color: var(--color-w25);
}

.auth-field:focus {
    border-color: rgba(202, 163, 90, 0.65);
}

.auth-field:read-only {
    /* background-color: #1a1a1a; */
    color: var(--color-w100);
    border-color: var(--color-w25);
    cursor: not-allowed;
}

/* select 特殊處理 */
.auth-field option {
    background: #0f1c36;
    color: #e8d6b0;
}

/* --- 密碼顯示切換按鈕 --- */
.auth-field-eye {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--color-w65);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
    z-index: 1;
}

.auth-field-eye:hover {
    color: var(--color-w100);
}

/* --- 驗證碼行 (input + 圖片並排) --- */
.auth-captcha-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.auth-captcha-input {
    flex: 1;
    padding-left: 12px;
    /* 驗證碼不需圖示縮進 */
}

.auth-captcha-img {
    width: 112px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* --- 記住我 / 忘記密碼 列 --- */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.auth-checkbox {
    width: 15px;
    height: 15px;
    accent-color: #caa35a;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-forget-link {
    font-size: 0.75rem;
    color: var(--color-w65);
    text-decoration: none !important;
    transition: color 0.15s;
}

.auth-forget-link:hover {
    color: #f0ddb0;
}

/* --- 主按鈕 (金藍主題) --- */
.auth-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #dcc288 0%, #b88d45 100%);
    color: #0d1f3d;
    border: 1px solid rgba(241, 214, 153, 0.42);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 18px rgba(181, 140, 66, 0.34);
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #ead9a8 0%, #c49a52 100%);
    box-shadow: 0 10px 24px rgba(191, 149, 74, 0.45);
}

.auth-btn-primary:active {
    transform: scale(0.98);
}

/* --- 分隔線 --- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-divider-text {
    font-size: 0.65rem;
    color: var(--color-w25);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

/* --- Google 按鈕 --- */
.auth-btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background-color: #ffffff;
    color: #1e293b;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.auth-btn-google:hover {
    background-color: #f1f5f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.auth-btn-google:active {
    transform: scale(0.98);
}

.auth-google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --- 手機欄 (國碼 + 號碼) --- */
.auth-phone-row {
    display: flex;
    gap: 8px;
}

.auth-phone-code {
    width: 90px;
    flex-shrink: 0;
    padding-left: 10px;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.auth-phone-input {
    flex: 1;
    padding-left: 12px;
}

/* --- 簡訊驗證碼列 --- */
.auth-sms-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.auth-sms-row .auth-field {
    flex: 1;
    padding-left: 12px;
}

.auth-btn-sms {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    background: linear-gradient(135deg, #dcc288 0%, #b88d45 100%);
    color: #0d1f3d;
    border: 1px solid rgba(241, 214, 153, 0.35);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.auth-btn-sms:hover {
    background: linear-gradient(135deg, #ead9a8 0%, #c49a52 100%);
    box-shadow: 0 4px 14px rgba(181, 140, 66, 0.3);
}

/* --- 條款列 --- */
.auth-terms-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--color-w65);
}

.auth-terms-row label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* --- 推廣碼鎖圖示 --- */
.auth-promo-lock {
    position: absolute;
    right: 10px;
    color: #475569;
    font-size: 0.78rem;
    pointer-events: none;
}

/* --- 底部換頁列 --- */
.auth-modal-footer {
    padding: 14px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: var(--color-w65);
}

.auth-modal-footer p {
    margin: 0;
}

.auth-switch-link {
    color: #f0ddb0 !important;
    font-weight: 700;
    text-decoration: none !important;
    margin-left: 4px;
    transition: color 0.15s;
}

.auth-switch-link:hover {
    color: #dcc288 !important;
}

/* --- 品牌條 --- */
.auth-modal-brand {
    padding: 10px 20px;
    background: linear-gradient(180deg, rgba(8, 16, 34, 0.55) 0%, rgba(6, 12, 26, 0.72) 100%);
    text-align: center;
    border-top: 1px solid rgba(199, 164, 95, 0.12);
}

.auth-modal-brand span {
    font-size: 0.6rem;
    color: var(--color-w25);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* --- 密碼顯示切換輔助函式 (CSS 無法做，JS 在 EJS 端處理) --- */

/* --- RWD 小螢幕 --- */


/* ============================================================ */
/* [MODIFIED END] auth-modal 新版登入/註冊彈窗樣式               */
/* ============================================================ */

/* ============================================================ */
/* Homepage Facelift v1 (rzu-like, UI only)                    */
/* ============================================================ */

.header {
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(10, 11, 16, 0.96) 0%, rgba(10, 11, 16, 0.78) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.header .tophd {
    min-height: 72px;
    padding: 0.2% 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.header .navbar-L .logo-size {
    max-width: 12rem;
    width: auto;
    height: auto;
    padding-left: 12px;
    filter: drop-shadow(0 2px 8px rgba(212, 176, 101, 0.3));
}

.navbar-R>div,
.navbar-R>div>div {
    gap: 10px;
}

.navbar-R .btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.normal-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.btn.red-btn {
    background: linear-gradient(135deg, #dcc288 0%, #b88d45 100%);
    border: 1px solid rgba(241, 214, 153, 0.42) !important;
    color: #0d1f3d;
    box-shadow: 0 6px 18px rgba(181, 140, 66, 0.34);
}

.btn.red-btn:hover {
    box-shadow: 0 10px 24px rgba(191, 149, 74, 0.45);
}

.content_all {
    max-width: 1320px;
    padding-top: 52px;
}

.footer-nav-box {
    max-width: 1320px;
}

.footer-top-bar,
.footer-desc-box,
.footer-vendor-logos {
    max-width: 1320px;
}

.footer-vendor-logos {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

.footer-top-bar {
    border-top: none;
    border-bottom: none;
    padding-top: 16px;
    padding-bottom: 14px;
}

.footer-brand img,
.footer-brand .logo-size {
    opacity: 0.92;
}

.footer-links a {
    border: 1px solid transparent;
}

.footer-links a:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

@media screen and (max-width: 767px) {
.footer-top-bar {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

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

/* 手機：站點連結僅在 sm-profile_model 內容區顯示 */

#footer .footer-site-links, #footer .footer-site-links-divider {
        display: none !important;
    }

#footer .footer-site-intro .footer-desc-title,
    #footer .footer-site-intro > p,
    #footer .footer-copyright,
    .footer-copyright {
        display: none !important;
    }

#footer .footer-site-intro {
        padding-top: 8px;
    }

.sm-profile-site-links {
        display: block;
        margin: 20px 12px 8px;
        padding: 16px 12px;
        border-radius: 12px;
        background: linear-gradient(160deg, rgba(28, 38, 62, 0.55) 0%, rgba(12, 20, 38, 0.72) 100%);
        border: 1px solid rgba(199, 164, 95, 0.22);
    }

.sm-profile-site-links .footer-top-bar {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin: 0;
        padding: 0;
        border: none;
    }

.sm-profile-site-links .footer-links {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

.sm-profile-site-links .footer-links a {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
    }

.sm-profile-site-links .footer-link-divider {
        display: none;
    }

.header {
    display: none !important;
}

.content_all {
    padding-top: max(10px, env(safe-area-inset-top, 0px)) !important;
}

.content_all.home-rzu-shell {
    padding-top: max(8px, env(safe-area-inset-top, 0px)) !important;
}

.h5hide {
        display: none !important;
    }

.logo-size {
        width: 100%;
        height: auto;
        max-width: 10rem;
    }

.footer_wrapper {
        padding-bottom: 60px;
    }

.footer-nav-box>div {
        width: 100%;
    }

.footer-nav-item {
        flex-direction: column-reverse;
        gap: 8px;
    }

.footer-nav-item>div:first-child {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

.footer_wrapper>.footer-nav-box:last-child {
        padding: 0 16px;
    }

.auth-modal-dialog {
        max-width: 350px;
    }

.auth-modal-body {
        padding: 16px 14px 12px;
    }

.auth-captcha-img {
        width: 90px;
    }

.auth-phone-code {
        width: 76px;
    }
}

/* ===== profile.css ===== */
/* 注意：原檔頭 @charset 為串接殘留，放在檔案中段會被忽略並報錯，故移除 */

/* CSS Document */
.profile_wrapper {
    width: 100%;
    height: auto;
    margin: 0 auto 60px auto;
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

#profile_model {
    width: 22%;
    align-self: flex-start;
    box-sizing: border-box;
    background: var(--ix9-panel-bg);
    padding: 1.35rem 1.15rem;
    border-radius: 16px;
    border: 1px solid var(--color-w10);
    box-shadow:
        0 8px 24px var(--color-b44),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#profile_model .profile_nav_box {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

#profile_model .top {
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--color-w10);
}

#profile_model .money_title {
    border-left-width: 4px;
    border-radius: 2px;
    margin-bottom: 12px;
}

#profile_model .person_money > p {
    color: var(--color-w100);
    font-size: 1.25rem;
}

#profile_model .save_btn {
    margin: 18px 0 0;
    gap: 10px;
    justify-content: space-between;
}

#profile_model .save_btn .btn {
    flex: 1;
    text-align: center;
}

#profile_model .profile_nav_wrapper {
    gap: 4px;
}

#profile_model a {
    text-decoration: none;
    color: inherit;
}

#profile_model .profile_nav_item {
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--color-w65);
    font-size: 0.92rem;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}

#profile_model .profile_nav_item i {
    width: 1.1em;
    text-align: center;
    color: var(--color-btn);
    opacity: 0.92;
}

#profile_model .profile_nav_item:hover {
    color: var(--color-w100);
    background-color: var(--color-w10);
    border-color: var(--color-w18);
}

#profile_model .profile_nav_item:hover i {
    opacity: 1;
}

/* 電腦版當前頁選單 */
@media screen and (min-width: 768px) {
    #profile_model .profile_nav_item.active {
        color: var(--color-w100);
        background-color: rgba(201, 163, 90, 0.12);
        border-color: rgba(201, 163, 90, 0.35);
        box-shadow: inset 0 0 0 1px rgba(201, 163, 90, 0.08);
    }

    #profile_model .profile_nav_item.active i {
        color: var(--color-btn);
        opacity: 1;
    }

    #profile_model .save_btn .btn.active {
        box-shadow: 0 0 0 1px rgba(201, 163, 90, 0.55), 0 4px 12px rgba(201, 163, 90, 0.2);
    }
}


.all_all {
    width: 78%;
}

.profile_content_box {
    width: 100%;
    height: auto;
    padding: 0 16px;
}


/* person_allnav */

.form_border {
    width: 100%;
    height: 40px;
    border: 1px solid var(--color-w100);
    border-radius: 4px;
    margin: 4px 0;
    color: var(--color-w100);
    background-color: var(--color-nav);
    padding: 0 8px;
}

input[type="date"]::-webkit-datetime-edit {
    font-family: 'Noto Sans TC', sans-serif;
}


/* nav */

.person_money>p {
    color: var(--color-w65);
    font-weight: 500;
    letter-spacing: 0.05rem;
    text-align: center;
    font-size: 1.3rem;
}

.prompt-box {
    padding: 15px;
    border: 1px solid #ffffff20;
    border-radius: 10px;
}

.money_title {
    border-left: 5px solid var(--color-btn);
    color: var(--color-w100);
    font-weight: 400;
    padding-left: 5px;
    margin-bottom: 16px;
}

.save_btn {
    width: 100%;
    margin: 32px 0;
    display: flex;
    justify-content: space-evenly;
}

.profile_nav_wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.profile_nav_item {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-w100);
    gap: 8px;
}

.profile-sub-title {
    color: var(--color-w100);
    font-size: 1.8rem;
    margin-bottom: 32px;
}

form section,
.profile_content_box section {
    margin-bottom: 24px;
}

/* save */
.text_box {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 50%;
    height: auto;
    gap: 16px;
}

.input-money {
    flex-direction: column;
}

/* .pay 保留相容舊有引用 */
.pay {
    border: 2px solid var(--color-w25);
    border-radius: 4px;
    padding: 16px;
    width: calc(100% / 4);
    color: var(--color-w25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pay>i {
    color: var(--color-w25);
}

.pay:hover,
a.gift:hover,
.pay:hover>i {
    border-color: var(--color-w100);
    color: var(--color-w100);
}

/* 渠道 false */
.pay.false,
.pay.false>i,
a.gift.false {
    border-color: var(--color-w10);
    color: var(--color-w10);
    cursor: not-allowed;
    opacity: 0.5;
}

/* 渠道 false # */

/* 渠道 light */
.pay.light,
.pay.light>i,
a.gift.light {
    border-color: var(--color-w100);
    color: var(--color-w100);
}

.pay.light,
a.gift.light {
    background-color: var(--color-w10);
}

/* 渠道 light # */

.save-flex {
    display: flex;
    gap: 16px;
}

/* a.howmoney 保留相容舊有引用 */
a.howmoney {
    border: 2px solid var(--color-w65);
    border-radius: 4px;
    color: var(--color-w25);
    font-size: 1rem;
    display: block;
    padding: 8px 20px;
}


.text_money {
    min-width: 280px;
    min-height: 42px;
    border: 2px solid var(--color-w65);
    border-radius: 4px;
    color: var(--color-w100);
    background-color: var(--color-nav);
    padding: 8px 20px;
}

.note {
    color: var(--color-w65);
    line-height: 1.6rem;
    font-size: 0.9rem;
}

.note>ol>li {
    list-style: unset;
}

input.text_money:focus,
input.form_border:focus {
    caret-color: #d7b16a;
    outline: none;
    border-color: rgba(199, 164, 95, 0.55);
}

.text_money>::placeholder,
input.form_border>::placeholder {
    color: #acacac;
    opacity: 1;
}

::-ms-input-placeholder {
    color: #acacac;
}

.savemoney_btn {
    border: transparent;
    border-radius: 3px;
    background-color: #dec6c4;
    color: #fff;
    width: 100px;
    height: 40px;
    cursor: pointer;
    padding: 0px;
    margin-left: 10px;
}

.savemoney_btn:hover {
    background-color: #a75953;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
}

.gobank_btn {
    width: 40%;
    height: 40px;
    line-height: 40px;
    margin: 2.5% auto 65% auto;
    border: transparent;
    border-radius: 3px;
    background-color: #dec6c4;
    cursor: pointer;
    text-align: center;
    font-weight: 300;
}

.gobank_btn:hover {
    background-color: #a75953;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -o-transition: 0.5s;
}

.gobank_btn>a {
    padding: 2% 3%;
    color: #fff;
}

/* VIP 卡片框架 */
.vip-lv-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(180, 100, 30, 0.25);
}

/* 底圖輪播區域（保留原有） */

/* 卡片暗色遮罩（讓文字清晰可讀） */
.vip-lv-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42, 27, 21, 0.82) 0%, rgba(20, 14, 11, 0.75) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 卡片內容層（z-index 高於遮罩） */
.vip-card-content {
    position: relative;
    z-index: 2;
    padding: 22px 24px 20px;
}

/* 上半：標題 + icon */
.vip-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

/* VIP STATUS 小標 */
.vip-card-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 158, 11, 0.6);
    margin-bottom: 4px;
}

/* VIP N 大標題 */
.vip-card-title {
    font-size: 2.4rem;
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    margin: 0;
}

/* 右側 icon 圓形 */
.vip-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(120, 53, 15, 0.2);
    border-radius: 50%;
    border: 1px solid rgba(217, 119, 6, 0.2);
    color: #f59e0b;
    flex-shrink: 0;
}

.vip-card-svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* 進度條區塊 */
.vip-card-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vip-card-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(156, 163, 175, 0.9);
}

.vip-card-progress-track {
    height: 5px;
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    overflow: hidden;
}

.vip-card-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #d97706, #fbbf24);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
    transition: width 1s ease;
}


/* pic */

input[type="file"] {
    display: block;
}

/*資料遮罩*/
.step-section {
    position: relative;
    /* 給 ::after 定位用 */
}

.step-section.section-locked {
    pointer-events: none;
    /* 鎖住區塊內所有互動 */
    filter: grayscale(20%);
    /*（可選）鎖住時略灰 */
}

.step-section.section-locked::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #000000ad;
    z-index: 2;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    border: 1px solid #3d0000;
}

.step-section .unlock-hint {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .6);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    pointer-events: none;
    /* 提示不擋點擊（反正整塊被鎖了） */
    display: none;
    /* 需要時才手動顯示 */
}

.step-section.section-locked .unlock-hint {
    display: block;
}

/* card — CSS card UI (no background image) */
.mySwiper_card {
    padding: 4px 2px 8px;
}

.mySwiper_card .swiper-slide {
    height: auto;
}

.mySwiper_card .swiper-slide > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.creditcard {
    width: 100%;
    max-width: none;
    min-height: 148px;
    height: auto;
    box-sizing: border-box;
    border-radius: 16px;
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    color: var(--color-w100);
    background:
        radial-gradient(ellipse 80% 70% at 100% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
        linear-gradient(145deg, #1a2d4f 0%, #102344 48%, #0b1833 100%);
    border: 1px solid var(--color-w18);
    box-shadow:
        0 8px 22px var(--color-b44),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.creditcard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.creditcard-chip {
    width: 34px;
    height: 24px;
    border-radius: 5px;
    background: linear-gradient(135deg, #f0e0b0 0%, #c9a35a 45%, #a98843 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    position: relative;
}

.creditcard-chip::after {
    content: "";
    position: absolute;
    inset: 5px 4px;
    border: 1px solid rgba(80, 50, 10, 0.28);
    border-radius: 2px;
}

.creditcard-brand {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-w65);
}

.card-number {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.creditcard-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    width: 100%;
}

.creditcard-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--color-w65);
    flex-shrink: 0;
}

.creditcard-value {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-w100);
    word-break: break-all;
    text-align: center;
}

.uptext {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-w100);
    width: 100%;
}


.creditcard-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

/* 審核中：低調灰階，避免與金色完成態混淆 */
.creditcard.cardPending,
.creditcard:not(.cardOK):not(.cardFail):not(.creditcard-add) {
    background:
        radial-gradient(ellipse 80% 70% at 100% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 55%),
        linear-gradient(145deg, #1a2333 0%, #121a28 50%, #0c121c 100%);
    border-color: var(--color-w18);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    opacity: 0.88;
}

.creditcard.cardPending .creditcard-chip,
.creditcard:not(.cardOK):not(.cardFail):not(.creditcard-add) .creditcard-chip {
    background: linear-gradient(135deg, #9aa3b2 0%, #6b7382 55%, #4e5563 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    opacity: 0.7;
}

.creditcard.cardPending .creditcard-brand,
.creditcard:not(.cardOK):not(.cardFail):not(.creditcard-add) .creditcard-brand,
.creditcard.cardPending .creditcard-label,
.creditcard:not(.cardOK):not(.cardFail):not(.creditcard-add) .creditcard-label,
.creditcard.cardPending .creditcard-value,
.creditcard:not(.cardOK):not(.cardFail):not(.creditcard-add) .creditcard-value {
    color: rgba(255, 255, 255, 0.45);
}

.creditcard.cardPending .creditcard-status,
.creditcard:not(.cardOK):not(.cardFail):not(.creditcard-add) .creditcard-status {
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}


/* 審核完成：低調金色卡片（低飽和，避免閱讀疲勞） */
.creditcard.cardOK {
    background:
        radial-gradient(ellipse 70% 55% at 8% 0%, rgba(233, 210, 154, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 55% 45% at 100% 100%, rgba(169, 136, 67, 0.10) 0%, transparent 48%),
        linear-gradient(150deg, #1a1f2c 0%, #141820 45%, #10141c 100%);
    border-color: rgba(201, 163, 90, 0.32);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(169, 136, 67, 0.08);
}

.creditcard.cardOK .creditcard-chip {
    background: linear-gradient(135deg, #e5d5b2 0%, #c9a35a 55%, #a98843 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.28);
}

.creditcard.cardOK .creditcard-brand {
    color: rgba(233, 210, 154, 0.78);
}

.creditcard.cardOK .creditcard-label {
    color: rgba(255, 255, 255, 0.55);
}

.creditcard.cardOK .creditcard-value {
    color: rgba(255, 255, 255, 0.92);
}

.creditcard.cardOK .creditcard-status {
    color: rgba(233, 210, 154, 0.9);
    background: rgba(201, 163, 90, 0.1);
    border-color: rgba(201, 163, 90, 0.32);
}


/* 審核失敗 */
.creditcard.cardFail {
    background:
        radial-gradient(ellipse 80% 70% at 100% 0%, rgba(248, 113, 113, 0.12) 0%, transparent 55%),
        linear-gradient(145deg, #3a1f2c 0%, #241520 50%, #160f16 100%);
    border-color: rgba(248, 113, 113, 0.4);
}

.creditcard.cardFail .creditcard-status {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.35);
}

.creditcard.cardFail .creditcard-chip {
    background: linear-gradient(135deg, #d4a0a0 0%, #9a5a5a 100%);
}


/* upload-css 
input[type="file"] {
    position: fixed;
    right: 100%;
    bottom: 100%;
}

.custom-file-upload {
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 500;
}*/

/* file upload button */
input[type="file"]::file-selector-button {
    border-radius: 4px;
    padding: 0 16px;
    height: 40px;
    cursor: pointer;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.16);
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
    margin-right: 16px;
    transition: background-color 200ms;
}

/* file upload button hover state */
input[type="file"]::file-selector-button:hover {
    background-color: #f3f4f6;
}

/* file upload button active state */
input[type="file"]::file-selector-button:active {
    background-color: #e5e7eb;
}

li.c {
    width: 50%;
}

.talign {
    display: flex;
    margin-left: 3px;
}

/* code 
.code-content{
    display: flex;
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
}

.code-content>section>div:last-child{
    display: flex;
    justify-content: center;
}
.code-content>section>div:last-child>button{
    margin-left: 0;
    width: 99%;
}*/

/* news */

.newsline {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
}

.newsline>a {
    color: var(--color-w65);
    padding: 8px;
}

.newsline>a:hover {
    background-color: var(--color-nav);
    color: var(--color-w100);
    border-radius: 30px;
}

.newsline>a:first-child {
    width: 80%;
}

.newul {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.modal-title {
    font-size: 1rem;
}


/* maintain */
.fix {
    width: 60%;
    line-height: 25px;
    margin: 0px auto;
    background-color: var(--color-b44);
    color: var(--color-w100);
    border-radius: 30px;
}

.fixbox {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.zeroModaltext_money {
    width: 100%;
    min-height: 42px;
    border: 2px solid #777;
    border-radius: 4px;
    color: var(--color-w100);
    background-color: var(--color-nav);
    padding: 8px 20px;
    margin-bottom: 16px;
}

/* 點數轉移彈窗：原生 select 預設箭頭在深色底上看不見，改白 chevron */
select.zeroModaltext_money {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 12px;
    padding-right: 36px;
    cursor: pointer;
}

select.zeroModaltext_money::-ms-expand {
    display: none;
}

select.zeroModaltext_money option {
    background: var(--color-nav);
    color: var(--color-w100);
}

.exChange {
    position: absolute;
    right: 275px;
    top: 135px;
    border-radius: 100%;
    background-color: var(--color-btn);
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transform: rotate(90deg);
}


/* maintain_light */
.ckbx-circle-3 {
    margin-right: 15px;
    margin-bottom: 4px;
}

.ckbx-circle-3 input[type=checkbox] {
    position: absolute;
    opacity: 0;
}

.ckbx-circle-3 em {
    position: relative;
    cursor: pointer;
    display: block;
    width: 1em;
    height: 1em;
    font-size: 1rem;
}

.ckbx-circle-3 em:before {
    content: '';
    position: absolute;
    width: 1em;
    height: 1em;
    transition: background 0.1s 0.1s ease;
    background: #fcfff4;
    border-radius: 100%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
}

.ckbx-circle-3 em:after {
    content: '';
    position: absolute;
    width: .8em;
    height: .8em;
    border-radius: 100%;
    left: 0.6em;
    top: .1em;
    transition: all 0.2s ease;
    background: var(--color-btn);
    border: 0.1em solid #fcfff4;
    z-index: 2;
}

.ckbx-circle-4 em:after {
    background: #70C1B3;
}

.light {
    display: flex;
    justify-content: center;
}

.t-btn-box {
    width: 100%;
    display: flex;
    margin: 2.5% 0;
}

.t-btn-box>div {
    margin: 0 1%;
}

.gametip-box {
    margin: 8px auto;
}

.t-btn {
    width: 100%;
    cursor: pointer;
    height: 2.5rem;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    margin: 8px 0;
    box-shadow: 0 2px 10px 2px rgb(0 0 0 / 18%);
}

.btn-w-50 {
    display: flex;
    gap: 8px;
}

.recycle {
    background-color: var(--color-r19);
    border: 1px solid var(--color-r67);
}

.turn {
    background-color: var(--color-w18);
    border: 1px solid #ffffff4a !important;
}

.turn-box {
    width: 50%;
    margin: 0 auto;
}

/* .gift-active>a.gift:hover {
    background-color: rgb(253, 246, 246);
    transition: 0.6s;
}

.gift-active>a.gift:active {
    background-color: #eee;
    transition: 0.2s;
} */

/* #btmnav {
    display: none;
} */

/* transaction */
ul.list_all {
    width: 100%;
    background-color: #ffffff14;
}

li.list-flex {
    display: flex;
}

li.list-flex>div {
    width: calc(100%/4);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    color: var(--color-w100);
}

tr.list-flex>td {
    width: calc(100%/7);
    text-align: center;
    padding: 10px 0;
    color: var(--color-w100);
}

.table>.pc-table>tbody>tr>th:first-child {
    border-top-left-radius: 10px;
}

.table>.pc-table>tbody>tr>th:last-child {
    border-top-right-radius: 10px;
}

.table>.pc-table>tbody>tr>th {
    width: calc(100%/8);
}

.list-flex:nth-child(even) {
    background-color: #48484865;
}

.total-tr {
    background-color: var(--color-nav);
}

.total-tr>td:first-child {
    border-bottom-left-radius: 10px;
}

.total-tr>td:last-child {
    border-bottom-right-radius: 10px;
}

/* 114.12.4 新增編號彈窗 */
a.js-order-detail {
    color: var(--color-w100);
    background-color: var(--color-b44);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
}

#orderDetailModal .order-detail-table table {
  width: 100%;
  border-collapse: collapse;
  border:0;
}

#orderDetailModal .order-detail-table th,
#orderDetailModal .order-detail-table td {
  padding: 10px 8px;
  background: transparent;
  border: none;
}

#orderDetailModal .order-detail-table th {
  text-align: left;
}

#orderDetailModal .order-detail-table td {
  text-align: right;
  word-break: break-all;
}

#orderDetailModal .order-detail-table tr {
  border-bottom: 1px solid var(--color-w10);
}

#orderDetailModal .order-detail-table tr:last-child {
  border-bottom: none;
}

#orderDetailModal .order-detail-table i {
  width: 18px;
  text-align: center;
  opacity: 0.85;
  color: var(--color-r67);
}

/* detaillist */
.sm-time,
.sm-select,
.sm-navtitle,
.selectlist

/* cooperation */
    {
    display: none;
}


#Sport,
#Chess {
    display: flex;
    flex-wrap: wrap;
}

/* apply優惠申請 */
.apply-flex {
    display: flex;
    justify-content: space-evenly;
}

ul.promotion_apply {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

ul.promotion_apply>li {
    width: calc(100% / 3 - 16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-w100);
    border: 2px solid var(--color-w65);
    padding: 1rem;
    border-radius: 8px;
    justify-content: space-between;
    position: relative;
}

ul.promotion_apply>li>a {
    width: 100%;
}

.apply-title {
    font-size: 1rem;
    font-weight: 500;
}

.gift_t_label {
    color: var(--color-w65);
    background-color: var(--color-bg);
    font-weight: 500;
    width: 4rem;
    height: 3.9rem;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -20px;
    left: -8px;
}

/*VIP*/
.vip-scroll-tip {
    display: none;
    color: var(--color-w65);
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.vip-scroll-tip i {
    color: var(--color-btn);
    margin-right: 6px;
}

.vip-container {
    overflow: auto;
}

/* ─ VIP 徽章展示（profile_promotion，VIP0～6）─
   桌機寬度夠：置中、不滑動；手機放不下：可手動左右滑（不自動、不循環） */
.vip-badge-gallery {
    display: flex;
    gap: 12px;
    /* 靠左排列；由首/末項的 auto margin 達成「空間夠置中、放不下靠左可捲動」，
       避免 justify-content:center 溢出時左側被裁切、無法捲動的問題 */
    justify-content: flex-start;
    overflow-x: auto;
    margin: 4px 0 16px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* 鎖反白：整區不可選取文字 */
    user-select: none;
    -webkit-user-select: none;
}

/* 空間足夠 → auto margin 吸收多餘空間使整組置中；
   空間不足（溢出）→ auto margin 收為 0 → 靠左且可完整左右捲動 */
.vip-badge-gallery > .vip-badge-item:first-child {
    margin-left: auto;
}

.vip-badge-gallery > .vip-badge-item:last-child {
    margin-right: auto;
}

.vip-badge-gallery::-webkit-scrollbar {
    display: none;
}

.vip-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 120px;
    padding: 8px 4px;
    border-radius: 12px;
    background: var(--color-w10);
    border: 1px solid transparent;
    cursor: pointer;
}

/* 選中（滑動置中或點擊）的徽章：金框高亮，連動下方兩張表格對應等級欄 */
.vip-badge-item.is-focus {
    border-color: var(--color-btn);
    box-shadow: 0 0 0 1px var(--color-btn) inset, 0 6px 16px rgba(255, 35, 10, 0.22);
}

/* 鎖圖片拖曳 + 鎖反白（含行動裝置長按選單） */
.vip-badge-icon img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

/* 手機版：吸附捲動；未滑到定位（非中間）的徽章縮小＋淡化，中間那張正常 */
@media screen and (max-width: 767px) {
    .vip-badge-gallery {
        scroll-snap-type: x mandatory;
    }

    .vip-badge-item {
        scroll-snap-align: center;
    }

    /* 首/末項補上「半個容器 - 半張寬」的邊距（60px＝半張徽章寬），
       讓第一張與最後一張也能捲到正中央、正常被選中特寫 */
    .vip-badge-gallery > .vip-badge-item:first-child {
        margin-left: calc(50% - 60px);
    }

    .vip-badge-gallery > .vip-badge-item:last-child {
        margin-right: calc(50% - 60px);
    }

    .vip-badge-gallery.js-focus .vip-badge-item {
        opacity: 0.5;
        transform: scale(0.82);
        transition: transform .25s ease, opacity .25s ease;
    }

    .vip-badge-gallery.js-focus .vip-badge-item.is-focus {
        opacity: 1;
        transform: scale(1);
    }
}

.vip-badge-item.is-current {
    background: linear-gradient(135deg, rgba(255, 35, 10, 0.18), rgba(255, 35, 10, 0.06));
    border-color: rgba(255, 35, 10, 0.45);
}

.vip-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

.vip-badge-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.vip-badge-icon i {
    font-size: 1.7rem;
    color: var(--color-btn);
}

.vip-badge-name {
    color: var(--color-w100);
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.vip-badge-item.is-current .vip-badge-name {
    color: var(--color-btn);
}

/* ─ VIP 等級福利表（profile_promotion）─ */
.vip-table-wrap {
    /* 沿用 withdraw-table-wrap，這裡只補微調 */
}

/* 凍結欄用 sticky；合併邊框（collapse）下邊框由表格層繪製，橫滑時 sticky 欄會 ±1px 抖動，
   故改分離邊框並清掉間距，外觀不變但 sticky 定位穩定 */
.status-table.vip-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
}

.status-table.vip-table th,
.status-table.vip-table td {
    text-align: center;
    padding: 12px 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.status-table.vip-table .vip-col-name {
    text-align: left;
    color: var(--color-w100);
    font-weight: 500;
    background: var(--color-nav);
    box-sizing: border-box;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    position: sticky;
    left: 0;
    z-index: 2;
    /* 背景切在 padding box，避免分離邊框下右側透出底層欄位 */
    background-clip: padding-box;
    box-shadow: 6px 0 10px -6px rgba(0, 0, 0, 0.55);
}

/* 表頭凍結欄需壓過 tbody，避免橫滑時被蓋住 */
.status-table.vip-table thead .vip-col-name {
    z-index: 3;
    background: #13284a;
}

/* VIP 升降級說明表：項目欄同 120px 凍結寬 */
.status-table.vip-updown-table thead .vip-col-name {
    background: #13284a;
}

.status-table.vip-table .vip-col-name i {
    color: var(--color-btn);
    margin-right: 6px;
    width: 18px;
    text-align: center;
}

.status-table.vip-table .vip-col-name small {
    display: inline;
    color: var(--color-w65);
    font-size: 0.78rem;
    font-weight: 400;
    margin-left: 4px;
}

.status-table.vip-table .vip-col-level {
    color: var(--color-w65);
    font-size: 0.92rem;
    font-weight: 600;
    background: var(--color-w10);
}

.status-table.vip-table .vip-col-level--active {
    background: linear-gradient(135deg, rgba(255, 35, 10, 0.32), rgba(255, 35, 10, 0.12));
    color: var(--color-w100);
}

.status-table.vip-table .vip-cell--active {
    background: rgba(255, 35, 10, 0.08);
    color: var(--color-btn);
    font-weight: 700;
}

.vip-table {
    width: 100%;
    border: 0;
    margin-bottom: 15px;
    min-width: 1100px;
}

.vip-table thead th {
    text-align: center;
}

.vip-table tr {
    border: 0;
}

.vip-table tr:last-of-type {
    border-bottom: 0px;
}

.vip-table td {
    border-top: 0px;
    border-left: 0px;
    padding: 10px 15px;
}

.vip-title {
    width: 215px;
}

.vip-title,
.vip-item {
    text-align: left;
}

.vip-note {
    border: 1px solid #fff;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
}

/* ======================================================
   profile_agent 分享賺錢頁
   ====================================================== */

/* ─ Hero 賺錢規則 ─ */
.agent-hero-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(255, 35, 10, 0.06));
    border: 1px solid var(--color-w18);
}

.agent-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.agent-hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: var(--color-w100);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.3);
}

.agent-hero-text {
    flex: 1;
    min-width: 0;
}

.agent-hero-label {
    color: var(--color-w65);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.agent-hero-title {
    color: var(--color-w100) !important;
    font-size: 1.6rem !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 8px !important;
    padding-left: 0 !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block !important;
}

.agent-hero-title::before {
    display: none !important;
}

.agent-hero-desc {
    color: var(--color-w65);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
}

.agent-hero-desc strong {
    color: #fbbf24;
    font-weight: 600;
}

/* ─ 更多推薦獎勵卡片 ─ */
.agent-reward-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.agent-reward-card {
    padding: 14px;
    border-radius: 14px;
}

.agent-reward-card .agent-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.25rem;
}

.agent-reward-card .agent-hero-title,
.agent-reward-title {
    font-size: 1.2rem !important;
    margin-bottom: 6px !important;
}

.agent-reward-icon--blue {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.agent-reward-icon--green {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.3);
}

.agent-reward-icon--purple {
    background: linear-gradient(135deg, #c084fc 0%, #7c3aed 100%);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
}

.agent-reward-meta {
    color: var(--color-w65);
    font-size: 0.8rem;
}

.agent-reward-tiers {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.agent-reward-tiers li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--color-w10);
    border: 1px solid var(--color-w18);
    font-size: 0.82rem;
    color: var(--color-w65);
}

.agent-reward-tiers li strong {
    color: #fbbf24;
    font-weight: 700;
}

.agent-reward-tier-wash {
    color: var(--color-w65);
    font-size: 0.78rem;
}

/* ─ 分享連結 / QR code grid ─ */
.agent-share-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 20px;
    align-items: start;
}

.agent-share-link {
    min-width: 0;
}

.agent-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 14px;
    background: var(--color-w10);
    border: 1px solid var(--color-w18);
    border-radius: 10px;
    margin-top: 8px;
    margin-bottom: 14px;
}

.agent-link-text {
    flex: 1;
    min-width: 0;
    color: var(--color-w100);
    font-size: 0.88rem;
    line-height: 1.4;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-link-hidden {
    position: absolute;
    left: -10000px;
    top: -10000px;
    opacity: 0;
    z-index: -10;
}

.agent-link-copy {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
}

.agent-link-copy i {
    font-size: 0.82rem;
}

.agent-share-bullets {
    margin-bottom: 0;
}

.agent-share-qr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.agent-qr-box {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    padding: 10px;
    background: var(--color-w100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ─ 累積報酬 stat card ─ */
.agent-stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.10), rgba(251, 191, 36, 0.02));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    margin-bottom: 14px;
}

.agent-stat-label {
    color: var(--color-w65);
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.agent-stat-value {
    color: #fbbf24;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.agent-claim-btn {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 22px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
}

.agent-claim-btn i { font-size: 1rem; }


/* ─ VIP Hero Card：中性深灰底，刻意與 .point-section 深藍區隔 ─ */
.point-section.vip-hero-card,
.vip-hero-card {
    background-color: #12151c;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 24px var(--color-b44),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}


.vip-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.vip-hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    color: var(--color-w100);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vip-hero-text {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.vip-hero-label {
    color: var(--color-w65);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.vip-hero-level {
    color: var(--color-w100);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 8px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    background: linear-gradient(135deg, #e9d29a, #c9a35a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vip-hero-desc {
    color: var(--color-w65);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.vip-hero-desc strong {
    color: var(--color-w100);
    font-weight: 600;
}

/* verify-bullets 內的 em 變灰 */
.verify-bullets em {
    color: var(--color-w65);
    font-size: 0.82rem;
    font-style: normal;
    margin-left: 4px;
}


/* .label-color-a {
    background-color: #6cd1aa;
}

.label-color-b {
    background-color: #f5b86d;
}

.label-color-c {
    background-color: #f1acac;
} */

.apply-title>hr {
    border: 1px dashed #eee;
}

.form-section {
    border: 1px solid #ffffff20;
    border-radius: 10px;
    padding: 1.5rem;
}

.person-verify {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-number-input>input {
    max-width: 100px;
}

.photo_check {
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid #fff;
}

/* 113. 9.16 edit point page */
table {
    font-family: 'Oswald', sans-serif;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--color-w65);
    color: var(--color-w100);
    border-radius: 10px;
}

th {
    background-color: #5a5151;
    width: 140px;
    height: 40px;
    text-align: center;
    border-top: 1px dotted var(--color-w65);
    border-left: 1px dotted var(--color-w65);
    color: var(--color-w100);
}

tr:nth-of-type(1) th {
    border-top: none;
}

tr:first-child th:first-child {
    border-top: none;
    border-left: none;
}

tr:last-of-type {
    border-bottom: 2px solid var(--color-w65);
}

td {
    background-color: #2e2e33;
    width: 140px;
    height: 40px;
    text-align: center;
    border-top: 1px dotted var(--color-w65);
    border-left: 1px dotted var(--color-w65);
    color: var(--color-w100);
}

th:first-child {
    border-top-left-radius: 10px;
}

th:last-child {
    border-top-right-radius: 10px;
}

tr:last-child>td:first-child {
    border-bottom-left-radius: 10px;
}

tr:last-child>td:last-child {
    border-bottom-right-radius: 10px;
}

/* add bankselect */

.js-select-search::placeholder {
    font-size: 0.8rem !important;
    line-height: 40px !important;
}

/* 114.9.24 個人中心改版 */
/* 主要功能區塊 */
.main-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.main-btn {
    background: linear-gradient(135deg, var(--color-w25) 0%, var(--color-w10) 100%);
    border: 1px solid var(--color-w25);
    border-radius: 16px;
    padding: 24px 12px;
    color: var(--ix9-gold-300);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, var(--color-btn) 0%, #d91e00 100%);
    opacity: 0; */
    transition: all 0.3s ease;
    border-radius: 16px;
    z-index: -1;
}

.main-btn:hover:before,
.main-btn:focus:before {
    opacity: 1;
}

.main-btn:hover,
.main-btn:focus {
    transform: translateY(-3px);
    box-shadow: 1px 1px 1px 0px #ffffff;
    color: var(--color-w100);
}

.main-btn i {
    font-size: 22px;
    color: var(--ix9-gold-300);
    transition: color 0.3s ease;
}

.main-btn:hover i,
.main-btn:focus i {
    color: var(--color-w100);
}

/* 功能分組區塊 */
.morenavbox {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-section {
    background: var(--color-nav);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-w10);
}

.nav-section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-w65);
}

.nav-section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* 「其他」區塊：一排四格 */
.nav-section-grid.nav-section-grid--four {
    grid-template-columns: repeat(4, 1fr);
}

.nav-section .sm-morenav {
    background: transparent;
    border: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-section .sm-morenav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-w10);
    opacity: 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: -1;
}

/* .nav-section .sm-morenav:hover::before {
    opacity: 1;
}

.nav-section .sm-morenav:hover {
    transform: translateY(-1px);
} */

.nav-section .sm-navitem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px;
    color: var(--color-w65);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    min-height: 65px;
    justify-content: center;
    transition: color 0.3s ease;
}

.nav-section .sm-navitem:hover,
.nav-section .sm-navitem:focus {
    color: var(--color-w100);
}

.nav-section .sm-navitem i {
    width: 36px;
    height: 36px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-w100);
    margin-bottom: 2px;
    transition: all 0.3s ease;
    background: var(--color-w25);
}

.nav-section .sm-navitem:hover i,
.nav-section .sm-navitem:focus i {
    background: var(--color-w65);
    transform: scale(1.05);
}

/* 申請狀態區塊 */
.status-section {
    background: var(--color-nav);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--color-w10);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}

.status-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-w65);
}

.status-subtitle {
    font-size: 11px;
    color: var(--color-w25);
    font-weight: 400;
}

.view-more-btn {
    background: var(--color-w10);
    border: 1px solid var(--color-w25);
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--color-w65);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.view-more-btn:hover {
    background: var(--color-w25);
    color: var(--color-w100);
    border-color: var(--color-w65);
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-w25) transparent;
}

.table-container::-webkit-scrollbar {
    height: 6px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--color-w10);
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--color-w25);
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-w65);
}

.status-table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
    border: 0;
}

.status-table tr {
    border-bottom: none;
}

.status-table th {
    background: var(--color-w10);
    padding: 10px 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-w65);
    border-bottom: 1px solid var(--color-w25);
    white-space: nowrap;
    border-left: none;
}

.status-table th:first-child {
    border-radius: 6px 0 0 0;
}

.status-table th:last-child {
    border-radius: 0 6px 0 0;
}

.status-table td {
    background: var(--color-nav);
    padding: 12px 12px;
    font-size: 12px;
    border-bottom: 1px solid var(--color-w10);
    vertical-align: middle;
    color: var(--color-w65);
    white-space: nowrap;
    border-left: none;
    border-top: none;
}

.status-table tbody tr:last-child td {
    border-bottom: none;
}

.status-table td.status-success {
    color: #22c55e;
    font-weight: 500;
}

.status-table td.status-pending {
    color: #f59e0b;
    font-weight: 500;
}

.status-table td.status-failed {
    color: var(--color-btn);
    font-weight: 500;
}

.point-all{
    display: flex;
    align-items: center;
    gap: 12px;
}

.point-all span{
    color: var(--color-w100);
}

.point-section {
    background: var(--ix9-panel-bg);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 24px var(--color-b44);
    border: 1px solid var(--color-w10);
}

.point-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-w100);
    padding-left: 15px;
    margin-bottom: 16px;
    position: relative;
    display: flex;
    align-items: center;
}

.point-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    width: 4px;
    height: 18px;
    background: var(--color-btn);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--color-r67);
}

.gift {
    width: calc((100% - 32px) / 5);
    background-color: var(--color-w10); 
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--color-w18);
    transition: all 0.25s ease-in-out;
    cursor: pointer;
    color: var(--color-w100);
}

.gift_t {
    width: 100%;
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3%;
    overflow: hidden;
}


.gift .name {
    color: var(--color-w100);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.gift .amount {
    color: var(--color-w65);
    font-weight: 500;
    font-size: 0.85rem;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.dot-online {
    background-color: #00ffcc;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}

.gift.maintenance {
    background-color: var(--color-r19);
    border-color: var(--color-r67);
    opacity: 0.8;
}


@media screen and (min-width: 768px) and (max-width: 1024px) {

    .sm-select,
    .sm-time {
        display: block;
        width: 100%;
    }


    .selectlist

    /* cooperation */
        {
        display: block;
    }

    #profile_model,
    #content_nav,
    #btmnav {
        display: none;
    }

    /* .profile_wrapper {
        width: 95vw;
        height: 100%;
        margin: 0 auto;
        overflow: scroll;
        padding-bottom: 50px;
    } */

    .all_all {
        width: 100%;
    }

    .top,
    .bottom {
        padding: 20px;
    }

    .photo_box {
        width: 30%;
    }

    .profile_nav_item {
        width: 100%;
    }

    .center-morenavbox {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    ul.morenavbox {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 450px;
        margin: 0 auto;
    }

    li.sm-morenav>a {
        font-size: 0.9rem;
    }

    li.sm-morenav>a>i {
        margin-bottom: 5px;
    }

    .t-btn-box>div {
        width: calc(100%/4);
    }
}

/* phone ~ pad */
@media screen and (max-width:1366px) {
    .text_box {
        max-width: 100%;
    }

    .sm-navtitle {
        display: block;
        color: var(--color-w100);
        text-align: center;
        margin-bottom: 32px;
    }

    .fixbox {
        max-width: 100%;
    }

    .gift {
        width: calc((100% - 16px) / 3);
    }

}

/* ======================================================
   profile_save 儲值頁面專用樣式
   ====================================================== */

/* form sections 整體間距 */
form#frmPay {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

form#frmPay section,
form#frmPay .point-section {
    margin-bottom: 0;
}

/* ── 存款方式按鈕列 ── */
.save-flex.saveWay,
.saveWay {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.saveWay .gift {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--color-w10);
    border-radius: 12px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--color-w18);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    color: var(--color-w65);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.saveWay .gift i {
    color: var(--color-w65);
    font-size: 1.4rem;
    transition: color 0.2s ease;
}

.saveWay .gift:hover,
.saveWay .gift:hover i {
    border-color: var(--color-w65);
    color: var(--color-w100);
}

.saveWay .gift.light {
    border-color: var(--color-btn);
    color: var(--color-btn);
    background-color: rgba(201, 163, 90, 0.12);
}

.saveWay .gift.light i {
    color: var(--color-btn);
}

.saveWay .gift.false {
    border-color: var(--color-w10);
    color: rgba(255,255,255,0.15);
    cursor: not-allowed;
    opacity: 0.45;
}

/* ── 金額快選格線 ── */
.save-amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.save-amount-grid .gift {
    width: 100%;
    border: 1px solid var(--color-w18);
    border-radius: 8px;
    background-color: var(--color-w10);
    color: var(--color-w65);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 10px 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
    cursor: pointer;
}

.save-amount-grid .gift:hover {
    border-color: var(--color-w65);
    color: var(--color-w100);
}

.save-amount-grid .gift.light {
    border-color: var(--color-btn);
    color: var(--color-btn);
    background-color: rgba(201, 163, 90, 0.12);
}

/* ── 輸入框 + 按鈕行 ── */
.save-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.save-input-field {
    flex: 1 1 50px;
    min-width: 0;
    height: 46px;
    border: 1.5px solid var(--color-w18);
    border-radius: 10px;
    background-color: var(--color-nav);
    color: var(--color-w100);
    padding: 0 16px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -moz-appearance: textfield;
}

.save-input-field::-webkit-inner-spin-button,
.save-input-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.save-input-field:focus {
    outline: none;
    border-color: var(--color-btn);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
    caret-color: #d7b16a;
}

.save-input-field::placeholder {
    color: #666;
    font-size: 0.85rem;
}

/* 立即存款按鈕 */
.save-submit-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── 可獲得點數 ── */
.save-points-display {
    margin-top: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-btn);
}

.save-points-display .save-points-val {
    font-size: 1rem;
}

/* ── USDT 資訊 ── */
.save-usdt-info {
    margin-top: 12px;
    padding: 12px 14px;
    background-color: var(--color-w10);
    border-radius: 10px;
    border: 1px solid var(--color-w18);
    font-size: 0.88rem;
    color: var(--color-w65);
    line-height: 1.9;
}

.save-usdt-warn {
    color: var(--color-btn);
    font-size: 0.82rem;
}

/* ── 注意文字（信用卡、超商、ATM建議） ── */
.save-notice-text {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--color-w65);
}

/* ── ATM 安全說明卡片 ── */
.save-atm-security-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.suggestion-box{
background-color: rgb(217 119 6 / 0.05);
    border-color: rgb(217 119 6 / 0.2);
}

.save-atm-security-icon {
    color: #60a5fa;
    flex-shrink: 0;
    margin-top: 2px;
}

.save-atm-security-icon-2{
    background-color: rgb(217 119 6 / 0.2);
    color: #d57809;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.save-atm-security-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #93c5fd;
    margin: 0 0 4px 0;
}

.suggestion-title {
    color: #d57809;
}

.save-atm-security-desc {
    font-size: 0.78rem;
    color: rgba(147, 197, 253, 0.7);
    line-height: 1.6;
    margin: 0;
}

.suggestion-desc {
    color: rgb(253 230 138 / 0.7);
}


/* ── ATM 確切金額摘要卡 ── */
.save-atm-summary {
    background-color: var(--color-w10);
    border: 2px dashed var(--color-w18);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.save-atm-summary.hidden {
    display: none;
}

.save-atm-summary-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-w65);
}

.save-atm-summary-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.save-atm-currency {
    font-size: 1.2rem;
    color: var(--color-w65);
}

.save-atm-total {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-w100);
    letter-spacing: -0.02em;
    line-height: 1;
}

.save-atm-suffix-badge {
    background-color: var(--color-w10);
    border: 1px solid var(--color-w18);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-w65);
    display: flex;
    gap: 8px;
}

/* ── RWD ── */


@media screen and (min-width: 768px) and (max-width: 1366px) {
    /* 中等螢幕：存款方式維持 4 等寬欄 */
    .saveWay {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* 金額快選維持4欄 */
    .save-amount-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ======================================================
   profile_point 取款頁面專用樣式
   ====================================================== */
#frmWithdraw {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#frmWithdraw .point-section {
    margin-bottom: 0;
}

.withdraw-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.withdraw-layout-grid .point-section {
    min-width: 0;
}

.withdraw-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.withdraw-summary-box {
    margin-top: 14px;
    align-items: stretch;
}

.withdraw-summary-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.92rem;
    color: var(--color-w65);
}

.withdraw-summary-list .red {
    font-weight: 600;
}

.withdraw-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.withdraw-table-wrap .status-table {
    min-width: 560px;
}

.withdraw-wash-box {
    margin-top: 14px;
    margin-bottom: 12px;
}

.withdraw-wash-box .save-atm-security-desc {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-w100);
}

.withdraw-important {
    color: var(--color-btn);
    font-weight: 700;
}

.withdraw-action-row {
    margin-top: 14px;
    display: flex;
    justify-content: stretch;
}

.withdraw-submit-btn {
    width: 100%;
    min-width: 0;
}

@media screen and (max-width: 1199px) {
    .withdraw-layout-grid {
        grid-template-columns: 1fr;
    }
}


/* ======================================================
   篩選卡片 .point-section.filter-card
   （在 .point-section / .money_title / .save-amount-grid /
     .gift / .save-input-row / .save-input-field 基底上延伸的
     精緻篩選樣式，可被 transaction / pointcore / detaillist 等列表頁共用）
   ====================================================== */

/* ─ label：在 .money_title 基底上加 icon、移除原本紅左條，使資訊更輕盈 ─ */
.filter-card .money_title.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-w65);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding-left: 0;
    border-left: none;
    margin: 16px 0 8px;
}

.filter-card form > .filter-label:first-child {
    margin-top: 0;
}

.filter-card .filter-label i {
    color: var(--color-btn);
    font-size: 0.78rem;
    width: 14px;
    text-align: center;
    filter: drop-shadow(0 0 3px rgba(255, 35, 10, 0.3));
}

/* ─ chip 群組：把 .save-amount-grid 從 4 欄 grid 改為自然 flex wrap ─ */
.filter-card .save-amount-grid.filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

/* chip 本體：在 .gift 基底上做圓角膠囊 + 平滑互動，較精緻的小尺寸 */
.filter-card .save-amount-grid .gift {
    width: auto;
    flex: 0 0 auto;
    min-width: 0;
    padding: 5px 14px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--color-w18);
    background: var(--color-w10);
    color: var(--color-w65);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.filter-card .save-amount-grid .gift i {
    font-size: 0.75rem;
    color: var(--color-w65);
    transition: color 0.2s ease;
}

.filter-card .save-amount-grid .gift:hover {
    border-color: var(--color-w65);
    background: var(--color-w18);
    color: var(--color-w100);
}

.filter-card .save-amount-grid .gift:hover i {
    color: var(--color-w100);
}

.filter-card .save-amount-grid .gift.light {
    border-color: var(--color-btn);
    color: var(--color-w100);
    background: linear-gradient(135deg, rgba(201, 163, 90, 0.22), rgba(201, 163, 90, 0.08));
}

.filter-card .save-amount-grid .gift.light i {
    color: var(--color-btn);
}

/* ─ 輸入框 row：套精緻背景與 focus 微光 ─ */
.filter-card .filter-input-row {
    position: relative;
    margin-bottom: 0;
}

.filter-card .filter-input-row .save-input-field {
    background: var(--color-w10);
    border: 1px solid var(--color-w18);
    height: 36px;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 0 12px;
}

.filter-card .filter-input-row .save-input-field:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-btn);
    box-shadow: 0 0 0 2px rgba(255, 35, 10, 0.1);
}

/* 帶 icon 的輸入框 */
.filter-card .filter-input-row--icon .save-input-field {
    padding-left: 34px;
}

.filter-card .filter-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-w65);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 1;
}

/* ─ 日期 range：兩個輸入框 + 中央方向分隔，視覺一體 ─ */
.filter-card .filter-date-range {
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.filter-card .filter-date-input {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.filter-card .filter-date-input .save-input-field {
    padding-left: 34px;
    background: var(--color-w10);
    border: 1px solid var(--color-w18);
    height: 36px;
    font-size: 0.85rem;
    border-radius: 8px;
    width: 100%;
    min-width: 0;
}

.filter-card .filter-date-input .save-input-field:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-btn);
    box-shadow: 0 0 0 2px rgba(255, 35, 10, 0.1);
}

.filter-card .filter-date-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-w65);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 1;
}

.filter-card .filter-date-sep {
    flex: 0 0 auto;
    color: var(--color-w65);
    font-size: 0.72rem;
    padding: 0 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ─ 查詢按鈕：右對齊、平滑 hover，較精緻的小尺寸 ─ */
.filter-card .filter-submit-row {
    margin-top: 18px;
    margin-bottom: 0;
    justify-content: flex-end;
}

.filter-card .filter-submit-btn {
    min-width: 110px;
    height: 36px;
    padding: 0 18px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    border-radius: 8px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.filter-card .filter-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 35, 10, 0.28);
}

.filter-card .filter-submit-btn i {
    font-size: 0.78rem;
}

.filter-card .filter-submit-btn .margin-right {
    margin-right: 0;
}

/* ─ RWD ─ */


/* ======================================================
   profile_transaction 結果表格相關微調
   （沿用 .withdraw-table-wrap + .status-table，僅補本頁需要的）
   ====================================================== */

/* 金額欄右對齊（沿用 status-success/status-failed 著色） */
.txn-col-right,
.status-table td.txn-col-right {
    text-align: right;
    white-space: nowrap;
}

/* 訂單編號連結 */
.txn-order-link {
    color: var(--color-w100);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    text-underline-offset: 3px;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.txn-order-link:hover {
    color: var(--color-btn);
    text-decoration-color: var(--color-btn);
}

/* 空狀態 */
.status-table td.txn-empty {
    text-align: center;
    padding: 40px 14px;
    color: var(--color-w65);
}

.status-table td.txn-empty i {
    display: block;
    font-size: 2.2rem;
    color: var(--color-w18);
    margin-bottom: 8px;
}

/* 分頁置中，空時隱藏 */
.txn-pagination {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.txn-pagination:empty {
    display: none;
}

/* 表格總計列（profile_list 等彙總頁面共用） */
.status-table tfoot tr.report-total-row td {
    background: var(--color-w10);
    color: var(--color-w100);
    font-weight: 700;
    font-size: 0.95rem;
    border-top: 1px solid var(--color-w18);
    border-bottom: none;
}

.status-table tfoot tr.report-total-row td:first-child {
    letter-spacing: 1px;
}

/* ======================================================
   profile_person 個人資料 / 實名驗證
   （在 .point-section / .step-section 基底上延伸）
   ====================================================== */

/* 錨點：扣除 fixed header 高度，避免跳到段落時被 header 遮住 */
.verify-step,
#sec-id, #sec-bank, #sec-contact,
#sec-super, #sec-card, #sec-usdt {
    scroll-margin-top: 72px;
}

/* ─ 頂部 hero ─ */
.verify-hero-card {
    background: linear-gradient(135deg, rgba(201, 163, 90, 0.12), rgba(201, 163, 90, 0.03));
    border: 1px solid var(--color-w18);
}

.verify-hero-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.verify-hero-content:not(:last-child) {
    margin-bottom: 18px;
}

.verify-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ix9-gold-300, #d9bf7d) 0%, var(--color-btn) 55%, var(--ix9-gold-500, #a98843) 100%);
    color: var(--color-w100);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(201, 163, 90, 0.28);
}

.verify-hero-text {
    flex: 1;
    min-width: 0;
}

.verify-hero-title {
    font-size: 1.05rem !important;
    font-weight: 600;
    color: var(--color-w100);
    margin: 0 0 6px !important;
    padding: 0 !important;
}

.verify-hero-title::before {
    display: none !important;
}

.verify-hero-desc {
    color: var(--color-w65);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 10px;
}

.verify-hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--color-w10);
    border: 1px solid var(--color-w18);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--color-w65);
}

.verify-hero-phone i {
    color: var(--color-btn);
}

.verify-hero-phone strong {
    color: var(--color-w100);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* hero CTA 按鈕（出現在 hero text 區，例如「前往個人驗證」） */
.verify-hero-cta {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.verify-hero-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 163, 90, 0.28);
}

.verify-hero-cta i {
    font-size: 0.82rem;
}

/* ─ 進度條 ─ */
.verify-progress-rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.verify-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid var(--color-w18);
    background: var(--color-w10);
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.verify-progress-step:hover {
    border-color: var(--color-w65);
    background: var(--color-w18);
}

.verify-progress-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-w18);
    color: var(--color-w65);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.verify-progress-name {
    color: var(--color-w100);
    font-size: 0.85rem;
    font-weight: 500;
}

.verify-progress-state {
    color: var(--color-w65);
    font-size: 0.72rem;
}

.verify-progress-step--success .verify-progress-num {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}
.verify-progress-step--success .verify-progress-state { color: #22c55e; }

.verify-progress-step--pending .verify-progress-num {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}
.verify-progress-step--pending .verify-progress-state { color: #fbbf24; }

.verify-progress-step--failed .verify-progress-num {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}
.verify-progress-step--failed .verify-progress-state { color: #f87171; }

/* ─ 步驟標題 ─ */
.verify-step .verify-step-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.verify-step-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ix9-gold-300, #d9bf7d) 0%, var(--color-btn) 55%, var(--ix9-gold-500, #a98843) 100%);
    color: var(--color-w100);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(201, 163, 90, 0.28);
}

.verify-step-icon {
    color: var(--color-btn);
    font-size: 1.05rem;
    width: 28px;
    text-align: center;
}

.verify-required-tag,
.verify-optional-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.verify-required-tag {
    background: rgba(201, 163, 90, 0.15);
    color: var(--color-btn);
    border: 1px solid rgba(201, 163, 90, 0.35);
}

.verify-optional-tag {
    background: var(--color-w10);
    color: var(--color-w65);
    border: 1px solid var(--color-w18);
}

/* 移除 step-section 內 .point-section h2 預設的紅左條（被 verify-step-num 取代） */
.verify-step .verify-step-heading {
    padding-left: 0 !important;
}

.verify-step .verify-step-heading::before {
    display: none !important;
}

/* ─ 通用 row（label + status + button）─ */
.verify-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--color-w10);
    border: 1px solid var(--color-w10);
    border-radius: 10px;
}

.verify-row-label {
    color: var(--color-w65);
    font-size: 0.88rem;
    min-width: 110px;
}

/* ─ Status badge ─ */
.verify-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.2;
}

.verify-status i { font-size: 0.85rem; }

.verify-status--success {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.verify-status--pending {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.verify-status--failed {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.verify-status--unverified {
    background: var(--color-w10);
    color: var(--color-w65);
    border: 1px solid var(--color-w18);
}

/* ─ Action button ─ */
.verify-action-btn {
    margin-left: auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.verify-action-btn i { font-size: 0.78rem; }

.verify-submit-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ─ 資訊網格 ─ */
.verify-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.verify-info-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    background: var(--color-w10);
    border: 1px solid var(--color-w10);
    border-radius: 8px;
}

.verify-info-label {
    color: var(--color-w65);
    font-size: 0.78rem;
}

.verify-info-value {
    color: var(--color-w100);
    font-size: 0.92rem;
    font-weight: 500;
    word-break: break-all;
}

/* ─ 表單網格 ─ */
.verify-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.verify-form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.verify-form-grid--single {
    grid-template-columns: 1fr;
}

.verify-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.verify-form-field--full {
    grid-column: 1 / -1;
}

.verify-form-label {
    color: var(--color-w65);
    font-size: 0.82rem;
    font-weight: 500;
    margin: 0;
}

.verify-input {
    box-sizing: border-box;
    height: 38px;
    padding: 0 12px;
    background: var(--color-w10);
    border: 1px solid var(--color-w18);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--color-w100);
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* 原生 select：移除瀏覽器預設樣式，做出和 select2 一致的外觀（chevron 箭頭） */
select.verify-input {
    height: 38px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' fill-opacity='0.78' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 12px;
    padding-right: 32px;
    cursor: pointer;
}

select.verify-input::-ms-expand {
    display: none;
}

select.verify-input option {
    background: var(--color-nav);
    color: var(--color-w100);
}

/* iOS：date 輸入預設 appearance 會撐寬，這裡關掉並對齊內容 */
input[type="date"].verify-input {
    -webkit-appearance: none;
    appearance: none;
    line-height: 38px;
    text-align: left;
}

.verify-input:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-btn);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 35, 10, 0.1);
}

select.verify-input:focus {
    background-color: rgba(255, 255, 255, 0.04);
}

.verify-action-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
    margin-bottom: 16px;
}

/* ─ Hint text ─ */
.verify-hint-text {
    position: relative;
    padding: 10px 14px;
    background: var(--color-w10);
    border: 1px solid var(--color-w10);
    border-radius: 8px;
    color: var(--color-w65);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

/* 有 icon 時：絕對定位、文字保留左側留白讓首段對齊 */
.verify-hint-text:has(> i:first-child) {
    padding-left: 38px;
}

.verify-hint-text > i:first-child {
    position: absolute;
    left: 14px;
    top: 13px;
    color: var(--color-btn);
    font-size: 0.95rem;
}

.verify-hint-text strong {
    color: var(--color-w100);
}

.verify-hint-text.verify-hint-warning {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.3);
}

.verify-hint-text.verify-hint-warning > i:first-child {
    color: #fbbf24;
}

.verify-hint-danger {
    color: var(--color-btn);
    font-weight: 600;
}

/* ─ Bullets ─ */
.verify-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    color: var(--color-w65);
    font-size: 0.85rem;
    line-height: 1.7;
}

.verify-bullets li {
    padding-left: 18px;
    position: relative;
}

.verify-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-btn);
}

.verify-bullets strong {
    color: var(--color-w100);
}

/* ─ 連結列表 ─ */
.verify-link-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--color-w10);
    border-radius: 8px;
}

.verify-link-list-title {
    color: var(--color-w65);
    font-size: 0.85rem;
}

.verify-link-list-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    font-size: 0.85rem;
    text-decoration: none;
}

.verify-link-list-link:hover {
    color: #fcd34d;
    text-decoration: underline;
}

.verify-link-list-note {
    color: var(--color-w65);
    font-size: 0.78rem;
    margin-left: auto;
}

/* ─ 表格區 ─ */
.verify-table-block {
    margin-top: 4px;
}

.verify-subhead {
    color: var(--color-w100);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verify-subhead::before {
    content: "";
    width: 3px;
    height: 14px;
    background: var(--color-btn);
    border-radius: 2px;
}

/* ─ 信用卡 ─ */
.creditcard.creditcard-add {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 148px;
    border: 2px dashed var(--color-w18);
    background: var(--color-w10);
    color: var(--color-w65);
    box-shadow: none;
}

.creditcard.creditcard-add:hover {
    border-color: var(--color-btn);
    background: rgba(201, 163, 90, 0.08);
    color: var(--color-w100);
}

.creditcard.creditcard-add i {
    font-size: 1.6rem;
    display: block;
    margin: 0 auto 6px;
    color: var(--color-btn);
}

.creditcard.creditcard-add small {
    display: block;
    text-align: center;
    font-size: 0.85rem;
}

/* ─ Modal 內元素 ─ */
.modal-content .modal-title i {
    margin-right: 8px;
    color: var(--color-btn);
}

.verify-modal-block {
    margin-bottom: 18px;
}

.verify-modal-block:last-child {
    margin-bottom: 0;
}

.verify-modal-block .money_title {
    margin-bottom: 12px;
}

.verify-example-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.verify-upload-row {
    padding: 10px 14px;
    background: var(--color-w10);
    border: 1px dashed var(--color-w18);
    border-radius: 8px;
}

.verify-upload-row input[type="file"] {
    color: var(--color-w65);
    font-size: 0.85rem;
    width: 100%;
}

.verify-photo-preview {
    width: 100%;
    margin-top: 10px;
    border-radius: 6px;
    display: none;
}

.verify-photo-preview[src]:not([src=""]) {
    display: block;
}

.verify-modal-submit {
    width: 100%;
    height: 44px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
}

/* ─ 卡號 grid ─ */
.verify-card-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 6px;
    align-items: center;
}

.verify-card-grid--expiry {
    grid-template-columns: 1fr auto 1fr;
    max-width: 200px;
}

.verify-card-sep {
    color: var(--color-w65);
    font-size: 0.9rem;
    user-select: none;
}

.verify-card-grid .verify-input,
.verify-card-grid input.form_border {
    text-align: center;
    height: 38px;
    padding: 0 6px;
    width: 100%;
    min-width: 0;
}

/* ─ 密碼欄位（顯示／隱藏切換）─ */
.verify-password-field {
    position: relative;
}

.verify-password-field .verify-input {
    padding-right: 42px;
}

.verify-password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 34px;
    height: 30px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--color-w65);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.18s ease, background 0.18s ease;
}

.verify-password-toggle:hover {
    color: var(--color-w100);
    background: var(--color-w10);
}

.verify-password-toggle i {
    font-size: 0.95rem;
}

.verify-password-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--color-w65);
    margin-top: -2px;
}

.verify-password-hint i {
    font-size: 0.85rem;
}

.verify-password-hint i.fa-circle-check {
    color: #22c55e;
}

.verify-password-hint i.fa-circle-xmark {
    color: #f87171;
}

.verify-password-hint:has(i.fa-circle-xmark) {
    color: #f87171;
}

.verify-password-hint:has(i.fa-circle-check) {
    color: #22c55e;
}

/* ─ Upload overlay ─ */
.verify-upload-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.verify-upload-overlay-content {
    background: var(--color-nav);
    color: var(--color-w100);
    padding: 24px 36px;
    border-radius: 12px;
    border: 1px solid var(--color-w18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
}

.verify-upload-overlay-content i {
    color: var(--color-btn);
    font-size: 1.4rem;
}

/* ─ Select2 主題（覆蓋舊 select2-container 樣式，配合 dark mode）─ */
.select2-container { width: 100% !important; box-sizing: border-box; }

/* 整個 Select2 元件鎖在 38px 高，與 .verify-input 完全等高 */
.select2-container .selection,
.select2-container--default .select2-selection--single {
    box-sizing: border-box;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
}

.select2-container--default .select2-selection--single {
    background: var(--color-w10);
    border: 1px solid var(--color-w18);
    border-radius: 8px;
    transition: border-color 0.18s ease, background 0.18s ease;
    display: flex;
    align-items: center;
    padding: 0;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-btn);
    box-shadow: 0 0 0 2px rgba(255, 35, 10, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--color-w100);
    font-size: 0.88rem;
    padding: 0 32px 0 12px;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Select2 箭頭：改用與原生 select 完全相同的 chevron SVG，視覺一致 */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 12px;
    height: auto;
    width: 12px;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' fill-opacity='0.78' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;
}

.select2-container .select2-dropdown {
    background-color: var(--color-nav);
    border: 1px solid var(--color-w18);
    border-radius: 8px;
}

/* Bootstrap modal z-index 為 1055，這裡確保 Select2 dropdown 永遠在 modal 之上 */
.select2-container--open {
    z-index: 1060;
}

.select2-dropdown {
    z-index: 1060;
}

.select2-results__option {
    color: var(--color-w65);
    padding: 8px 12px;
    font-size: 0.85rem;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(255, 35, 10, 0.16);
    color: var(--color-w100);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--color-w18);
    color: var(--color-w100);
}

.select2-search--dropdown .select2-search__field {
    color: var(--color-w100);
    background: var(--color-w10);
    border: 1px solid var(--color-w18);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.88rem;
    box-sizing: border-box;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--color-btn);
    outline: none;
}

/* dropdown 內容捲動容器 + touch 友善 */
.select2-results__options {
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


/* ─ RWD ─ */
@media screen and (max-width: 767px) {
.agent-hero-content {
        flex-direction: column;
        gap: 12px;
    }

.agent-share-grid {
        grid-template-columns: 1fr;
    }

.agent-share-qr {
        align-items: center;
    }

.agent-qr-box {
        max-width: 180px;
    }

.agent-stat-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

.agent-claim-btn {
        width: 100%;
    }

.vip-hero-content {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }

.vip-hero-icon {
        margin: 0 auto;
    }

.vip-hero-text {
        width: 100%;
        max-width: 100%;
        flex: 0 1 auto;
    }

.profile-sub-title {
        display: none;
    }

.fix {
        width: 100%;
    }

#btmnav, .selectlist /* cooperation */ {
        display: block;
    }

/* .profile_wrapper {
        width: 100vw;
        height: 100%;
        margin: 0;
        overflow: scroll;
        padding-bottom: 50px;
    } */

#profile_model, #content_nav /* cooperation */ {
        display: none;
    }

.all_all {
        width: 100%;
    }

.profile_content_box {
        margin: 0;
    }

.save-flex {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

.save-flex>* {
        flex: 0 0 calc(50% - 4px);
        box-sizing: border-box;
    }

li.c {
        width: 100%;
    }

.creditcard {
        min-height: 136px;
    }

.talign {
        margin-left: 0;
    }

.text_money {
        width: 75%;
    }

.savemoney_btn {
        margin-left: 0;
    }

.sm-select, .sm-time {
        display: block;
        width: 100%;
    }

.light {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

.sm-loginbox {
        width: 65%;
        margin: 0 auto;
    }

.photo_box {
        width: 20%;
        margin-right: 10px;
        margin-left: 10px;
    }

.photo {
        margin: 0;
    }

.name {
        width: 65%;
    }

.center-morenavbox {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

.center-morenavbox>.red-btn {
        width: 80%;
        margin: 0 auto 24px auto;
        /* add */
        background: linear-gradient(135deg, var(--color-w25) 0%, var(--color-w10) 100%);
        border: 1px solid var(--color-w25);
        border-radius: 16px;
        padding: 24px 12px;
        color: var(--color-w100);
        font-size: 15px;
        font-weight: 600;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
    }

.center-morenavbox>.red-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, var(--color-btn) 0%, #d91e00 100%);
        opacity: 0;
        transition: all 0.3s ease;
        border-radius: 16px;
        z-index: -1;
    }

.center-morenavbox>.red-btn:hover:before {
        opacity: 1;
    }

.center-morenavbox>.red-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 35, 10, 0.3);
        border-color: var(--color-btn);
        color: var(--color-w100);
    }

ul.morenavbox {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

li.sm-morenav>a {
        font-size: 0.9rem;
    }

li.sm-morenav>a>i {
        margin-bottom: 5px;
    }

/* news */

.newul {
        line-height: 30px;
        flex-direction: column;
    }

.newsline>a {
        font-size: 0.9rem;
    }

/* vip */

.gift_t {
        font-size: 0.85rem;
    }

/* morevip */

/* calc */

.t-btn-box>div {}

/* profile_apply */

ul.promotion_apply {
        padding-bottom: 3rem;
    }

ul.promotion_apply>li {
        width: 85%;
        margin: 3.5% auto;
    }

/*VIP*/

.vip-scroll-tip {
        display: inline;
    }

.vip-lv-card {
    max-width: 100%;
}

.vip-card-title {
    font-size: 2rem;
}

/* 存款方式：2欄，高度略增加呼吸空間 */

.saveWay {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

.saveWay .gift {
        min-height: 80px;
        padding: 18px 10px;
    }

/* 金額快選：2欄 */

.save-amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }

/* 輸入框行：垂直堆疊 */

.save-input-row {
        flex-direction: column;
        align-items: stretch;
    }

.save-input-field, .save-submit-btn {
        width: 100%;
    }

.save-atm-total {
        font-size: 2.4rem;
    }

.withdraw-form-grid {
        grid-template-columns: 1fr;
    }

/* 萬一手機仍跑 Select2（例如 resize 後尚未重建），touch target 加大 */

.select2-results__option {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

.select2-search--dropdown .select2-search__field {
        height: 40px;
        font-size: 1rem;
    }

.verify-progress-rail {
        grid-template-columns: 1fr;
    }

.verify-progress-step {
        flex-direction: row;
        gap: 12px;
        justify-content: flex-start;
        text-align: left;
    }

.verify-progress-state {
        margin-left: auto;
    }

.verify-hero-content {
        flex-direction: column;
        gap: 12px;
    }

.verify-row {
        flex-direction: column;
        align-items: flex-start;
    }

.verify-row-label {
        min-width: 0;
    }

.verify-action-btn {
        margin-left: 0;
        width: 100%;
    }

.verify-form-grid--two {
        grid-template-columns: 1fr;
    }

.verify-link-list-note {
        margin-left: 0;
        flex-basis: 100%;
    }
}


/* ======================================================
   Lux Pager 共用分頁元件
   ====================================================== */
.lux-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 4px 0;
}

.lux-pager-controls {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.lux-pager-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--color-w18);
    background: var(--color-w10);
    color: var(--color-w65);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.lux-pager-btn:hover:not([disabled]) {
    border-color: var(--color-w65);
    background: var(--color-w18);
    color: var(--color-w100);
}

.lux-pager-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

.lux-pager-btn.active {
    border-color: var(--color-btn);
    background: linear-gradient(135deg, rgba(255, 35, 10, 0.22), rgba(255, 35, 10, 0.06));
    color: var(--color-w100);
}

.lux-pager-btn i {
    font-size: 0.78rem;
}

.lux-pager-ellipsis {
    padding: 0 2px;
    color: var(--color-w65);
    font-size: 0.95rem;
    line-height: 1;
    user-select: none;
}

.lux-pager-info {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--color-w65);
    font-size: 0.82rem;
}

.lux-pager-status strong {
    color: var(--color-w100);
    font-weight: 600;
    margin: 0 2px;
}

.lux-pager-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lux-pager-jump-input {
    width: 56px;
    height: 30px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid var(--color-w18);
    background: var(--color-w10);
    color: var(--color-w100);
    font-size: 0.85rem;
    text-align: center;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
    -moz-appearance: textfield;
}

.lux-pager-jump-input::-webkit-inner-spin-button,
.lux-pager-jump-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lux-pager-jump-input:focus {
    border-color: var(--color-btn);
    background: rgba(255, 255, 255, 0.04);
}

@media screen and (max-width: 575px) {
.filter-card .save-amount-grid .gift {
        flex: 1 1 calc(33.333% - 4px);
        min-width: 0;
    }

.filter-card .filter-date-range {
        flex-direction: column;
        align-items: stretch;
    }

.filter-card .filter-date-sep {
        padding: 2px 0;
    }

.filter-card .filter-date-sep i {
        transform: rotate(90deg);
    }

.filter-card .filter-submit-row {
        justify-content: stretch;
    }

.filter-card .filter-submit-btn {
        width: 100%;
        min-width: 0;
    }

.lux-pager {
        gap: 10px;
    }

.lux-pager-info {
        width: 100%;
        justify-content: space-between;
    }
}


/* ===== index_content.css ===== */
/* 注意：原檔頭 @charset 為串接殘留，放在檔案中段會被忽略並報錯，故移除 */

/* index gamenav */
.gamenav {
    margin-bottom: 38px;
}

.game-swiper-wrapper {
    aspect-ratio: 1360 / 425;
    width: 100%;
}

/*
  .swiper 站內覆寫說明：
  - swiper-bundle.min.css：套件必需（position / overflow / z-index…），不可拿掉
  - 這裡只補站內版型（寬高、下間距、標題與縮圖皮膚），不要再於檔尾重複寫一遍
*/
.swiper {
    width: 100%;
    height: auto;
    margin-bottom: 26px;
}

/* 首頁輪播：避免用 inline style 蓋掉上面的間距 */
.swiper.swiper-banner.home-top-banner {
    margin-bottom: 14px;
    padding: 0;
}

.index_tith2 {
    display: flex;
    margin-bottom: 14px;
}

.index_con_icon {
    width: 20px;
    margin-right: 10px;
}

.swiper > .index_tith2 > h2 {
    font-size: 1.06rem;
    letter-spacing: 0.04em;
    color: #fff8f6;
    font-weight: bold;
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 2px 0 0 0;
}

.swiper > h2 > img {
    max-width: 22px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-w65) !important;
}

.swiper-slide {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide > a {
    display: block;
    position: relative;
}

.swiper-slide img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    filter: brightness(100%);
    transition: filter 0.3s ease-in-out;
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.swiper-slide img:hover {
    filter: brightness(1.08);
}

.game-name {
    width: 100%;
    position: absolute;
    bottom: 5px;
}

.game-name>h3 {
    color: var(--color-w100);
    font-size: 0.9rem;
    font-weight: 900;
}

.game-name>h4 {
    color: var(--color-w100);
    font-size: 0.7rem;
    font-weight: 200;
    margin: 0;
}

.aspect {
    aspect-ratio: 160 / 227;
}

.aspect img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* hide-mobile */
.mobile_wrapper,
.sm-tpage,
#btmnav {
    display: none;
}

/* mail-notification 
.notification {
    text-decoration: none;
    position: relative;
    display: inline-block;
}*/


/* 0915add */
/* help-text style */
/* .steptext {
    width: 100%;
    height: auto;
    padding-top: 1rem;
    box-sizing: border-box;
    text-align: center;
    color: #8c8c8c;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.09rem;
} 

.about-title2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 6px;
    padding-bottom: 3px;
    color: #776663;
    border-bottom: 1px solid #e6dbdb;
}*/

/* 合作廠商 */
/* .gamelogo-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.gamelogo-box>img {
    margin: 0.89rem 0.5rem;
} */

/* 遊戲商logo */
.slider {
    width: 100%;
    padding: 10px;
}

.footer-vendor-logos {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

.slide-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: brightness(60%);
    transition: filter 0.3s ease;
}

.slide img:hover {
    filter: brightness(100%);
}


/* 優惠規則 & 隱私政策 */
ul.promotion-notice>li {
    margin: 0.2rem 0;
}

*/
/* 常見問題 
ul.qa-box>li {
    margin: 0.8rem 0;
}*/

/* 關於我們 
ul.about-noya>li {
    line-height: 2rem;
    letter-spacing: 0;
}

ul.about-noya>img {
    width: 35%;
    margin: 0 auto 0.5rem auto;
}*/

/* promotion */
.ac_wrapper::-webkit-scrollbar {
    display: none;
}

.ac_wrapper {
    width: 60%;
    height: auto;
    margin: 16px auto 32px auto;
}

.ac_box {
    display: flex;
    gap: 16px;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: space-between;
    flex-direction: column;
}

ul.ac_box>li {
    width: 100%;
}

ul.ac_box>li>div,
ul.ac_box>li>div>div {
    height: 100%;
}

ul.ac_box>li>div .image-w {
    height: 100%;
}

.promotion-text {
    width: 100%;
    padding: 1rem;
    position: absolute;
    display: inline-grid;
    z-index: 1;
}

.offer-page {
    display: table;
    margin: 0px auto 20px auto;
    cursor: default;
    color: #e8d6b0;
    border-bottom: 3px solid rgba(215, 177, 106, 0.55);
    line-height: 35px;
    font-size: 18px;
    text-align: center;
    font-size: 16px;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
}


.promotion-text>h2 {
    color: var(--color-w100);
    margin-top: 4px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.2);
}

.promotion-text>h3 {
    color: var(--color-w100);
    margin-top: 4px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(255, 255, 255, 0.2);
}

.promotion-btn-box {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 32px;
}


.promotion-btn-box>button {
    width: 50%;
}

.promotion-btn {
    margin: 0;
    background: linear-gradient(135deg, rgba(28, 38, 62, 0.88) 0%, rgba(12, 20, 38, 0.94) 100%);
    border: 1px solid rgba(199, 164, 95, 0.45) !important;
    color: #f0ddb0;
}

.promotion-btn:hover {
    color: #fff8f0 !important;
    background: linear-gradient(135deg, rgba(38, 50, 78, 0.95) 0%, rgba(18, 30, 52, 0.98) 100%);
    border-color: rgba(215, 177, 106, 0.6) !important;
}

/* 活動內文 */
.modal-content {
    width: 100%;
    height: auto;
    padding: 15px;
    background-color: var(--color-b44) !important;
    backdrop-filter: blur(0.5rem);
    border: 1px solid var(--color-w23) !important;
}

.promo-popup table {
    border-collapse: collapse;
    width: 100%;
}

.promo-popup table,
.promo-popup th,
.promo-popup td {
    border: 1px solid #6d6d6d;
}

/* .modal-content table {
    width: 100%;
}

.modal-content table th {
    padding: 5px;
} */

.dis-con-title h4 {
    color: #f0ddb0;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    border-left: 5px solid #caa35a;
    padding-left: 10px;
}

.dis-con-title h5 {
    color: #e8d6b0;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 10px;
}

.dis-con-title ul {
    padding-left: 1.5em;
    margin-bottom: 1em;
    list-style: none;
}

.dis-con-title li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 8px;
    color: #ddd;
    font-size: 15px;
    line-height: 1.6;
}

.dis-con-title li::before {
    content: "⭐";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 14px;
    line-height: 1;
}

/* .sm-actitle {
    display: none;
} 

.promotion-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    color: var(--color-w100);
}

.promotion-title>h1 {
    letter-spacing: 0.3rem;
    font-size: 2.7rem;
}

.promotion-title>h2 {
    color: var(--color-w65);
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
}

.promotion-title>h1:after {
    border: 3px solid var(--color-btn);
    width: 100px;
    height: auto;
    display: block;
    content: "";
    margin: 32px auto 0 auto;
}*/

/* leaderboard 
.rank-board {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.leaderboard {
    width: 24%;
}

.leaderboard h3 {
    font-size: 18px;
    color: #e1e1e1;
    padding: 12px 13px 18px;
    background-color: var(--color-nav);
    margin-bottom: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.leaderboard h3 i {
    font-size: 1.7rem;
    margin-right: 8px;
}

.leaderboard ol {
    counter-reset: leaderboard;
    padding: 0;
    margin-top: 0;
}

.leaderboard ol li {
    position: relative;
    z-index: 1;
    font-size: 14px;
    counter-increment: leaderboard;
    padding: 18px 10px 18px 50px;
    cursor: pointer;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1, 1);
    list-style: none;
}

.leaderboard ol li::before {
    content: counter(leaderboard);
    position: absolute;
    z-index: 2;
    top: 15px;
    left: 15px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    color: #c24448;
    background: #fff;
    border-radius: 20px;
    text-align: center;
}

.leaderboard ol li mark {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 18px 10px 18px 50px;
    margin: 0;
    background: none;
    color: #fff;
}

.leaderboard ol li mark::before,
.leaderboard ol li mark::after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: -11px;
    left: -9px;
    border-top: 10px solid #c24448;
    border-left: 10px solid transparent;
    transition: all 0.1s ease-in-out;
    opacity: 0;
}

.leaderboard ol li mark::after {
    left: auto;
    right: -9px;
    border-left: none;
    border-right: 10px solid transparent;
}

.leaderboard ol li small {
    position: relative;
    z-index: 2;
    display: block;
    text-align: right;
}

.leaderboard ol li::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fa6855;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

.leaderboard ol li:nth-child(1) {
    background: #fa6855;
}

.leaderboard ol li:nth-child(1)::after {
    background: #fa6855;
}

.leaderboard ol li:nth-child(2) {
    background: #e0574f;
}

.leaderboard ol li:nth-child(2)::after {
    background: #e0574f;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.leaderboard ol li:nth-child(2) mark::before,
.leaderboard ol li:nth-child(2) mark::after {
    border-top: 6px solid #ba4741;
    bottom: -7px;
}

.leaderboard ol li:nth-child(3) {
    background: #d7514d;
}

.leaderboard ol li:nth-child(3)::after {
    background: #d7514d;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.11);
}

.leaderboard ol li:nth-child(3) mark::before,
.leaderboard ol li:nth-child(3) mark::after {
    border-top: 2px solid #b0433f;
    bottom: -3px;
}

.leaderboard ol li:nth-child(4) {
    background: #cd4b4b;
}

.leaderboard ol li:nth-child(4)::after {
    background: #cd4b4b;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.leaderboard ol li:nth-child(4) mark::before,
.leaderboard ol li:nth-child(4) mark::after {
    top: -7px;
    bottom: auto;
    border-top: none;
    border-bottom: 6px solid #a63d3d;
}

.leaderboard ol li:nth-child(5) {
    background: #c24448;
    border-radius: 0 0 10px 10px;
}

.leaderboard ol li:nth-child(5)::after {
    background: #c24448;
    box-shadow: 0 -2.5px 0 rgba(0, 0, 0, 0.12);
    border-radius: 0 0 10px 10px;
}

.leaderboard ol li:nth-child(5) mark::before,
.leaderboard ol li:nth-child(5) mark::after {
    top: -9px;
    bottom: auto;
    border-top: none;
    border-bottom: 8px solid #993639;
}

.leaderboard ol li:hover {
    z-index: 2;
    overflow: visible;
}

.leaderboard ol li:hover::after {
    opacity: 1;
    transform: scaleX(1.06) scaleY(1.03);
}

.leaderboard ol li:hover mark::before,
.leaderboard ol li:hover mark::after {
    opacity: 1;
    transition: all 0.35s ease-in-out;
}*/

.lobby-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-b44);
    padding: 8px;
    border-radius: 50px;
    box-shadow: -1px 0px 1px rgba(199, 164, 95, 0.35);
    border: 1px solid var(--color-r19);
}

.icon-gamelobby {
    color: var(--color-btn);
}

.lobby-title {
    font-size: 1.2rem;
    padding-left: 4px;
}

.wallet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4px 12px;
    box-shadow: 2px 4px 4px var(--color-bg);
    border: 1px solid var(--color-w10);
    margin-bottom: 0 !important;
}

.wallet span {
    font-size: 1.1rem;
}

.icon-refresh {
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--color-r67);
    padding: 3px;
    border-radius: 100%;
    box-shadow: 0px 1px 4px var(--color-bg);
}

.icon-refresh:hover {
    color: var(--color-b44);
    transform: rotate(90deg);
}

.lobby-box {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.lobby-box>.swiper-slide {
    width: calc(100% / 8 - 8px) !important;
}

/* 404 maintain */
.promotion-title {
    text-align: center;
}

.single-page .btn {
    margin: 32px auto;
}

.single-page p {
    margin-top: 14px;
    color: var(--color-w65);
    padding: 0 24px;
    font-size: 0.9rem;
    text-align: center;
}

/* 首頁跑馬燈 */
.marquee-container {
    width: 100%;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 5px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
}

.marquee-container i.fa-bullhorn {
    color: #898989;
    margin-right: 10px;
    flex-shrink: 0;
    font-size: 16px;
}

.marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    white-space: nowrap;
}

.marquee-content li {
    display: inline-block;
    list-style: none;
    margin-right: 50px;
}

.marquee-content a {
    text-decoration: none;
    color: #e5e5e5;
    font-size: 15px;
    font-weight: 400;
}

.marquee-content a:hover {
    color: #d7b16a;
}

.announcement-date {
    color: #ccc;
    font-size: 14px;
    margin-right: 6px;
}

.announcement-text {
    color: #e5e5e5;
}


@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* for table */
    .sm-box {
        width: 100%;
        height: auto;
        margin: 5px 0;
        padding: 0 20px 24px 20px;
    }

    .sm-gamenav {
        width: 90%;
        margin: 0 auto;
        height: 420px;
    }

    .mobile_wrapper,
    #btmnav {
        display: block;
        display: flex;
        flex-direction: column;
    }


    .hotgame-title {
        display: none;
    }

    .sm-nav {
        display: flex;
        justify-content: space-around;
        width: 100%;
        height: 100%;
    }

    ul.sm-nav>li {
        width: 3rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sm-navitem {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--color-w100);
        gap: 8px;
    }

    .highlight>i {
        font-size: 1rem !important;
    }

    ul.sm-nav>li>a {
        font-size: 0.9rem;
        font-weight: 700;
    }

    .sm-navitem>i {
        color: var(--color-btn);
        font-size: 1.6rem;
    }

    .nav-highlight {
        background: var(--color-btn);
        border-radius: 50%;
        height: 40px;
        margin-top: -20px;
        width: 40px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: var(--color-w100) !important;
    }

    .bottom-nav {
        width: 100%;
        height: 60px;
        border-top-left-radius: 7px;
        border-top-right-radius: 7px;
        position: fixed;
        bottom: 0;
        background-color: #000000a3;
        z-index: 2;
        backdrop-filter: blur(0.5rem);
        border-top: 1px solid #ffffff75;
    }

    /* clear-mobile-activecss */
    .bottom-nav>ul.sm-nav>li>.sm-navitem {
        -webkit-tap-highlight-color: transparent;
    }

    .sm-tpage {
        display: none;
    }

    .sm-pagetitle {
        width: 100%;
        text-align: center;
    }

    /* livesport+movie */

    /* 帳戶page */
    #sm-unlogin>.sm-nav {
        justify-content: space-evenly;
        width: 80%;
        margin: 0 auto;
    }

    /* help */
    .hotgame {
        width: 95%;
        height: 100vh;
        overflow-y: scroll;
        padding-bottom: 100px;
    }

    .profile_content_box {
        box-shadow: none !important;
    }

    /* help-stepimg */

    /* promotion */

    .ac_wrapper {
        width: 90%;
        height: 100%;
        padding-top: 0;
        overflow-y: scroll;
    }

    .ac_box {
        gap: 0.9rem;
    }

    .modal-content>img {
        width: 100%;
    }

    ul.ac_box>li {
        width: 48%;
    }

    .img>img {
        width: 100%;
    }

    .promotion-title>h1 {
        font-size: 1.8rem;
    }

    .promotion-title>h1:after {
        margin: 16px auto 0 auto;
    }

    .promotion-title>h2 {
        font-size: 1rem;
        margin-top: 10px;
    }
}

/* === custom-slider 手機/桌機通用樣式 === */
.mod-ga-slide {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 5px;
    /* ✅ 新增左右內距，避免圖片切邊 */
    margin-bottom: 16px;
}


.mod-ga-slide__track {
    display: flex;
    gap: 10px;
    /* 圖與圖的間距 */
}

.mod-ga-slide__item {
    flex: 0 0 50%;
    /* 電腦版：一行兩張 */
    scroll-snap-align: start;
    box-sizing: border-box;
}

.mod-ga-slide__item img {
    width: 100%;
    display: block;
    border-radius: 8px;

    /* 防止選取與拖拉 */
    user-select: none;
    -webkit-user-drag: none;
}

.mod-ga-slide__item img {
    width: 100%;
    display: block;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;

    /* 預設變暗 */
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

/* 只有在滑鼠裝置上才啟用 hover 效果（避免手機觸發） */
@media (hover: hover) {
    .mod-ga-slide__item img:hover {
        filter: brightness(1);
    }
}

/* 手機版：一行一張 */


/* ============================================================ */
/* Homepage layout plan - rzu style structure                  */
/* ============================================================ */

.home-rzu-shell {
    max-width: 1360px;
}

/* 首頁：覆蓋全站 content_all 上內距，讓分類列貼齊頂部導航下方 */


.home-rzu-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 26, 51, 0.9) 0%, rgba(8, 18, 37, 0.96) 100%);
    border: 1px solid rgba(206, 170, 96, 0.32);
    overflow: hidden;
}

.home-rzu-toolbar-marquee {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(206, 170, 96, 0.24);
    background: rgba(6, 15, 30, 0.48);
}

.home-rzu-toolbar-marquee i.fa-bullhorn {
    color: #d7b16a;
    flex-shrink: 0;
}

.home-rzu-toolbar-marquee .marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.home-rzu-toolbar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

/* 桌機預設隱藏，僅手機顯示 */


.home-rzu-auth-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

.home-rzu-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home-rzu-auth-login {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.05);
}

.home-rzu-auth-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0d2348;
    border: 1px solid rgba(248, 225, 172, 0.45);
    background: linear-gradient(135deg, #ddc38a 0%, #b48943 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28);
}

.home-rzu-auth-wallet {
    min-width: 118px;
    max-width: 172px;
    height: 32px;
    padding: 0 10px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
}

.home-rzu-auth-wallet i {
    color: #d7b16a;
    font-size: 0.78rem;
    line-height: 1;
    flex: 0 0 auto;
}

.home-rzu-auth-wallet-value {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    font-size: 0.98rem;
    line-height: 1;
    color: #f5e4b3;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.home-rzu-auth-register {
    min-width: 64px;
}

.home-rzu-toolbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.home-rzu-quick-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    gap: 2px;
    color: #e5d5b2;
    font-size: 0.66rem;
    line-height: 1.1;
}

.home-rzu-quick-item i {
    color: #c8aa71;
    font-size: 0.92rem;
}

.preserved-feature.is-hidden-main {
    display: none !important;
}

/* 桌機：左側選單改為頂部橫排（對齊參考站位置） */


@media screen and (min-width:1024px) and (max-width:1140px) {
    .home-rzu-shell .vertical-tab .nav-tabs > li > a {
        padding: 16px 0;
        font-size: 1.05rem;
    }

    .home-rzu-shell .vertical-tab .nav-tabs .nav-sub {
        font-size: 1.05rem;
    }
}


/* ============================================================ */
/* Homepage Facelift v1 - content area skin                    */
/* ============================================================ */

.marquee-container {
    background: linear-gradient(90deg, rgba(38, 39, 50, 0.82) 0%, rgba(21, 22, 31, 0.82) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 9px 14px;
    margin-bottom: 18px;
}

.marquee-container i.fa-bullhorn {
    color: #d7b16a;
}

.marquee-content a {
    font-size: 0.9rem;
}

.lobby-header {
    border-radius: 14px;
    padding: 10px 12px;
    background: linear-gradient(130deg, rgba(35, 48, 78, 0.78) 0%, rgba(12, 24, 47, 0.88) 100%);
    border: 1px solid rgba(199, 164, 95, 0.35);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.lobby-title {
    font-size: 1.08rem;
}

.wallet {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.lobby-box {
    gap: 12px;
}

.lobby-box>.swiper-slide {
    width: calc(100% / 7 - 12px) !important;
}

.mod-ga-slide {
    margin-bottom: 12px;
}

.mod-ga-slide__track {
    gap: 12px;
}

.mod-ga-slide__item img {
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}


/* ============================================================ */
/* Game entry — panel switch + CSS grid (rzu-style)            */
/* ============================================================ */

.game-entry-shell {
    width: 100%;
}

.game-entry-panel {
    display: none !important;
}

.game-entry-panel.is-active {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
}

.game-entry-shell .index_tith2 {
    margin-bottom: 12px;
}

.game-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.game-entry-card {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(28, 38, 62, 0.92) 0%, rgba(12, 20, 38, 0.96) 100%);
    border: 1px solid rgba(199, 164, 95, 0.22);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-entry-card:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 177, 106, 0.45);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.game-entry-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.game-entry-thumb picture,
.game-entry-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-entry-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 26px 8px 10px;
    text-align: center;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(6, 14, 28, 0.35) 40%,
        rgba(6, 14, 28, 0.82) 100%
    );
}

.game-entry-name h3 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-w100);
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.game-entry-name h4 {
    margin: 2px 0 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--color-w65);
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.home-topgames-desktop {
    display: none;
}

.home-service-desktop {
    display: none;
}

.home-faq-desktop {
    display: none;
}

@media screen and (max-width: 1023px) {
    .home-topgames-desktop {
        display: none !important;
    }

    .home-service-desktop {
        display: none !important;
    }

    .home-faq-desktop {
        display: none !important;
    }
}


@media screen and (max-width: 767px) {
.footer-vendor-logos {
        display: none !important;
    }

.gamenav {
    padding: 0 10px;
    margin-bottom: 0;
}

.vertical-tab {
        flex-direction: column;
    }

.mobile_wrapper, #btmnav {
        display: block;
        display: flex;
        flex-direction: column;

    }

.hotgame-title {
        display: none;
    }

.sm-box {
        width: 100%;
        height: auto;
        margin: 5px 0;
        padding: 0 20px 60px 20px;
    }

#sm-unlogin {
        display: none;
    }

.sm-name {
        display: flex;
        flex-direction: row;
        align-items: center;
        color: #8c8c8c;
    }

.sm-gologin {
        width: 4.5em;
        height: 2.3rem;
        margin: 0 0.2rem;
        display: flex;
        border-radius: 6px;
        background: linear-gradient(to top right, #FFA67F, #fff, #FFDEC3, #F6B094);
        justify-content: center;
        align-items: center;
        box-shadow: 2px 2px 9px #b5a29f;
    }

.sm-gologin>a {
        color: var(--color-w100);
    }

.sm-nav {
        display: flex;
        justify-content: space-around;
        width: 100%;
        height: 100%;
    }

ul.sm-nav>li {
        width: 3rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

.sm-navitem {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.74);
    gap: 8px;
}

.highlight>i {
        font-size: 1rem !important;
    }

ul.sm-nav>li>a {
        font-size: 0.9rem;
        font-weight: 700;
    }

.sm-navitem>i {
    color: rgba(215, 177, 102, 0.95);
    font-size: 1.6rem;
}

.nav-highlight {
    background: linear-gradient(135deg, #ddc38a 0%, #b48943 100%);
    border-radius: 50%;
    height: 44px;
    margin-top: -24px;
    width: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #0b1a35 !important;
    box-shadow: 0 6px 14px rgba(176, 136, 63, 0.44);
}

.bottom-nav {
    width: 100%;
    height: 64px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    position: fixed;
    bottom: 0;
    background-color: #000000a3;
    z-index: 2;
    backdrop-filter: blur(0.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(16, 17, 24, 0.98) 0%, rgba(9, 9, 14, 0.98) 100%);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

/* clear-mobile-activecss */

.bottom-nav>ul.sm-nav>li>.sm-navitem {
        -webkit-tap-highlight-color: transparent;
    }

.sm-tpage {
        display: flex;
        padding: 8px 0 16px 8px;
        color: var(--color-w65);
        font-size: 1.1rem;
    }

.sm-tpage>div:first-child {
        z-index: 97;
    }

.sm-pagetitle {
        width: 100%;
        text-align: center;
    }

/* help */

.hotgame {
        width: 95%;
        height: 100vh;
        overflow-y: scroll;
        padding-bottom: 100px;
    }

.profile_content_box {
        box-shadow: none !important;
    }

/* cooperation */

/* about-noya */

/* promotion */

.ac_wrapper {
        width: 90%;
        height: auto;
        padding-top: 20px;
    }

.ac_box {
        gap: 0.4rem;
    }

.modal-content>img {
        width: 100%;
    }

ul.ac_box>li {
        width: 100%;
    }

.img>img {
        width: 100%;
    }

.promotion-title>h1 {
        font-size: 1.8rem;
    }

.promotion-title>h1:after {
        margin: 16px auto 0 auto;
    }

.promotion-title>h2 {
        font-size: 1rem;
        margin-top: 10px;
    }

.lobby-box>.swiper-slide {
    width: calc(100% / 4 - 8px) !important;
}

/*活動內文*/

.modal-content {
        font-size: 14px;
        padding: 0;
    }

/* 404 maintain */

.single-page {
        margin: 80px 0;
    }

.single-page p {
        margin-top: 20px;
    }

.promotion-text>h2 {
        font-size: 1.4rem;
    }

.promotion-text>h3 {
        font-size: 1.2rem;
    }

.mod-ga-slide__item {
        flex: 0 0 100%;
    }

.mod-ga-slide {
        padding: 0 0px;
    }

.mod-ga-slide__item img {
        filter: inherit;
    }

.home-rzu-toolbar {
    display: flex;
    padding: 6px 8px;
    border-radius: 10px;
    gap: 6px;
    margin-bottom: 8px;
}

.desktop-only-marquee {
        display: none;
    }

.content_all.home-rzu-shell {
        padding-top: max(8px, env(safe-area-inset-top, 0px)) !important;
    }

.home-rzu-auth-actions {
        gap: 4px;
        flex: 1 1 auto;
        min-width: 0;
    }

.home-rzu-toolbar-main {
        gap: 8px;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
    }

/* 對齊 rzu index-aside .btnBox */

.home-rzu-auth-btn {
        min-width: 44px;
        height: auto;
        padding: 4px 8px;
        font-size: 13px;
        line-height: 1.2;
        letter-spacing: 0;
        flex: 0 0 auto;
    }

.home-rzu-auth-login,
.home-rzu-auth-register {
        min-width: 72px;
        height: 34px;
        padding: 0 18px;
        font-size: 15px;
    }

.home-rzu-auth-wallet {
        min-width: 0;
        max-width: 100%;
        flex: 1 1 auto;
        height: 30px;
        padding: 0 6px;
        gap: 4px;
    }

.home-rzu-auth-wallet i {
        font-size: 11px;
    }

.home-rzu-auth-wallet-value {
        font-size: 14px;
    }

.home-rzu-toolbar-right {
        flex: 0 0 auto;
        margin-left: auto;
        min-width: 0;
        gap: 0;
        justify-content: flex-end;
    }

/* 對齊 rzu asideUserTools：ico28 24px + title .8rem */

.home-rzu-quick-item {
        flex: 0 0 auto;
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        gap: 3px;
        font-size: 12px;
        line-height: 1.1;
    }

.home-rzu-quick-item i {
        font-size: 16px;
        line-height: 1;
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.home-rzu-quick-item span {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
    }

/* 手機：主區維持左欄選單 + 右側內容（grid，避免 % + gap 換行破版） */

.home-rzu-shell .vertical-tab {
        --home-nav-count: 7;
        --home-nav-gap: 3px;
        --home-nav-item-max: 72px;
        /*
          CSS 保底（JS 未跑／量測前）：用 svh 近似可視高。
          實際高度由 index-game-panels.js 以「工具列底→底欄頂」實測覆寫。
          不在此再扣 safe-area-bottom，避免底欄上方多出空白。
        */
        --home-games-avail: calc(
            100svh
            - env(safe-area-inset-top, 0px)
            - 8px
            - 120px
            - 78px
            - 16px
            - 64px
            - 2px
        );
        /* 不再用 447px 上限卡住；矮機縮、高機拉滿剩餘空間 */
        --home-games-row-h: max(220px, var(--home-games-avail));
        /* 六鈕均分綠框高度，上限 72px（較高時靠 space-between 撐滿） */
        --home-nav-item-h: min(
            var(--home-nav-item-max),
            calc(
                (var(--home-games-row-h) - (var(--home-nav-count) - 1) * var(--home-nav-gap))
                / var(--home-nav-count)
            )
        );
        --home-nav-col-w: var(--home-nav-item-h);
        /* 圖示／字跟著格子邊長縮，勿用 rem／vw（字級或寬度變了格子對不上） */
        --home-nav-icon: clamp(14px, calc(var(--home-nav-item-h) * 0.36), 26px);
        --home-nav-text: clamp(11px, calc(var(--home-nav-item-h) * 0.22), 15px);
        --home-nav-label-gap: clamp(2px, calc(var(--home-nav-item-h) * 0.08), 6px);
        display: grid;
        grid-template-columns: var(--home-nav-col-w) minmax(0, 1fr);
        grid-template-rows: auto auto var(--home-games-row-h);
        grid-template-areas:
            "banner banner"
            "toolbar toolbar"
            "nav games";
        column-gap: 8px;
        row-gap: 8px;
        align-items: stretch;
    }

.home-rzu-shell .home-top-banner {
        grid-area: banner;
        width: 100%;
        max-width: 100%;
        min-width: 0; /* 避免 Swiper loop 幻燈片把 grid 撐破寬度 */
        overflow: hidden;
        order: unset;
        margin-bottom: 0 !important;
    }

.home-rzu-shell .home-rzu-toolbar {
        grid-area: toolbar;
        width: auto;
        max-width: none;
        order: unset;
        margin-bottom: 0 !important;
    }

/* 手機：wrapper 不參與排版，讓 ul.nav-tabs 直接進 grid */

.home-rzu-shell .home-rzu-category-bar {
        display: contents;
    }

    /*
      綠框（nav|games）高度固定；
      左欄 6 類全顯不滾；右欄（紅框）超出只在內滾
    */

.home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item--mobile-hidden {
        display: none !important;
    }

.home-rzu-shell .vertical-tab .nav-tabs {
    grid-area: nav;
    order: unset;
    display: flex !important;
    flex: none !important;
    width: var(--home-nav-col-w) !important;
    min-width: var(--home-nav-col-w) !important;
    max-width: var(--home-nav-col-w) !important;
    padding: 0;
    border-radius: 0;
    aspect-ratio: auto !important;
    /* 與右欄同高（綠框固定列高） */
    height: var(--home-games-row-h) !important;
    max-height: var(--home-games-row-h) !important;
    min-height: 0;
    overflow: hidden;
    position: relative;
    top: auto;
    align-self: start;
    border: none;
    background: transparent !important;
    box-shadow: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--home-nav-gap);
    scrollbar-width: none;
}

/* 分類鈕：垂直圖示＋名稱（小正方形） */

.home-rzu-shell .vertical-tab .nav-tabs > li {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: var(--home-nav-item-h);
        flex: 0 0 auto;
        height: var(--home-nav-item-h);
        min-height: var(--home-nav-item-h);
        max-height: var(--home-nav-item-h);
        aspect-ratio: 1 / 1;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 8px;
        background: url("/public/web/v2/img/game-nav-tab-bg01.png") center center / 100% 100% no-repeat;
        box-shadow: none;
        text-align: left;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li > a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        gap: var(--home-nav-label-gap);
        padding: 2px;
        font-size: var(--home-nav-text);
        color: #ffd092;
        font-weight: 700;
        text-align: center;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li > a i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: var(--home-nav-icon);
        height: var(--home-nav-icon);
        min-width: var(--home-nav-icon);
        font-size: var(--home-nav-icon);
        line-height: 1;
        margin: 0;
        flex-shrink: 0;
    }

.home-rzu-shell .vertical-tab .nav-tabs .nav-sub {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        margin: 0;
        font-size: inherit;
        line-height: 1.1;
        color: #ffd092;
        font-weight: 700;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item.is-active {
        background: url("/public/web/v2/img/game-nav-tab-bg-a.png") center center / 100% 100% no-repeat;
        border: none;
        box-shadow: none;
        transform: none;
        opacity: 1;
        filter: none;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item.is-active > a, .home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item.is-active .nav-sub, .home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item.is-active > a i {
        color: #3d2a12;
        text-shadow: none;
        filter: none;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item.is-active > a i {
        width: var(--home-nav-icon);
        height: var(--home-nav-icon);
        min-width: var(--home-nav-icon);
        font-size: var(--home-nav-icon);
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item:not(.is-active):hover, .home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item:not(.is-active):active {
        background: url("/public/web/v2/img/game-nav-tab-bg01.png") center center / 100% 100% no-repeat;
        border: none;
        transform: none;
        opacity: 1;
        filter: brightness(1.06);
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item.is-active:hover, .home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item.is-active:active {
        background: url("/public/web/v2/img/game-nav-tab-bg-a.png") center center / 100% 100% no-repeat;
        border: none;
        transform: none;
        opacity: 1;
        filter: none;
    }

/* 遊戲分類下方：吸附快捷項目 */

.home-rzu-shell .nav-tabs br.nav-quick-extra {
        display: none;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.nav-quick-extra {
        margin-top: 6px;
        background: linear-gradient(135deg, rgba(22, 36, 68, 0.96) 0%, rgba(12, 24, 48, 0.98) 100%);
        border: 1px solid rgba(199, 164, 95, 0.38);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.nav-quick-extra:first-of-type {
        margin-top: 10px;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.nav-quick-extra > a, .home-rzu-shell .vertical-tab .nav-tabs > li.nav-quick-extra .nav-sub {
        color: #e8d5ad;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.nav-quick-extra > a i {
        color: #d7b16a;
        width: 1.25rem;
        height: 1.25rem;
        min-width: 1.25rem;
        font-size: 1.25rem;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.nav-quick-extra .nav-sub {
        font-size: 0.75rem;
        line-height: 1.1;
    }

.home-rzu-shell .vertical-tab .tab-content {
        /* 桌機區塊已個別隱藏；整欄勿佔手機右欄位置 */
        display: none !important;
    }

/* 手機維持舊邏輯：左欄點選、右欄顯示遊戲入口 */

/* 右欄：高度固定；內容超出只在此框內滾動 */
.home-rzu-shell .vertical-tab .game-entry-shell {
        grid-area: games;
        order: unset;
        flex: none;
        width: auto !important;
        min-width: 0;
        min-height: 0;
        height: var(--home-games-row-h) !important;
        max-height: var(--home-games-row-h) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin: 0 !important;
        padding: 0 2px 0 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        align-self: start;
        scrollbar-width: thin;
    }

.home-rzu-shell .vertical-tab .game-entry-panel {
        width: 100%;
        padding: 0;
        /* 讓高度跟著內容長，由外層 shell 裁切滾動 */
        height: auto;
    }

.home-rzu-shell .vertical-tab .game-entry-grid {
        margin-bottom: 0;
    }

.home-rzu-shell .vertical-tab .tab-content .swiper-banner {
        margin-bottom: 10px !important;
    }

.marquee-container {
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 8px 10px;
    }

.marquee-content a {
        font-size: 0.82rem;
    }

.lobby-header {
        border-radius: 10px;
        padding: 9px;
    }

.lobby-box {
        gap: 8px;
    }

.home-rzu-shell .game-entry-shell .index_tith2 {
        display: none !important;
    }

.home-rzu-shell .game-entry-grid {
        margin-bottom: 12px;
    }
}


@media screen and (min-width: 768px) {
.slide-track {
    grid-template-columns: repeat(8, 1fr);

}

.home-rzu-toolbar {
    display: none;

}

.desktop-only-marquee {
    display: flex;

}

.game-entry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;

}

.game-entry-name h3 {
    font-size: 0.88rem;

}
}


/* 分類列出現「推薦」之後（≥769px），熱門面板只留熱門遊戲 */
@media screen and (min-width: 769px) {
.game-entry-mobile-only {
    display: none !important;

}
}


/* ============================================================ */
/* Promotion page — blue-gold theme alignment                  */
/* ============================================================ */

.page-promotion .ac_wrapper {
    width: min(960px, 94%);
    margin: 16px auto 32px;
}

.page-promotion .image-w .promotion-text {
    border: 1px solid rgba(199, 164, 95, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.page-promotion .modal-content.dis-con-title {
    background: linear-gradient(165deg, rgba(14, 26, 48, 0.98) 0%, rgba(8, 16, 34, 0.99) 100%) !important;
    border: 1px solid rgba(199, 164, 95, 0.24) !important;
    color: #e8d6b0;
}

.page-promotion .modal-content.dis-con-title .modal-header {
    border-bottom: 1px solid rgba(199, 164, 95, 0.18);
}

.page-promotion .modal-content.dis-con-title .modal-title {
    color: #f0ddb0;
}

.page-promotion .promo-popup,
.page-promotion .promo-popup td,
.page-promotion .promo-popup th {
    color: #e5d5b2;
    border-color: rgba(199, 164, 95, 0.22) !important;
}

/* 首頁分類列：壓過 sm-gamenav 舊樣式 */
@media screen and (min-width: 1024px) {
.content_all.home-rzu-shell {
        padding-top: 74px !important;
    }

.home-rzu-shell .vertical-tab {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    position: relative;
}

.home-rzu-shell .home-top-banner {
        order: 2;
        width: 100%;
    }

.home-rzu-shell .home-rzu-category-bar {
        order: 1;
        position: relative;
        left: 50%;
        right: 50%;
        width: 100vw;
        max-width: 100vw;
        margin-left: -50vw;
        margin-right: -50vw;
        background: linear-gradient(180deg, rgba(8, 13, 27, 0.98) 0%, rgba(8, 13, 27, 0.9) 100%);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    }

.content_all.home-rzu-shell, .home-rzu-shell .gamenav, .home-rzu-shell .vertical-tab {
        overflow-x: visible;
    }

.home-rzu-shell .home-rzu-category-bar .nav-tabs {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        min-width: 0;
        aspect-ratio: auto;
        flex: none;
        display: flex;
        flex-wrap: nowrap;
        justify-content: stretch;
        align-items: stretch;
        gap: 0;
        padding: 0;
        min-height: 82px;
        border-radius: 0;
        border: none;
        background: transparent !important;
        box-shadow: none;
    }

.home-rzu-shell .gamenav {
        width: 100%;
        max-width: none;
        overflow: visible;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li {
        flex: 1;
        margin: 0;
        padding: 0;
        border-radius: 0;
        min-height: auto;
        display: flex;
        align-items: stretch;
        background: transparent;
        border: none;
        box-shadow: none;
        text-align: center;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li > a {
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 25px 0;
        white-space: nowrap;
        font-size: 1.2rem;
        color: var(--color-w100);
        opacity: 0.95;
    }

.home-rzu-shell .vertical-tab .nav-tabs .nav-sub {
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        color: var(--color-w100);
    }

/* 桌機：分類選單顯示 FontAwesome icon */

.home-rzu-shell .vertical-tab .nav-tabs > li > a i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05em;
        line-height: 1;
        color: inherit;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li:not(.no-hover):hover {
        transform: none;
        background: transparent;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li:not(.no-hover):hover > a,
.home-rzu-shell .vertical-tab .nav-tabs > li:not(.no-hover):hover > a .nav-sub,
.home-rzu-shell .vertical-tab .nav-tabs > li:not(.no-hover):hover > a i {
        color: #f4e4bf;
    }

.home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item.is-active > a,
.home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item.is-active > a .nav-sub,
.home-rzu-shell .vertical-tab .nav-tabs > li.game-nav-item.is-active > a i {
        color: #f4e4bf;
    }

.home-rzu-shell .vertical-tab .nav-tabs br {
        display: none;
    }

.home-rzu-shell .vertical-tab .tab-content {
        order: 3;
        width: 100%;
    }

.home-topgames-desktop {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 18px;
        padding: 32px 24px;
        box-sizing: border-box;
        border-radius: 16px;
        border: 1px solid rgba(215, 177, 106, 0.28);
        background: linear-gradient(180deg, rgba(12, 24, 48, 0.96) 0%, rgba(8, 16, 34, 0.98) 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 20px rgba(0, 0, 0, 0.25);
    }

.home-topgames-title {
        text-align: center;
        margin-bottom: 10px;
        color: #d7b16a;
    }

.home-topgames-title h2 {
        margin: 0;
        font-size: 2.1rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.04em;
    }

.home-topgames-title p {
        margin: 4px 0 0;
        font-size: 1.75rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.08em;
        color: rgba(229, 213, 178, 0.78);
    }

.home-topgames-tabs {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0;
        padding: 6px;
        border: 1px solid rgba(215, 177, 106, 0.34);
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(14, 28, 54, 0.95) 0%, rgba(10, 20, 40, 0.94) 100%);
        box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.22);
        margin-bottom: 16px;
    }

.home-topgames-tabs button {
        border: none;
        border-radius: 999px;
        background: transparent;
        color: rgba(229, 213, 178, 0.86);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        font-size: 1rem;
        font-weight: 700;
        padding: 10px 0;
        cursor: pointer;
        transition: all 0.18s ease;
    }

.home-topgames-tabs button i {
        font-size: 1.05em;
        line-height: 1;
    }

.home-topgames-tabs button.is-active {
        background: linear-gradient(135deg, #ddc38a 0%, #b48943 100%);
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
        color: #0d2348;
    }

.home-topgames-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 38%;
        gap: 16px;
        align-items: stretch;
    }

.home-topgames-left {
        min-width: 0;
        padding: 16px 10px 6px 6px;
    }

.home-topgames-left .desktop-game-panel {
        display: none;
    }

.home-topgames-left .desktop-game-panel.is-active {
        display: block;
    }

.home-topgames-left .home-topgames-panel h3 {
        margin: 0;
        color: #d7b16a;
        font-size: 4rem;
        line-height: 1;
        letter-spacing: 0.02em;
        font-weight: 800;
    }

.home-topgames-left .home-topgames-panel p {
        margin: 18px 0 22px;
        color: rgba(229, 213, 178, 0.84);
        font-size: 1rem;
        line-height: 1.65;
    }

.home-topgames-game-row {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 16px;
    }

.home-topgames-game-item {
        width: 86px;
        height: 86px;
        text-align: center;
        cursor: pointer;
        border-radius: 50%;
        border: 1px solid rgba(242, 218, 165, 0.6);
        background:
            radial-gradient(circle at 35% 30%, rgba(31, 63, 112, 0.98) 0%, rgba(12, 28, 58, 0.98) 55%, rgba(7, 18, 40, 1) 100%);
        box-shadow:
            0 0 0 2px rgba(181, 141, 69, 0.22) inset,
            0 6px 12px rgba(0, 0, 0, 0.35),
            0 0 14px rgba(190, 148, 70, 0.22);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    }

.home-topgames-game-item:hover {
        transform: translateY(-2px) scale(1.03);
        border-color: rgba(250, 229, 177, 0.84);
        box-shadow:
            0 0 0 2px rgba(214, 173, 100, 0.28) inset,
            0 10px 16px rgba(0, 0, 0, 0.42),
            0 0 18px rgba(219, 180, 107, 0.3);
    }

.home-topgames-game-logo {
        display: none !important;
    }

.home-topgames-game-name {
        display: block;
        color: #f4e8cc;
        font-size: 0.86rem;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    }

.home-topgames-right {
        height: 420px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

.home-topgames-right .desktop-game-panel {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 420px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

.home-topgames-right .desktop-game-panel.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.home-topgames-right .home-topgames-hero .git-group-img {
        width: 540px;
        max-width: 100%;
        height: 420px;
        display: block;
        position: relative;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
        filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
    }

.home-topgames-right .home-topgames-hero .git-group-img::before, .home-topgames-right .home-topgames-hero .git-group-img::after {
        content: "";
        position: absolute;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100%;
        opacity: 1;
        pointer-events: none;
        filter: drop-shadow(2px 2px 1px #444);
        height: 100%;
    }

/* Live: 1 張底圖 + 2 漂浮物（與參考站一致） */

.home-topgames-right .home-topgames-hero .git_group_img_live {
        background-image: url("../img/pc-gamesub/live01.webp");
    }

.home-topgames-right .home-topgames-hero .git_group_img_live::before {
        background-image: url("../img/pc-gamesub/live-1.webp");
        width: 100px;
        top: 136px;
        left: 35px;
        animation: topgamesFloatUp 4s linear infinite;
    }

.home-topgames-right .home-topgames-hero .git_group_img_live::after {
        background-image: url("../img/pc-gamesub/live-2.webp");
        width: 66px;
        top: 58px;
        right: 40px;
        animation: topgamesFloatDown 2.5s linear infinite;
    }

/* Sport: 1 張底圖 + 2 漂浮物 */

.home-topgames-right .home-topgames-hero .git_group_img_sport {
        background-image: url("../img/pc-gamesub/sport.webp");
    }

.home-topgames-right .home-topgames-hero .git_group_img_sport::before {
        background-image: url("../img/pc-gamesub/sport-1.webp");
        width: 60px;
        top: -31px;
        left: 58px;
        animation: topgamesFloatUp 5s linear infinite;
    }

.home-topgames-right .home-topgames-hero .git_group_img_sport::after {
        background-image: url("../img/pc-gamesub/sport-2.webp");
        width: 50px;
        top: 121px;
        right: 65px;
        animation: topgamesFloatDown 2.5s linear infinite;
    }

/* Slot: 1 張底圖 + 1 漂浮物 */

.home-topgames-right .home-topgames-hero .git_group_img_slot {
        background-image: url("../img/pc-gamesub/slot.webp");
    }

.home-topgames-right .home-topgames-hero .git_group_img_slot::before {
        background-image: url("../img/pc-gamesub/slot-1.webp");
        width: 170px;
        top: 145px;
        left: 10px;
        animation: topgamesFloatUp 2.5s linear infinite;
    }

.home-topgames-right .home-topgames-hero .git_group_img_slot::after {
        content: none;
    }

/* Lottery: 1 張底圖 + 1 漂浮物 */

.home-topgames-right .home-topgames-hero .git_group_img_keno {
        background-image: url("../img/pc-gamesub/keno.webp");
    }

.home-topgames-right .home-topgames-hero .git_group_img_keno::before {
        content: none;
    }

.home-topgames-right .home-topgames-hero .git_group_img_keno::after {
        background-image: url("../img/pc-gamesub/keno-1.webp");
        width: 73px;
        top: 74px;
        right:33px;
        animation: topgamesFloatUp 2.5s linear infinite;
    }

/* Chess: 1 張底圖 + 1 漂浮物 */

.home-topgames-right .home-topgames-hero .git_group_img_chess {
        background-image: url("../img/pc-gamesub/chess.webp");
    }

.home-topgames-right .home-topgames-hero .git_group_img_chess::before {
        content: none;
    }

.home-topgames-right .home-topgames-hero .git_group_img_chess::after {
        background-image: url("../img/pc-gamesub/chess-1.webp");
        width: 140px;
        top: 132px;
        left: 25px;
        animation: topgamesFloatUp 2.5s linear infinite;
    }

/* Fish: 1 張底圖 + 1 漂浮物 */

.home-topgames-right .home-topgames-hero .git_group_img_fish {
        background-image: url("../img/pc-gamesub/fish.webp");
    }

.home-topgames-right .home-topgames-hero .git_group_img_fish::before {
        background-image: url("../img/pc-gamesub/fish-1.webp");
        width: 180px;
        top: 130px;
        right: 25px;
        animation: topgamesFloatUp 2.5s linear infinite;
    }

.home-topgames-right .home-topgames-hero .git_group_img_fish::after {
        content: none;
    }

@media screen and (max-width: 1200px) {
        .home-topgames-right {
            height: 360px;
        }

        .home-topgames-right .desktop-game-panel {
            height: 360px;
        }

        .home-topgames-right .home-topgames-hero .git-group-img {
            width: 460px;
            height: 360px;
        }
    }

@keyframes topgamesFloatUp {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }

@keyframes topgamesFloatDown {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(10px); }
    }

.home-service-desktop {
        display: block;
        width: 100%;
        margin: 40px 0;
        padding: 6px 0 0;
    }

.home-service-title {
        text-align: center;
        margin-bottom: 24px;
    }

.home-service-title h2 {
        margin: 0;
        color: #d7b16a;
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        line-height: 1;
    }

.home-service-title p {
        margin: 4px 0 0;
        color: rgba(229, 213, 178, 0.8);
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        line-height: 1;
    }

.home-service-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

.home-service-card {
        min-height: 246px;
        padding: 18px 16px 16px;
        border-radius: 14px;
        border: 1px solid rgba(215, 177, 106, 0.25);
        background: linear-gradient(180deg, rgba(12, 24, 48, 0.95) 0%, rgba(8, 16, 34, 0.98) 100%);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.26);
        text-align: center;
    }

.home-service-icon {
        width: 76px;
        height: 76px;
        margin: 0 auto 12px;
        border-radius: 50%;
        border: 1px solid rgba(242, 218, 165, 0.5);
        background: radial-gradient(circle at 35% 30%, rgba(31, 63, 112, 0.98) 0%, rgba(12, 28, 58, 0.98) 55%, rgba(7, 18, 40, 1) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 0 2px rgba(181, 141, 69, 0.2) inset;
    }

.home-service-icon i {
        color: #dfbe7f;
        font-size: 1.8rem;
    }

.home-service-card h3 {
        margin: 0 0 8px;
        color: #f4e8cc;
        font-size: 1.18rem;
        font-weight: 800;
    }

.home-service-card p {
        margin: 0;
        color: rgba(229, 213, 178, 0.85);
        font-size: 0.9rem;
        line-height: 1.65;
        text-align: left;
    }

.home-faq-desktop {
        display: block;
        width: 100%;
        margin: 10px auto 22px;
    }

.home-faq-title {
        text-align: center;
        margin-bottom: 24px;
    }

.home-faq-title h2 {
        margin: 0;
        color: #d7b16a;
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        line-height: 1;
    }

.home-faq-title p {
        margin: 4px 0 0;
        color: rgba(229, 213, 178, 0.8);
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        line-height: 1;
    }

.home-faq-accordion {
        border-radius: 12px;
        border: 1px solid rgba(215, 177, 106, 0.2);
        background: linear-gradient(180deg, rgba(10, 22, 44, 0.88) 0%, rgba(7, 16, 33, 0.92) 100%);
        overflow: hidden;
    }

.home-faq-item + .home-faq-item {
        border-top: 1px solid rgba(215, 177, 106, 0.14);
    }

.home-faq-question {
        width: 100%;
        padding: 14px 16px;
        background: transparent;
        border: 0;
        color: #f4e8cc;
        font-size: 1.08rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        cursor: pointer;
    }

.home-faq-question h3 {
        margin: 0;
        font: inherit;
        color: inherit;
        line-height: inherit;
    }

.home-faq-question i {
        color: #d7b16a;
        transition: transform 0.2s ease;
    }

.home-faq-item.is-open .home-faq-question i {
        transform: rotate(45deg);
    }

.home-faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.24s ease;
    }

.home-faq-item.is-open .home-faq-answer {
        max-height: 140px;
    }

.home-faq-answer p {
        margin: 0;
        padding: 0 16px 14px;
        color: rgba(229, 213, 178, 0.86);
        font-size: 0.94rem;
        line-height: 1.7;
    }

.home-rzu-shell .game-entry-shell {
        position: absolute;
        top: 82px;
        left: 50%;
        width: 100vw;
        max-width: 100vw;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 14px 0 12px;
        z-index: 65;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
        background: linear-gradient(180deg, rgba(9, 17, 35, 0.975) 0%, rgba(7, 13, 27, 0.985) 100%);
        border-top: 1px solid rgba(215, 177, 106, 0.28);
        border-bottom: 1px solid rgba(215, 177, 106, 0.2);
        box-shadow: 0 14px 26px rgba(0, 0, 0, 0.42);
    }

.home-rzu-shell .game-entry-shell.is-dropdown-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

.home-rzu-shell .vertical-tab:not(.is-dropdown-open) .game-entry-shell {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
    }

.home-rzu-shell .game-entry-panel {
        margin: 0 auto;
        width: min(1400px, calc(100% - 24px));
        padding: 0 12px;
    }

.home-rzu-shell .game-entry-shell .index_tith2 {
        display: none;
    }

.game-entry-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 0;
    }

.game-entry-name h3 {
        font-size: 0.9rem;
    }

.home-rzu-shell .vertical-tab .home-rzu-category-bar .nav-tabs {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
        aspect-ratio: auto !important;
        display: flex !important;
        gap: 1.5% !important;
        justify-content: center !important;
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

.home-rzu-shell .vertical-tab .home-rzu-category-bar .nav-tabs > li {
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}
