/*!
 * core-member.css — AUTO-GENERATED by scripts/build-css.js
 * 來源（依序）: all.css + components/navbar.css + index_navbar.css + profile.css + index_content.css
 * 勿直接改此檔；請改原始檔後重跑 build-css.js
 */

/* ===== all.css ===== */
@charset "UTF-8";
/* @import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css); */

/* CSS Document */
/* allpage */
/* all */
:root {
    --type-a: linear-gradient(to bottom, #fff5ef 0%, #fff4f4 50%, #fff8f4 50%, #ffe2d3 51%, #fff5f2 100%);
    --texture-1: linear-gradient(315deg, transparent, transparent 14%, rgba(255, 255, 255, 0.7) 34%, transparent 0, hsla(0, 0%, 100%, 0.7) 56%, transparent 0, hsla(0, 0%, 100%, 0.7));
    --gradient-4: linear-gradient(0deg, #ffe0ce, #ffcbb4);
    --border: linear-gradient(to bottom, #ffeee0 0%, #ffded1 11%, #ffbea3 25%, #ffbda5 38%, #ffb999 50%, #ffaa8c 51%, #f9c8b1 83%, #ffe8e0 100%);
    --box-shadow-1: 0 2px 4px 0 #d7c5bd;
    /* --color-bg:#0F0F14; */
    --color-bg: #16161c;
    --color-nav: #1A1A22;
    --color-btn: #ff230acc;
    --color-w100: #ffffff;
    --color-w65: #ffffffc7;
    --color-w25: #ffffff40;
    --color-w23: #ffffff3b;
    --color-w18: #ffffff2e;
    --color-w10: #ffffff1a;
    --color-b19: #00000030;
    --color-b44: #00000070;
    --color-r19: #ff000030;
    --color-r67: #ff0000ab;
}

/* 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: #0d0d0d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    user-select: none;
    /* 無法選取 */
    pointer-events: none;
    /* 點擊事件穿透遮罩 */
}

#loadOut {
    display: none;
}

.loading-page {
    background: #0d0d0d;
    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;
}



#registerModal2 input:-webkit-autofill,
#loginModal2 input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px var(--color-nav) inset !important;
    -webkit-box-shadow: 0 0 0px 1000px var(--color-nav) inset !important;
    -webkit-text-fill-color: #fff !important;
    /* 保持文字顏色 */
    border-color: #777 !important;
    /* 保持邊框顏色 */
    transition: background-color 5000s ease-in-out 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: #ff3b30;
    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 ===== */
@charset "UTF-8";



/* 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;
}

.decoration-line {
    width: 100%;
    color: var(--color-w65);
}

.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 10px;
}

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

@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;
    }
}

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

/* footer */
/* footer # */

@media screen and (max-width:767px) {
    .content_all {
        padding-top: 75px;
    }

    .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;
    }
}

@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(6px);
}

/* --- 對話框：寬度上限 + 垂直置中 --- */
.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: rgba(26, 26, 26, 0.55) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6) !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(255, 255, 255, 0.06);
    background: rgb(15 15 15 / 30%);
}

.auth-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    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(230, 46, 5, 0.5);
    /* background-color: #2f2f2f; */
}

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

/* select 特殊處理 */
.auth-field option {
    background: #2a2a2a;
    color: #e2e8f0;
}

/* --- 密碼顯示切換按鈕 --- */
.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: var(--color-btn, #e62e05);
    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: var(--color-btn, #e62e05);
}

/* --- 主按鈕 (紅色) --- */
.auth-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background-color: var(--color-btn, #e62e05);
    color: #ffffff;
    border: none;
    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;
}

.auth-btn-primary:hover {
    background-color: #ff3407;
    box-shadow: 0 4px 16px rgba(230, 46, 5, 0.30);
}

.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-color: var(--color-btn, #e62e05);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.auth-btn-sms:hover {
    background-color: #ff3407;
}

/* --- 條款列 --- */
.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: #f1f5f9 !important;
    font-weight: 700;
    text-decoration: none !important;
    margin-left: 4px;
    transition: color 0.15s;
}

.auth-switch-link:hover {
    color: var(--color-btn, #e62e05) !important;
}

/* --- 品牌條 --- */
.auth-modal-brand {
    padding: 10px 20px;
    background: rgba(10, 10, 10, 0.45);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

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

/* --- RWD 小螢幕 --- */
@media screen and (max-width: 767px) {
    .auth-modal-dialog {
        max-width: 350px;
    }

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

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

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

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

/* ===== profile.css ===== */
@charset "UTF-8";

/* 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%;
    background-color: var(--color-nav);
    padding: 2rem;
    border-radius: 10px;
}

.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: #ffd4c7;
    outline: none;
    border-color: #ffd4c7;
}

.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 */
.creditcard {
    width: 100%;
    max-width: 240px;
    height: 140px;
    color: #fff;
    background-image: url(../img/creditcard.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cardOK {
    background-image: url(../img/creditcardOK.png);
}

.card-number {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.uptext {
    display: block;
    color: var(--color-w100);
}

/* 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;
}

.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）─ */
.vip-table-wrap {
    /* 沿用 withdraw-table-wrap，這裡只補微調 */
}

.status-table.vip-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.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-w10);
    min-width: 200px;
}

.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; }

@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 Card（目前等級）─ */
.vip-hero-card {
    background: linear-gradient(135deg, rgba(255, 35, 10, 0.14), rgba(255, 35, 10, 0.04));
    border: 1px solid var(--color-w18);
}

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

.vip-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);
}

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

.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;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -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;
}

.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;
}

@media screen and (max-width: 767px) {
    .vip-hero-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

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

/* .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(--color-w100);
    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(--color-w65);
    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 .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-color: var(--color-nav);
    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 (max-width: 767px) {
    .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 {
        background-size: contain;
        background-position: center;
    }

    .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;
    }
}


@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;
}

/* ── 存款方式按鈕列 ── */
.saveWay {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.saveWay .gift {
    flex: 1 1 120px;
    min-width: 100px;
    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(220, 38, 38, 0.08);
}

.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(220, 38, 38, 0.08);
}

/* ── 輸入框 + 按鈕行 ── */
.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: #ffd4c7;
}

.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: rgba(0,0,0,0.25);
    border: 2px dashed rgba(220, 38, 38, 0.4);
    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-btn);
    letter-spacing: -0.02em;
    line-height: 1;
}

.save-atm-suffix-badge {
    background-color: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-btn);
    display: flex;
    gap: 8px;
}

/* ── RWD ── */
@media screen and (max-width: 767px) {
    /* 存款方式：2欄，高度略增加呼吸空間 */
    .saveWay .gift {
        flex: 1 1 calc(50% - 5px);
        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;
    }

    .vip-lv-card {
        max-width: 100%;
    }

    .vip-card-title {
        font-size: 2rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 1366px) {
    /* 中等螢幕：存款方式維持自然 flex wrap */
    .saveWay .gift {
        flex: 1 1 140px;
    }

    /* 金額快選維持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;
    }
}

@media screen and (max-width: 767px) {
    .withdraw-form-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(255, 35, 10, 0.18), rgba(255, 35, 10, 0.06));
}

.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 ─ */
@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;
    }
}

/* ======================================================
   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(255, 35, 10, 0.10), rgba(255, 35, 10, 0.02));
    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(--color-btn) 0%, #d91e00 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(255, 35, 10, 0.3);
}

.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(255, 35, 10, 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(--color-btn) 0%, #d91e00 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(255, 35, 10, 0.3);
}

.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(255, 35, 10, 0.15);
    color: var(--color-btn);
    border: 1px solid rgba(255, 35, 10, 0.3);
}

.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;
    border: 2px dashed var(--color-w18);
    background: var(--color-w10);
    color: var(--color-w65);
}

.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;
}

@media screen and (max-width: 767px) {
    /* 萬一手機仍跑 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;
    }
}

/* ─ RWD ─ */
@media screen and (max-width: 767px) {
    .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) {
    .lux-pager {
        gap: 10px;
    }

    .lux-pager-info {
        width: 100%;
        justify-content: space-between;
    }
}


/* ===== index_content.css ===== */
@charset "UTF-8";

/* index gamenav */
.gamenav {
    margin-bottom: 32px;
}

.game-swiper-wrapper {
    aspect-ratio: 1360 / 425;
    width: 100%;
}

.swiper {
    width: 100%;
    height: auto;
    margin-bottom: 32px;
}

.index_tith2 {
    display: flex;
    margin-bottom: 10px;
}

.index_con_icon {
    width: 20px;
    margin-right: 10px;
}

.swiper>.index_tith2>h2 {
    font-size: 1.1rem;
    color: var(--color-w100);
    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: 10px;
    box-shadow: 3px 3px 3px 0px #00000070;
    filter: brightness(100%);
    transition: filter 0.3s ease-in-out;
    -webkit-user-drag: none;
    /* 禁止拖曳 (適用於 WebKit 瀏覽器：Chrome, Safari, Edge) */
    user-drag: none;
    /* 標準屬性 (部分瀏覽器支援) */
    -webkit-user-select: none;
    /* 禁止選取 (Chrome, Safari, Edge) */
    -moz-user-select: none;
    /* 禁止選取 (Firefox) */
    -ms-user-select: none;
    /* 禁止選取 (IE/Edge) */
    user-select: none;
    /* 標準屬性 */
}

.swiper-slide img:hover {
    filter: brightness(115%);
}

.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;
}

.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%);
}

@media (min-width: 768px) {
    .slide-track {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* 優惠規則 & 隱私政策 */
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: #FF230A;
    border-bottom: 3px solid #fff;
    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-color: #0000005e;
    border: 1px solid var(--color-w65) !important;
    color: var(--color-w100);
}

.promotion-btn:hover {
    color: var(--color-w65) !important;
    background-color: #1a1a22d9;
}

/* 活動內文 */
.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: #FFD700;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    border-left: 5px solid #FF230A;
    padding-left: 10px;
}

.dis-con-title h5 {
    color: #FFD700;
    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 #ff00008f;
    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: #ff5555;
}

.announcement-date {
    color: #ccc;
    font-size: 14px;
    margin-right: 6px;
}

.announcement-text {
    color: #e5e5e5;
}

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

    .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: var(--color-w100);
        gap: 4px;
    }

    .highlight>i {
        font-size: 1rem !important;
    }

    ul.sm-nav>li>a {
        font-size: 0.8rem;
    }

    .sm-navitem>i {
        color: var(--color-btn);
        font-size: 1.05rem;
    }

    .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: 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;
    }
}

@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: 4px;
    }

    .highlight>i {
        font-size: 1rem !important;
    }

    ul.sm-nav>li>a {
        font-size: 0.8rem;
    }

    .sm-navitem>i {
        color: var(--color-btn);
        font-size: 1.05rem;
    }

    .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);
    }
}

/* 手機版：一行一張 */
@media screen and (max-width: 767px) {
    .mod-ga-slide__item {
        flex: 0 0 100%;
    }

    .mod-ga-slide {
        padding: 0 0px;
    }

    .mod-ga-slide__item img {
        filter: inherit;
    }
}
