﻿:root {
    --base-font-size: 16px; /* กำหนดขนาดฟอนต์เริ่มต้น */
}

/* LotteryPol: high-contrast status colors */
.lpv2-page .lpv2-status {
    min-width: 114px !important;
    height: 36px !important;
    border-width: 2px !important;
    box-shadow: 0 10px 18px rgba(15, 23, 42, .13), inset 0 1px 0 rgba(255,255,255,.55) !important;
}

.lpv2-page .lpv2-status.win {
    color: #ffffff !important;
    background: linear-gradient(135deg, #22c55e 0%, #00a83b 52%, #007a2b 100%) !important;
    border-color: #86efac !important;
}

.lpv2-page .lpv2-status.lose {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff7a18 0%, #ff3d00 52%, #d62800 100%) !important;
    border-color: #fed7aa !important;
}

.lpv2-page .lpv2-status.cancel {
    color: #ffffff !important;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 52%, #334155 100%) !important;
    border-color: #cbd5e1 !important;
}

.lpv2-page .lpv2-status.wait,
.lpv2-page .lpv2-status.buy,
.lpv2-page .lpv2-status.paid {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #006dff 58%, #0847b8 100%) !important;
    border-color: #bfdbfe !important;
}

.lpv2-page .lpv2-cancel {
    min-width: 116px !important;
    height: 38px !important;
    border: 2px solid #fecaca !important;
    background: linear-gradient(135deg, #ff3b3b 0%, #e11d48 55%, #be123c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(225, 29, 72, .24), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.lpv2-page .lpv2-cancel:active {
    transform: translateY(1px);
}

.lpv2-page .lpv2-buy-again {
    min-width: 116px !important;
    height: 38px !important;
    border-radius: 12px !important;
    border: 2px solid #bfdbfe !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #006dff 55%, #0847b8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(0, 109, 255, .22), inset 0 1px 0 rgba(255,255,255,.28) !important;
    font-size: 12px !important;
    font-weight: 1000 !important;
    cursor: pointer;
    white-space: nowrap;
}

.lpv2-page .lpv2-buy-again:active {
    transform: translateY(1px);
}

.lpv2-page .pol-v8-status {
    border: 2px solid rgba(255,255,255,.8) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .24), inset 0 1px 0 rgba(255,255,255,.35) !important;
}

.lpv2-page .pol-v8-status.win {
    background: linear-gradient(135deg, #2ee96d 0%, #00a83b 55%, #006d27 100%) !important;
}

.lpv2-page .pol-v8-status.lose {
    background: linear-gradient(135deg, #ff8a1c 0%, #ff3d00 55%, #c62500 100%) !important;
}

.lpv2-page .pol-v8-status.cancel {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 55%, #334155 100%) !important;
}

.lpv2-page .pol-v8-status.wait {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 55%, #075985 100%) !important;
}

.lpv2-page .pol-v8-summary-card.profit.win,
.lpv2-page .pol-v8-line-result.win {
    color: #ffffff !important;
    background: linear-gradient(135deg, #22c55e 0%, #00a83b 60%, #007a2b 100%) !important;
    border-color: #86efac !important;
    box-shadow: 0 10px 20px rgba(34, 197, 94, .22) !important;
}

.lpv2-page .pol-v8-summary-card.profit.lose,
.lpv2-page .pol-v8-line-result.lose {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff7a18 0%, #ff3d00 60%, #d62800 100%) !important;
    border-color: #fed7aa !important;
    box-shadow: 0 10px 20px rgba(255, 61, 0, .18) !important;
}

.lpv2-page .pol-v8-summary-card.profit.cancel,
.lpv2-page .pol-v8-line-result.cancel {
    color: #ffffff !important;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 60%, #334155 100%) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 20px rgba(71, 85, 105, .18) !important;
}

.lpv2-page .pol-v8-summary-card.profit.wait,
.lpv2-page .pol-v8-line-result.wait {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #006dff 60%, #0847b8 100%) !important;
    border-color: #bfdbfe !important;
    box-shadow: 0 10px 20px rgba(0, 109, 255, .18) !important;
}

.lpv2-page .pol-v8-line-result.win span,
.lpv2-page .pol-v8-line-result.win b,
.lpv2-page .pol-v8-line-result.lose span,
.lpv2-page .pol-v8-line-result.lose b,
.lpv2-page .pol-v8-line-result.cancel span,
.lpv2-page .pol-v8-line-result.cancel b,
.lpv2-page .pol-v8-line-result.wait span,
.lpv2-page .pol-v8-line-result.wait b,
.lpv2-page .pol-v8-summary-card.profit.win span,
.lpv2-page .pol-v8-summary-card.profit.win b,
.lpv2-page .pol-v8-summary-card.profit.lose span,
.lpv2-page .pol-v8-summary-card.profit.lose b,
.lpv2-page .pol-v8-summary-card.profit.cancel span,
.lpv2-page .pol-v8-summary-card.profit.cancel b,
.lpv2-page .pol-v8-summary-card.profit.wait span,
.lpv2-page .pol-v8-summary-card.profit.wait b {
    color: #ffffff !important;
}

.lpv2-page .pol-v8-cancel-panel {
    border: 2px solid #fecaca !important;
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%) !important;
}

.lpv2-page .pol-v8-cancel-panel button {
    border: 2px solid #fecaca !important;
    background: linear-gradient(135deg, #ff3b3b 0%, #e11d48 55%, #be123c 100%) !important;
    box-shadow: 0 10px 20px rgba(225, 29, 72, .22), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.lpv2-page .pol-v8-cancel-done {
    color: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 60%, #334155 100%) !important;
}

/* LotteryPol popup: compact bet rows for long slips */
.lpv2-page .pol-v8-ticket-list {
    gap: 8px !important;
}

.lpv2-page .pol-v8-bet-card {
    border-radius: 8px !important;
    box-shadow: 0 7px 16px rgba(0, 47, 122, .10) !important;
}

.lpv2-page .pol-v8-bet-head {
    min-height: 30px !important;
    padding: 6px 36px 6px 10px !important;
    font-size: 13px !important;
}

.lpv2-page .pol-v8-bet-body {
    grid-template-columns: minmax(96px, .75fr) minmax(0, 1.25fr) !important;
    gap: 6px !important;
    padding: 7px !important;
}

.lpv2-page .pol-v8-number-side {
    min-height: 118px !important;
    gap: 5px !important;
    padding: 7px 5px !important;
    border-radius: 8px !important;
}

.lpv2-page .pol-v8-number-label {
    font-size: 12px !important;
}

.lpv2-page .pol-v8-number-boxes {
    gap: 4px !important;
}

.lpv2-page .pol-v8-number-boxes span {
    width: 36px !important;
    height: 42px !important;
    border-radius: 6px !important;
    font-size: 24px !important;
    box-shadow: inset 0 0 0 1px rgba(28, 153, 255, .25), 0 5px 9px rgba(0, 55, 139, .16) !important;
}

.lpv2-page .pol-v8-type-name {
    font-size: 12px !important;
    line-height: 1.1 !important;
}

.lpv2-page .pol-v8-type-name::after {
    width: 16px !important;
    height: 7px !important;
}

.lpv2-page .pol-v8-info-side {
    gap: 5px !important;
}

.lpv2-page .pol-v8-mini-grid {
    gap: 5px !important;
}

.lpv2-page .pol-v8-mini-card {
    min-height: 48px !important;
    border-radius: 7px !important;
    gap: 1px !important;
}

.lpv2-page .pol-v8-mini-card span {
    font-size: 11.5px !important;
}

.lpv2-page .pol-v8-mini-card b {
    font-size: 18px !important;
}

.lpv2-page .pol-v8-result-number,
.lpv2-page .pol-v8-line-result {
    min-height: 38px !important;
    padding: 6px 9px !important;
    border-radius: 7px !important;
}

.lpv2-page .pol-v8-result-number {
    gap: 0 !important;
}

.lpv2-page .pol-v8-result-number span,
.lpv2-page .pol-v8-line-result span {
    font-size: 11.5px !important;
}

.lpv2-page .pol-v8-result-number b {
    font-size: 16px !important;
}

.lpv2-page .pol-v8-line-result b {
    font-size: 18px !important;
}

.lpv2-page .pol-v8-card-check {
    width: 20px !important;
    height: 20px !important;
    right: 9px !important;
}



html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #050016 !important;
    font-size: var(--base-font-size);
    font-family: "Kanit", "Tahoma", "sans-serif";
    font-weight: 300 !important;
}
}

#app {
    min-height: 100vh;
    background: #050016;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.material-icons {
    font-size: 8px; /* ขนาดไอคอนที่เล็กลง */
    color: #FF5722; /* เปลี่ยนสี */
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===== Fix LotteryPol font too bold ===== */
.lpv2-pol-no {
    font-weight: 600 !important;
}

.lpv2-lotto-line,
.lpv2-lotto-line b {
    font-weight: 500 !important;
}

.lpv2-date {
    font-weight: 400 !important;
}

.lpv2-stats small {
    font-weight: 400 !important;
}

.lpv2-stats strong {
    font-weight: 600 !important;
}

.lpv2-view-more {
    font-weight: 500 !important;
}

.lpv2-status {
    font-weight: 500 !important;
}

.lpv2-selected-text b {
    font-weight: 600 !important;
}

.lpv2-selected-text small {
    font-weight: 400 !important;
}

.lpv2-tab {
    font-weight: 500 !important;
}
/* ===== Make lottery picker text lighter ===== */
.lpv2-picker-name {
    font-weight: 500 !important;
}

.lpv2-selected-text b {
    font-weight: 500 !important;
}

.lpv2-selected-text small {
    font-weight: 400 !important;
}

.lpv2-section-label {
    font-weight: 600 !important;
}

.lpv2-search-box input {
    font-weight: 400 !important;
}

    .lpv2-search-box input::placeholder {
        font-weight: 400 !important;
    }

/* ถ้ามีข้อความใน item อื่น ๆ ให้บางลงด้วย */
.lpv2-picker-item,
.lpv2-picker-item span,
.lpv2-picker-item b,
.lpv2-picker-item strong {
    font-weight: 500 !important;
}
/* กำหนดการจัดเรียงเป็น grid */
/*.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);*/ /* 5 คอลัมน์ */
/*gap: 10px;*/ /* ช่องว่างระหว่างปุ่ม */
/*}*/

/* กำหนดรูปแบบปุ่ม */
/*.grid-item {
    text-align: center;
}

.button {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: lightblue;
    cursor: pointer;
}

    .button.selected {
        background-color: lightgreen;*/ /* เมื่อปุ่มถูกเลือก */
/*}*/


/* กำหนดกริดเบื้องต้น */
/*.grid-containerpc {
    display: grid;
    grid-template-columns: repeat(5, 1fr);*/ /* 5 คอลัมน์บนมือถือ */
/*gap: 10px;
}*/

/* ปรับให้ 10 คอลัมน์เมื่อเป็นหน้าจอใหญ่ */
/*@media (min-width: 768px) {
    .grid-containerpc {
        grid-template-columns: repeat(10, 1fr);*/ /* 10 คอลัมน์บน PC */
/*}
}*/

/* กำหนดการตกแต่งสำหรับปุ่มในแต่ละกริด */
/*.grid-itempc {
    text-align: center;
}*/


.grid-container2 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
}

.grid-containerpc2 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
}

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


.grid-item {
    text-align: center;
}


.grid-itempc {
    text-align: center;
}

/* ********************************************** */

.grid-container3 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
}

.grid-containerpc3 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
}

@media (min-width: 768px) {
    .grid-container3 {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        gap: 1px;
    }

    .grid-containerpc3 {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* ********************************************** */
.grid-containerRun {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
}


@media (min-width: 768px) {
    .grid-containerRun {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        gap: 1px;
    }
}






/* ป้องกันไม่ให้ตารางย่อ */
.custom-table {
    width: 100%; /* ขยายให้เต็มหน้าจอ */
    table-layout: fixed; /* ให้คอลัมน์มีขนาดคงที่ */
    overflow-x: auto; /* ถ้าข้อมูลเกินขนาด จะเลื่อนขวาได้ */
}

    /* ป้องกันการแยกแถวใหม่ในมือถือ */
    .custom-table th, .custom-table td {
        white-space: nowrap; /* ป้องกันการตัดบรรทัดใหม่ */
        padding: 8px; /* เพิ่มพื้นที่ในเซลล์ */
    }

/* ปรับขนาดฟอนต์สำหรับหน้าจอเล็ก */
@media (max-width: 768px) {
    .custom-table {
        font-size: 14px; /* ลดขนาดฟอนต์ */
    }
}



.paging-controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

    .paging-controls button {
        margin: 0 5px;
        padding: 5px 10px;
        cursor: pointer;
    }

    .paging-controls .active {
        background-color: #007bff;
        color: white;
    }

    .paging-controls button:disabled {
        background-color: #e0e0e0;
        cursor: not-allowed;
    }

    .paging-controls button {
        font-size: 14px;
    }





/**---------------------------------------------**/


/**---------------------------------------------**/

.lux-login-page {
    position: relative;
    min-height: 100dvh;
    padding: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% -10%, rgba(255, 190, 80, 0.22), transparent 32%), radial-gradient(circle at 85% 85%, rgba(111, 66, 255, 0.23), transparent 30%), linear-gradient(145deg, #02030a 0%, #070817 42%, #100720 100%);
}

.lux-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
    pointer-events: none;
}

.lux-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(32px);
    opacity: .75;
    animation: luxFloat 7s ease-in-out infinite;
}

.orb-a {
    width: 230px;
    height: 230px;
    left: -80px;
    top: 8%;
    background: rgba(255, 166, 0, .28);
}

.orb-b {
    width: 260px;
    height: 260px;
    right: -90px;
    bottom: 6%;
    background: rgba(83, 54, 255, .3);
    animation-delay: 1.5s;
}

.lux-login-container {
    position: relative;
    z-index: 3;
}

.lux-login-card {
    position: relative;
    overflow: hidden;
    padding: 30px 30px 28px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(25, 25, 38, .92), rgba(8, 9, 18, .96));
    border: 1px solid rgba(255, 213, 128, .26);
    box-shadow: 0 35px 90px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.12);
    color: white;
}

    .lux-login-card::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 1px;
        border-radius: 34px;
        background: linear-gradient(135deg, rgba(255, 210, 120, .8), transparent 28%, rgba(120, 90, 255, .55));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

.lux-card-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 190, 80, .28);
    filter: blur(46px);
    pointer-events: none;
}

.lux-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lux-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 213, 128, .11);
    border: 1px solid rgba(255, 213, 128, .28);
    color: #ffd98b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.lux-install-btn {
    color: #ffd98b !important;
    background: rgba(255, 213, 128, .1) !important;
    border: 1px solid rgba(255, 213, 128, .24) !important;
}

.lux-logo-box {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.lux-logo {
    width: 86px;
    height: 86px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 1000;
    letter-spacing: -1px;
    color: #15100a;
    background: linear-gradient(145deg, #fff4c2, #ffbf3d 48%, #a66a00);
    box-shadow: 0 18px 45px rgba(255, 174, 40, .35), inset 0 2px 8px rgba(255,255,255,.7);
    animation: luxLogoPulse 3.2s ease-in-out infinite;
}

.lux-brand {
    margin-top: 18px;
    font-weight: 1000 !important;
    letter-spacing: .5px;
    background: linear-gradient(180deg, #fff8d8, #ffbf3d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lux-subtitle {
    margin-top: 4px;
    margin-bottom: 24px;
    color: rgba(255,255,255,.68);
}

/* ===== FIX MudTextField ===== */

.lux-input {
    margin-bottom: 14px;
}

    .lux-input .mud-input-control {
        margin-top: 0 !important;
    }

    .lux-input .mud-input-root {
        color: white !important;
        background: rgba(255,255,255,.075) !important;
        border-radius: 14px !important;
        min-height: 54px !important;
    }

    .lux-input .mud-input-slot {
        min-height: 54px !important;
        padding: 0 12px !important;
        align-items: center !important;
    }

    .lux-input input {
        color: white !important;
        height: 54px !important;
        line-height: 54px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .lux-input .mud-input-label {
        color: rgba(255,255,255,.68) !important;
    }

        .lux-input .mud-input-label.mud-input-label-animated.mud-input-label-outlined {
            background: #171824 !important;
            padding: 0 6px !important;
        }

    .lux-input .mud-input-outlined-border {
        border-color: rgba(255, 213, 128, .28) !important;
        border-radius: 14px !important;
    }

    .lux-input .mud-input-root:hover .mud-input-outlined-border {
        border-color: rgba(255, 213, 128, .55) !important;
    }

    .lux-input .mud-input-root.mud-focused .mud-input-outlined-border {
        border-color: #ffd98b !important;
        border-width: 1px !important;
    }

    .lux-input .mud-input-adornment .mud-icon-root {
        color: #ffd98b !important;
        font-size: 22px !important;
    }

    .lux-input .mud-input-helper-text {
        color: #ff6b6b !important;
        margin-left: 8px !important;
        margin-top: 4px !important;
    }

/* ========================== หน้า login */

.lux-options {
    margin: 2px 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffd98b !important;
}

    .lux-options a {
        color: #ffd98b !important;
        font-weight: 800;
    }

.lux-login-btn {
    height: 56px;
    border-radius: 18px;
    color: #120c00;
    font-size: 19px;
    font-weight: 1000;
    background: linear-gradient(135deg, #fff0a8, #ffbf3d 45%, #ff8a00);
    box-shadow: 0 16px 34px rgba(255, 154, 0, .32), inset 0 1px 0 rgba(255,255,255,.8);
}

    .lux-login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 42px rgba(255, 154, 0, .45), inset 0 1px 0 rgba(255,255,255,.8);
    }

.lux-divider {
    margin: 24px 0 18px;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,.42);
    font-size: 13px;
    font-weight: 800;
}

    .lux-divider::before,
    .lux-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    }

    .lux-divider span {
        padding: 0 12px;
    }

.lux-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lux-outline-btn {
    height: 46px;
    border-radius: 16px;
    color: #ffd98b !important;
    border-color: rgba(255, 213, 128, .28) !important;
    background: rgba(255,255,255,.045);
    font-weight: 900;
}

    .lux-outline-btn:hover {
        background: rgba(255, 213, 128, .1);
    }

@keyframes luxFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-22px) scale(1.05);
    }
}

@keyframes luxLogoPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 18px 45px rgba(255, 174, 40, .35), inset 0 2px 8px rgba(255,255,255,.7);
    }

    50% {
        transform: translateY(-6px) scale(1.03);
        box-shadow: 0 24px 60px rgba(255, 174, 40, .5), inset 0 2px 8px rgba(255,255,255,.7);
    }
}

@media (max-width: 600px) {
    .lux-login-page {
        height: 100dvh;
        padding: 10px;
    }

    .lux-login-card {
        padding: 20px 18px;
        border-radius: 28px;
    }

    .lux-logo-box {
        margin-top: 14px;
    }

    .lux-logo {
        width: 66px;
        height: 66px;
        border-radius: 22px;
        font-size: 22px;
    }

    .lux-brand {
        font-size: 32px !important;
        margin-top: 12px;
    }

    .lux-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .lux-input {
        margin-bottom: 9px;
    }

        .lux-input .mud-input-root {
            min-height: 48px !important;
            border-radius: 14px !important;
        }

        .lux-input .mud-input-slot {
            min-height: 48px !important;
        }

        .lux-input input {
            height: 48px !important;
            line-height: 48px !important;
        }

    .lux-options {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .lux-login-btn {
        height: 48px;
        font-size: 17px;
    }

    .lux-divider {
        margin: 16px 0 12px;
    }

    .lux-outline-btn {
        height: 42px;
        font-size: 13px;
    }
    /* FIX Chrome Autofill สีฟ้า */
    .lux-input input:-webkit-autofill,
    .lux-input input:-webkit-autofill:hover,
    .lux-input input:-webkit-autofill:focus,
    .lux-input input:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 1000px #252632 inset !important;
        -webkit-text-fill-color: white !important;
        caret-color: white !important;
        border-radius: 14px !important;
        transition: background-color 9999s ease-in-out 0s !important;
    }
    /* FIX input กรอกแล้วไม่เต็มช่อง */
    .lux-input .mud-input-slot {
        width: 100% !important;
    }

        .lux-input .mud-input-slot input,
        .lux-input .mud-input-input {
            width: 100% !important;
            max-width: none !important;
            flex: 1 1 auto !important;
            display: block !important;
            background: transparent !important;
        }
}

/* ==========หน้า register */

.lux-register-page {
    min-height: 100vh;
    padding: 18px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(255, 193, 7, .20), transparent 32%), radial-gradient(circle at bottom right, rgba(255, 152, 0, .18), transparent 35%), linear-gradient(135deg, #08080d 0%, #151522 50%, #090910 100%);
}

.lux-register-wrap {
    position: relative;
    z-index: 2;
}

.lux-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .75;
    pointer-events: none;
}

.reg-orb-a {
    width: 230px;
    height: 230px;
    top: -70px;
    left: -60px;
    background: radial-gradient(circle, rgba(255, 193, 7, .45), transparent 68%);
}

.reg-orb-b {
    width: 280px;
    height: 280px;
    right: -90px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(255, 111, 0, .36), transparent 68%);
}

.lux-register-card {
    border-radius: 28px !important;
    overflow: hidden;
    background: rgba(18, 18, 28, .86) !important;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}

.lux-register-content {
    padding: 30px 28px 28px !important;
}

.lux-register-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffca28, #ff8f00);
    box-shadow: 0 14px 35px rgba(255, 179, 0, .35);
}

.lux-register-logo-icon {
    color: #1b1200 !important;
    font-size: 38px !important;
}

.lux-register-title {
    color: #ffffff;
    font-weight: 800 !important;
    letter-spacing: .4px;
}

.lux-register-subtitle {
    color: rgba(255, 255, 255, .68);
    margin-top: 6px !important;
    margin-bottom: 22px !important;
}

.lux-register-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lux-input .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, .18) !important;
}

.lux-input .mud-input-root {
    color: #ffffff !important;
}

.lux-input .mud-input-label {
    color: rgba(255, 255, 255, .62) !important;
}

.lux-input .mud-input-adornment .mud-icon-root {
    color: #ffb300 !important;
}

.lux-input .mud-input-control {
    background: rgba(255, 255, 255, .06);
    border-radius: 14px;
}

.lux-input .mud-input-outlined:hover .mud-input-outlined-border {
    border-color: rgba(255, 193, 7, .6) !important;
}

.lux-input .mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: #ffb300 !important;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, .12);
}

.lux-security-box {
    margin: 2px 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 193, 7, .14), rgba(255, 152, 0, .06));
    border: 1px solid rgba(255, 193, 7, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.lux-security-label {
    color: rgba(255, 255, 255, .58);
    letter-spacing: .8px;
}

.lux-security-code {
    color: #ffca28;
    font-weight: 900 !important;
    letter-spacing: 6px;
    text-shadow: 0 0 18px rgba(255, 193, 7, .35);
    line-height: 1.15 !important;
}

.lux-register-btn {
    height: 48px;
    margin-top: 4px !important;
    border-radius: 15px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #201400 !important;
    background: linear-gradient(135deg, #ffd54f, #ff9800) !important;
    box-shadow: 0 16px 35px rgba(255, 152, 0, .28);
    text-transform: none !important;
}

    .lux-register-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 42px rgba(255, 152, 0, .38);
    }

@media (max-width: 600px) {
    .lux-register-page {
        padding: 14px;
        align-items: center;
    }

    .lux-register-content {
        padding: 24px 20px 22px !important;
    }

    .lux-register-title {
        font-size: 1.65rem !important;
    }

    .lux-security-code {
        font-size: 2.1rem !important;
    }
}


/* หน้า OTPVerify*/

.lux-otp-page {
    min-height: 100vh;
    padding: 18px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(255, 193, 7, .20), transparent 32%), radial-gradient(circle at bottom right, rgba(255, 152, 0, .18), transparent 35%), linear-gradient(135deg, #08080d 0%, #151522 50%, #090910 100%);
}

.lux-otp-wrap {
    position: relative;
    z-index: 2;
}

.lux-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .75;
    pointer-events: none;
}

.otp-orb-a {
    width: 230px;
    height: 230px;
    top: -70px;
    left: -60px;
    background: radial-gradient(circle, rgba(255, 193, 7, .45), transparent 68%);
}

.otp-orb-b {
    width: 280px;
    height: 280px;
    right: -90px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(255, 111, 0, .36), transparent 68%);
}

.lux-otp-card {
    border-radius: 28px !important;
    overflow: hidden;
    background: rgba(18, 18, 28, .86) !important;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}

.lux-otp-content {
    padding: 30px 28px 28px !important;
}

.lux-otp-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffca28, #ff8f00);
    box-shadow: 0 14px 35px rgba(255, 179, 0, .35);
}

.lux-otp-logo-icon {
    color: #1b1200 !important;
    font-size: 38px !important;
}

.lux-otp-title {
    color: #ffffff;
    font-weight: 800 !important;
}

.lux-otp-subtitle {
    color: rgba(255, 255, 255, .68);
    margin-top: 6px !important;
    margin-bottom: 24px !important;
    line-height: 1.6;
}

.lux-otp-grid {
    margin-bottom: 22px !important;
}

.lux-otp-input .mud-input-control {
    background: rgba(255, 255, 255, .06);
    border-radius: 14px;
}

.lux-otp-input input {
    height: 52px !important;
    text-align: center !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #ffca28 !important;
    padding: 0 !important;
}

.lux-otp-input .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, .18) !important;
    border-radius: 14px !important;
}

.lux-otp-input .mud-input-outlined:hover .mud-input-outlined-border {
    border-color: rgba(255, 193, 7, .6) !important;
}

.lux-otp-input .mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: #ffb300 !important;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, .12);
}

.lux-otp-btn {
    height: 48px;
    border-radius: 15px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #201400 !important;
    background: linear-gradient(135deg, #ffd54f, #ff9800) !important;
    box-shadow: 0 16px 35px rgba(255, 152, 0, .28);
    text-transform: none !important;
}

    .lux-otp-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 42px rgba(255, 152, 0, .38);
    }

@media (max-width: 600px) {
    .lux-otp-page {
        padding: 14px;
    }

    .lux-otp-content {
        padding: 24px 18px 22px !important;
    }

    .lux-otp-title {
        font-size: 1.65rem !important;
    }

    .lux-otp-input input {
        height: 48px !important;
        font-size: 22px !important;
    }
}

/*หน้า RegisterMember*/

.lux-member-page {
    min-height: 100vh;
    padding: 18px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(255, 193, 7, .20), transparent 32%), radial-gradient(circle at bottom right, rgba(255, 152, 0, .18), transparent 35%), linear-gradient(135deg, #08080d 0%, #151522 50%, #090910 100%);
}

.lux-member-wrap {
    position: relative;
    z-index: 2;
}

.lux-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .75;
    pointer-events: none;
}

.member-orb-a {
    width: 230px;
    height: 230px;
    top: -70px;
    left: -60px;
    background: radial-gradient(circle, rgba(255, 193, 7, .45), transparent 68%);
}

.member-orb-b {
    width: 280px;
    height: 280px;
    right: -90px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(255, 111, 0, .36), transparent 68%);
}

.lux-member-card {
    border-radius: 28px !important;
    overflow: hidden;
    background: rgba(18, 18, 28, .86) !important;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
}

.lux-member-content {
    padding: 30px 28px 28px !important;
}

.lux-member-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffca28, #ff8f00);
    box-shadow: 0 14px 35px rgba(255, 179, 0, .35);
}

.lux-member-logo-icon {
    color: #1b1200 !important;
    font-size: 38px !important;
}

.lux-member-title {
    color: #ffffff;
    font-weight: 800 !important;
}

.lux-member-subtitle {
    color: rgba(255, 255, 255, .68);
    margin-top: 6px !important;
    margin-bottom: 22px !important;
}

.lux-member-form {
    margin-top: 4px;
}

.lux-member-btn {
    height: 48px;
    margin-top: 6px !important;
    border-radius: 15px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #201400 !important;
    background: linear-gradient(135deg, #ffd54f, #ff9800) !important;
    box-shadow: 0 16px 35px rgba(255, 152, 0, .28);
    text-transform: none !important;
}

    .lux-member-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 42px rgba(255, 152, 0, .38);
    }

@media (max-width: 600px) {
    .lux-member-page {
        padding: 14px;
    }

    .lux-member-content {
        padding: 24px 20px 22px !important;
    }

    .lux-member-title {
        font-size: 1.65rem !important;
    }
}
/* หน้า addbank*/


.lux-bank-page {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: auto !important;
    padding: 10px;
    box-sizing: border-box;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.lux-bank-wrap {
    width: 100%;
    max-width: 560px;
    min-width: 0;
    box-sizing: border-box;
    margin: 10px auto 40px;
}

.lux-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .75;
    pointer-events: none;
}

.bank-orb-a {
    width: 230px;
    height: 230px;
    top: -70px;
    left: -60px;
    background: radial-gradient(circle, rgba(255, 193, 7, .45), transparent 68%);
}

.bank-orb-b {
    width: 220px;
    height: 220px;
    right: 0;
    bottom: 0;
}

.lux-bank-card {
    padding: 24px;
    border-radius: 28px !important;
    background: rgba(18, 18, 28, .90) !important;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 28px 80px rgba(0,0,0,.55);
    backdrop-filter: blur(18px);
}

.lux-bank-header {
    text-align: center;
    margin-bottom: 18px;
}

.lux-bank-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ffca28, #ff8f00);
    box-shadow: 0 14px 35px rgba(255,179,0,.35);
}

.lux-bank-logo-icon {
    color: #1b1200 !important;
    font-size: 38px !important;
}

.lux-bank-title {
    color: #fff;
    font-weight: 800 !important;
}

.lux-bank-subtitle {
    color: rgba(255,255,255,.65);
}

.lux-alert-box {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #ffd54f;
    font-size: 13px;
    line-height: 1.8;
    background: rgba(255,193,7,.10);
    border: 1px solid rgba(255,193,7,.24);
}

.lux-section-title {
    color: #fff;
    font-weight: 700 !important;
    margin: 16px 0 12px !important;
}

.lux-bank-grid {
    margin-bottom: 8px !important;
}

.lux-bank-choice {
    height: 108px !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.07) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    transition: all .22s ease;
    text-transform: none !important;
}

    .lux-bank-choice:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,.10) !important;
    }

.lux-bank-choice-selected {
    background: linear-gradient(135deg, rgba(255,213,79,.34), rgba(255,152,0,.22)) !important;
    border: 2px solid #ffb300 !important;
    box-shadow: 0 0 0 2px rgba(255,179,0,.16), 0 0 18px rgba(255,179,0,.28);
}

.lux-bank-choice-inner {
    height: 100%;
    width: 100%;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
}

.lux-bank-logo-img {
    border-radius: 14px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

.lux-input .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, .18) !important;
}

.lux-input .mud-input-root {
    color: #ffffff !important;
}

.lux-input .mud-input-label {
    color: rgba(255, 255, 255, .62) !important;
}

.lux-input .mud-input-adornment .mud-icon-root {
    color: #ffb300 !important;
}

.lux-input .mud-input-control {
    background: rgba(255, 255, 255, .06);
    border-radius: 14px;
}

.lux-bank-btn {
    height: 48px;
    margin-top: 8px !important;
    border-radius: 15px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #201400 !important;
    background: linear-gradient(135deg, #ffd54f, #ff9800) !important;
    box-shadow: 0 16px 35px rgba(255,152,0,.28);
    text-transform: none !important;
}

    .lux-bank-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 42px rgba(255,152,0,.38);
    }

@media (max-width: 600px) {
    .lux-bank-page {
        padding: 10px;
    }

    .lux-bank-wrap {
        margin: 10px auto 40px;
    }

    .lux-bank-card {
        padding: 20px 16px;
    }

    .lux-bank-choice {
        height: 96px !important;
    }

    .lux-bank-choice-inner {
        font-size: 11px;
    }

    * {
        box-sizing: border-box;
    }

    .lux-bank-page {
        max-width: 100%;
        overflow-x: clip !important;
    }

    .lux-bank-card {
        max-width: 100%;
        overflow: hidden;
    }
}

/* หน้า Home */
.home-page {
    padding: 14px;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(255, 193, 7, .18), transparent 34%), linear-gradient(180deg, #090b14 0%, #111827 100%);
}

.hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px;
    margin-bottom: 16px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #171923, #2d1b69, #7c2d12);
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

.welcome {
    color: #facc15;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero-card h2 {
    margin: 6px 0;
    font-size: 26px;
    font-weight: 900;
}

.hero-card p {
    margin: 0;
    color: #d1d5db;
}

.hero-badge {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #111827;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.balance-grid,
.action-grid,
.menu-grid {
    margin-bottom: 14px;
}

.balance-card {
    padding: 18px;
    border-radius: 22px;
    color: #fff;
    min-height: 125px;
    box-shadow: 0 14px 34px rgba(0,0,0,.25);
}

    .balance-card.cash {
        background: linear-gradient(135deg, #064e3b, #10b981);
    }

    .balance-card.coupon {
        background: linear-gradient(135deg, #1e3a8a, #38bdf8);
    }

.balance-top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255,255,255,.9);
}

.icon-box {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.18);
}

.balance-value {
    margin-top: 16px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: .5px;
}

.main-action,
.menu-card {
    width: 100%;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    color: #fff;
    transition: .2s ease;
}

.main-action {
    height: 86px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 21px;
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(0,0,0,.28);
}

    .main-action.deposit {
        background: linear-gradient(135deg, #f59e0b, #ef4444);
    }

    .main-action.withdraw {
        background: linear-gradient(135deg, #06b6d4, #2563eb);
    }

.menu-card {
    height: 82px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
}

    .main-action:hover,
    .menu-card:hover {
        transform: translateY(-3px);
        filter: brightness(1.08);
    }

.news-card {
    padding: 18px;
    border-radius: 24px;
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 14px 34px rgba(0,0,0,.25);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

    .section-title span {
        font-size: 20px;
        font-weight: 900;
    }

    .section-title small {
        color: #facc15;
    }

.news-item {
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #e5e7eb;
}

@media (max-width: 600px) {
    .home-page {
        padding: 10px;
    }

    .hero-card {
        padding: 18px;
        border-radius: 20px;
    }

        .hero-card h2 {
            font-size: 22px;
        }

    .hero-badge {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }

    .balance-value {
        font-size: 28px;
    }

    .main-action {
        height: 76px;
        font-size: 18px;
        border-radius: 19px;
    }

    .menu-card {
        height: 74px;
        font-size: 17px;
    }
}

/* หน้า Lotto*/
.lotto-page {
    padding: 12px;
}

.lotto-header {
    margin-bottom: 20px;
}

    .lotto-header h3 {
        color: white;
        font-size: 28px;
        font-weight: 900;
        margin: 0;
    }

    .lotto-header p {
        color: #cbd5e1;
        margin-top: 4px;
    }

.lotto-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 140px;
    border-radius: 28px;
    cursor: pointer;
    padding: 24px;
    transition: .25s;
    color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

    .lotto-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 25px 45px rgba(0,0,0,.35);
    }

.yiki5 {
    background: linear-gradient( 135deg, #f59e0b, #ef4444);
}

.yiki15 {
    background: linear-gradient( 135deg, #06b6d4, #2563eb);
}

.lotto-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.lotto-title {
    font-size: 24px;
    font-weight: 900;
}

.lotto-subtitle {
    margin-top: 4px;
    font-size: 18px;
    opacity: .95;
}

.lotto-status {
    margin-top: 12px;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .lotto-card {
        min-height: 110px;
        padding: 18px;
    }

    .lotto-title {
        font-size: 20px;
    }

    .lotto-subtitle {
        font-size: 15px;
    }

    .lotto-icon {
        width: 58px;
        height: 58px;
        font-size: 28px;
    }
}

/*Selected User*/

.user-list {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.user-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    cursor: pointer;
    transition: .2s ease;
}

    .user-card:hover,
    .user-card.active {
        border-color: #ffb300;
        background: rgba(255,179,0,.12);
    }

.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffe89a, #ff9500);
    color: #111;
    font-weight: 900;
    font-size: 20px;
}

.user-info {
    display: grid;
}

    .user-info strong {
        color: #fff;
        font-size: 16px;
    }

    .user-info span {
        color: rgba(255,255,255,.55);
        font-size: 13px;
    }

.user-check {
    margin-left: auto;
    color: #ffb300 !important;
}

.selected-user-box {
    margin: 14px 0 18px;
    padding: 13px 15px;
    border-radius: 16px;
    background: rgba(255,179,0,.10);
    border: 1px solid rgba(255,179,0,.25);
    display: flex;
    justify-content: space-between;
}

    .selected-user-box span {
        color: rgba(255,255,255,.55);
    }

    .selected-user-box strong {
        color: #ffd36a;
    }

/* forgotpassword*/
.captcha-box {
    width: 100%;
    height: 64px;
    border: 1.5px solid #111;
    border-radius: 8px;
    background: #fff;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 12px;
    font-family: Georgia, serif;
    margin: 12px 0 14px;
}

.forgot-label {
    font-size: 20px;
    font-weight: 800;
    color: #050505;
    margin-bottom: 8px;
}

.forgot-page {
    min-height: 100vh;
    width: 100%;
    margin: 0 !important;
    padding: 18px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 15% 10%, rgba(255, 197, 74, .22), transparent 32%), radial-gradient(circle at 90% 85%, rgba(88, 92, 255, .30), transparent 34%), linear-gradient(135deg, #f8fbff 0%, #eef4ff 45%, #eaf2ff 100%);
}

.forgot-container {
    position: relative;
    z-index: 2;
}

.forgot-card {
    position: relative;
    width: 100%;
    border-radius: 28px;
    padding: 32px 28px 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 24px 70px rgba(31, 45, 80, .18), inset 0 1px 0 rgba(255, 255, 255, .95);
    backdrop-filter: blur(18px);
}

.forgot-logo {
    width: 74px;
    height: 74px;
    margin: 0 auto 14px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #17120a;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(145deg, #fff2ba, #ffb31f);
    box-shadow: 0 14px 28px rgba(255, 174, 20, .28), inset 0 2px 0 rgba(255, 255, 255, .65);
}

.forgot-title {
    color: #121826;
    font-weight: 900 !important;
    letter-spacing: -.5px;
}

.forgot-subtitle {
    margin-top: 4px;
    color: #64748b;
    font-weight: 600;
}

.forgot-step-box {
    margin: 24px 0 20px;
    padding: 14px;
    border-radius: 20px;
    display: flex;
    gap: 14px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f4f7ff);
    border: 1px solid #e6ecf7;
    box-shadow: 0 10px 30px rgba(30, 41, 59, .08);
}

.forgot-icon-box {
    min-width: 54px;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(145deg, #4facfe, #2563eb);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

.forgot-step-title {
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.forgot-step-desc {
    margin-top: 2px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.forgot-label {
    margin: 12px 0 8px;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
}

.forgot-label-space {
    margin-top: 18px;
}

.forgot-input {
    background: #ffffff;
    border-radius: 16px;
}

    .forgot-input .mud-input-root {
        min-height: 54px;
    }

    .forgot-input .mud-input-outlined-border {
        border-color: #d9e2ef !important;
        border-radius: 16px !important;
    }

    .forgot-input .mud-input-slot {
        color: #111827 !important;
        font-weight: 700;
    }

    .forgot-input .mud-input-label {
        color: #94a3b8 !important;
        font-weight: 600;
    }

    .forgot-input .mud-input-adornment-start {
        color: #2563eb !important;
    }

.captcha-box {
    width: 100%;
    height: 66px;
    margin: 8px 0 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #dbe5f3;
    color: #71717a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 14px;
    font-family: Georgia, serif;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.forgot-next-btn {
    height: 54px;
    margin-top: 18px;
    border-radius: 16px;
    color: #2a1a00 !important;
    font-size: 17px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffe58a, #ff9f0a) !important;
    box-shadow: 0 16px 32px rgba(255, 159, 10, .26);
}

.forgot-back-btn {
    margin-top: 10px;
    color: #64748b !important;
    font-weight: 700;
}

.forgot-bg-circle {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: .75;
}

.circle-1 {
    width: 240px;
    height: 240px;
    top: -80px;
    left: -80px;
    background: rgba(255, 190, 70, .25);
}

.circle-2 {
    width: 300px;
    height: 300px;
    right: -120px;
    bottom: -120px;
    background: rgba(69, 123, 255, .22);
}

@media (max-width: 600px) {
    .forgot-page {
        padding: 12px;
        align-items: flex-start !important;
    }

    .forgot-card {
        padding: 26px 20px 20px;
        border-radius: 24px;
    }

    .forgot-title {
        font-size: 30px !important;
    }

    .captcha-box {
        height: 62px;
        font-size: 28px;
        letter-spacing: 11px;
    }
}
/* label ด้านบน */
.forgot-label {
    color: #ffffff !important;
    font-weight: 900;
}

/* กล่อง input ให้เป็นสีขาว */
.forgot-input .mud-input-root {
    background: #ffffff !important;
    border-radius: 16px !important;
    min-height: 56px;
    padding-left: 12px;
}

/* เส้นขอบ input */
.forgot-input .mud-input-outlined-border {
    border-color: #ffffff !important;
    border-radius: 16px !important;
}

/* ตัวอักษรที่พิมพ์ */
.forgot-input input {
    color: #111827 !important;
    font-weight: 800 !important;
}

/* label ในช่อง */
.forgot-input .mud-input-label {
    color: #94a3b8 !important;
    font-weight: 700 !important;
}

/* placeholder */
.forgot-input input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

/* icon หน้า input */
.forgot-input .mud-input-adornment-start {
    color: #2563eb !important;
}

.forgot-label {
    color: #ffffff !important;
    font-weight: 900;
}

.forgot-input .mud-input-root {
    background: #ffffff !important;
    border-radius: 16px !important;
}

.forgot-input input {
    color: #111827 !important;
    font-weight: 800 !important;
}

.forgot-input .mud-input-label {
    color: #94a3b8 !important;
}

.forgot-input .mud-input-outlined-border {
    border-color: #ffffff !important;
    border-radius: 16px !important;
}

/*-------------------*/




.lucky10-page {
    min-height: calc(100vh - 70px);
    padding-bottom: 96px !important;
    background: radial-gradient(circle at 82% 15%, rgba(96, 165, 250, .45), transparent 28%), linear-gradient(180deg, #062b83 0%, #0641c7 46%, #062c85 78%, #071944 100%);
    color: white;
}

.top-title {
    margin-bottom: 13px;
}

.back-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .16) !important;
    color: white !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}

.page-title {
    color: white;
    font-weight: 950;
}

/* HERO */
.hero-card {
    position: relative;
    border-radius: 24px !important;
    padding: 14px;
    margin-bottom: 18px;
    overflow: hidden;
    cursor: pointer;
    background: radial-gradient(circle at 82% 22%, rgba(83, 121, 255, .75), transparent 33%), linear-gradient(135deg, #0753df 0%, #07329f 52%, #061f66 100%) !important;
    border: 1px solid rgba(147, 197, 253, .55);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    grid-template-areas:
        "left right"
        "action action";
    column-gap: 10px;
    row-gap: 10px;
    position: relative;
    z-index: 1;
}

.hero-left {
    grid-area: left;
    min-width: 0;
}

.hero-right {
    grid-area: right;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.current-badge {
    display: inline-flex;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(59, 130, 246, .4);
}

.hero-round {
    margin-top: 12px;
    white-space: nowrap;
    font-size: 40px;
    line-height: 1;
    font-weight: 950;
    color: white;
    letter-spacing: -.8px;
}

    .hero-round span {
        color: #facc15;
        font-size: 1.18em;
    }

.hero-close {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    font-weight: 700;
}

    .hero-close .mud-icon-root {
        color: #ff3b7f;
    }

    .hero-close b {
        color: #facc15;
    }

.hero-small-label {
    margin-top: 17px;
    font-size: 14px;
    font-weight: 850;
    color: rgba(255, 255, 255, .88);
}

.hero-time {
    margin-top: 3px;
    white-space: nowrap;
    font-size: 58px;
    line-height: .95;
    font-weight: 950;
    color: white;
    letter-spacing: -1.5px;
    text-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

/* LOTTO MACHINE */
.lotto-machine {
    width: 140px;
    height: 132px;
    position: relative;
    margin-top: 6px;
}

.glass-ball {
    position: absolute;
    right: 0;
    top: 6px;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    background: radial-gradient(circle at 38% 30%, rgba(255, 255, 255, .9), rgba(125, 211, 252, .32) 33%, rgba(15, 23, 42, .88) 68%), linear-gradient(135deg, #38bdf8, #fb923c);
    border: 4px solid rgba(255, 255, 255, .22);
    box-shadow: 0 0 24px rgba(59, 130, 246, .88), 0 0 24px rgba(251, 146, 60, .35);
}

    .glass-ball::after {
        content: "";
        position: absolute;
        inset: -10px;
        border-radius: 999px;
        border: 5px solid rgba(251, 146, 60, .78);
        border-left-color: rgba(56, 189, 248, .95);
        border-bottom-color: rgba(56, 189, 248, .22);
        transform: rotate(-20deg);
    }

.ball {
    position: absolute;
    z-index: 2;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 7px 10px rgba(0, 0, 0, .25);
}

.b1 {
    left: 45px;
    top: 62px;
    background: #fde68a;
}

.b2 {
    left: 57px;
    top: 32px;
    background: #bfdbfe;
}

.b3 {
    left: 76px;
    top: 56px;
    background: #fca5a5;
}

.b4 {
    left: 25px;
    top: 52px;
    background: #86efac;
}

/* ACTION */
.hero-action {
    grid-area: action;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: #111827;
    box-shadow: 0 14px 22px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.action-icon {
    font-size: 36px !important;
    color: #111827;
}

.action-title {
    font-size: 18px;
    font-weight: 950;
    line-height: 1.1;
}

.action-sub {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 750;
    color: rgba(17, 24, 39, .88);
}

.action-arrow {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .action-arrow .mud-icon-root {
        color: #111827;
    }

/* SECTION */
.section-row {
    margin: 12px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    color: white;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.1;
}

.auto-badge {
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(147, 197, 253, .28);
    color: white;
    font-size: 13px;
    font-weight: 850;
}

.latest-title {
    margin-top: 18px;
    margin-bottom: 10px;
}

/* NEXT CARD */
.next-card {
    min-height: 68px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px 112px 22px;
    align-items: center;
    gap: 8px;
    border-radius: 17px !important;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .98) !important;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 13px 24px rgba(0, 0, 0, .16);
}

.next-round {
    font-size: 20px;
    font-weight: 950;
    color: #111827;
    line-height: 1.1;
}

.next-date,
.latest-date {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #475569;
    font-size: 13px;
    font-weight: 750;
}

    .next-date .mud-icon-root,
    .latest-date .mud-icon-root {
        color: #ff2f75;
    }

.next-mid {
    justify-self: center;
    padding: 6px 10px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 850;
}

.next-right {
    text-align: right;
}

.next-label {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.next-time {
    margin-top: 2px;
    color: #1f2937;
    font-size: 21px;
    line-height: 1;
    font-weight: 950;
}

.chev {
    color: #94a3b8 !important;
}

/* LATEST RESULT */
.latest-card {
    min-height: 74px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 160px 20px;
    align-items: center;
    gap: 10px;
    border-radius: 17px !important;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .98) !important;
    color: #0f172a;
    cursor: pointer;
    border-left: 6px solid #22c55e;
    box-shadow: 0 13px 24px rgba(0, 0, 0, .16);
}

.trophy {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    box-shadow: 0 10px 18px rgba(34, 197, 94, .25);
}

.latest-round {
    font-size: 20px;
    font-weight: 950;
    color: #111827;
    line-height: 1.1;
}

.latest-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.result-col {
    text-align: center;
}

    .result-col:first-child {
        border-right: 1px solid #cbd5e1;
    }

.result-label {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.result-num {
    margin-top: 2px;
    color: #16a34a;
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
}

/* CLOSED */
.closed-next {
    opacity: .95;
}

.closed-pill {
    background: #e5e7eb;
    color: #475569;
}

.closed-status {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

    .closed-status .mud-icon-root {
        display: block;
        margin: 0 auto 2px;
        color: #94a3b8;
    }

/* LOADING */
.loading-card {
    min-height: 220px;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, .96) !important;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* MOBILE */
@media (max-width: 430px) {
    .lucky10-page {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hero-card {
        padding: 13px;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 132px;
        column-gap: 4px;
    }

    .hero-round {
        font-size: 38px;
    }

    .hero-time {
        font-size: 50px;
    }

    .lotto-machine {
        width: 128px;
        height: 126px;
    }

    .glass-ball {
        width: 104px;
        height: 104px;
        top: 9px;
    }

        .glass-ball::after {
            inset: -9px;
            border-width: 5px;
        }

    .ball {
        width: 23px;
        height: 23px;
        font-size: 10px;
    }

    .b1 {
        left: 40px;
        top: 55px;
    }

    .b2 {
        left: 50px;
        top: 29px;
    }

    .b3 {
        left: 68px;
        top: 49px;
    }

    .b4 {
        left: 23px;
        top: 46px;
    }

    .hero-action {
        grid-template-columns: 38px 1fr 38px;
        padding: 10px 11px;
    }

    .action-title {
        font-size: 17px;
    }

    .action-sub {
        font-size: 12px;
    }

    .next-card {
        grid-template-columns: minmax(0, 1fr) 76px 96px 18px;
        padding: 10px;
    }

    .next-round {
        font-size: 18px;
    }

    .next-date,
    .latest-date {
        font-size: 12px;
    }

    .next-mid {
        font-size: 11px;
        padding: 5px 8px;
    }

    .next-label {
        font-size: 11px;
    }

    .next-time {
        font-size: 18px;
    }

    .latest-card {
        grid-template-columns: 46px minmax(0, 1fr) 132px 18px;
        padding: 10px;
    }

    .trophy {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .latest-round {
        font-size: 18px;
    }

    .result-label {
        font-size: 11px;
    }

    .result-num {
        font-size: 21px;
    }
}

@media (max-width: 370px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr) 104px;
    }

    .hero-round {
        font-size: 34px;
    }

    .hero-time {
        font-size: 43px;
    }

    .lotto-machine {
        width: 102px;
    }

    .glass-ball {
        width: 86px;
        height: 86px;
    }

    .hero-action {
        grid-template-columns: 1fr 36px;
    }

    .action-icon {
        display: none !important;
    }

    .next-card {
        grid-template-columns: minmax(0, 1fr) 84px 18px;
    }

    .next-mid {
        display: none;
    }

    .latest-card {
        grid-template-columns: 42px minmax(0, 1fr) 105px 16px;
    }
}

.load-more-btn {
    margin-top: 12px !important;
    border-radius: 18px !important;
    height: 46px;
    background: linear-gradient(135deg, #fde047, #f59e0b) !important;
    color: #111827 !important;
    font-weight: 950 !important;
    box-shadow: 0 12px 22px rgba(0, 0, 0, .18);
}

.show-less-btn {
    margin-top: 12px !important;
    border-radius: 18px !important;
    height: 44px;
    color: white !important;
    border-color: rgba(255, 255, 255, .45) !important;
    font-weight: 900 !important;
    background: rgba(255, 255, 255, .08) !important;
}

/*--------------------------*/

.lucky-buy-page {
    min-height: calc(100vh - 70px);
    padding-bottom: 120px !important;
    background: radial-gradient(circle at 82% 12%, rgba(96, 165, 250, .42), transparent 28%), linear-gradient(180deg, #062b83 0%, #0641c7 42%, #062c85 76%, #071944 100%);
    color: white;
}

.buy-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 22px !important;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, .96) !important;
    color: #0f172a;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
}

.buy-back-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.buy-title {
    font-weight: 950;
    color: #0f172a;
    line-height: 1.1;
}

.buy-subtitle {
    color: #64748b;
    font-weight: 700;
}

.round-info-card {
    padding: 10px;
    border-radius: 22px !important;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, .13) !important;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.time-box {
    border-radius: 18px !important;
    padding: 12px 10px;
    text-align: center;
    color: white;
}

    .time-box .mud-typography-caption {
        color: rgba(255, 255, 255, .86);
        font-weight: 800;
    }

    .time-box .mud-typography-h6 {
        color: white;
        font-weight: 950;
        letter-spacing: .3px;
    }

.bet-time {
    background: linear-gradient(135deg, #ef4444, #f97316) !important;
}

.shoot-time {
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
}

.countdown-strip {
    height: 48px;
    border-radius: 18px !important;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ef4444, #f97316) !important;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 850;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}

    .countdown-strip b {
        font-size: 20px;
        font-weight: 950;
    }

.main-tabs-card {
    border-radius: 22px !important;
    overflow: hidden;
    background: rgba(255, 255, 255, .97) !important;
    color: #0f172a;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.buy-tabs .mud-tabs-toolbar {
    background: #eff6ff !important;
}

.buy-tabs .mud-tab {
    font-weight: 900 !important;
    color: #334155 !important;
}

    .buy-tabs .mud-tab.mud-tab-active {
        color: #1d4ed8 !important;
    }

.sub-tabs .mud-tabs-toolbar {
    background: white !important;
    border-bottom: 1px solid #e5e7eb;
}

.sub-tabs .mud-tab {
    font-weight: 900 !important;
}

.tab-body {
    min-height: 260px;
    padding: 10px;
    background: white !important;
}

.shooting-panel {
    padding-top: 16px;
}

.content-card {
    border-radius: 22px !important;
    overflow: hidden;
    background: rgba(255, 255, 255, .97) !important;
    color: #0f172a;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
}

.safe-bottom-space {
    height: 130px;
}

.buy-footer {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 78px;
    min-height: 74px;
    border-radius: 22px !important;
    padding: 12px;
    background: rgba(255, 255, 255, .98) !important;
    color: #0f172a;
    z-index: 900;
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .24);
}

.footer-title {
    font-weight: 950;
    color: #0f172a;
    line-height: 1.15;
}

.footer-subtitle {
    color: #64748b;
    font-weight: 750;
}

.footer-numbers {
    margin-top: 2px;
    color: #1d4ed8;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-btn {
    height: 44px;
    min-width: 104px;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #facc15, #f59e0b) !important;
    color: #111827 !important;
    font-weight: 950 !important;
    box-shadow: 0 10px 18px rgba(245, 158, 11, .26);
}

    .price-btn:disabled {
        background: #e5e7eb !important;
        color: #94a3b8 !important;
        box-shadow: none;
    }

@media (max-width: 430px) {
    .lucky-buy-page {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .buy-header {
        padding: 11px;
        border-radius: 20px !important;
    }

    .buy-title {
        font-size: 18px !important;
    }

    .time-box {
        padding: 10px 8px;
    }

        .time-box .mud-typography-h6 {
            font-size: 19px !important;
        }

    .tab-body {
        padding: 6px;
    }

    .buy-footer {
        left: 8px;
        right: 8px;
        bottom: 76px;
        border-radius: 20px !important;
    }

    .price-btn {
        min-width: 96px;
    }
}

.buy-tabs,
.sub-tabs {
    position: relative;
    z-index: 5;
}

    .buy-tabs .mud-tabs-toolbar,
    .sub-tabs .mud-tabs-toolbar {
        pointer-events: auto;
    }

    .buy-tabs .mud-tab,
    .sub-tabs .mud-tab {
        pointer-events: auto;
        cursor: pointer;
    }

.tab-body {
    position: relative;
    z-index: 1;
}

/*------------------------------*/

.result-page-x4 {
    min-height: calc(100vh - 150px);
    padding-bottom: 84px;
    color: #f6f8ff;
    background: radial-gradient(circle at 50% 0%, rgba(38, 116, 255, .8), transparent 32%), linear-gradient(180deg, #0750ef 0%, #073292 42%, #061633 100%);
    font-family: 'Noto Sans Thai', 'Kanit', sans-serif;
}

.result-container-x4 {
    max-width: 100%;
    margin: 0;
    padding: 22px 28px 28px;
}

.result-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.title-main {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -.4px;
}

.title-icon {
    font-size: 34px;
    filter: drop-shadow(0 8px 16px rgba(255, 197, 38, .25));
}

.last-update {
    border: none;
    outline: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: rgba(2, 22, 72, .42);
    color: #c9d8fb;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.category-tabs-x4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 0;
}

.category-tab-x4 {
    height: 82px;
    border: 1px solid rgba(140, 190, 255, .28);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, rgba(27, 92, 210, .86), rgba(8, 42, 124, .78));
    color: white;
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
    white-space: nowrap;
}

    .category-tab-x4.active {
        background: linear-gradient(135deg, #ffe071, #f5b313);
        color: #061936;
        box-shadow: 0 12px 28px rgba(246, 179, 19, .25);
    }

.cat-icon {
    font-size: 34px;
}

.sub-tabs-x4 {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    margin-bottom: 20px;
    padding: 0 6px 4px;
}

.sub-tab-x4 {
    min-width: 166px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(130, 176, 241, .25);
    background: rgba(2, 18, 62, .78);
    color: #dbe8ff;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    white-space: nowrap;
}

    .sub-tab-x4.active {
        background: linear-gradient(135deg, #ffe071, #f5b313);
        color: #081938;
        box-shadow: 0 10px 24px rgba(246, 179, 19, .28);
    }

.main-result-card {
    border-radius: 22px;
    border: 2px solid rgba(41, 175, 255, .95);
    background: radial-gradient(circle at 50% -20%, rgba(27, 113, 255, .52), transparent 38%), linear-gradient(180deg, rgba(8, 55, 145, .72), rgba(2, 20, 65, .92));
    box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 18px 44px rgba(0,0,0,.22);
    padding: 24px;
    margin-bottom: 20px;
}

.main-result-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.85fr 1.35fr;
    gap: 26px;
    align-items: center;
}

.round-panel {
    border-right: 1px solid rgba(255,255,255,.18);
    padding-right: 22px;
    text-align: center;
}

.round-label {
    color: #f2f5ff;
    font-size: 18px;
    font-weight: 900;
}

.round-number {
    color: #ffe071;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    margin-top: 8px;
}

.today-pill {
    display: inline-flex;
    margin-top: 10px;
    padding: 6px 14px;
    border-radius: 12px;
    background: rgba(77, 142, 231, .58);
    color: #eaf2ff;
    font-size: 18px;
    font-weight: 900;
}

.time-label {
    margin-top: 24px;
    color: #e8efff;
    font-size: 16px;
    font-weight: 800;
}

.result-time {
    margin-top: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    color: white;
}

    .result-time strong {
        font-size: 26px;
        font-weight: 900;
    }

.result-date {
    margin-top: 2px;
    color: #e3ebff;
    font-size: 16px;
    font-weight: 700;
}

.top3-panel {
    border-right: 1px solid rgba(255,255,255,.18);
    padding-right: 22px;
}

.number-title {
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 18px;
}

.digit-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.digit-box {
    width: 92px;
    height: 112px;
    border-radius: 13px;
    border: 1px solid rgba(92, 166, 255, .7);
    background: linear-gradient(180deg, #166df0, #092c85);
    color: white;
    font-size: 70px;
    line-height: 1;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -18px 24px rgba(0,0,0,.14);
}

.announce-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.announce-btn {
    min-width: 320px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 213, 92, .85);
    background: rgba(6, 30, 83, .62);
    color: #ffe071;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.summary-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-radius: 18px;
    border: 1px solid rgba(128, 177, 250, .32);
    background: rgba(5, 34, 99, .62);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.summary-item {
    min-height: 96px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border-right: 1px solid rgba(255,255,255,.16);
}

    .summary-item:last-child {
        border-right: none;
    }

.summary-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex: 0 0 auto;
}

.summary-label {
    color: #f5f7ff;
    font-size: 16px;
    font-weight: 900;
}

.summary-value {
    color: white;
    font-size: 26px;
    line-height: 1.05;
    font-weight: 900;
}

.summary-sub {
    color: #ccd8f4;
    font-size: 13px;
    font-weight: 700;
}

.history-card-x4 {
    border-radius: 22px;
    border: 1px solid rgba(128, 177, 250, .32);
    background: linear-gradient(180deg, rgba(7, 47, 124, .78), rgba(2, 20, 63, .88));
    padding: 20px;
    box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.history-head-x4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.history-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 900;
}

.view-all-btn {
    min-width: 108px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(166, 201, 255, .28);
    background: rgba(8, 38, 105, .58);
    color: white;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.history-table-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
}

.history-table-x4 {
    width: 100%;
    border-collapse: collapse;
}

    .history-table-x4 thead th {
        text-align: left;
        background: rgba(44, 107, 200, .55);
        color: #edf4ff;
        font-size: 15px;
        font-weight: 900;
        padding: 13px 18px;
    }

    .history-table-x4 tbody td {
        padding: 13px 18px;
        border-bottom: 1px solid rgba(255,255,255,.08);
        color: #f6f8ff;
        font-size: 17px;
        font-weight: 800;
        vertical-align: middle;
    }

.round-cell {
    font-size: 21px;
    font-weight: 900;
}

.latest-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 213, 92, .6);
    color: #ffe071;
    background: rgba(255, 213, 92, .12);
    font-size: 13px;
    font-weight: 900;
}

.time-cell {
    font-size: 18px;
    font-weight: 900;
}

.date-cell {
    color: #cbd8f5;
    font-size: 14px;
    font-weight: 600;
}

.number-cell {
    font-size: 22px !important;
    font-weight: 900 !important;
}

.spaced {
    letter-spacing: 8px;
}

.arrow-cell {
    font-size: 34px !important;
    text-align: right;
    color: white !important;
}

.more-history-btn {
    width: 100%;
    height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(166, 201, 255, .35);
    background: rgba(4, 26, 76, .52);
    color: white;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 18px;
}

.result-empty-card {
    border-radius: 22px;
    padding: 30px;
    background: rgba(2, 24, 78, .58);
    border: 1px solid rgba(128, 177, 250, .32);
    text-align: center;
    font-size: 18px;
    font-weight: 900;
}

    .result-empty-card.error {
        color: #ffd2d2;
        border-color: rgba(255, 93, 93, .5);
    }

.loader-x4 {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.25);
    border-top-color: #ffe071;
    margin: 0 auto 12px;
    animation: spin-x4 .8s linear infinite;
}

@keyframes spin-x4 {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .result-page-x4 {
        min-height: calc(100vh - 150px);
        padding-bottom: 84px;
    }

    .result-container-x4 {
        padding: 22px 28px;
    }

    .result-title-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .title-main {
        font-size: 28px;
    }

    .last-update {
        font-size: 14px;
        padding: 9px 14px;
    }

    .category-tabs-x4 {
        display: flex;
        overflow-x: auto;
        border-bottom: 1px solid rgba(255,255,255,.22);
        padding-bottom: 0;
        margin-bottom: 26px;
    }

    .category-tab-x4 {
        min-width: 205px;
        height: 74px;
        border-radius: 12px 12px 0 0;
        font-size: 24px;
    }

    .cat-icon {
        font-size: 32px;
    }

    .sub-tabs-x4 {
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 24px;
    }

    .sub-tab-x4 {
        min-width: 150px;
        flex: 1;
        height: 50px;
        font-size: 16px;
    }

    .main-result-card {
        padding: 22px;
    }

    .main-result-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .round-panel,
    .top3-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.16);
        padding-right: 0;
        padding-bottom: 22px;
    }

    .digit-box {
        width: 82px;
        height: 98px;
        font-size: 60px;
    }

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

    .summary-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.12);
        padding: 15px;
    }

    .history-title {
        font-size: 21px;
    }

    .history-table-wrap {
        overflow-x: auto;
    }

    .history-table-x4 {
        min-width: 760px;
    }
}

@media (max-width: 420px) {
    .result-container-x4 {
        padding: 20px 28px;
    }

    .category-tab-x4 {
        min-width: 205px;
    }

    .sub-tab-x4 {
        min-width: 145px;
    }

    .digit-box {
        width: 72px;
        height: 86px;
        font-size: 52px;
    }

    .summary-bar {
        grid-template-columns: 1fr;
    }
}





.result-page-x4 {
    min-height: calc(100vh - 145px) !important;
    padding-bottom: 82px !important;
    background: radial-gradient(circle at 50% 0%, rgba(34, 110, 255, .75), transparent 30%), linear-gradient(180deg, #0649db 0%, #062c86 45%, #06142d 100%) !important;
}

.result-container-x4 {
    width: 100% !important;
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 16px 16px 18px !important;
    box-sizing: border-box !important;
}

.result-title-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

.title-main {
    font-size: 20px !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.title-icon {
    font-size: 22px !important;
}

.last-update {
    font-size: 11px !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
}

.category-tabs-x4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    overflow: visible !important;
    border-bottom: 1px solid rgba(255,255,255,.24) !important;
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
}

.category-tab-x4 {
    min-width: 0 !important;
    height: 46px !important;
    border-radius: 9px 9px 0 0 !important;
    font-size: 14px !important;
    gap: 5px !important;
    padding: 0 6px !important;
}

    .category-tab-x4 .cat-icon,
    .cat-icon {
        font-size: 18px !important;
    }

.sub-tabs-x4 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    overflow: visible !important;
}

.sub-tab-x4 {
    min-width: 0 !important;
    width: 100% !important;
    height: 32px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
}

.main-result-card {
    border-radius: 14px !important;
    padding: 14px !important;
    margin-bottom: 10px !important;
    border: 1.5px solid rgba(41, 175, 255, .95) !important;
}

.main-result-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.45fr 1fr !important;
    gap: 10px !important;
    align-items: center !important;
}

.round-panel {
    padding-right: 10px !important;
    border-right: 1px solid rgba(255,255,255,.18) !important;
    border-bottom: none !important;
    text-align: center !important;
}

.round-label {
    font-size: 11px !important;
}

.round-number {
    font-size: 24px !important;
    margin-top: 4px !important;
}

.today-pill {
    font-size: 10px !important;
    padding: 3px 8px !important;
    border-radius: 7px !important;
    margin-top: 5px !important;
}

.time-label {
    margin-top: 10px !important;
    font-size: 10px !important;
}

.result-time strong {
    font-size: 13px !important;
}

.result-date {
    font-size: 10px !important;
}

.top3-panel {
    padding-right: 10px !important;
    border-right: 1px solid rgba(255,255,255,.18) !important;
    border-bottom: none !important;
}

.number-title {
    font-size: 13px !important;
    margin-bottom: 8px !important;
}

.digit-wrap {
    gap: 5px !important;
}

.digit-box {
    width: 43px !important;
    height: 54px !important;
    border-radius: 7px !important;
    font-size: 33px !important;
}

.announce-btn-wrap {
    margin-top: 10px !important;
}

.announce-btn {
    width: 210px !important;
    min-width: 0 !important;
    height: 28px !important;
    font-size: 11px !important;
}

.summary-bar {
    grid-template-columns: repeat(4, 1fr) !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
}

.summary-item {
    min-height: 58px !important;
    padding: 8px 10px !important;
    gap: 7px !important;
    border-right: 1px solid rgba(255,255,255,.14) !important;
    border-bottom: none !important;
}

.summary-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 16px !important;
}

.summary-label {
    font-size: 10px !important;
}

.summary-value {
    font-size: 15px !important;
}

.summary-sub {
    font-size: 9px !important;
}

.history-card-x4 {
    border-radius: 14px !important;
    padding: 12px !important;
}

.history-head-x4 {
    margin-bottom: 8px !important;
}

.history-title {
    font-size: 15px !important;
    gap: 5px !important;
}

.view-all-btn {
    min-width: 72px !important;
    height: 30px !important;
    font-size: 11px !important;
    border-radius: 9px !important;
}

.history-table-wrap {
    border-radius: 10px !important;
    overflow-x: visible !important;
}

.history-table-x4 {
    min-width: 0 !important;
    width: 100% !important;
}

    .history-table-x4 thead th {
        font-size: 10px !important;
        padding: 7px 8px !important;
    }

    .history-table-x4 tbody td {
        font-size: 11px !important;
        padding: 7px 8px !important;
    }

.round-cell {
    font-size: 13px !important;
}

.latest-badge {
    font-size: 8px !important;
    padding: 2px 5px !important;
    margin-left: 3px !important;
}

.time-cell {
    font-size: 11px !important;
}

.date-cell {
    font-size: 9px !important;
}

.number-cell {
    font-size: 13px !important;
}

.spaced {
    letter-spacing: 4px !important;
}

.arrow-cell {
    font-size: 20px !important;
}

.more-history-btn {
    height: 36px !important;
    font-size: 13px !important;
    border-radius: 11px !important;
    margin-top: 10px !important;
}

.result-empty-card {
    border-radius: 16px !important;
    padding: 22px !important;
    font-size: 15px !important;
}

@media (max-width: 620px) {
    .result-container-x4 {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .category-tab-x4 {
        font-size: 13px !important;
    }

    .main-result-grid {
        grid-template-columns: 1fr 1.35fr 1fr !important;
        gap: 8px !important;
    }

    .digit-box {
        width: 38px !important;
        height: 50px !important;
        font-size: 30px !important;
    }

    .summary-item {
        padding: 7px !important;
    }

    .summary-label {
        font-size: 9px !important;
    }

    .summary-value {
        font-size: 14px !important;
    }

    .history-table-x4 thead th:nth-child(5),
    .history-table-x4 tbody td:nth-child(5) {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .title-main {
        font-size: 18px !important;
    }

    .category-tab-x4 {
        font-size: 11px !important;
        height: 42px !important;
        padding: 0 3px !important;
    }

    .cat-icon {
        font-size: 15px !important;
    }

    .sub-tab-x4 {
        font-size: 11px !important;
    }

    .digit-box {
        width: 32px !important;
        height: 44px !important;
        font-size: 26px !important;
    }

    .summary-icon {
        display: none !important;
    }
}







/* ===== ปรับ font ตารางประวัติ: ขนาดพอดี อ่านสบาย ===== */

.history-card-x4 {
    padding: 14px !important;
    border-radius: 15px !important;
}

.history-head-x4 {
    margin-bottom: 10px !important;
}

.history-title {
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    gap: 7px !important;
}

.view-all-btn {
    min-width: 78px !important;
    height: 34px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
}

/* หัวตาราง */
.history-table-x4 thead th {
    font-size: 12.5px !important;
    font-weight: 900 !important;
    padding: 9px 10px !important;
    line-height: 1.2 !important;
}

/* เนื้อหาในตาราง */
.history-table-x4 tbody td {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    padding: 10px 10px !important;
    line-height: 1.25 !important;
}

/* เลขรอบ */
.round-cell {
    font-size: 16px !important;
    font-weight: 900 !important;
}

/* ป้ายล่าสุด */
.latest-badge {
    font-size: 9.5px !important;
    padding: 2px 6px !important;
    margin-left: 4px !important;
}

/* เวลา */
.time-cell {
    font-size: 13.5px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
}

/* วันที่ */
.date-cell {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    margin-top: 2px !important;
}

/* เลข 3 ตัวบน / 2 ตัวล่าง */
.number-cell {
    font-size: 16px !important;
    font-weight: 900 !important;
}

/* ระยะห่างเลข เช่น 8 9 8 */
.spaced {
    letter-spacing: 4.5px !important;
}

/* ลูกศรขวา */
.arrow-cell {
    font-size: 22px !important;
    font-weight: 900 !important;
}

/* ปุ่มดูประวัติเพิ่มเติม */
.more-history-btn {
    height: 42px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    border-radius: 12px !important;
    margin-top: 12px !important;
}

/* จอเล็กมาก ให้ลดนิดเดียว ไม่ให้แน่น */
@media (max-width: 420px) {
    .history-title {
        font-size: 17px !important;
    }

    .history-table-x4 thead th {
        font-size: 12px !important;
        padding: 8px 8px !important;
    }

    .history-table-x4 tbody td {
        font-size: 13px !important;
        padding: 9px 8px !important;
    }

    .round-cell {
        font-size: 15px !important;
    }

    .time-cell {
        font-size: 13px !important;
    }

    .number-cell {
        font-size: 15px !important;
    }

    .spaced {
        letter-spacing: 4px !important;
    }
}

/*---------------------------*/
.pol-page {
    min-height: calc(100vh - 150px);
    padding: 16px 14px 92px;
    background: radial-gradient(circle at top right, rgba(55, 139, 255, .28), transparent 34%), linear-gradient(180deg, #0c51e8 0%, #083292 38%, #061733 100%);
    font-family: 'Noto Sans Thai', 'Kanit', sans-serif;
    color: #0d1b3d;
}

.pol-header {
    max-width: 760px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pol-eyebrow {
    color: #ffe071;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 2px;
}

.pol-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.15;
}

.pol-total-pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(4, 22, 70, .5);
    color: #dce8ff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,.12);
}

.pol-tabs {
    max-width: 760px;
    margin: 0 auto 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(3, 20, 64, .52);
    border: 1px solid rgba(160, 195, 255, .18);
}

.pol-tab {
    height: 46px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: #cbd8f5;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: .18s ease;
}

    .pol-tab.active {
        background: linear-gradient(135deg, #1fb8ff, #235df2);
        color: white;
        box-shadow: 0 10px 24px rgba(31, 142, 255, .28);
    }

.pol-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pol-card {
    background: rgba(255,255,255,.96);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 14px 32px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.65);
    border: 1px solid rgba(220, 230, 255, .82);
    overflow: hidden;
}

.pol-card-top {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    align-items: center;
}

.pol-doc-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: linear-gradient(135deg, #50c9ff, #235df2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    box-shadow: 0 8px 18px rgba(35, 93, 242, .28);
}

.pol-main-info {
    min-width: 0;
}

.pol-no {
    color: #073b96;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.pol-lotto {
    margin-top: 4px;
    color: #253453;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pol-date {
    color: #60708d;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    align-self: start;
    padding-top: 3px;
}

.pol-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(25, 77, 170, .16), transparent);
    margin: 13px 0;
}

.pol-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 10px;
}

.pol-stat {
    min-height: 48px;
    padding: 4px 10px;
    border-right: 1px solid rgba(15, 54, 130, .12);
}

.pol-stat-label {
    color: #73819b;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 3px;
}

.pol-stat-value {
    color: #0f1d3b;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.1;
}

    .pol-stat-value.win {
        color: #16a34a;
    }

.pol-status-zone {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.pol-status {
    min-width: 106px;
    height: 38px;
    padding: 0 12px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    border: 1px solid transparent;
}

    .pol-status.buy {
        color: #ffffff;
        background: linear-gradient(135deg, #12b9ff, #0b72d9);
        box-shadow: 0 8px 18px rgba(18, 185, 255, .22);
    }

    .pol-status.paid {
        color: #ffffff;
        background: linear-gradient(135deg, #45cc78, #119843);
        box-shadow: 0 8px 18px rgba(17, 152, 67, .20);
    }

    .pol-status.win {
        color: #ffffff;
        background: linear-gradient(135deg, #34d399, #16a34a);
        border-color: rgba(22, 163, 74, .28);
        box-shadow: 0 8px 18px rgba(22, 163, 74, .24);
    }

    .pol-status.lose {
        color: #ffffff;
        background: linear-gradient(135deg, #ff5b68, #e72e3d);
        box-shadow: 0 8px 18px rgba(231,46,61,.20);
    }

    .pol-status.wait {
        color: #ffffff;
        background: linear-gradient(135deg, #8e9bb6, #64748b);
    }

.pol-empty {
    margin-top: 8px;
    padding: 34px 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    text-align: center;
    box-shadow: 0 14px 32px rgba(0,0,0,.16);
}

.pol-empty-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.pol-empty-title {
    font-size: 18px;
    font-weight: 900;
    color: #0f1d3b;
}

.pol-empty-sub {
    margin-top: 4px;
    color: #73819b;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 560px) {
    .pol-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .pol-title {
        font-size: 23px;
    }

    .pol-total-pill {
        font-size: 12px;
        padding: 7px 10px;
    }

    .pol-card {
        padding: 12px;
        border-radius: 18px;
    }

    .pol-card-top {
        grid-template-columns: 42px 1fr;
        gap: 10px;
    }

    .pol-doc-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 21px;
    }

    .pol-date {
        grid-column: 2;
        font-size: 11px;
        margin-top: -3px;
    }

    .pol-stat-row {
        grid-template-columns: 1fr 1fr;
    }

    .pol-status-zone {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .pol-status {
        width: 100%;
    }
}

/*------------*/
.success-page-v2 {
    min-height: calc(100vh - 150px);
    padding: 14px 14px 96px;
    background: radial-gradient(circle at 90% 0%, rgba(40, 135, 255, .38), transparent 34%), linear-gradient(180deg, #075bf4 0%, #0a3ca7 42%, #061a3f 100%);
    font-family: 'Noto Sans Thai', 'Kanit', sans-serif;
    color: #12213d;
}

.success-card-v2 {
    max-width: 760px;
    margin: 0 auto 14px;
    padding: 22px 18px;
    border-radius: 18px;
    background: radial-gradient(circle at 100% 0%, rgba(10, 98, 216, .08), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 1px solid rgba(255, 255, 255, .82);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 16px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .success-card-v2::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        width: 160px;
        height: 100%;
        background: radial-gradient(circle at top right, rgba(13, 110, 253, .08), transparent 52%), repeating-radial-gradient(circle, rgba(13, 110, 253, .08) 0 1px, transparent 1px 8px);
        opacity: .55;
    }

.check-circle {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: linear-gradient(135deg, #43dc7a, #14a84c);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(20, 168, 76, .28), inset 0 2px 0 rgba(255,255,255,.28);
    position: relative;
    z-index: 2;
}

.success-main {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.success-title-v2 {
    color: #0f8b3f;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 8px;
}

.success-polno {
    color: #21334f;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

    .success-polno span {
        color: #0b66d8;
        font-size: 21px;
        font-weight: 900;
        margin-left: 6px;
    }

.success-date-v2 {
    color: #5e6e86;
    font-size: 14px;
    font-weight: 700;
}

    .success-date-v2 b {
        color: #0b66d8;
        font-weight: 900;
    }

.success-action-row {
    max-width: 760px;
    margin: 0 auto 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.success-action-btn {
    height: 54px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 19px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

    .success-action-btn span {
        font-size: 23px;
    }

    .success-action-btn.view {
        background: linear-gradient(135deg, #ffffff, #edf6ff);
        color: #0b66d8;
        border-color: rgba(80, 160, 255, .48);
    }

    .success-action-btn.buy {
        background: linear-gradient(135deg, #20a7ff, #1263f3);
        color: #ffffff;
        border-color: rgba(255,255,255,.20);
    }

.round-info-v2 {
    max-width: 760px;
    margin: 0 auto 14px;
    min-height: 58px;
    padding: 0 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #eaf4ff);
    border: 1px solid rgba(157, 201, 255, .68);
    box-shadow: 0 10px 22px rgba(0,0,0,.14);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #083b96;
    font-size: 22px;
    font-weight: 900;
}

.round-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #36c8ff, #1f64f2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(31, 100, 242, .26);
}

.bet-list-v2 {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bet-card-v2 {
    position: relative;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(220, 230, 245, .95);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    padding: 18px 16px 16px 90px;
    overflow: hidden;
}

.bet-ribbon-v2 {
    position: absolute;
    left: 16px;
    top: 0;
    width: 58px;
    height: 94px;
    background: linear-gradient(180deg, #2f96ff, #0d5de0);
    color: #ffffff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .bet-ribbon-v2::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -18px;
        border-left: 29px solid transparent;
        border-right: 29px solid transparent;
        border-top: 18px solid #0d5de0;
    }

    .bet-ribbon-v2 span {
        font-size: 13px;
        font-weight: 800;
        opacity: .95;
        line-height: 1;
    }

    .bet-ribbon-v2 strong {
        font-size: 36px;
        line-height: 1;
        margin-top: 4px;
        font-weight: 900;
    }

.bet-card-body {
    min-width: 0;
}

.bet-card-head {
    display: grid;
    grid-template-columns: 1fr auto 36px;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bet-type-v2 {
    color: #1d2c45;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.2;
}

.bet-rate-v2 {
    color: #0f8b3f;
    font-size: 20px;
    font-weight: 900;
    white-space: nowrap;
}

.bet-star-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eaf4ff;
    color: #2a7df0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.bet-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.bet-detail-box {
    min-height: 74px;
    border-radius: 13px;
    padding: 10px 8px;
    background: #f8fbff;
    border: 1px solid rgba(170, 205, 255, .45);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .bet-detail-box.number {
        background: #fffaf0;
        border-color: rgba(255, 207, 92, .48);
    }

    .bet-detail-box.amount {
        background: #f2fff7;
        border-color: rgba(52, 211, 153, .36);
    }

    .bet-detail-box.win {
        background: #fff5f5;
        border-color: rgba(248, 113, 113, .36);
    }

.detail-label {
    color: #6b7b93;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.detail-value {
    color: #1a263a;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
}

    .detail-value.muted {
        color: #68768a;
    }

.bet-detail-box.number .detail-value {
    color: #0b66d8;
}

.bet-detail-box.amount .detail-value {
    color: #0f8b3f;
}

.detail-value.win-text {
    color: #0f8b3f;
}

.detail-value.lose-text {
    color: #e11d48;
}

@media (max-width: 560px) {
    .success-page-v2 {
        padding: 12px 10px 96px;
    }

    .success-card-v2 {
        grid-template-columns: 62px 1fr;
        gap: 12px;
        padding: 18px 14px;
        border-radius: 18px;
    }

    .check-circle {
        width: 58px;
        height: 58px;
        font-size: 36px;
    }

    .success-title-v2 {
        font-size: 24px;
    }

    .success-polno {
        font-size: 15px;
    }

        .success-polno span {
            font-size: 18px;
        }

    .success-date-v2 {
        font-size: 12px;
    }

    .success-action-btn {
        height: 50px;
        font-size: 17px;
    }

    .round-info-v2 {
        min-height: 54px;
        font-size: 18px;
        border-radius: 14px;
    }

    .bet-card-v2 {
        padding: 14px;
        padding-top: 54px;
        border-radius: 17px;
    }

    .bet-ribbon-v2 {
        left: 14px;
        top: 0;
        width: 82px;
        height: 44px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        flex-direction: row;
        gap: 5px;
    }

        .bet-ribbon-v2::after {
            display: none;
        }

        .bet-ribbon-v2 span {
            font-size: 12px;
        }

        .bet-ribbon-v2 strong {
            font-size: 24px;
            margin-top: 0;
        }

    .bet-card-head {
        grid-template-columns: 1fr auto;
        margin-top: 4px;
    }

    .bet-star-btn {
        display: none;
    }

    .bet-type-v2 {
        font-size: 19px;
    }

    .bet-rate-v2 {
        font-size: 18px;
    }

    .bet-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bet-detail-box {
        min-height: 68px;
    }

    .detail-label {
        font-size: 12px;
    }

    .detail-value {
        font-size: 21px;
    }
}

/*-----------------*/
/* ===== CSS Flag Icons ไม่ใช้รูป ===== */

.category-tab-x4 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.css-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 0 0 2px rgba(255,255,255,.22), 0 3px 8px rgba(0,0,0,.22);
}

/* ธงลาว */
.flag-la {
    background: linear-gradient( to bottom, #ce1126 0%, #ce1126 25%, #002868 25%, #002868 75%, #ce1126 75%, #ce1126 100% );
}

    .flag-la::after {
        content: "";
        position: absolute;
        width: 10px;
        height: 10px;
        background: #ffffff;
        border-radius: 50%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

/* ธงไทย */
.flag-th {
    background: linear-gradient( to bottom, #a51931 0%, #a51931 16%, #ffffff 16%, #ffffff 32%, #2d2a4a 32%, #2d2a4a 68%, #ffffff 68%, #ffffff 84%, #a51931 84%, #a51931 100% );
}

/* ธงเวียดนาม */
.flag-vn {
    background: #da251d;
}

    .flag-vn::after {
        content: "★";
        position: absolute;
        color: #ffde00;
        font-size: 13px;
        line-height: 1;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -52%);
    }

/* ยี่กี icon */
.cat-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    background: rgba(255,255,255,.12);
    box-shadow: 0 0 0 2px rgba(255,255,255,.16), 0 3px 8px rgba(0,0,0,.16);
}

/* ตอน active ให้ icon ดูชัด */
.category-tab-x4.active .css-flag,
.category-tab-x4.active .cat-icon {
    box-shadow: 0 0 0 2px rgba(7, 23, 53, .15), 0 3px 8px rgba(0,0,0,.16);
}

/*----------------------------------*/

.lotto-page-new {
    min-height: calc(100vh - 120px);
    padding: 16px 12px 96px;
    font-family: 'Noto Sans Thai', 'Kanit', sans-serif;
    color: #0f1f3d;
    background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .12), transparent 28%), linear-gradient(180deg, #ffffff 0%, #f6f9ff 44%, #ffffff 100%);
}

.lotto-announce {
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffaf0, #ffffff);
    border: 1px solid rgba(251, 191, 36, .35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
    margin-bottom: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.announce-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #334155;
    font-size: 15px;
    font-weight: 900;
}

.announce-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #2563eb;
    background: #eff6ff;
    flex: 0 0 auto;
}

.announce-right {
    color: #0b66d8;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.lotto-hero {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border-radius: 26px;
    padding: 24px 20px;
    margin-bottom: 18px;
    background: radial-gradient(circle at 86% 28%, rgba(255, 214, 90, .22), transparent 24%), linear-gradient(135deg, #ffffff 0%, #f3f8ff 58%, #dbeafe 100%);
    border: 1px solid rgba(147, 197, 253, .42);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

    .lotto-hero::after {
        content: "";
        position: absolute;
        right: -30px;
        bottom: -44px;
        width: 160px;
        height: 130px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(59, 130, 246, .10), rgba(37, 99, 235, .22));
    }

.hero-eyebrow {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2.8px;
    margin-bottom: 10px;
}

.hero-title {
    color: #061638;
    font-size: 31px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-sub {
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.hero-icon {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    font-size: 44px;
    background: linear-gradient(135deg, #fde68a, #f5b71b);
    box-shadow: 0 12px 28px rgba(245, 183, 27, .28);
    flex: 0 0 auto;
}

.lotto-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.lotto-room-card {
    width: 100%;
    min-height: 122px;
    border: none;
    border-radius: 24px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    color: white;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
    overflow: hidden;
    position: relative;
}

    .lotto-room-card::after {
        content: "";
        position: absolute;
        right: -44px;
        top: -60px;
        width: 150px;
        height: 150px;
        border-radius: 50%;
        background: rgba(255,255,255,.12);
    }

    .lotto-room-card.yiki5 {
        background: linear-gradient(135deg, #0b5ce8 0%, #0035c7 100%);
    }

    .lotto-room-card.yiki10 {
        background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
    }

    .lotto-room-card.yiki15 {
        background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    }

.room-left {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.room-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 34px;
    background: rgba(255,255,255,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.20);
    flex: 0 0 auto;
}

.room-info {
    min-width: 0;
}

.room-title {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 6px;
}

.room-subtitle {
    font-size: 16px;
    font-weight: 800;
    color: rgba(255,255,255,.88);
    margin-bottom: 10px;
}

.room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

    .room-meta span {
        padding: 5px 9px;
        border-radius: 999px;
        background: rgba(255,255,255,.16);
        color: rgba(255,255,255,.92);
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }

.room-right {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.round-pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: white;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.play-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    color: white;
    font-size: 32px;
    line-height: 1;
    font-weight: 500;
}

.lotto-tip-card {
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, .85);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.tip-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 24px;
    flex: 0 0 auto;
}

.tip-title {
    color: #0f1f3d;
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 3px;
}

.tip-text {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.lotto-room-card:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.lotto-room-card,
.lotto-room-card * {
    transition: .18s ease;
}

@media (max-width: 600px) {
    .lotto-page-new {
        padding: 14px 10px 96px;
    }

    .lotto-announce {
        height: 50px;
    }

    .announce-left {
        font-size: 14px;
    }

    .announce-right {
        display: none;
    }

    .lotto-hero {
        min-height: 138px;
        padding: 20px 16px;
        border-radius: 24px;
    }

    .hero-title {
        font-size: 27px;
    }

    .hero-sub {
        font-size: 13px;
    }

    .hero-icon {
        width: 74px;
        height: 74px;
        border-radius: 22px;
        font-size: 38px;
    }

    .lotto-room-card {
        min-height: 120px;
        padding: 15px;
        border-radius: 22px;
    }

    .room-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 30px;
    }

    .room-title {
        font-size: 20px;
    }

    .room-subtitle {
        font-size: 14px;
    }

    .round-pill {
        display: none;
    }

    .play-arrow {
        width: 38px;
        height: 38px;
        font-size: 30px;
    }
}

@media (max-width: 390px) {
    .lotto-room-card {
        align-items: flex-start;
    }

    .room-left {
        align-items: flex-start;
    }

    .room-meta span {
        font-size: 11px;
        padding: 4px 8px;
    }

    .play-arrow {
        position: absolute;
        right: 14px;
        top: 14px;
    }
}

/*LotterPol*/
.pol-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 18px 0 28px 0;
}

.pol-load-more-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 32px;
    background: #ffc107;
    color: #111;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,.16);
}

    .pol-load-more-btn:active {
        transform: scale(.98);
    }

.pol-loading-more {
    text-align: center;
    padding: 16px 0 28px 0;
    color: #c7d2fe;
    font-weight: 800;
}

.pol-end-list {
    text-align: center;
    padding: 18px 0 28px 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

/*-----------------------------*/

.lotto-result-page {
    padding: 16px 12px 90px;
    background: #f3f6fa;
    min-height: calc(100vh - 80px);
    max-width: 560px;
    margin: 0 auto;
    font-family: 'Noto Sans Thai', 'Kanit', sans-serif;
}

.lotto-result-card {
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 18px 16px 18px !important;
    border: 1px solid #d9e5f5 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10) !important;
}

.lotto-result-title {
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    color: #071425;
    margin-bottom: 14px;
}

.lotto-main-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(60px, 17vw, 92px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.num-dark {
    color: #1f2937;
}

.num-green {
    color: #16a34a;
}

.num-red {
    color: #dc2626;
}

.lotto-result-caption {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.lotto-divider {
    border-bottom: 1px dashed #cfd8e3;
    margin-bottom: 16px;
}

.lotto-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.lotto-summary-box {
    min-height: 132px;
    border: 1px solid #e1e7f0;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.summary-label {
    font-size: 15px;
    font-weight: 900;
    color: #050b14;
    margin-bottom: 8px;
    line-height: 1.2;
}

.summary-value {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .summary-value.small-value {
        font-size: clamp(24px, 5vw, 34px);
        letter-spacing: -1px;
    }

    .summary-value.dark {
        color: #111827;
    }

.blue-text {
    color: #2563eb;
}

.purple-text {
    color: #9333ea;
}

.summary-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
}

    .summary-icon.blue {
        background: #e8f0ff;
        color: #2563eb;
    }

    .summary-icon.green {
        background: #dcfce7;
        color: #16a34a;
    }

    .summary-icon.purple {
        background: #ede9fe;
        color: #7c3aed;
    }

    .summary-icon.orange {
        background: #ffedd5;
        color: #ea580c;
    }

.lotto-shoot-card {
    margin-top: 16px;
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 16px 12px 14px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10) !important;
}

.lotto-shoot-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 900;
    color: #071425;
    margin-bottom: 14px;
}

    .lotto-shoot-title .mud-icon-root {
        font-size: 28px;
        color: #1f2937;
    }

.lotto-shoot-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff !important;
}

    .lotto-shoot-table thead tr {
        background: #edf2f7 !important;
        border: 1px solid #d8e0ea;
    }

    .lotto-shoot-table th {
        padding: 14px 8px;
        text-align: center;
        color: #071425;
        font-size: 17px;
        font-weight: 900;
        background: #edf2f7 !important;
    }

    .lotto-shoot-table td {
        padding: 14px 8px;
        border-bottom: 1px solid #edf0f5;
        text-align: center;
        vertical-align: middle;
        background: #ffffff !important;
    }

.shoot-rank {
    font-size: 15px;
    color: #7b8794;
    line-height: 1.2;
    margin-bottom: 4px;
}

.shoot-number {
    font-size: 34px;
    font-weight: 900;
    color: #071425;
    line-height: 1;
}

.shoot-user {
    font-size: 22px;
    font-weight: 900;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shoot-time {
    display: inline-block;
    min-width: 90px;
    background: transparent !important;
    color: #4b5563 !important;
    font-size: 22px;
    font-weight: 700;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.lotto-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.page-btn {
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
    border: 1px solid #cfd8e3;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

    .page-btn.prev,
    .page-btn.next {
        min-width: 72px;
        color: #1f4d8f;
    }

    .page-btn.active {
        background: #1f4d8f;
        border-color: #1f4d8f;
        color: #ffffff;
    }

    .page-btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

@media (max-width: 420px) {
    .lotto-summary-grid {
        gap: 8px;
    }

    .lotto-summary-box {
        min-height: 118px;
        padding: 10px 4px;
    }

    .summary-label {
        font-size: 12px;
    }

    .summary-value {
        font-size: 32px;
    }

        .summary-value.small-value {
            font-size: 24px;
        }

    .lotto-shoot-title {
        font-size: 18px;
    }

    .lotto-shoot-table th {
        font-size: 14px;
    }

    .shoot-rank {
        font-size: 12px;
    }

    .shoot-number {
        font-size: 18px;
    }

    .shoot-user {
        font-size: 16px;
    }

    .shoot-time {
        font-size: 16px;
    }
}

.summary-label {
    font-size: 12px !important;
}

.summary-value {
    font-size: 28px !important;
}

    .summary-value.small-value {
        font-size: 22px !important;
    }

.lotto-shoot-table th {
    font-size: 12px !important;
}

.shoot-rank {
    font-size: 11px !important;
}

.shoot-number {
    font-size: 16px !important;
}

.shoot-user {
    font-size: 14px !important;
}

.shoot-time {
    font-size: 14px !important;
}
/*-------------------------*/
.deposit-page {
    min-height: calc(100vh - 72px);
    background: linear-gradient(180deg, #0053d9 0%, #2c8cff 38%, #eaf5ff 100%);
    margin: -16px;
    padding-bottom: 24px;
    color: #082c91;
    overflow: hidden;
}

.deposit-hero {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, #0040b8 0%, #0068ff 100%);
    overflow: hidden;
}

.deposit-topbar {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 0 18px;
    position: relative;
    z-index: 2;
}

.deposit-title {
    font-size: 22px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,.20);
}

.back-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .back-btn .mud-icon-root {
        font-size: 34px;
    }

.profile-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e9f6ff;
    border: 3px solid rgba(255,255,255,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #063aa7;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

    .profile-icon .mud-icon-root {
        font-size: 30px;
    }

.orange-wave {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: 18px;
    height: 44px;
    background: linear-gradient(90deg, #ffd21a 0%, #ffb000 42%, #ff7000 100%);
    border-radius: 50% 50% 45% 45%;
    transform: rotate(-2deg);
    box-shadow: 0 8px 20px rgba(255,142,0,.35);
}

.deposit-content {
    position: relative;
    z-index: 3;
    margin-top: -34px;
    padding: 0 14px;
}

.credit-card {
    background: white;
    border-radius: 22px;
    padding: 18px 18px;
    min-height: 126px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 24px rgba(0, 44, 148, .22);
}

.credit-label {
    font-size: 16px;
    font-weight: 900;
    color: #073495;
    margin-bottom: 8px;
}

.credit-amount {
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
    color: #f0394d;
    letter-spacing: .5px;
}

.piggy {
    width: 94px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 62px;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.18));
}

.input-label {
    margin: 24px 4px 10px 4px;
    font-size: 17px;
    font-weight: 900;
    color: #073495;
    text-shadow: 0 1px 2px rgba(255,255,255,.6);
}

.amount-input-box {
    height: 68px;
    background: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 9px 20px rgba(0, 44, 148, .16);
}

.money-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eef5ff;
    color: #0037a5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    margin-right: 8px;
}

.amount-input {
    flex: 1;
}

    .amount-input .mud-input-root {
        font-size: 20px !important;
        font-weight: 700;
        color: #073495 !important;
    }

    .amount-input input::placeholder {
        color: #9aaed5 !important;
        opacity: 1;
    }

.calculator-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8f1ff;
    color: #1b63d8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amount-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.amount-card {
    height: 104px;
    border: none;
    border-radius: 14px;
    background: white;
    color: #05369b;
    box-shadow: 0 8px 18px rgba(0, 44, 148, .16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    transition: all .15s ease;
}

    .amount-card .mud-icon-root {
        font-size: 34px;
        color: #0039ae;
    }

    .amount-card:active {
        transform: scale(.96);
        background: #eaf3ff;
    }

.safe-box {
    margin-top: 18px;
    min-height: 54px;
    border: 1.8px dashed #63a7ff;
    border-radius: 14px;
    background: rgba(255,255,255,.38);
    color: #073495;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 800;
}

    .safe-box .mud-icon-root {
        color: #1f7cff;
        font-size: 28px;
    }

.action-row {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cancel-btn,
.submit-btn {
    height: 58px;
    border: none;
    border-radius: 15px;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 44, 148, .18);
}

.cancel-btn {
    background: linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
    color: #073495;
}

.submit-btn {
    background: linear-gradient(180deg, #ffc928 0%, #ff7a00 100%);
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,.22);
}

    .cancel-btn:active,
    .submit-btn:active {
        transform: scale(.97);
    }

.deposit-alert {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82%;
    z-index: 9999;
}

@media (max-width: 380px) {
    .deposit-page {
        margin: -12px;
    }

    .deposit-hero {
        height: 142px;
    }

    .credit-card {
        min-height: 118px;
        padding: 16px;
    }

    .credit-amount {
        font-size: 32px;
    }

    .piggy {
        font-size: 54px;
        width: 80px;
    }

    .amount-card {
        height: 96px;
        font-size: 22px;
    }

        .amount-card .mud-icon-root {
            font-size: 30px;
        }

    .cancel-btn,
    .submit-btn {
        height: 54px;
        font-size: 20px;
    }
}
/*------------------------*/
.withdraw-page {
    min-height: calc(100vh - 72px);
    background: linear-gradient(180deg, #0053d9 0%, #2c8cff 38%, #eaf5ff 100%);
    margin: -16px;
    padding-bottom: 24px;
    color: #082c91;
    overflow: hidden;
}

.withdraw-hero {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, #0040b8 0%, #0068ff 100%);
    overflow: hidden;
}

.withdraw-topbar {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px 0 18px;
    position: relative;
    z-index: 2;
}

.withdraw-title {
    font-size: 22px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,.20);
}

.back-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .back-btn .mud-icon-root {
        font-size: 34px;
    }

.profile-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e9f6ff;
    border: 3px solid rgba(255,255,255,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #063aa7;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

    .profile-icon .mud-icon-root {
        font-size: 30px;
    }

.orange-wave {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: 18px;
    height: 44px;
    background: linear-gradient(90deg, #ffd21a 0%, #ffb000 42%, #ff7000 100%);
    border-radius: 50% 50% 45% 45%;
    transform: rotate(-2deg);
    box-shadow: 0 8px 20px rgba(255,142,0,.35);
}

.withdraw-content {
    position: relative;
    z-index: 3;
    margin-top: -34px;
    padding: 0 14px;
}

.bank-card {
    background: white;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 12px 24px rgba(0, 44, 148, .22);
    margin-bottom: 14px;
}

.bank-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bank-logo-wrap {
    min-width: 70px;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: #eef5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0, 80, 200, .08);
}

.bank-logo {
    border-radius: 14px;
    object-fit: contain;
}

.bank-info {
    flex: 1;
    min-width: 0;
}

.bank-title {
    font-size: 14px;
    font-weight: 900;
    color: #073495;
    margin-bottom: 2px;
}

.bank-name {
    font-size: 18px;
    font-weight: 900;
    color: #05369b;
    line-height: 1.2;
}

.bank-number {
    font-size: 16px;
    font-weight: 800;
    color: #f0394d;
    margin-top: 4px;
    word-break: break-word;
}

.bank-owner {
    font-size: 14px;
    font-weight: 700;
    color: #52658f;
    margin-top: 2px;
    word-break: break-word;
}

.credit-card {
    background: white;
    border-radius: 22px;
    padding: 18px 18px;
    min-height: 116px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 12px 24px rgba(0, 44, 148, .20);
}

.credit-label {
    font-size: 16px;
    font-weight: 900;
    color: #073495;
    margin-bottom: 8px;
}

.credit-amount {
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
    color: #f0394d;
    letter-spacing: .5px;
}

.wallet-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff3bf 0%, #ffbd24 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff7a00;
    box-shadow: 0 8px 16px rgba(255, 122, 0, .25);
}

    .wallet-icon .mud-icon-root {
        font-size: 44px;
    }

.input-label {
    margin: 22px 4px 10px 4px;
    font-size: 17px;
    font-weight: 900;
    color: #073495;
    text-shadow: 0 1px 2px rgba(255,255,255,.6);
}

.amount-input-box {
    height: 68px;
    background: white;
    border-radius: 18px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 9px 20px rgba(0, 44, 148, .16);
}

.money-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eef5ff;
    color: #0037a5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    margin-right: 8px;
}

.amount-input {
    flex: 1;
}

    .amount-input .mud-input-root {
        font-size: 20px !important;
        font-weight: 700;
        color: #073495 !important;
    }

    .amount-input input::placeholder {
        color: #9aaed5 !important;
        opacity: 1;
    }

.calculator-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8f1ff;
    color: #1b63d8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.min-withdraw-box {
    margin-top: 12px;
    min-height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .55);
    border: 1px dashed #ff9a1f;
    color: #e05200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 900;
}

    .min-withdraw-box .mud-icon-root {
        font-size: 24px;
        color: #ff8a00;
    }

.remark-label {
    margin-top: 18px;
}

.remark-box {
    background: white;
    border-radius: 18px;
    padding: 10px 12px;
    box-shadow: 0 9px 20px rgba(0, 44, 148, .16);
}

.remark-input .mud-input-root {
    font-size: 16px !important;
    font-weight: 700;
    color: #073495 !important;
}

.remark-input textarea::placeholder {
    color: #9aaed5 !important;
    opacity: 1;
}

.safe-box {
    margin-top: 18px;
    min-height: 54px;
    border: 1.8px dashed #63a7ff;
    border-radius: 14px;
    background: rgba(255,255,255,.38);
    color: #073495;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    padding: 0 10px;
}

    .safe-box .mud-icon-root {
        color: #1f7cff;
        font-size: 28px;
    }

.action-row {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cancel-btn,
.submit-btn {
    height: 58px;
    border: none;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 44, 148, .18);
}

.cancel-btn {
    background: linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
    color: #073495;
}

.submit-btn {
    background: linear-gradient(180deg, #ffc928 0%, #ff7a00 100%);
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,.22);
}

    .cancel-btn:active,
    .submit-btn:active {
        transform: scale(.97);
    }

    .cancel-btn:disabled,
    .submit-btn:disabled {
        opacity: .55;
        cursor: not-allowed;
        transform: none;
    }

.withdraw-alert {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82%;
    z-index: 9999;
}

@media (max-width: 380px) {
    .withdraw-page {
        margin: -12px;
    }

    .withdraw-hero {
        height: 142px;
    }

    .bank-card {
        padding: 14px;
    }

    .bank-logo-wrap {
        min-width: 62px;
        width: 62px;
        height: 62px;
        border-radius: 16px;
    }

    .bank-name {
        font-size: 16px;
    }

    .bank-number {
        font-size: 15px;
    }

    .bank-owner {
        font-size: 13px;
    }

    .credit-card {
        min-height: 108px;
        padding: 16px;
    }

    .credit-amount {
        font-size: 32px;
    }

    .wallet-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

        .wallet-icon .mud-icon-root {
            font-size: 38px;
        }

    .cancel-btn,
    .submit-btn {
        height: 54px;
        font-size: 18px;
    }
}

/*----------WithDraw---------*/
.withdraw-admin-page {
    padding: 18px;
}

.page-header {
    background: linear-gradient(135deg, #0040b8, #0072ff);
    color: white;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 22px rgba(0, 60, 160, .22);
}

.page-title {
    font-weight: 900;
    color: white;
}

.page-subtitle {
    color: rgba(255,255,255,.85);
}

.loading-box,
.empty-box {
    background: white;
    border-radius: 18px;
    padding: 36px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

    .empty-box .mud-icon-root {
        font-size: 54px;
        color: #0aa84f;
        margin-bottom: 10px;
    }

.withdraw-table {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.amount-text {
    color: #e53935;
    font-size: 18px;
    font-weight: 900;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .action-buttons {
        flex-direction: column;
    }
}

/*-- profile ---*/
.profile-page {
    min-height: calc(100vh - 70px);
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    margin: -16px;
    padding-bottom: 24px;
    color: #061333;
    overflow-x: hidden;
}

.profile-hero {
    height: 100px;
    background: radial-gradient(circle at 90% 20%, rgba(35, 139, 255, .55), transparent 35%), linear-gradient(135deg, #022b85 0%, #004fcf 52%, #057bff 100%);
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    position: relative;
    overflow: hidden;
}

    .profile-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 35%), repeating-linear-gradient(130deg, rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 1px, transparent 1px, transparent 12px);
        opacity: .45;
    }

.hero-top {
    position: relative;
    z-index: 2;
    height: 90px;
    padding: 20px 20px 0 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.menu-btn,
.bell-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .menu-btn .mud-icon-root,
    .bell-btn .mud-icon-root {
        font-size: 30px;
    }

.brand-box {
    text-align: left;
    color: white;
    flex: 1;
    padding-left: 4px;
}

.brand-title {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .2px;
}

.brand-subtitle {
    font-size: 13px;
    font-weight: 600;
    opacity: .95;
    margin-top: 4px;
}

.profile-content {
    position: relative;
    z-index: 3;
    padding: 0 16px;
    margin-top: -72px;
}

.user-card {
    background: #ffffff;
    border-radius: 20px;
    min-height: 128px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 14px 30px rgba(8, 37, 100, .16);
    border: 1px solid rgba(0, 58, 160, .04);
}

.avatar-wrap {
    width: 82px;
    height: 82px;
    min-width: 82px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f1f3f8 0%, #e8edf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .avatar-wrap .mud-icon-root {
        font-size: 48px;
        color: #0d4ecb;
    }

.avatar-img {
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    min-width: 0;
    flex: 1;
}

.username {
    font-size: 20px;
    font-weight: 900;
    color: #071330;
    line-height: 1.2;
}

.phone {
    font-size: 17px;
    font-weight: 700;
    color: #596174;
    margin-top: 6px;
}

.premium-badge {
    margin-top: 10px;
    width: fit-content;
    min-height: 30px;
    padding: 5px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0046c7 0%, #006bff 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(0, 90, 230, .26);
}

    .premium-badge .mud-icon-root {
        font-size: 18px;
        color: #ffd21f;
    }

.section-title {
    margin: 26px 4px 12px 4px;
    font-size: 17px;
    font-weight: 900;
    color: #071330;
}

.bank-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bank-card {
    background: #ffffff;
    border-radius: 18px;
    min-height: 112px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 26px rgba(8, 37, 100, .10);
    border: 1px solid rgba(6, 30, 80, .07);
    cursor: pointer;
    transition: all .15s ease;
}

    .bank-card:active {
        transform: scale(.985);
        background: #f8fbff;
    }

.bank-logo {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 50%;
    background: #f2f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

.bank-img {
    border-radius: 50%;
    object-fit: contain;
}

.bank-detail {
    flex: 1;
    min-width: 0;
}

.bank-name {
    font-size: 19px;
    font-weight: 900;
    color: #081633;
    line-height: 1.2;
}

.bank-number {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 800;
    color: #263145;
}

.bank-owner {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #606a7d;
    word-break: break-word;
}

.bank-arrow {
    color: #8c95a6;
    display: flex;
    align-items: center;
}

    .bank-arrow .mud-icon-root {
        font-size: 28px;
    }

.empty-bank {
    background: white;
    border-radius: 18px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #7b8496;
    box-shadow: 0 10px 24px rgba(8, 37, 100, .08);
}

    .empty-bank .mud-icon-root {
        font-size: 34px;
        color: #0d5adc;
    }

.setting-title {
    margin-top: 28px;
}

.setting-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(8, 37, 100, .10);
    border: 1px solid rgba(6, 30, 80, .06);
}

.setting-row {
    height: 66px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    border-bottom: 1px solid #edf0f5;
    transition: all .15s ease;
}

    .setting-row:last-child {
        border-bottom: none;
    }

    .setting-row:active {
        background: #f6f9ff;
    }

.setting-icon {
    width: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #081633;
}

    .setting-icon .mud-icon-root {
        font-size: 28px;
    }

.setting-text {
    flex: 1;
    font-size: 17px;
    font-weight: 800;
    color: #081633;
}

.setting-arrow {
    color: #8c95a6;
    display: flex;
    align-items: center;
}

    .setting-arrow .mud-icon-root {
        font-size: 26px;
    }

.logout-text,
.logout-icon,
.logout-arrow {
    color: #ff1e1e;
}

@media (max-width: 380px) {
    .profile-page {
        margin: -12px;
    }

    .profile-content {
        padding: 0 13px;
    }

    .user-card {
        padding: 16px;
        gap: 14px;
    }

    .avatar-wrap {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }

    .username {
        font-size: 18px;
    }

    .phone {
        font-size: 15px;
    }

    .premium-badge {
        font-size: 12px;
        padding: 4px 11px;
    }

    .bank-card {
        padding: 14px;
        min-height: 104px;
    }

    .bank-logo {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }

    .bank-name {
        font-size: 17px;
    }

    .bank-number {
        font-size: 15px;
    }

    .bank-owner {
        font-size: 13px;
    }

    .setting-row {
        height: 62px;
    }
}
/*rebet dialod*/
.footer-actions-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-btn-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.rebet-footer-btn {
    height: 42px;
    min-width: 96px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    border: 1.5px solid #ff8a00 !important;
    color: #ff7a00 !important;
    background: #fff7eb !important;
    white-space: nowrap;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.price-btn {
    height: 42px;
    min-width: 82px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .footer-btn-group {
        gap: 6px;
    }

    .rebet-footer-btn {
        min-width: 88px !important;
        font-size: 12px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .price-btn {
        min-width: 76px !important;
        font-size: 12px !important;
    }
}

/*rebet dialog*/

.rb-dialog .mud-dialog {
    border-radius: 26px !important;
    overflow: hidden !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rb-dialog .mud-dialog-content {
    padding: 0 !important;
    background: transparent !important;
}

.rb-sheet {
    width: 100%;
    max-height: 86vh;
    overflow: hidden;
    background: #ffffff;
    border-radius: 26px;
    padding: 14px 18px 18px 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.rb-handle {
    width: 54px;
    height: 6px;
    border-radius: 999px;
    background: #c8ced8;
    margin: 0 auto 18px auto;
}

.rb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rb-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 16px;
    background: #eaf2ff;
    color: #135ee8;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(19, 94, 232, .16);
}

    .rb-icon .mud-icon-root {
        font-size: 30px;
    }

.rb-title-box {
    flex: 1;
    min-width: 0;
}

.rb-title {
    font-size: 22px;
    font-weight: 900;
    color: #07142e;
    line-height: 1.15;
}

.rb-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #71809a;
    margin-top: 4px;
}

.rb-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f1f3f7;
    color: #6e7789;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rb-filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.rb-filter-pill {
    height: 40px;
    border-radius: 999px;
    border: 1px solid #d7dfed;
    background: #ffffff;
    color: #52627d;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
}

    .rb-filter-pill.active {
        border-color: #1a65f2;
        background: linear-gradient(135deg, #1a65f2, #004bdb);
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(0, 91, 255, .18);
    }

.rb-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 3px;
}

.rb-card {
    min-height: 96px;
    border: 1.5px solid #dce3ef;
    border-radius: 18px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    transition: all .15s ease;
    cursor: pointer;
}

    .rb-card.selected {
        border-color: #1b66ff;
        background: #f4f8ff;
        box-shadow: 0 8px 18px rgba(0, 91, 255, .12);
    }

.rb-radio {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    border: 2px solid #aab4c5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

    .rb-radio.checked {
        border-color: #1664ff;
        background: #1664ff;
    }

    .rb-radio .mud-icon-root {
        font-size: 20px;
    }

.rb-main {
    flex: 1;
    min-width: 0;
}

.rb-pol-title {
    font-size: 16px;
    font-weight: 900;
    color: #07142e;
}

.rb-meta {
    margin-top: 5px;
    display: flex;
    gap: 8px;
    color: #0b5ee8;
    font-size: 13px;
    font-weight: 800;
    flex-wrap: wrap;
}

.rb-time {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7a879a;
    font-size: 12px;
    font-weight: 700;
}

    .rb-time .mud-icon-root {
        font-size: 15px;
    }

.rb-summary {
    width: 118px;
    text-align: right;
}

.rb-summary-label {
    font-size: 12px;
    color: #7a879a;
    font-weight: 800;
}

.rb-money {
    font-size: 17px;
    color: #0b5ee8;
    font-weight: 900;
    margin-top: 2px;
}

.rb-preview {
    margin-top: 6px;
    border-radius: 8px;
    background: #f1f5fb;
    color: #47607f;
    font-size: 11px;
    font-weight: 800;
    padding: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rb-actions {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
}

.rb-cancel,
.rb-add {
    height: 54px;
    border: none;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

.rb-cancel {
    background: #f1f3f7;
    color: #647088;
}

.rb-add {
    background: linear-gradient(135deg, #4a8bff, #0052f5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 18px rgba(0, 91, 255, .22);
}

    .rb-add:disabled {
        opacity: .45;
        box-shadow: none;
        cursor: not-allowed;
    }

.rb-loading,
.rb-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #7a879a;
    font-weight: 800;
}

    .rb-empty .mud-icon-root {
        font-size: 46px;
        color: #1b66ff;
    }

@media (max-width: 420px) {
    .rb-sheet {
        border-radius: 24px 24px 0 0;
        padding: 14px 14px 16px 14px;
    }

    .rb-title {
        font-size: 20px;
    }

    .rb-summary {
        width: 104px;
    }

    .rb-money {
        font-size: 15px;
    }

    .rb-actions {
        grid-template-columns: 96px 1fr;
    }
}

/*Login*/
.lx-login-page {
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 18px 12px;
    overflow: hidden;
    font-family: 'Noto Sans Thai', 'Kanit', sans-serif;
    font-weight: 400;
    background: radial-gradient(circle at 88% 82%, rgba(124, 58, 237, .56), transparent 28%), radial-gradient(circle at 48% -8%, rgba(245, 158, 11, .24), transparent 30%), radial-gradient(circle at 0% 0%, rgba(59, 130, 246, .12), transparent 26%), linear-gradient(180deg, #020414 0%, #07081c 52%, #030311 100%);
}

.lx-login-container {
    position: relative;
    z-index: 2;
}

.lx-bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(18px);
}

.lx-orb-1 {
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: -100px;
    background: rgba(124, 58, 237, .45);
}

.lx-orb-2 {
    width: 260px;
    height: 260px;
    left: -100px;
    top: -80px;
    background: rgba(245, 158, 11, .18);
}

.lx-bg-light {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(180deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 70%);
}

.lx-login-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 720px;
    padding: 30px 28px 34px;
    border-radius: 34px;
    color: #ffffff;
    background: radial-gradient(circle at 50% 14%, rgba(255, 208, 72, .22), transparent 24%), radial-gradient(circle at 105% 100%, rgba(168, 85, 247, .36), transparent 34%), linear-gradient(180deg, rgba(9, 12, 30, .97), rgba(3, 5, 18, .99));
    border: 1px solid rgba(255, 213, 91, .58);
    box-shadow: 0 0 0 1px rgba(168, 85, 247, .20), 0 0 36px rgba(255, 213, 91, .16), 0 0 78px rgba(124, 58, 237, .28), 0 28px 80px rgba(0, 0, 0, .58);
}

    .lx-login-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent), radial-gradient(circle at 50% 16%, rgba(255, 213, 91, .16), transparent 18%);
        opacity: .75;
    }

    .lx-login-card::after {
        content: "";
        position: absolute;
        right: -100px;
        bottom: -120px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(147, 51, 234, .34);
        filter: blur(28px);
        pointer-events: none;
    }

.lx-card-shine {
    position: absolute;
    top: -80px;
    left: 50%;
    width: 280px;
    height: 120px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 232, 150, .38), transparent 70%);
    filter: blur(16px);
    pointer-events: none;
}

.lx-top-bar,
.lx-logo-wrap,
.lx-brand,
.lx-subtitle-line,
form {
    position: relative;
    z-index: 2;
}

.lx-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
}

.lx-secure-chip {
    height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffd96a;
    background: rgba(4, 7, 21, .72);
    border: 1px solid rgba(255, 213, 91, .72);
    box-shadow: inset 0 0 18px rgba(255, 213, 91, .05);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .35px;
}

.lx-install-btn {
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    color: #ffd96a !important;
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255, 213, 91, .42) !important;
    transition: .2s ease;
}

    .lx-install-btn:hover {
        transform: translateY(-2px);
        background: rgba(255, 213, 91, .12) !important;
        box-shadow: 0 0 22px rgba(255, 213, 91, .20);
    }

.lx-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.lx-logo-glow {
    position: absolute;
    width: 190px;
    height: 190px;
    margin-top: -48px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 213, 91, .42), transparent 62%);
    filter: blur(10px);
}

.lx-logo {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    color: #080808;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    background: radial-gradient(circle at 32% 24%, #fff3b0, transparent 28%), linear-gradient(135deg, #ffe98a 0%, #f8bf27 45%, #b97907 100%);
    box-shadow: 0 0 34px rgba(255, 213, 91, .55), 0 16px 34px rgba(0, 0, 0, .40), inset 0 0 0 1px rgba(255,255,255,.45);
}

.lx-brand {
    color: #ffd45c !important;
    font-size: 54px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    margin-bottom: 14px !important;
    text-shadow: 0 3px 0 rgba(115, 74, 0, .22), 0 0 20px rgba(255, 213, 91, .35);
}

.lx-subtitle-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 34px;
}

    .lx-subtitle-line span {
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 213, 91, .80), transparent);
    }

    .lx-subtitle-line p {
        margin: 0;
        color: rgba(232, 235, 248, .78);
        font-size: 19px;
        font-weight: 500;
        letter-spacing: 0;
        text-align: center;
        white-space: nowrap;
    }

.lx-field-label {
    margin: 0 0 8px 6px;
    color: rgba(232, 235, 248, .74);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
}

.lx-input-shell {
    height: 66px;
    border-radius: 18px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: rgba(15, 18, 38, .78);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 10px 26px rgba(0, 0, 0, .20);
    transition: .2s ease;
}

    .lx-input-shell:focus-within {
        border-color: rgba(255, 213, 91, .72);
        box-shadow: 0 0 0 3px rgba(255, 213, 91, .10), 0 0 24px rgba(255, 213, 91, .12);
    }

.lx-input-icon {
    width: 64px;
    height: 100%;
    display: grid;
    place-items: center;
    color: #ffc83d;
    border-right: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 213, 91, .04);
    flex: 0 0 auto;
}

.lx-input {
    width: 100%;
    padding: 0 14px !important;
}

    .lx-input .mud-input-root,
    .lx-input .mud-input,
    .lx-input input {
        color: #ffffff !important;
        font-family: 'Noto Sans Thai', 'Kanit', sans-serif !important;
        font-size: 17px !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
    }

        .lx-input input::placeholder {
            color: rgba(255,255,255,.34) !important;
            font-weight: 500 !important;
            opacity: 1 !important;
        }

    .lx-input .mud-input-control {
        margin-top: 0 !important;
    }

    .lx-input .mud-input-helper-text {
        color: #ffb4b4 !important;
        font-weight: 700 !important;
    }

    .lx-input .mud-input-adornment,
    .lx-input .mud-input-adornment .mud-icon-button,
    .lx-input .mud-input-adornment .mud-svg-icon {
        color: #ffd45c !important;
    }

    .lx-input .mud-input-adornment .mud-icon-button {
        padding: 6px !important;
        margin-right: 6px !important;
    }

    .lx-input .mud-input-adornment .mud-svg-icon {
        font-size: 22px !important;
    }

.lx-options {
    display: flex;
    justify-content: flex-end;
    margin-top: -6px;
    margin-bottom: 28px;
}

.lx-forgot {
    color: #ffd45c !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-decoration: underline !important;
}

.lx-login-btn {
    height: 72px !important;
    border-radius: 18px !important;
    color: #070707 !important;
    font-family: 'Noto Sans Thai', 'Kanit', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    background: radial-gradient(circle at 30% 20%, #fff5b4, transparent 34%), linear-gradient(135deg, #ffe98a 0%, #f8c332 46%, #cc7a05 100%) !important;
    box-shadow: 0 0 28px rgba(255, 213, 91, .38), 0 14px 28px rgba(0,0,0,.30), inset 0 0 0 1px rgba(255,255,255,.48) !important;
    transition: .2s ease;
}

    .lx-login-btn:hover {
        transform: translateY(-2px);
        filter: brightness(1.06);
        box-shadow: 0 0 38px rgba(255, 213, 91, .55), 0 18px 34px rgba(0,0,0,.36) !important;
    }

.lx-divider {
    margin: 34px 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

    .lx-divider span {
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 213, 91, .70), transparent);
    }

    .lx-divider p {
        margin: 0;
        color: rgba(232, 235, 248, .70);
        font-size: 19px;
        font-weight: 500;
        letter-spacing: 0;
        white-space: nowrap;
    }

.lx-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lx-outline-btn {
    height: 66px !important;
    border-radius: 16px !important;
    color: #ffd45c !important;
    border: 1px solid rgba(255, 213, 91, .58) !important;
    background: rgba(7, 9, 24, .56) !important;
    font-family: 'Noto Sans Thai', 'Kanit', sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    transition: .2s ease;
}

    .lx-outline-btn:hover {
        transform: translateY(-2px);
        background: rgba(255, 213, 91, .10) !important;
        box-shadow: 0 0 22px rgba(255, 213, 91, .14);
    }

@media (max-width: 600px) {
    .lx-login-page {
        padding: 8px 6px;
    }

    .lx-login-card {
        min-height: calc(100vh - 16px);
        padding: 22px 18px 26px;
        border-radius: 26px;
    }

    .lx-secure-chip {
        height: 42px;
        padding: 0 14px;
        font-size: 12px;
        gap: 7px;
    }

    .lx-install-btn {
        width: 46px !important;
        height: 46px !important;
    }

    .lx-top-bar {
        margin-bottom: 28px;
    }

    .lx-logo {
        width: 76px;
        height: 76px;
        border-radius: 22px;
        font-size: 30px;
    }

    .lx-brand {
        font-size: 42px !important;
    }

    .lx-subtitle-line {
        gap: 10px;
        margin-bottom: 28px;
    }

        .lx-subtitle-line p {
            font-size: 15px;
        }

    .lx-field-label {
        font-size: 14px;
    }

    .lx-input-shell {
        height: 58px;
        border-radius: 16px;
        margin-bottom: 18px;
    }

    .lx-input-icon {
        width: 56px;
    }

    .lx-input .mud-input-root,
    .lx-input .mud-input,
    .lx-input input {
        font-size: 16px !important;
    }

    .lx-forgot {
        font-size: 15px !important;
    }

    .lx-login-btn {
        height: 62px !important;
        font-size: 19px !important;
        border-radius: 16px !important;
    }

    .lx-divider {
        margin: 28px 0 18px;
        gap: 14px;
    }

        .lx-divider p {
            font-size: 17px;
        }

    .lx-actions {
        gap: 12px;
    }

    .lx-outline-btn {
        height: 58px !important;
        font-size: 15px !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 380px) {
    .lx-secure-chip span {
        font-size: 11px;
    }

    .lx-brand {
        font-size: 38px !important;
    }

    .lx-outline-btn {
        font-size: 14px !important;
    }

    .lx-subtitle-line p {
        font-size: 14px;
    }
}
/* =========================
   FIX MudTextField สีขาว
   วางไว้ท้าย style ล่างสุด
========================= */

.lx-input-shell .mud-input-control {
    width: 100% !important;
    margin: 0 !important;
}

.lx-input-shell .mud-input-control-input-container {
    margin: 0 !important;
}

.lx-input-shell .mud-input-root {
    background: transparent !important;
    color: #ffffff !important;
}

.lx-input-shell .mud-input {
    background: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.lx-input-shell input {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    caret-color: #ffd45c !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    font-family: 'Noto Sans Thai', 'Kanit', sans-serif !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}

    /* placeholder */
    .lx-input-shell input::placeholder {
        color: rgba(255, 255, 255, .38) !important;
        opacity: 1 !important;
    }

    /* ตอน browser autofill แล้วชอบทำพื้นหลังขาว/ฟ้า */
    .lx-input-shell input:-webkit-autofill,
    .lx-input-shell input:-webkit-autofill:hover,
    .lx-input-shell input:-webkit-autofill:focus,
    .lx-input-shell input:-webkit-autofill:active {
        -webkit-text-fill-color: #ffffff !important;
        caret-color: #ffd45c !important;
        box-shadow: 0 0 0 1000px rgba(15, 18, 38, .95) inset !important;
        transition: background-color 9999s ease-in-out 0s !important;
    }

/* ซ่อนเส้น underline ของ MudBlazor ให้ชัวร์ */
.lx-input-shell .mud-input-underline:before,
.lx-input-shell .mud-input-underline:after {
    display: none !important;
}

/* =====================================================
   Lucky X4 VIP Page - append this to wwwroot/css/app.css
   ===================================================== */

.vip-page-system {
    min-height: 100vh;
    padding: 12px;
    padding-bottom: 100px;
    color: #0b2a66;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, .16), transparent 28%), linear-gradient(180deg, #f7fbff 0%, #eef6ff 48%, #ffffff 100%);
}

.vip-loading-box {
    min-height: 360px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: #1454d8;
    font-weight: 900;
}

.vip-top-brand {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vip-back-btn,
.vip-help-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(255,255,255,.20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.vip-brand-text {
    color: #ffffff;
    font-size: 30px;
    font-weight: 1000;
    letter-spacing: -.8px;
    text-shadow: 0 3px 14px rgba(0,0,0,.22);
}

    .vip-brand-text span {
        color: #ffd45c;
    }

.vip-hero-card {
    display: grid;
    grid-template-columns: 36% 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f5faff 58%, #eaf4ff 100%);
    border: 1px solid #c8dcff;
    box-shadow: 0 18px 45px rgba(37, 99, 235, .16);
    overflow: hidden;
}

.vip-crown-area {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.vip-crown-emoji {
    font-size: 112px;
    line-height: 1;
    filter: drop-shadow(0 16px 20px rgba(174, 116, 0, .30));
}

.vip-mini-label {
    margin-top: -16px;
    padding: 5px 22px;
    border-radius: 10px;
    color: #ffd45c;
    background: linear-gradient(135deg, #0d4ae8, #0636b8);
    border: 2px solid #ffd45c;
    font-size: 20px;
    font-weight: 1000;
}

.vip-current-label {
    color: #1255dd;
    font-size: 18px;
    font-weight: 1000;
}

.vip-current-level {
    margin-top: 3px;
    color: #1454d8;
    font-size: 56px;
    line-height: 1;
    font-weight: 1000;
    letter-spacing: -1px;
}

.vip-total-card {
    margin-top: 10px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #d6e5ff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

    .vip-total-card span {
        display: block;
        color: #1356dc;
        font-size: 13px;
        font-weight: 900;
    }

    .vip-total-card strong {
        display: block;
        color: #1454d8;
        font-size: 30px;
        font-weight: 1000;
    }

.vip-status-text {
    margin-top: 12px;
    color: #19407c;
    font-size: 14px;
    font-weight: 800;
}

.vip-main-progress,
.vip-card-progress {
    width: 100%;
    border-radius: 999px;
    background: #dbe3ef;
    overflow: hidden;
}

.vip-main-progress {
    height: 13px;
    padding: 3px;
    margin-top: 10px;
}

    .vip-main-progress div,
    .vip-card-progress div {
        height: 100%;
        min-width: 7px;
        border-radius: 999px;
        background: linear-gradient(90deg, #1e63e9, #4ea1ff);
    }

.vip-progress-range {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    color: #23446f;
    font-size: 13px;
    font-weight: 900;
}

.vip-next-level-text {
    margin-top: 13px;
    color: #174083;
    font-size: 14px;
    font-weight: 800;
}

    .vip-next-level-text b {
        color: #0956e9;
    }

.vip-needed-card {
    margin-top: 14px;
    padding: 18px 12px;
    border-radius: 18px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0f67ff, #0b43db);
    border: 1px solid rgba(255,255,255,.75);
    box-shadow: 0 16px 32px rgba(37, 99, 235, .24);
}

    .vip-needed-card div {
        font-size: 18px;
        font-weight: 1000;
    }

    .vip-needed-card strong {
        display: block;
        margin-top: 4px;
        font-size: 52px;
        line-height: 1;
        font-weight: 1000;
    }

.vip-range-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.vip-range-btn {
    height: 40px;
    border: 1px solid #aac7ff;
    border-radius: 14px;
    color: #0750d6;
    background: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

    .vip-range-btn.active {
        color: #ffffff;
        border-color: #0b61ff;
        background: linear-gradient(135deg, #1e8bff, #0b4ee8);
    }

.vip-info-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f3f8ff, #ffffff);
    border: 1px solid #d7e6ff;
    overflow: hidden;
}

.vip-info-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0b50e8);
}

.vip-info-card b {
    color: #0b3e99;
    font-size: 15px;
}

.vip-info-card p {
    margin: 2px 0 0;
    color: #45617f;
    font-size: 13px;
    font-weight: 700;
}

.vip-gift-watermark {
    position: absolute;
    right: 18px;
    bottom: -10px;
    font-size: 64px;
    opacity: .13;
}

.vip-reward-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.vip-reward-card {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #d7e6ff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

    .vip-reward-card.ready {
        border-color: #ffd45c;
        box-shadow: 0 12px 26px rgba(245, 158, 11, .20);
    }

    .vip-reward-card.claimed {
        opacity: .72;
    }

.vip-shield-small {
    width: 58px;
    height: 72px;
    border-radius: 12px 12px 18px 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(180deg, #1769ff, #0b45c8);
    border: 2px solid #ffd45c;
    line-height: 1;
}

.vip-shield-crown {
    margin-top: -8px;
    color: #ffd45c;
    font-size: 20px;
}

.vip-shield-small span {
    font-size: 11px;
    font-weight: 1000;
}

.vip-shield-small strong {
    font-size: 27px;
    font-weight: 1000;
}

.vip-reward-content {
    min-width: 0;
}

.vip-reward-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
}

    .vip-reward-head h3 {
        margin: 0;
        color: #0b50e8;
        font-size: 18px;
        line-height: 1;
        font-weight: 1000;
    }

    .vip-reward-head small {
        display: block;
        margin-top: 5px;
        color: #23446f;
        font-size: 12px;
        font-weight: 800;
    }

.vip-stars {
    color: #f5b313;
    font-size: 13px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.vip-reward-progress-text {
    margin-top: 5px;
    text-align: right;
    color: #1f3f70;
    font-size: 12px;
    font-weight: 800;
}

.vip-card-progress {
    height: 9px;
    padding: 2px;
    margin-top: 3px;
}

.vip-reward-btn {
    width: 100%;
    height: 30px;
    margin-top: 8px;
    border: 0;
    border-radius: 999px;
    color: #0750d6;
    background: linear-gradient(180deg, #f4f9ff, #e6f0ff);
    font-family: inherit;
    font-size: 14px;
    font-weight: 1000;
}

    .vip-reward-btn.ready {
        color: #4b2e00;
        cursor: pointer;
        background: linear-gradient(135deg, #fff0a8, #ffd45c, #f59e0b);
        box-shadow: 0 8px 16px rgba(245, 158, 11, .24);
    }

    .vip-reward-btn.claimed {
        color: #64748b;
        background: #eef2f7;
    }

@media (max-width: 600px) {
    .vip-page-system {
        padding: 10px;
        padding-bottom: 92px;
    }

    .vip-top-brand {
        height: 48px;
        margin-bottom: 6px;
    }

    .vip-brand-text {
        font-size: 24px;
    }

    .vip-back-btn,
    .vip-help-btn {
        width: 38px;
        height: 38px;
    }

    .vip-hero-card {
        grid-template-columns: 34% 1fr;
        padding: 12px;
        border-radius: 22px;
        gap: 8px;
    }

    .vip-crown-area {
        min-height: 150px;
    }

    .vip-crown-emoji {
        font-size: 82px;
    }

    .vip-mini-label {
        font-size: 14px;
        padding: 4px 14px;
    }

    .vip-current-label {
        font-size: 14px;
    }

    .vip-current-level {
        font-size: 42px;
    }

    .vip-total-card {
        padding: 8px;
    }

        .vip-total-card span {
            font-size: 11px;
        }

        .vip-total-card strong {
            font-size: 22px;
        }

    .vip-status-text,
    .vip-next-level-text {
        font-size: 12px;
    }

    .vip-needed-card {
        padding: 14px 10px;
        border-radius: 16px;
    }

        .vip-needed-card div {
            font-size: 15px;
        }

        .vip-needed-card strong {
            font-size: 42px;
        }

    .vip-range-grid {
        gap: 7px;
    }

    .vip-range-btn {
        height: 34px;
        border-radius: 12px;
        font-size: 13px;
    }

    .vip-info-card {
        padding: 10px;
        border-radius: 16px;
    }

        .vip-info-card b {
            font-size: 12px;
        }

        .vip-info-card p {
            font-size: 11px;
        }

    .vip-reward-grid {
        gap: 8px;
    }

    .vip-reward-card {
        grid-template-columns: 54px 1fr;
        padding: 8px;
        border-radius: 15px;
    }

    .vip-shield-small {
        width: 48px;
        height: 62px;
    }

        .vip-shield-small strong {
            font-size: 22px;
        }

    .vip-reward-head h3 {
        font-size: 16px;
    }

    .vip-stars {
        font-size: 11px;
    }

    .vip-reward-progress-text {
        font-size: 11px;
    }

    .vip-reward-btn {
        height: 28px;
        font-size: 12px;
    }
}
/* =====================================================
   Lucky X4 Admin VIP Reward Approve
   Append this to wwwroot/css/app.css
   ===================================================== */

.vip-admin-page {
    padding: 18px;
    color: #061334;
}

.vip-admin-header {
    background: linear-gradient(135deg, #0040b8, #0072ff);
    color: white;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 22px rgba(0, 60, 160, .22);
}

.vip-admin-title {
    font-weight: 900 !important;
    color: white !important;
}

.vip-admin-subtitle {
    color: rgba(255,255,255,.86) !important;
}

.vip-admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.vip-admin-summary-card {
    padding: 16px;
    border-radius: 18px;
    background: white;
    border: 1px solid #dbeafe;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

    .vip-admin-summary-card span {
        display: block;
        color: #64748b;
        font-size: 13px;
        font-weight: 800;
    }

    .vip-admin-summary-card strong {
        display: inline-block;
        margin-top: 4px;
        font-size: 30px;
        line-height: 1;
        font-weight: 1000;
    }

    .vip-admin-summary-card small {
        margin-left: 6px;
        color: #64748b;
        font-weight: 700;
    }

    .vip-admin-summary-card.waiting strong {
        color: #2563eb;
    }

    .vip-admin-summary-card.amount strong {
        color: #d97706;
    }

.vip-admin-loading-box,
.vip-admin-empty-box {
    background: white;
    border-radius: 18px;
    padding: 36px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

    .vip-admin-empty-box .mud-icon-root {
        font-size: 54px;
        color: #0aa84f;
        margin-bottom: 10px;
    }

.vip-admin-table {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.vip-admin-level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #6b4200;
    background: linear-gradient(135deg, #fff0a8, #ffd45c, #f59e0b);
    font-size: 13px;
    font-weight: 1000;
    box-shadow: 0 8px 16px rgba(245, 158, 11, .18);
}

.vip-admin-amount-text {
    color: #e53935;
    font-size: 18px;
    font-weight: 900;
}

.vip-admin-action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

@media (max-width: 768px) {
    .vip-admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .vip-admin-summary-grid {
        grid-template-columns: 1fr;
    }

    .vip-admin-action-buttons {
        flex-direction: column;
    }
}
/* ===============================
   Lucky X4 Admin Layout Pro Theme
   =============================== */

.admin-layout-pro {
    min-height: 100vh;
    background: #f3f7ff;
}

.admin-topbar-pro {
    height: 72px;
    background: linear-gradient(135deg, #1e3f96 0%, #245de3 55%, #10aee8 100%) !important;
    color: white !important;
    border-bottom: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 12px 32px rgba(30, 64, 175, .25);
}

.admin-menu-toggle {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.12) !important;
    margin-right: 10px !important;
}

.admin-top-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-top-logo {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-weight: 1000;
    color: #17336f;
    background: linear-gradient(145deg, #fff3b0, #ffd24a 50%, #f59e0b);
    box-shadow: 0 10px 24px rgba(245, 158, 11, .28), inset 0 1px 0 rgba(255,255,255,.75);
}

.admin-brand-title {
    color: #ffffff;
    font-weight: 1000 !important;
    line-height: 1.05 !important;
    letter-spacing: -.2px;
}

.admin-brand-sub {
    color: rgba(255,255,255,.78);
    font-weight: 700 !important;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-online-chip {
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #064e3b;
    background: rgba(220, 252, 231, .95);
    font-size: 13px;
    font-weight: 1000;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

    .admin-online-chip span {
        width: 9px;
        height: 9px;
        border-radius: 999px;
        background: #22c55e;
        box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
    }

.admin-top-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.12) !important;
}

.admin-sidebar-pro {
    width: 292px !important;
    background: radial-gradient(circle at 20% 0%, rgba(37, 99, 235, .22), transparent 30%), linear-gradient(180deg, #0f172a 0%, #111c33 52%, #0b1222 100%) !important;
    color: white !important;
    border-right: 1px solid rgba(255,255,255,.08);
    box-shadow: 18px 0 45px rgba(15, 23, 42, .26);
}

.admin-logo-box-pro {
    height: 104px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.admin-logo-pro {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 20px;
    font-weight: 1000;
    background: linear-gradient(145deg, #4facfe, #2563eb);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .36), inset 0 1px 0 rgba(255,255,255,.32);
}

.admin-logo-title-pro {
    color: #ffffff;
    font-weight: 1000 !important;
    line-height: 1.15 !important;
}

.admin-logo-sub-pro {
    color: #94a3b8;
    font-weight: 700 !important;
}

.admin-menu-label {
    margin: 18px 18px 10px;
    color: #64748b;
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: 1.6px;
}

.admin-menu-pro {
    padding: 0 12px 14px;
}

    .admin-menu-pro .mud-nav-link {
        min-height: 48px;
        margin: 5px 0;
        padding: 0 14px !important;
        border-radius: 15px !important;
        color: #cbd5e1 !important;
        font-size: 15px;
        font-weight: 800;
        transition: all .18s ease;
    }

        .admin-menu-pro .mud-nav-link .mud-icon-root {
            color: #93c5fd !important;
            font-size: 23px !important;
            margin-right: 14px !important;
        }

        .admin-menu-pro .mud-nav-link:hover {
            color: white !important;
            background: rgba(255,255,255,.08) !important;
            transform: translateX(3px);
        }

        .admin-menu-pro .mud-nav-link.active,
        .admin-menu-pro .mud-nav-link.mud-nav-link-active {
            color: white !important;
            background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
            box-shadow: 0 12px 28px rgba(37, 99, 235, .34);
        }

            .admin-menu-pro .mud-nav-link.active .mud-icon-root,
            .admin-menu-pro .mud-nav-link.mud-nav-link-active .mud-icon-root {
                color: white !important;
            }

.vip-admin-nav {
    position: relative;
    overflow: hidden;
}

    .vip-admin-nav::after {
        content: "NEW";
        margin-left: auto;
        padding: 2px 8px;
        border-radius: 999px;
        color: #7a4b00;
        background: linear-gradient(135deg, #fff0a8, #f59e0b);
        font-size: 10px;
        font-weight: 1000;
    }

.admin-menu-divider {
    margin: 18px 6px !important;
    background-color: rgba(255,255,255,.14) !important;
}

.admin-logout-link {
    color: #fecaca !important;
}

    .admin-logout-link .mud-icon-root {
        color: #fca5a5 !important;
    }

.admin-sidebar-footer {
    margin-top: auto;
    padding: 12px;
}

.admin-footer-card {
    padding: 14px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.09);
}

.admin-footer-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, .25);
    color: #93c5fd;
}

.admin-footer-card b {
    display: block;
    font-size: 13px;
    font-weight: 1000;
}

.admin-footer-card span {
    display: block;
    margin-top: 1px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.admin-main-pro {
    background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .09), transparent 28%), linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    min-height: 100vh;
}

.admin-content-pro {
    padding: 24px;
    min-height: calc(100vh - 72px);
}

/* Mobile */
@media (max-width: 600px) {
    .admin-topbar-pro {
        height: 64px;
    }

    .admin-top-logo {
        width: 38px;
        height: 38px;
        border-radius: 14px;
        font-size: 14px;
    }

    .admin-brand-title {
        font-size: 17px !important;
    }

    .admin-brand-sub {
        display: none;
    }

    .admin-online-chip {
        display: none;
    }

    .admin-top-icon {
        width: 36px !important;
        height: 36px !important;
    }

    .admin-sidebar-pro {
        width: 272px !important;
    }

    .admin-content-pro {
        padding: 14px;
    }
}

/*depositslip*/
.deposit-slip-page {
    min-height: 100vh;
    padding: 14px;
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 45%, #ffffff 100%);
}

.deposit-slip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 8px 18px;
}

.deposit-slip-back {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .18);
}

.deposit-slip-title {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
}

.deposit-slip-subtitle {
    font-size: 13px;
    color: #64748b;
}

.deposit-slip-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.center-box {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #1e40af;
    font-weight: 700;
}

.bank-card {
    overflow: hidden;
}

.bank-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bank-icon-box {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
}

.bank-info {
    flex: 1;
    min-width: 0;
}

.bank-name {
    font-weight: 900;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bank-account-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bank-account {
    flex: 1;
    min-width: 0;
    font-size: 26px;
    font-weight: 1000;
    color: #2457ff;
    line-height: 1.1;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bank-owner {
    margin-top: 8px;
    color: #334155;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    word-break: break-word;
}

.copy-bank-btn {
    flex: 0 0 auto;
    height: 38px;
    min-width: 94px;
    border: none;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .24);
}

.upload-slip-btn {
    margin-top: 14px;
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .26);
}

@media (max-width: 430px) {
    .deposit-slip-card {
        padding: 14px;
    }

    .bank-head {
        gap: 12px;
        align-items: flex-start;
    }

    .bank-icon-box {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .bank-name {
        font-size: 16px;
    }

    .bank-account-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bank-account {
        width: 100%;
        font-size: 23px;
    }

    .copy-bank-btn {
        height: 36px;
        min-width: 108px;
    }
}

.amount-card-slip {
    text-align: center;
}

.amount-label {
    color: #64748b;
    font-weight: 700;
}

.amount-value {
    margin-top: 6px;
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #ffffff;
    font-size: 30px;
    font-weight: 1000;
    border-radius: 16px;
    padding: 10px;
}

.amount-warning {
    margin-top: 8px;
    color: #b45309;
    font-size: 13px;
    font-weight: 700;
}

.slip-only-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e40af;
    font-weight: 900;
    font-size: 15px;
}

.slip-only-desc {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.slip-preview-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 16px;
}

.deposit-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
    padding-bottom: 18px;
}

.btn-back-slip, .btn-submit-slip {
    height: 52px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 900;
}

.btn-back-slip {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.btn-submit-slip {
    color: #ffffff;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 12px 24px rgba(34, 197, 94, .26);
}

.deposit-toast {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, 86%);
    z-index: 9999;
}

/*polrebet*/

.rb-dialog.mud-dialog,
.rb-dialog .mud-dialog {
    width: min(94vw, 520px) !important;
    max-width: 520px !important;
    max-height: calc(100dvh - 24px) !important;
    margin: 12px auto !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    background: transparent !important;
    box-shadow: none !important;
}

    .rb-dialog .mud-dialog-content,
    .rb-dialog.mud-dialog .mud-dialog-content {
        padding: 0 !important;
        background: transparent !important;
        overflow: hidden !important;
    }

.rb-sheet {
    width: 100%;
    height: min(86dvh, 720px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-radius: 26px;
    padding: 14px 18px 12px 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.rb-handle,
.rb-header,
.rb-filter-row,
.rb-actions {
    flex: 0 0 auto;
}

.rb-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow-y: auto;
    padding-right: 5px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

.rb-actions {
    margin-top: 0;
    padding-top: 12px;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    background: #ffffff;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -12px 22px rgba(255, 255, 255, .96);
}

.rb-cancel,
.rb-add {
    min-height: 52px;
    height: 52px;
}

.rb-loading,
.rb-empty {
    flex: 1 1 auto;
    min-height: 260px;
}

@media (max-width: 420px) {
    .rb-dialog.mud-dialog,
    .rb-dialog .mud-dialog {
        width: calc(100vw - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
        margin: 12px !important;
    }

    .rb-sheet {
        height: calc(100dvh - 28px);
        max-height: calc(100dvh - 28px);
        border-radius: 24px;
        padding: 14px 14px 10px 14px;
    }

    .rb-header {
        margin-bottom: 12px;
    }

    .rb-title {
        font-size: 20px;
    }

    .rb-subtitle {
        font-size: 12px;
    }

    .rb-filter-row {
        margin-bottom: 10px;
    }

    .rb-card {
        min-height: 92px;
        padding: 10px;
        gap: 10px;
    }

    .rb-summary {
        width: 104px;
    }

    .rb-money {
        font-size: 15px;
    }

    .rb-actions {
        grid-template-columns: 96px 1fr;
        gap: 10px;
        padding-top: 10px;
    }

    .rb-cancel,
    .rb-add {
        min-height: 50px;
        height: 50px;
        font-size: 15px;
        border-radius: 14px;
    }
}
/* Admin */
.admin-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    color: white;
    line-height: 1.1;
}

    .admin-user-chip .mud-icon-root {
        color: #fde68a !important;
        font-size: 22px !important;
    }

    .admin-user-chip b {
        display: block;
        font-size: 13px;
        font-weight: 900;
        max-width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-user-chip small {
        display: block;
        color: rgba(255,255,255,.72);
        font-size: 11px;
        font-weight: 800;
    }

@media (max-width: 700px) {
    .admin-user-chip {
        display: none;
    }
}
/*admin layour*/
.admin-layout-fixed {
    --admin-sidebar-width: 292px;
    --admin-topbar-height: 64px;
}

.admin-topbar-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: var(--admin-topbar-height) !important;
    z-index: 5000 !important;
}

.admin-menu-toggle {
    position: relative !important;
    z-index: 5200 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.admin-sidebar-fixed {
    position: fixed !important;
    left: 0 !important;
    top: var(--admin-topbar-height) !important;
    bottom: 0 !important;
    width: var(--admin-sidebar-width) !important;
    max-width: var(--admin-sidebar-width) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 4200 !important;
    transform: translateX(0);
    transition: transform .22s ease, width .22s ease, opacity .18s ease;
    pointer-events: auto !important;
}

    .admin-sidebar-fixed.is-closed {
        transform: translateX(-100%) !important;
        pointer-events: none !important;
    }

.admin-main-pro {
    padding-top: var(--admin-topbar-height) !important;
    min-width: 0 !important;
    transition: margin-left .22s ease;
}

    .admin-main-pro.drawer-open {
        margin-left: var(--admin-sidebar-width) !important;
    }

    .admin-main-pro.drawer-closed {
        margin-left: 0 !important;
    }

.admin-content-pro {
    padding: 28px 34px 44px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

.admin-drawer-close-btn {
    display: none !important;
    margin-left: auto !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.10) !important;
    color: #ffffff !important;
    position: relative !important;
    z-index: 5300 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    flex-shrink: 0 !important;
}

.admin-logo-text-pro {
    min-width: 0 !important;
}

.admin-menu-pro,
.admin-menu-pro .mud-nav-link,
.admin-menu-pro a,
.admin-menu-pro button,
.admin-logout-link {
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.admin-mobile-backdrop {
    display: none;
}

@media (max-width: 960px) {
    .admin-layout-fixed {
        --admin-sidebar-width: min(340px, 82vw);
        --admin-topbar-height: 64px;
    }

    .admin-topbar-fixed {
        height: var(--admin-topbar-height) !important;
    }

    .admin-sidebar-fixed {
        width: var(--admin-sidebar-width) !important;
        max-width: var(--admin-sidebar-width) !important;
        top: var(--admin-topbar-height) !important;
        height: calc(100dvh - var(--admin-topbar-height)) !important;
        z-index: 4800 !important;
        box-shadow: 18px 0 45px rgba(15, 23, 42, .28) !important;
    }

    .admin-main-pro,
    .admin-main-pro.drawer-open,
    .admin-main-pro.drawer-closed {
        margin-left: 0 !important;
        padding-top: var(--admin-topbar-height) !important;
    }

    .admin-content-pro {
        padding: 16px !important;
    }

    .admin-mobile-backdrop {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: var(--admin-topbar-height) !important;
        bottom: 0 !important;
        background: rgba(15, 23, 42, .45) !important;
        z-index: 4700 !important;
        pointer-events: auto !important;
    }

    .admin-drawer-close-btn {
        display: inline-flex !important;
    }

    .admin-logo-box-pro {
        padding-right: 10px !important;
        gap: 12px !important;
    }

    .admin-menu-pro .mud-nav-link {
        min-height: 58px !important;
    }

    .admin-brand-sub,
    .admin-user-chip,
    .admin-online-chip {
        display: none !important;
    }

    .admin-top-brand {
        min-width: 0 !important;
    }

    .admin-brand-title {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 210px !important;
    }
}
/*profilesettings*/
.member-profile-edit-page {
    min-height: 100vh;
    padding: 18px 16px 92px;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 55%, #f7f9fc 100%);
}

.settings-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

    .settings-header h3 {
        margin: 0;
        font-size: 22px;
        font-weight: 900;
        color: #081b3a;
    }

    .settings-header p {
        margin: 2px 0 0;
        font-size: 13px;
        color: #64748b;
        font-weight: 700;
    }

.back-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: #ffffff;
    color: #0f4fd7;
    box-shadow: 0 10px 24px rgba(15, 79, 215, .16);
}

.profile-edit-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
    border: 1px solid rgba(148, 163, 184, .22);
}

.avatar-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.avatar-preview {
    width: 104px;
    height: 104px;
    padding: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .25);
}

    .avatar-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 999px;
        background: #fff;
    }

.upload-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    font-weight: 900;
    cursor: pointer;
    overflow: hidden;
}

    .upload-btn input[type=file] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

.upload-hint {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.loading-box {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #2563eb;
    font-weight: 800;
}

.action-bar {
    position: sticky;
    bottom: 72px;
    z-index: 10;
    padding: 12px 0;
}

    .action-bar .mud-button-root {
        width: 100%;
        height: 50px;
        border-radius: 16px;
        font-weight: 900;
    }

@media (min-width: 768px) {
    .member-profile-edit-page {
        max-width: 760px;
        margin: 0 auto;
        padding-top: 28px;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/*change password*/
.change-password-page {
    min-height: 100vh;
    padding: 18px 16px 92px;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 55%, #f7f9fc 100%);
}

.settings-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

    .settings-header h3 {
        margin: 0;
        font-size: 22px;
        font-weight: 900;
        color: #081b3a;
    }

    .settings-header p {
        margin: 2px 0 0;
        font-size: 13px;
        color: #64748b;
        font-weight: 700;
    }

.back-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: #ffffff;
    color: #0f4fd7;
    box-shadow: 0 10px 24px rgba(15, 79, 215, .16);
}

.password-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
    border: 1px solid rgba(148, 163, 184, .22);
}

.lock-hero {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef6ff, #f8fbff);
    border: 1px solid rgba(37, 99, 235, .12);
}

.lock-circle {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

    .lock-circle .mud-icon-root {
        font-size: 30px;
    }

.lock-hero b {
    display: block;
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
}

.lock-hero span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.password-card .mud-button-root {
    height: 50px;
    border-radius: 16px;
    font-weight: 900;
}

@media (min-width: 768px) {
    .change-password-page {
        max-width: 560px;
        margin: 0 auto;
        padding-top: 28px;
    }
}
/*profile settings*/


.member-profile-edit-page {
    min-height: 100vh;
    padding: 18px 16px 92px;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 55%, #f7f9fc 100%);
}

.settings-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

    .settings-header h3 {
        margin: 0;
        font-size: 22px;
        font-weight: 900;
        color: #081b3a;
    }

    .settings-header p {
        margin: 2px 0 0;
        font-size: 13px;
        color: #64748b;
        font-weight: 700;
    }

.back-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: #ffffff;
    color: #0f4fd7;
    box-shadow: 0 10px 24px rgba(15, 79, 215, .16);
}

.profile-edit-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
    border: 1px solid rgba(148, 163, 184, .22);
}

.avatar-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.avatar-preview {
    width: 104px;
    height: 104px;
    padding: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .25);
}

    .avatar-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 999px;
        background: #fff;
    }

.upload-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    font-weight: 900;
    cursor: pointer;
    overflow: hidden;
}

    .upload-btn input[type=file] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

.upload-hint {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.loading-box {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #2563eb;
    font-weight: 800;
}

.action-bar {
    position: sticky;
    bottom: 72px;
    z-index: 10;
    padding: 12px 0;
}

    .action-bar .mud-button-root {
        width: 100%;
        height: 50px;
        border-radius: 16px;
        font-weight: 900;
    }

@media (min-width: 768px) {
    .member-profile-edit-page {
        max-width: 760px;
        margin: 0 auto;
        padding-top: 28px;
    }

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


.bank-otp-panel {
    margin-top: 18px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px dashed rgba(37, 99, 235, .35);
}

.bank-otp-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    color: #1d4ed8;
    margin-bottom: 6px;
}

.bank-otp-help {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.bank-otp-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

@media (max-width: 640px) {
    .bank-otp-grid {
        grid-template-columns: 1fr;
    }
}


/*sms settings*/
.sms-admin-page {
    padding: 22px;
}

.sms-admin-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

    .sms-admin-header h2 {
        margin: 0;
        font-size: 28px;
        font-weight: 900;
        color: #0f172a;
    }

    .sms-admin-header p {
        margin: 4px 0 0;
        color: #64748b;
        font-weight: 700;
    }

.sms-grid-simple {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 18px;
    align-items: start;
}

.sms-card {
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
    border: 1px solid rgba(148, 163, 184, .24);
    display: grid;
    gap: 14px;
}

.sms-card-title {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 20px;
    font-weight: 900;
    color: #1d4ed8;
    margin-bottom: 4px;
}

.sms-switches-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sms-switch-card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: #f8fafc;
    padding: 12px 14px;
}

.sms-switch-help {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
}

.sms-loading {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #2563eb;
}

.sms-preview-box {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid rgba(37, 99, 235, .15);
}

.sms-preview-title {
    font-weight: 900;
    color: #1e3a8a;
    font-size: 16px;
}

.sms-preview-item {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
}

    .sms-preview-item b {
        color: #0f172a;
    }

    .sms-preview-item span {
        color: #64748b;
        font-weight: 700;
        font-size: 14px;
    }

@media (max-width: 960px) {
    .sms-admin-page {
        padding: 16px;
    }

    .sms-admin-header {
        flex-direction: column;
        align-items: stretch;
    }

    .sms-grid-simple,
    .sms-switches-simple {
        grid-template-columns: 1fr;
    }
}
/*LotteryPol*/



.pol-card-clickable {
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .pol-card-clickable:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(0, 39, 117, .22);
    }

.pol-view-more {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
    font-weight: 800;
}

.pol-popup-backdrop.design-v7,
.pol-popup-backdrop.design-v7 * {
    box-sizing: border-box;
}

.pol-popup-backdrop.design-v7 {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(3, 16, 45, .78);
    backdrop-filter: blur(9px);
    overflow: hidden;
}

.pol-ticket-modal {
    width: min(720px, calc(100vw - 20px));
    max-width: 100%;
    max-height: min(92vh, 900px);
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .42);
    animation: polPopupIn .18s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes polPopupIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }

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

.ticket-hero {
    flex: 0 0 auto;
    position: relative;
    min-height: 184px;
    padding: 42px 28px 30px;
    color: white;
    background: radial-gradient(circle at 90% 32%, rgba(255, 214, 92, .28), transparent 22%), linear-gradient(135deg, #064fe6 0%, #04379f 50%, #17b6ff 100%);
    overflow: hidden;
}

    .ticket-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, transparent 58%, rgba(255,255,255,.18) 59%, transparent 70%), radial-gradient(circle at 96% 72%, rgba(255,255,255,.22), transparent 18%);
        pointer-events: none;
    }

.ticket-drag {
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.42);
}

.ticket-close {
    position: absolute;
    top: 28px;
    right: 24px;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: white;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.ticket-eyebrow,
.ticket-title,
.ticket-subtitle {
    position: relative;
    z-index: 1;
    padding-right: 58px;
}

.ticket-eyebrow {
    font-size: 16px;
    font-weight: 900;
    opacity: .95;
    margin-bottom: 12px;
}

.ticket-title {
    font-size: clamp(27px, 6vw, 46px);
    line-height: 1.12;
    font-weight: 1000;
    letter-spacing: -1px;
    text-shadow: 0 4px 18px rgba(0,0,0,.2);
    word-break: keep-all;
}

    .ticket-title span {
        color: #ffd75c;
        white-space: nowrap;
    }

.ticket-subtitle {
    margin-top: 12px;
    font-size: clamp(17px, 4vw, 25px);
    font-weight: 1000;
    color: rgba(255,255,255,.92);
}

.ticket-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.ticket-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.ticket-kpi-card {
    min-width: 0;
    min-height: 128px;
    padding: 14px 10px;
    text-align: center;
    background: #fff;
    border: 1px solid #dbe8fb;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 61, 145, .08);
}

.ticket-kpi-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    background: linear-gradient(135deg, #0c60ff, #24c0ff);
    box-shadow: 0 10px 22px rgba(0, 95, 255, .22);
}

    .ticket-kpi-icon.green {
        background: linear-gradient(135deg, #16a34a, #39d987);
    }

.ticket-kpi-label {
    color: #52617a;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1.25;
}

.ticket-kpi-value {
    color: #0a2358;
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 1000;
    line-height: 1;
    white-space: nowrap;
}

    .ticket-kpi-value.win,
    .ticket-kpi-status.win {
        color: #18a85d;
    }

.ticket-kpi-unit {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    margin-top: 4px;
}

.ticket-kpi-status {
    margin-top: 6px;
    font-size: clamp(15px, 4vw, 20px);
    font-weight: 1000;
    line-height: 1.2;
}

.ticket-kpi-date,
.ticket-kpi-time {
    color: #0a2358;
    font-size: 14px;
    font-weight: 1000;
    line-height: 1.25;
    word-break: keep-all;
}

.ticket-kpi-time {
    color: #31517e;
    margin-top: 3px;
}

.ticket-win-panel {
    display: grid;
    grid-template-columns: minmax(135px, .9fr) minmax(150px, 1.1fr);
    align-items: stretch;
    min-height: 126px;
    margin-bottom: 22px;
    overflow: hidden;
    border-radius: 18px;
    border: 2px solid #f4bd22;
    background: linear-gradient(135deg, #fff7cf 0%, #ffffff 57%, #fff9df 100%);
    box-shadow: 0 18px 38px rgba(236, 175, 15, .13);
}

.ticket-win-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 16px 14px;
    color: white;
    background: linear-gradient(135deg, #022878, #0457d8);
}

.ticket-win-title {
    color: #ffd65d;
    font-size: 16px;
    font-weight: 1000;
    white-space: normal;
    line-height: 1.25;
}

.ticket-win-type {
    width: fit-content;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    color: #153568;
    font-size: 13px;
    font-weight: 1000;
    line-height: 1.25;
}

.ticket-win-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    min-width: 0;
}

.ticket-win-list {
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    max-height: 230px;
    overflow-y: auto;
}

.ticket-win-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 6px 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .84);
    border: 1px solid rgba(22, 163, 74, .16);
    box-shadow: 0 10px 22px rgba(6, 42, 112, .08);
}

    .ticket-win-item .ticket-win-number {
        grid-row: span 2;
        width: 64px;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 18px;
        color: #08265f;
        background: linear-gradient(135deg, #fff8d6, #ffffff);
        border: 2px solid #ffd15b;
        font-size: 34px;
        box-shadow: 0 10px 22px rgba(245, 190, 47, .18);
    }

.ticket-win-detail {
    color: #153568;
    font-size: 13px;
    font-weight: 1000;
    line-height: 1.25;
}

.ticket-win-number {
    color: #08265f;
    font-size: clamp(46px, 12vw, 62px);
    font-weight: 1000;
    line-height: 1;
    text-shadow: 0 4px 18px rgba(255, 195, 36, .22);
}

.ticket-win-money {
    color: #13a862;
    font-size: clamp(15px, 4vw, 22px);
    font-weight: 1000;
    text-align: center;
}

.ticket-list-panel {
    padding: 14px;
    border: 1px solid #dbe8fb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 61, 145, .07);
    overflow: hidden;
}

.ticket-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    color: #0a2358;
}

.ticket-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(17px, 4vw, 22px);
    font-weight: 1000;
    min-width: 0;
}

    .ticket-list-title span {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        border-radius: 11px;
        background: #edf5ff;
    }

.ticket-list-count {
    color: #71819d;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.ticket-bet-list {
    display: grid;
    gap: 12px;
}

.ticket-bet-row {
    display: grid;
    grid-template-columns: minmax(95px, 1fr) 76px minmax(78px, .85fr);
    align-items: center;
    gap: 10px;
    min-height: 86px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #dfeafa;
    box-shadow: 0 8px 22px rgba(13, 57, 129, .04);
    overflow: hidden;
}

    .ticket-bet-row.win {
        border-color: #b8f1c9;
        background: linear-gradient(90deg, #f2fff8, #ffffff);
    }

.ticket-bet-type {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 58px;
    border-radius: 16px;
    background: #edf5ff;
    color: #0f67df;
    font-size: 12px;
    font-weight: 1000;
    text-align: center;
    line-height: 1.25;
    padding: 8px 6px;
}

    .ticket-bet-type small {
        color: #153568;
        font-size: 12px;
        font-weight: 900;
    }

.ticket-bet-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    border-radius: 18px;
    color: white;
    background: linear-gradient(135deg, #0753ee, #19baff);
    box-shadow: 0 10px 22px rgba(0, 95, 255, .23);
    font-size: 28px;
    font-weight: 1000;
    letter-spacing: 1px;
    min-width: 0;
}

.ticket-bet-value {
    min-width: 0;
    display: grid;
    gap: 7px;
    color: #0a2358;
    font-size: 13px;
    font-weight: 1000;
}

    .ticket-bet-value div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .ticket-bet-value span {
        color: #64748b;
    }

.win-text {
    color: #11a65d !important;
}

.ticket-bet-status {
    grid-column: 1 / -1;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 98px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 1000;
    background: #fff0f0;
    color: #e02626;
    white-space: nowrap;
}

    .ticket-bet-status.win {
        background: #dcfce7;
        color: #15803d;
    }

    .ticket-bet-status.lose {
        background: #fee2e2;
        color: #dc2626;
    }

    .ticket-bet-status.paid {
        background: #dcfce7;
        color: #15803d;
    }

    .ticket-bet-status.buy,
    .ticket-bet-status.wait {
        background: #fff7ed;
        color: #ea580c;
    }

.popup-load-more-bets {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 13px 14px;
    background: linear-gradient(135deg, #0b73ff, #19b6ff);
    color: white;
    font-weight: 1000;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(25, 118, 255, .24);
}

.ticket-empty-card {
    margin-top: 10px;
    padding: 28px 16px;
    text-align: center;
    background: white;
    border-radius: 20px;
    color: #64748b;
    font-weight: 900;
    border: 1px solid #e4edfb;
}

.pol-loading-spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 3px solid #dbeafe;
    border-top-color: #1683ff;
    animation: polSpin .8s linear infinite;
}

@keyframes polSpin {
    to {
        transform: rotate(360deg);
    }
}

.ticket-footnote {
    margin-top: 17px;
    text-align: center;
    color: #7b8aa4;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.45;
}

@media (min-width: 680px) {
    .pol-popup-backdrop.design-v7 {
        padding: 18px;
    }

    .ticket-hero {
        min-height: 246px;
        padding: 44px 52px 34px;
    }

    .ticket-close {
        top: 30px;
        right: 32px;
        width: 56px;
        height: 56px;
        font-size: 42px;
    }

    .ticket-eyebrow {
        font-size: 18px;
    }

    .ticket-title {
        font-size: 46px;
    }

    .ticket-subtitle {
        font-size: 25px;
        margin-top: 18px;
    }

    .ticket-body {
        padding: 26px 36px 28px;
    }

    .ticket-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .ticket-kpi-card {
        min-height: 154px;
        padding: 18px 14px;
    }

    .ticket-kpi-icon {
        width: 58px;
        height: 58px;
        font-size: 26px;
        margin-bottom: 12px;
    }

    .ticket-kpi-label {
        font-size: 15px;
    }

    .ticket-kpi-value {
        font-size: 30px;
    }

    .ticket-kpi-status {
        font-size: 20px;
    }

    .ticket-kpi-date, .ticket-kpi-time {
        font-size: 16px;
    }

    .ticket-win-panel {
        grid-template-columns: minmax(170px, .95fr) minmax(210px, 1.3fr);
        min-height: 150px;
        border-width: 3px;
    }

    .ticket-win-left {
        padding: 24px;
        gap: 18px;
    }

    .ticket-win-title {
        font-size: 21px;
    }

    .ticket-win-type {
        padding: 14px 18px;
        font-size: 17px;
    }

    .ticket-win-number {
        font-size: 62px;
    }

    .ticket-win-money {
        font-size: 22px;
    }

    .ticket-list-panel {
        padding: 18px;
    }

    .ticket-list-title {
        font-size: 22px;
    }

    .ticket-list-count {
        font-size: 15px;
    }

    .ticket-bet-row {
        grid-template-columns: 150px 104px 110px 126px;
        gap: 16px;
        padding: 13px 14px;
        min-height: 84px;
        overflow: visible;
    }

    .ticket-bet-type {
        min-height: 60px;
        font-size: 15px;
    }

        .ticket-bet-type small {
            font-size: 14px;
        }

    .ticket-bet-number {
        min-height: 68px;
        font-size: 31px;
    }

    .ticket-bet-value {
        font-size: 15px;
    }

    .ticket-bet-status {
        grid-column: auto;
        justify-self: end;
        min-width: 110px;
        padding: 9px 11px;
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .pol-ticket-modal {
        width: calc(100vw - 14px);
        border-radius: 24px;
    }

    .ticket-hero {
        min-height: 172px;
        padding: 40px 22px 24px;
    }

    .ticket-close {
        width: 46px;
        height: 46px;
        right: 18px;
        top: 28px;
    }

    .ticket-title {
        font-size: 25px;
    }

    .ticket-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ticket-win-panel {
        grid-template-columns: 1fr;
    }

    .ticket-win-left {
        align-items: center;
        text-align: center;
    }

    .ticket-bet-row {
        grid-template-columns: minmax(88px, 1fr) 70px;
    }

    .ticket-bet-value {
        grid-column: 1 / -1;
    }
}


@media (max-width: 520px) {
    .ticket-win-panel.multi-win {
        grid-template-columns: 1fr;
    }

    .ticket-win-list {
        max-height: 210px;
    }

    .ticket-win-item {
        grid-template-columns: 64px 1fr;
    }

        .ticket-win-item .ticket-win-number {
            width: 58px;
            height: 58px;
            font-size: 30px;
        }
}

/*LottoBet*/


/* =====================================================
   Mobile horizontal overflow guard
   แก้หน้า Login/Home/Lotto ล้นขวาบนมือถือ
   ===================================================== */
html,
body,
#app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

.lx-login-page {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    overflow-x: hidden !important;
}

    .lx-login-page.mud-grid {
        margin: 0 !important;
    }

.lx-login-container {
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.lx-login-card {
    max-width: 100%;
}

@media (max-width: 600px) {
    .lx-login-page {
        padding: 8px 8px 18px !important;
        align-items: flex-start !important;
    }

    .lx-login-card {
        min-height: auto;
        padding: 20px 16px 24px;
    }

    .lx-top-bar {
        gap: 10px;
    }

    .lx-secure-chip {
        max-width: calc(100% - 58px);
        padding: 0 12px;
    }

        .lx-secure-chip span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .lx-subtitle-line {
        grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
    }

    .lx-actions {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Lucky X4 mobile width guard
   กันหน้าเว็บล้นขวาบนมือถือ โดยเฉพาะ MudContainer/MudGrid
   ========================================================= */
html,
body,
#app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

@media (max-width: 600px) {
    .mud-layout,
    .mud-main-content,
    .mud-container,
    .mud-grid,
    .mud-grid-item {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .mud-grid {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mud-grid-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.lucky-countdown-time {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    display: inline-block;
    min-width: 330px;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -2px;
    transform: translateZ(0);
    will-change: contents;
}

@media (max-width: 480px) {
    .lucky-countdown-time {
        min-width: 260px;
        letter-spacing: -1px;
    }
}

/* =========================================================
   ReBetDialog mobile bottom fix - 2026-06-19
   ปัญหา: popup "เลือกจากโพยเดิม" โดน bottom nav บังบนมือถือ
   ไฟล์จริงที่ใช้: Pages/Component/ReBetDialog.razor + wwwroot/css/app.css
   หมายเหตุ: app.css มี rb-dialog เดิมซ้ำหลายจุด จึง override ไว้ท้ายไฟล์ให้ชนะทุกตัว
   ========================================================= */

/* ซ่อนเมนูล่างเฉพาะตอน popup เลือกโพยเปิดอยู่ เพื่อไม่ให้ทับปุ่ม เพิ่มโพยนี้ */
body:has(.rb-dialog) .lux-footer,
body:has(.rb-dialog) .buy-footer {
    transform: translateY(120%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ยก dialog ให้อยู่เหนือ layout ทั้งหมด และจัดเป็น bottom sheet จริง */
.rb-dialog.mud-dialog,
.rb-dialog .mud-dialog {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    width: min(94vw, 560px) !important;
    max-width: 560px !important;
    max-height: calc(100dvh - 18px - env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 6000 !important;
}

    .rb-dialog .mud-dialog-content,
    .rb-dialog.mud-dialog .mud-dialog-content {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        overflow: hidden !important;
        max-height: inherit !important;
    }

/* โครง popup: header/tabs/actions คงที่, list เป็นส่วนที่ scroll */
.rb-sheet {
    width: 100% !important;
    height: auto !important;
    max-height: calc(100dvh - 18px - env(safe-area-inset-bottom)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border-radius: 26px !important;
    padding: 14px 18px calc(10px + env(safe-area-inset-bottom)) 18px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28) !important;
}

.rb-handle,
.rb-header,
.rb-filter-row,
.rb-actions {
    flex: 0 0 auto !important;
}

.rb-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: min(48dvh, 430px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-right: 5px !important;
    padding-bottom: calc(98px + env(safe-area-inset-bottom)) !important;
}

/* ปุ่มล่างอยู่ใน popup เอง ไม่หลุดไปโดนเมนูล่าง */
.rb-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 20 !important;
    margin-top: 8px !important;
    padding-top: 12px !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    display: grid !important;
    grid-template-columns: 110px 1fr !important;
    gap: 12px !important;
    background: linear-gradient(180deg, rgba(255,255,255,.92), #ffffff 32%) !important;
    box-shadow: 0 -14px 24px rgba(255, 255, 255, .96) !important;
}

.rb-cancel,
.rb-add {
    min-height: 52px !important;
    height: 52px !important;
}

@media (max-width: 480px) {
    .rb-dialog.mud-dialog,
    .rb-dialog .mud-dialog {
        width: calc(100vw - 18px) !important;
        max-width: calc(100vw - 18px) !important;
        bottom: calc(8px + env(safe-area-inset-bottom)) !important;
        max-height: calc(100dvh - 18px - env(safe-area-inset-bottom)) !important;
    }

    .rb-sheet {
        border-radius: 24px !important;
        max-height: calc(100dvh - 18px - env(safe-area-inset-bottom)) !important;
        padding: 10px 12px calc(8px + env(safe-area-inset-bottom)) 12px !important;
    }

    .rb-handle {
        margin-bottom: 12px !important;
    }

    .rb-header {
        margin-bottom: 10px !important;
        gap: 10px !important;
    }

    .rb-icon {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        border-radius: 14px !important;
    }

    .rb-title {
        font-size: 20px !important;
    }

    .rb-subtitle {
        font-size: 12px !important;
    }

    .rb-close {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

    .rb-filter-row {
        margin-bottom: 10px !important;
        padding-bottom: 6px !important;
    }

    .rb-list {
        max-height: calc(100dvh - 340px - env(safe-area-inset-bottom)) !important;
        min-height: 260px !important;
        padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
    }

    .rb-card {
        min-height: 92px !important;
        padding: 10px !important;
        gap: 10px !important;
    }

    .rb-summary {
        width: 100px !important;
    }

    .rb-money {
        font-size: 15px !important;
    }

    .rb-actions {
        grid-template-columns: 96px 1fr !important;
        gap: 10px !important;
        padding-top: 10px !important;
    }

    .rb-cancel,
    .rb-add {
        min-height: 50px !important;
        height: 50px !important;
        font-size: 15px !important;
        border-radius: 14px !important;
    }
}

@media (max-height: 720px) and (max-width: 480px) {
    .rb-list {
        max-height: calc(100dvh - 320px - env(safe-area-inset-bottom)) !important;
        min-height: 220px !important;
    }

    .rb-card {
        min-height: 86px !important;
    }
}
.lux-otp-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.lux-otp-resend-btn {
    height: 44px;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #ffca28 !important;
    border: 1px solid rgba(255, 202, 40, .75) !important;
    background: rgba(255, 193, 7, .08) !important;
    text-transform: none !important;
}

    .lux-otp-resend-btn:hover {
        background: rgba(255, 193, 7, .16) !important;
        border-color: #ffca28 !important;
    }
/* ===== LotteryPol cancel pol patch 2026-06-24 ===== */
.pol-status-zone {
    flex-direction: column;
    gap: 7px;
}

.pol-status.cancel {
    color: #8a4b00;
    background: linear-gradient(135deg, #fff7d6, #ffd36b);
    border-color: rgba(217, 119, 6, .28);
    box-shadow: 0 8px 18px rgba(217, 119, 6, .16);
}

.pol-cancel-mini {
    width: 100%;
    min-width: 106px;
    height: 34px;
    border: 1px solid rgba(239, 68, 68, .22);
    border-radius: 12px;
    background: linear-gradient(135deg, #fff5f5, #ffe4e6);
    color: #dc2626;
    font-size: 12px;
    font-weight: 1000;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(220, 38, 38, .08);
}

.pol-cancel-mini:disabled {
    opacity: .62;
    cursor: not-allowed;
}

.ticket-cancel-panel {
    margin: 0 0 18px;
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid rgba(251, 146, 60, .28);
    box-shadow: 0 12px 26px rgba(251, 146, 60, .12);
}

.ticket-cancel-panel b {
    display: block;
    color: #7c2d12;
    font-size: 15px;
    font-weight: 1000;
}

.ticket-cancel-panel span {
    display: block;
    margin-top: 3px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.ticket-cancel-btn {
    min-width: 118px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 13px;
    font-weight: 1000;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(220, 38, 38, .22);
}

.ticket-cancel-btn:disabled {
    opacity: .66;
    cursor: not-allowed;
}

.ticket-cancel-done {
    margin: 0 0 18px;
    padding: 13px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fef3c7, #fff7ed);
    border: 1px solid rgba(217, 119, 6, .2);
    color: #92400e;
    font-size: 13px;
    font-weight: 1000;
    text-align: center;
}

.ticket-kpi-status.cancel,
.ticket-bet-status.cancel {
    background: #fef3c7;
    color: #b45309;
}

@media (max-width: 560px) {
    .ticket-cancel-panel {
        grid-template-columns: 1fr;
    }

    .ticket-cancel-btn {
        width: 100%;
    }
}

/* LotteryPol: filter by lotto type */
.pol-type-panel {
    max-width: 760px;
    margin: 0 auto 12px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(210, 226, 255, .82);
    box-shadow: 0 12px 28px rgba(0, 25, 90, .18);
}

.pol-filter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pol-filter-label {
    color: #073b96;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.15;
}

.pol-filter-sub {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.pol-filter-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef5ff;
    color: #155ac4;
    font-size: 11.5px;
    font-weight: 900;
    white-space: nowrap;
}

.pol-type-scroller {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pol-type-scroller::-webkit-scrollbar {
    display: none;
}

.pol-type-chip {
    flex: 0 0 auto;
    min-height: 42px;
    border: 1px solid rgba(25, 80, 180, .14);
    border-radius: 999px;
    padding: 0 14px;
    background: #f8fbff;
    color: #1f3153;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.72);
}

.pol-type-chip.active {
    color: #ffffff;
    background: linear-gradient(135deg, #1fb8ff, #235df2);
    border-color: rgba(35, 93, 242, .36);
    box-shadow: 0 10px 22px rgba(35, 93, 242, .26);
}

.pol-type-chip:disabled {
    opacity: .62;
    cursor: not-allowed;
}

.pol-type-icon {
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 560px) {
    .pol-type-panel {
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 18px;
    }

    .pol-filter-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .pol-filter-badge {
        font-size: 11px;
    }

    .pol-type-chip {
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }
}

/* ===== LotteryPol V2 isolated style - no pol-* class conflict 2026-06-24 ===== */
.lpv2-page,
.lpv2-page * {
    box-sizing: border-box;
    font-family: 'Noto Sans Thai', 'Kanit', 'Sarabun', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.lpv2-page {
    min-height: calc(100vh - 74px);
    padding: 18px 10px 92px;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 55%, #edf5ff 100%);
    color: #061b49;
}

.lpv2-shell {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.lpv2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(132, 165, 220, .28);
}

.lpv2-eyebrow {
    color: #0878ff;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 4px;
}

.lpv2-title {
    color: #061b49;
    font-size: 36px;
    line-height: 1.05;
    font-weight: 1000;
    letter-spacing: -.5px;
}

.lpv2-total-pill {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(7, 95, 230, .34);
    background: rgba(255,255,255,.94);
    color: #075fe6;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(28, 88, 180, .08);
}

.lpv2-total-icon {
    font-size: 18px;
    line-height: 1;
}

.lpv2-type-section {
    position: relative;
    z-index: 50;
    margin-bottom: 10px;
}

.lpv2-section-label {
    color: #061b49;
    font-size: 17px;
    font-weight: 1000;
    margin: 0 0 8px;
}

.lpv2-type-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 10px;
    align-items: stretch;
}

.lpv2-selected-type,
.lpv2-all-btn,
.lpv2-filter-chips button,
.lpv2-tab,
.lpv2-picker-item,
.lpv2-load-btn,
.lpv2-cancel {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.lpv2-selected-type {
    min-height: 76px;
    width: 100%;
    border: 1px solid rgba(7, 95, 230, .24);
    border-radius: 14px;
    background: #ffffff;
    color: #061b49;
    box-shadow: 0 8px 22px rgba(10, 64, 150, .07);
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    text-align: left;
}

.lpv2-selected-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0878ff;
    font-size: 27px;
    font-weight: 1000;
    background: linear-gradient(135deg, #f7fbff, #eaf4ff);
    border: 1px solid rgba(7, 95, 230, .17);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 8px 18px rgba(7, 95, 230, .08);
}

.lpv2-selected-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.18;
}

.lpv2-selected-text b {
    color: #061b49;
    font-size: 20px;
    font-weight: 1000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lpv2-selected-text small {
    color: #7081a3;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 800;
}

.lpv2-selected-check {
    width: 24px;
    height: 24px;
    margin-left: auto;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0b7dff;
    color: #fff;
    font-size: 15px;
    font-weight: 1000;
    box-shadow: 0 8px 16px rgba(0, 103, 255, .22);
}

.lpv2-chevron {
    color: #637493;
    font-size: 38px;
    line-height: 1;
    margin-left: 2px;
}

.lpv2-all-btn {
    width: 100%;
    min-height: 76px;
    border: 1px solid rgba(7, 95, 230, .34);
    border-radius: 14px;
    background: rgba(255,255,255,.95);
    color: #075fe6;
    font-size: 15px;
    font-weight: 1000;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(10, 64, 150, .07);
}

.lpv2-all-btn.open,
.lpv2-all-btn:focus,
.lpv2-selected-type:focus {
    outline: 0;
    border-color: rgba(7, 95, 230, .78);
    box-shadow: 0 12px 28px rgba(7, 95, 230, .14);
}

.lpv2-grid-icon {
    font-size: 21px;
    line-height: 1;
}

.lpv2-picker-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 13px;
    border-radius: 18px;
    background: rgba(255,255,255,.99);
    border: 1px solid rgba(7, 95, 230, .18);
    box-shadow: 0 18px 52px rgba(6, 43, 104, .22);
    z-index: 500;
    animation: lpv2Drop .14s ease-out;
}

@keyframes lpv2Drop {
    from { opacity: 0; transform: translateY(-7px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.lpv2-picker-arrow {
    position: absolute;
    top: -8px;
    right: 94px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 1px solid rgba(7, 95, 230, .18);
    border-top: 1px solid rgba(7, 95, 230, .18);
    transform: rotate(45deg);
}

.lpv2-search-box {
    height: 45px;
    border-radius: 14px;
    border: 1px solid rgba(123, 153, 199, .32);
    background: #fff;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    margin-bottom: 11px;
}

.lpv2-search-box span {
    color: #7689a9;
    font-size: 24px;
    transform: translateY(-1px);
}

.lpv2-search-box input {
    min-width: 0;
    width: 100%;
    height: 41px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #061b49;
    font-size: 14px;
    font-weight: 800;
}

.lpv2-search-box input::placeholder { color: #98a8c2; }

.lpv2-search-box button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f4f7ff;
    color: #536987;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.lpv2-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-height: 322px;
    overflow-y: auto;
    padding-right: 2px;
}

.lpv2-picker-item {
    position: relative;
    min-height: 48px;
    border: 1px solid rgba(124, 153, 198, .26);
    border-radius: 11px;
    background: #fff;
    color: #102b57;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(35, 84, 158, .04);
}

.lpv2-picker-item.active {
    border-color: rgba(7, 112, 255, .78);
    background: linear-gradient(180deg, #ffffff, #f3f9ff);
    box-shadow: 0 8px 18px rgba(7, 112, 255, .10);
}

.lpv2-picker-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0878ff;
    background: #f1f7ff;
    border: 1px solid rgba(7, 95, 230, .14);
    font-size: 17px;
    font-weight: 1000;
}

.lpv2-picker-name {
    min-width: 0;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.14;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lpv2-picker-check {
    position: absolute;
    top: -7px;
    right: -6px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #0b7dff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 1000;
    box-shadow: 0 6px 14px rgba(7, 112, 255, .24);
}

.lpv2-picker-note {
    border-top: 1px solid rgba(123, 153, 199, .18);
    margin-top: 11px;
    padding: 9px 2px 0;
    color: #7181a0;
    font-size: 12.5px;
    font-weight: 800;
    text-align: center;
}

.lpv2-filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 11px;
    margin-bottom: 0;
}

.lpv2-filter-chips::-webkit-scrollbar { display: none; }

.lpv2-filter-chips button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid rgba(124, 153, 198, .28);
    border-radius: 999px;
    background: #fff;
    color: #6b7e9d;
    font-size: 13px;
    font-weight: 900;
    cursor: default;
}

.lpv2-filter-chips button.active {
    background: linear-gradient(135deg, #1188ff, #055bea);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(7, 95, 230, .18);
}

.lpv2-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 58px;
    border-radius: 14px;
    border: 1px solid rgba(124, 153, 198, .22);
    background: rgba(255,255,255,.88);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 64, 145, .06);
    margin-bottom: 12px;
}

.lpv2-tab {
    position: relative;
    border: 0;
    background: transparent;
    color: #7b88a3;
    font-size: 16px;
    font-weight: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.lpv2-tab.active {
    color: #075fe6;
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(239,247,255,.82));
}

.lpv2-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #0878ff;
}

.lpv2-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lpv2-card {
    min-height: 138px;
    border-radius: 14px;
    border: 1px solid rgba(124, 153, 198, .18);
    background: #fff;
    box-shadow: 0 8px 22px rgba(10, 64, 150, .07);
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 132px;
    gap: 12px;
    align-items: center;
    padding: 14px;
    cursor: pointer;
}

.lpv2-card:active {
    transform: scale(.995);
}

.lpv2-doc-box {
    width: 66px;
    height: 66px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff, #eaf4ff);
    border: 1px solid rgba(7, 95, 230, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6ba4ff;
    font-size: 34px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 8px 18px rgba(33, 92, 180, .07);
}

.lpv2-card-main {
    min-width: 0;
}

.lpv2-pol-no {
    color: #061b49;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 1000;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lpv2-lotto-line {
    color: #77839f;
    font-size: 16px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 5px;
}

.lpv2-lotto-line b {
    color: #0878ff;
    font-weight: 1000;
}

.lpv2-date {
    color: #627390;
    font-size: 12.5px;
    font-weight: 800;
    padding-bottom: 7px;
    margin-bottom: 7px;
    border-bottom: 1px dashed rgba(7, 95, 230, .26);
}

.lpv2-stats {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.lpv2-stats div:not(.lpv2-vline) {
    min-width: 80px;
}

.lpv2-stats small {
    display: block;
    color: #52647e;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 3px;
}

.lpv2-stats strong {
    display: block;
    color: #061b49;
    font-size: 19px;
    font-weight: 1000;
    line-height: 1.05;
}

.lpv2-stats strong.win {
    color: #0bb457;
}

.lpv2-vline {
    width: 1px;
    min-width: 1px;
    background: rgba(124, 153, 198, .30);
}

.lpv2-card-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 9px;
}

.lpv2-status {
    min-width: 106px;
    height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 1000;
    white-space: nowrap;
}

.lpv2-status.wait {
    color: #ef8a00;
    background: #fff8e8;
    border: 1px solid rgba(238, 142, 0, .36);
}

.lpv2-status.buy,
.lpv2-status.paid {
    color: #0878ff;
    background: #f2f7ff;
    border: 1px solid rgba(7, 95, 230, .25);
}

.lpv2-status.win {
    color: #0aa84f;
    background: #edfff4;
    border: 1px solid rgba(10, 168, 79, .28);
}

.lpv2-status.lose {
    color: #7c879c;
    background: #f4f6fa;
    border: 1px solid rgba(124, 135, 156, .20);
}

.lpv2-status.cancel {
    color: #ff2e2e;
    background: #fff4f4;
    border: 1px solid rgba(255, 46, 46, .28);
}

.lpv2-view-more {
    color: #0878ff;
    font-size: 14px;
    font-weight: 1000;
    white-space: nowrap;
}

.lpv2-view-more span {
    font-size: 23px;
    vertical-align: -2px;
}

.lpv2-cancel {
    min-width: 110px;
    height: 36px;
    border-radius: 11px;
    border: 1px solid rgba(255, 46, 46, .68);
    background: #fff;
    color: #ff2e2e;
    font-size: 12px;
    font-weight: 1000;
    cursor: pointer;
}

.lpv2-cancel:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.lpv2-load-wrap {
    padding: 2px 22px 0;
}

.lpv2-load-btn {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(7, 95, 230, .26);
    border-radius: 999px;
    background: #fff;
    color: #0878ff;
    font-size: 15px;
    font-weight: 1000;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(10, 64, 150, .05);
}

.lpv2-loading-more,
.lpv2-end-list {
    text-align: center;
    color: #72819e;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 0;
}

.lpv2-empty {
    min-height: 210px;
    border: 1px dashed rgba(7, 95, 230, .28);
    border-radius: 16px;
    background: rgba(255,255,255,.70);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.lpv2-empty-icon {
    font-size: 42px;
    margin-bottom: 8px;
}

.lpv2-empty-title {
    color: #061b49;
    font-size: 18px;
    font-weight: 1000;
}

.lpv2-empty-sub {
    color: #7585a1;
    font-size: 13px;
    font-weight: 800;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .lpv2-page {
        padding: 12px 10px 88px;
    }

    .lpv2-title {
        font-size: 34px;
    }

    .lpv2-total-pill {
        min-height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .lpv2-type-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .lpv2-selected-type,
    .lpv2-all-btn {
        min-height: 58px;
    }

    .lpv2-selected-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 22px;
    }

    .lpv2-selected-text b {
        font-size: 17px;
    }

    .lpv2-selected-text small {
        font-size: 11px;
    }

    .lpv2-picker-arrow {
        right: 50%;
    }

    .lpv2-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 290px;
    }

    .lpv2-filter-chips button {
        min-height: 34px;
        padding: 0 14px;
        font-size: 12px;
    }

    .lpv2-tabs {
        min-height: 54px;
        border-radius: 13px;
    }

    .lpv2-tab {
        font-size: 15px;
    }

    .lpv2-card {
        min-height: 136px;
        grid-template-columns: 72px minmax(0, 1fr) 112px;
        gap: 8px;
        padding: 12px;
        border-radius: 14px;
    }

    .lpv2-doc-box {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .lpv2-pol-no {
        font-size: 18px;
    }

    .lpv2-lotto-line {
        font-size: 14px;
    }

    .lpv2-date {
        font-size: 11.5px;
    }

    .lpv2-stats {
        gap: 9px;
    }

    .lpv2-stats div:not(.lpv2-vline) {
        min-width: 58px;
    }

    .lpv2-stats strong {
        font-size: 16px;
    }

    .lpv2-card-side {
        gap: 7px;
    }

    .lpv2-status {
        min-width: 96px;
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .lpv2-view-more {
        font-size: 12.5px;
    }

    .lpv2-cancel {
        min-width: 98px;
        height: 34px;
        font-size: 11.5px;
        padding: 0 6px;
    }
}

@media (max-width: 390px) {
    .lpv2-page { padding-left: 8px; padding-right: 8px; }
    .lpv2-title { font-size: 31px; }
    .lpv2-header { gap: 8px; }
    .lpv2-total-pill { font-size: 12px; padding: 0 10px; }
    .lpv2-card {
        grid-template-columns: 58px minmax(0, 1fr) 92px;
        gap: 7px;
        padding: 10px;
        min-height: 128px;
    }
    .lpv2-doc-box { width: 52px; height: 52px; font-size: 25px; border-radius: 12px; }
    .lpv2-pol-no { font-size: 15.5px; }
    .lpv2-lotto-line { font-size: 13px; }
    .lpv2-date { font-size: 10.5px; }
    .lpv2-stats small { font-size: 10.5px; }
    .lpv2-stats strong { font-size: 14.5px; }
    .lpv2-status { min-width: 82px; height: 30px; font-size: 11px; }
    .lpv2-view-more { font-size: 11.5px; }
    .lpv2-cancel { min-width: 82px; height: 32px; font-size: 10.5px; }
    .lpv2-picker-grid { gap: 7px; }
    .lpv2-picker-name { font-size: 12px; }
}


/* ===== LotteryPol V2 remove top category filter chips 2026-06-24 ===== */
.lpv2-filter-chips {
    display: none !important;
}

/* ===== LotteryPol V2 colorful card polish patch 2026-06-24 ===== */
.lpv2-page {
    background:
        radial-gradient(circle at 16% 0%, rgba(34, 132, 255, .10), transparent 30%),
        radial-gradient(circle at 92% 14%, rgba(95, 214, 255, .12), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f4f9ff 56%, #eef6ff 100%) !important;
}

.lpv2-selected-type {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(239,248,255,.98) 45%, rgba(255,255,255,.98) 100%) !important;
    border-color: rgba(24, 129, 255, .32) !important;
    box-shadow: 0 10px 24px rgba(14, 98, 210, .10) !important;
}

.lpv2-selected-type::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #1388ff, #26d6ff);
}

.lpv2-selected-icon {
    color: #fff !important;
    background: linear-gradient(135deg, #1697ff, #0a62f0) !important;
    border-color: rgba(255,255,255,.70) !important;
    box-shadow: 0 10px 20px rgba(21, 118, 255, .24), inset 0 1px 0 rgba(255,255,255,.55) !important;
}

.lpv2-selected-check {
    background: linear-gradient(135deg, #0797ff, #0065ff) !important;
    box-shadow: 0 8px 15px rgba(7, 120, 255, .25);
}

.lpv2-tabs {
    background: #ffffff !important;
    border-color: rgba(24, 129, 255, .22) !important;
    box-shadow: 0 8px 22px rgba(10, 64, 150, .07);
}

.lpv2-tab.active {
    color: #006dff !important;
    background: linear-gradient(180deg, #ffffff, #eef7ff) !important;
}

.lpv2-tab.active::after {
    height: 4px !important;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, #0d7dff, #20d4ff) !important;
}

.lpv2-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(120, 170, 240, .25) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94)) padding-box,
        linear-gradient(135deg, rgba(18, 126, 255, .34), rgba(32, 212, 255, .12)) border-box !important;
    box-shadow: 0 10px 24px rgba(9, 62, 145, .08) !important;
}

.lpv2-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #1388ff, #20d4ff);
    opacity: .95;
}

.lpv2-card::after {
    content: "";
    position: absolute;
    right: -58px;
    top: -70px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(24, 129, 255, .12), transparent 64%);
    pointer-events: none;
}

.lpv2-card:hover,
.lpv2-card:active {
    border-color: rgba(24, 129, 255, .50) !important;
    box-shadow: 0 14px 30px rgba(9, 82, 190, .13) !important;
}

.lpv2-doc-box {
    position: relative;
    color: #ffffff !important;
    background: linear-gradient(135deg, #25b2ff, #075cff) !important;
    border: 0 !important;
    box-shadow: 0 10px 20px rgba(7, 106, 255, .24), inset 0 1px 0 rgba(255,255,255,.50) !important;
}

.lpv2-doc-box span {
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.12));
}

.lpv2-list .lpv2-card:nth-child(5n+2)::before,
.lpv2-list .lpv2-card:nth-child(5n+2) .lpv2-doc-box {
    background: linear-gradient(135deg, #20d891, #04a85f) !important;
}

.lpv2-list .lpv2-card:nth-child(5n+3)::before,
.lpv2-list .lpv2-card:nth-child(5n+3) .lpv2-doc-box {
    background: linear-gradient(135deg, #8d5dff, #6626d9) !important;
}

.lpv2-list .lpv2-card:nth-child(5n+4)::before,
.lpv2-list .lpv2-card:nth-child(5n+4) .lpv2-doc-box {
    background: linear-gradient(135deg, #ffb132, #ff7200) !important;
}

.lpv2-list .lpv2-card:nth-child(5n+5)::before,
.lpv2-list .lpv2-card:nth-child(5n+5) .lpv2-doc-box {
    background: linear-gradient(135deg, #ff5aa5, #e61b72) !important;
}

.lpv2-list .lpv2-card:nth-child(5n+2) .lpv2-lotto-line b { color: #08a95f !important; }
.lpv2-list .lpv2-card:nth-child(5n+3) .lpv2-lotto-line b { color: #722fe4 !important; }
.lpv2-list .lpv2-card:nth-child(5n+4) .lpv2-lotto-line b { color: #ef7900 !important; }
.lpv2-list .lpv2-card:nth-child(5n+5) .lpv2-lotto-line b { color: #e91e75 !important; }

.lpv2-pol-no {
    letter-spacing: -.15px;
}

.lpv2-date {
    border-bottom-color: rgba(37, 139, 255, .28) !important;
}

.lpv2-stats {
    gap: 10px !important;
}

.lpv2-stats div:not(.lpv2-vline) {
    min-width: 72px !important;
    border-radius: 10px;
    padding: 5px 8px 4px;
    background: linear-gradient(180deg, rgba(246, 250, 255, .95), rgba(255,255,255,.75));
}

.lpv2-stats strong.win {
    color: #02ad55 !important;
    text-shadow: 0 6px 16px rgba(2, 173, 85, .12);
}

.lpv2-status {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 7px 16px rgba(21, 79, 166, .06);
}

    .lpv2-status.lose {
        color: #ea580c !important;
        background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
        border: 1px solid #fb923c !important;
        box-shadow: 0 6px 14px rgba(249, 115, 22, .12) !important;
    }

.lpv2-status.wait {
    color: #e88400 !important;
    background: linear-gradient(180deg, #fffaf0, #fff2cc) !important;
    border-color: rgba(238, 142, 0, .38) !important;
}

.lpv2-status.win {
    color: #03a84f !important;
    background: linear-gradient(180deg, #f0fff6, #dbffeb) !important;
    border-color: rgba(3, 168, 79, .30) !important;
}

.lpv2-status.buy,
.lpv2-status.paid {
    color: #066bff !important;
    background: linear-gradient(180deg, #f4f9ff, #e7f1ff) !important;
    border-color: rgba(6, 107, 255, .30) !important;
}

.lpv2-view-more {
    color: #006dff !important;
    text-shadow: 0 6px 18px rgba(0, 109, 255, .10);
}

.lpv2-cancel {
    background: linear-gradient(180deg, #ffffff, #fff8f8) !important;
    border-color: rgba(255, 46, 46, .58) !important;
    color: #f22525 !important;
    box-shadow: 0 8px 16px rgba(255, 46, 46, .06);
}

.lpv2-load-btn {
    color: #006dff !important;
    background: linear-gradient(180deg, #ffffff, #f1f8ff) !important;
    border-color: rgba(0, 109, 255, .26) !important;
    box-shadow: 0 8px 18px rgba(10, 86, 205, .08);
}

@media (max-width: 520px) {
    .lpv2-card::before { width: 4px; }
    .lpv2-doc-box {
        border-radius: 14px !important;
    }
    .lpv2-stats div:not(.lpv2-vline) {
        min-width: 62px !important;
        padding: 4px 6px 3px;
    }
}


/* ===== LotteryPol picker style - final selected mockup 2026-06-24 ===== */
.lpv2-type-row {
    grid-template-columns: minmax(0, 1fr) !important;
}

.lpv2-all-btn {
    display: none !important;
}

.lpv2-type-section {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.lpv2-section-label {
    margin-bottom: 10px !important;
    color: #08245f !important;
    font-size: 16px !important;
    font-weight: 1000 !important;
}

.lpv2-selected-type {
    position: relative;
    min-height: 78px !important;
    border-radius: 18px !important;
    background: radial-gradient(circle at 92% 18%, rgba(16, 185, 255, .28), transparent 28%),
                linear-gradient(135deg, #ffffff 0%, #edf6ff 100%) !important;
    border: 2px solid #4094ff !important;
    box-shadow: 0 14px 30px rgba(7, 93, 240, .16), inset 0 1px 0 rgba(255,255,255,.9) !important;
    padding: 12px 18px 12px 16px !important;
    overflow: hidden;
    cursor: pointer;
}

.lpv2-selected-type::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    border-radius: 18px 0 0 18px;
    background: linear-gradient(180deg, #1f87ff, #6de8ff);
}

.lpv2-selected-type::after {
    content: "เลือก";
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 46px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0b72ff, #003fd0);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: 0 8px 18px rgba(0, 93, 240, .22);
    font-size: 12px;
    font-weight: 1000;
    line-height: 1;
}

.lpv2-selected-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #035bea 0%, #248aff 58%, #0a56d8 100%) !important;
    color: #fff !important;
    border: 3px solid #f5d17b !important;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.28), 0 8px 16px rgba(5, 89, 226, .22) !important;
    font-size: 26px !important;
    font-weight: 1000 !important;
}

.lpv2-selected-text b {
    font-size: 18px !important;
    color: #09245f !important;
}

.lpv2-selected-text small {
    margin-top: 2px !important;
    color: #0b72ff !important;
    font-size: 12.5px !important;
    font-weight: 900 !important;
}

.lpv2-selected-check {
    width: 34px !important;
    height: 34px !important;
    background: linear-gradient(180deg, #1d8bff, #156df2) !important;
    box-shadow: 0 6px 12px rgba(20, 94, 224, .22) !important;
    font-size: 18px !important;
}

.lpv2-chevron {
    width: 36px !important;
    height: 36px !important;
    border-radius: 999px !important;
    display: grid !important;
    place-items: center !important;
    background: #ffffff !important;
    border: 2px solid #9dccff !important;
    box-shadow: 0 8px 16px rgba(7, 93, 240, .12) !important;
    font-size: 32px !important;
    line-height: 1 !important;
    color: #075df0 !important;
    margin-left: 66px !important;
    transform: rotate(90deg);
}

.lpv2-selected-type:hover {
    border-color: #006dff !important;
    box-shadow: 0 16px 34px rgba(7, 93, 240, .22), inset 0 1px 0 rgba(255,255,255,.9) !important;
}

.lpv2-selected-type:active {
    transform: translateY(1px);
}

.lpv2-picker-popover {
    margin-top: 12px !important;
    padding: 12px !important;
    border-radius: 20px !important;
    border: 1px solid #c8daf7 !important;
    background: linear-gradient(180deg, #fdfefe 0%, #f9fbff 100%) !important;
    box-shadow: 0 12px 34px rgba(15, 63, 150, .14) !important;
}

.lpv2-picker-arrow {
    left: 50% !important;
    right: auto !important;
    top: -7px !important;
    width: 14px !important;
    height: 14px !important;
    margin-left: -7px !important;
    background: #fdfefe !important;
    border-left: 1px solid #c8daf7 !important;
    border-top: 1px solid #c8daf7 !important;
    transform: rotate(45deg) !important;
}

.lpv2-search-box {
    height: 46px !important;
    border-radius: 14px !important;
    border: 1px solid #d7e3f7 !important;
    background: #fff !important;
    margin-bottom: 12px !important;
    padding: 0 12px !important;
}

.lpv2-search-box span {
    font-size: 23px !important;
    color: #7b8cab !important;
}

.lpv2-search-box input {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #344c7a !important;
}

.lpv2-search-box input::placeholder {
    color: #9aabc5 !important;
}

.lpv2-search-box button {
    width: 34px !important;
    height: 34px !important;
    border-radius: 999px !important;
    background: #f1f5fb !important;
    color: #6b7c9d !important;
    font-size: 23px !important;
}

.lpv2-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    max-height: 360px !important;
    padding-right: 4px !important;
}

.lpv2-picker-grid::-webkit-scrollbar {
    width: 8px;
}

.lpv2-picker-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c7d9f5, #9bbaf0);
    border-radius: 999px;
}

.lpv2-picker-item {
    min-height: 58px !important;
    border-radius: 14px !important;
    border: 1px solid #d7e3f7 !important;
    background: #fff !important;
    padding: 10px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    justify-content: flex-start !important;
    box-shadow: 0 2px 0 rgba(255,255,255,.8) inset !important;
}

.lpv2-picker-item.active {
    background: linear-gradient(135deg, #044fe4 0%, #0f74ff 58%, #053eb5 100%) !important;
    border-color: #f0ba53 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 10px 20px rgba(7, 63, 168, .20) !important;
}

.lpv2-picker-item:nth-child(1) { background: linear-gradient(135deg, #f8fcff, #edf7ff) !important; }
.lpv2-picker-item:nth-child(2) { background: linear-gradient(135deg, #fbfffc, #f0fff7) !important; }
.lpv2-picker-item:nth-child(3) { background: linear-gradient(135deg, #fffefe, #fff7f0) !important; }
.lpv2-picker-item:nth-child(4) { background: linear-gradient(135deg, #fdfbff, #f6f1ff) !important; }
.lpv2-picker-item:nth-child(5) { background: linear-gradient(135deg, #fffdfa, #fff7ea) !important; }
.lpv2-picker-item:nth-child(6) { background: linear-gradient(135deg, #fbfeff, #eef8ff) !important; }
.lpv2-picker-item:nth-child(7) { background: linear-gradient(135deg, #fffbfd, #fff0f6) !important; }
.lpv2-picker-item:nth-child(8) { background: linear-gradient(135deg, #fdfcff, #f4f1ff) !important; }
.lpv2-picker-item:nth-child(9) { background: linear-gradient(135deg, #fbffff, #eefcff) !important; }
.lpv2-picker-item:nth-child(10) { background: linear-gradient(135deg, #fffdf9, #fff6ef) !important; }
.lpv2-picker-item:nth-child(11) { background: linear-gradient(135deg, #fcfff9, #f4fff0) !important; }
.lpv2-picker-item:nth-child(12) { background: linear-gradient(135deg, #fff9fb, #fff0f4) !important; }
.lpv2-picker-item:nth-child(13) { background: linear-gradient(135deg, #fbfcff, #f1f4ff) !important; }
.lpv2-picker-item:nth-child(14) { background: linear-gradient(135deg, #fbfffd, #effff7) !important; }
.lpv2-picker-item:nth-child(15) { background: linear-gradient(135deg, #fffdfb, #fff5ef) !important; }
.lpv2-picker-item:nth-child(16) { background: linear-gradient(135deg, #fdfcff, #f5f0ff) !important; }

.lpv2-picker-item.active * {
    color: #fff !important;
}

.lpv2-picker-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, #eff5ff, #fff) !important;
    border: 1px solid #d7e3f7 !important;
    box-shadow: 0 4px 10px rgba(22, 80, 170, .10) !important;
    font-size: 20px !important;
    font-weight: 1000 !important;
    color: #1f78ff !important;
}

.lpv2-picker-item:nth-child(2) .lpv2-picker-icon,
.lpv2-picker-item:nth-child(11) .lpv2-picker-icon { color: #1cb45e !important; }
.lpv2-picker-item:nth-child(3) .lpv2-picker-icon,
.lpv2-picker-item:nth-child(10) .lpv2-picker-icon,
.lpv2-picker-item:nth-child(15) .lpv2-picker-icon { color: #f58c10 !important; }
.lpv2-picker-item:nth-child(4) .lpv2-picker-icon,
.lpv2-picker-item:nth-child(8) .lpv2-picker-icon,
.lpv2-picker-item:nth-child(16) .lpv2-picker-icon { color: #8d4cdf !important; }
.lpv2-picker-item:nth-child(5) .lpv2-picker-icon,
.lpv2-picker-item:nth-child(12) .lpv2-picker-icon { color: #ff4e92 !important; }
.lpv2-picker-item:nth-child(6) .lpv2-picker-icon,
.lpv2-picker-item:nth-child(9) .lpv2-picker-icon,
.lpv2-picker-item:nth-child(14) .lpv2-picker-icon { color: #22a7dc !important; }
.lpv2-picker-item:nth-child(7) .lpv2-picker-icon,
.lpv2-picker-item:nth-child(13) .lpv2-picker-icon { color: #22a678 !important; }

.lpv2-picker-item.active .lpv2-picker-icon {
    background: linear-gradient(135deg, #0a64f0 0%, #0f8fff 100%) !important;
    border: 2px solid #f7cc6b !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.20), 0 6px 12px rgba(3, 60, 178, .24) !important;
}

.lpv2-picker-name {
    font-size: 14px !important;
    font-weight: 900 !important;
    color: #0b265f !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lpv2-picker-check {
    right: -7px !important;
    top: -7px !important;
    width: 26px !important;
    height: 26px !important;
    border: 2px solid #fff !important;
    background: linear-gradient(180deg, #ffd978, #ecb450) !important;
    color: #3f2a00 !important;
    box-shadow: 0 5px 12px rgba(145, 91, 6, .18) !important;
    font-size: 14px !important;
}

.lpv2-picker-note {
    margin-top: 12px !important;
    border-radius: 16px !important;
    border: 1px solid #d8e4f7 !important;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%) !important;
    color: #61779f !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    padding: 12px 14px !important;
    text-align: center !important;
}

@media (max-width: 520px) {
    .lpv2-selected-type {
        min-height: 72px !important;
        padding: 10px 12px !important;
    }
    .lpv2-selected-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 24px !important;
    }
    .lpv2-selected-text b { font-size: 16px !important; }
    .lpv2-selected-type::after {
        right: 48px;
        min-width: 40px;
        height: 25px;
        font-size: 11px;
    }
    .lpv2-chevron {
        width: 32px !important;
        height: 32px !important;
        margin-left: 54px !important;
        font-size: 28px !important;
    }
    .lpv2-picker-grid {
        gap: 8px !important;
    }
    .lpv2-picker-item {
        min-height: 54px !important;
        padding: 9px 10px !important;
        gap: 10px !important;
    }
    .lpv2-picker-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 18px !important;
    }
    .lpv2-picker-name {
        font-size: 13px !important;
    }
}


/* ===== LotteryPol picker selected mockup FIX: force active color after nth-child 2026-06-24 ===== */
.lpv2-picker-popover {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
    border: 1px solid #c4d8f8 !important;
    box-shadow: 0 16px 34px rgba(7, 42, 118, .16) !important;
}

.lpv2-picker-item.active,
.lpv2-picker-grid .lpv2-picker-item.active,
.lpv2-picker-grid .lpv2-picker-item.active:nth-child(n) {
    background: linear-gradient(135deg, #0759df 0%, #0d78ff 52%, #033fae 100%) !important;
    border: 1.5px solid #f1bd55 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 10px 20px rgba(4, 67, 182, .22) !important;
    color: #ffffff !important;
}

.lpv2-picker-item.active .lpv2-picker-name,
.lpv2-picker-grid .lpv2-picker-item.active:nth-child(n) .lpv2-picker-name {
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(0,0,0,.12) !important;
}

.lpv2-picker-item.active .lpv2-picker-icon,
.lpv2-picker-grid .lpv2-picker-item.active:nth-child(n) .lpv2-picker-icon {
    background: linear-gradient(135deg, #0e67ef 0%, #1e91ff 100%) !important;
    color: #ffffff !important;
    border: 2px solid #f7cb68 !important;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.24), 0 6px 12px rgba(3, 60, 178, .24) !important;
}

.lpv2-picker-item.active .lpv2-picker-check,
.lpv2-picker-grid .lpv2-picker-item.active:nth-child(n) .lpv2-picker-check {
    background: linear-gradient(180deg, #ffe088, #e7b24a) !important;
    color: #4c3200 !important;
    border: 2px solid #ffffff !important;
}

.lpv2-picker-item:not(.active) {
    box-shadow: 0 4px 10px rgba(20, 74, 150, .04), inset 0 0 0 1px rgba(255,255,255,.65) !important;
}

.lpv2-picker-item:not(.active):active {
    transform: scale(.985) !important;
}


/* ===== Global font weight soft patch ===== */
html,
body,
button,
input,
select,
textarea,
.mud-typography,
.mud-button,
.mud-input,
.mud-select,
.mud-table,
.mud-list,
.mud-nav-link {
    font-family: 'Noto Sans Thai', 'Kanit', sans-serif !important;
    font-weight: 400 !important;
}

/* ลดความหนาของหัวข้อ */
h1, h2, h3, h4, h5, h6,
b,
strong,
.title,
.header,
[class*="title"],
[class*="Title"],
[class*="label"],
[class*="Label"] {
    font-weight: 500 !important;
}

/* ลดพวกปุ่ม / badge / tab ที่มักหนามาก */
button,
.badge,
[class*="btn"],
[class*="Btn"],
[class*="tab"],
[class*="Tab"],
[class*="pill"],
[class*="Pill"],
[class*="status"],
[class*="Status"] {
    font-weight: 500 !important;
}
/* =====================================================
   LotteryPol popup design v8 blue
   ใช้เฉพาะ popup รายละเอียดโพยเท่านั้น ไม่ทับ style หน้าอื่น
   ===================================================== */
.pol-popup-backdrop.design-v8-blue,
.pol-popup-backdrop.design-v8-blue * {
    box-sizing: border-box;
}

.pol-popup-backdrop.design-v8-blue {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(2, 10, 31, .74);
    backdrop-filter: blur(8px);
    overflow: hidden;
    font-family: Kanit, Tahoma, sans-serif;
}

.pol-v8-modal {
    position: relative;
    width: min(430px, 100%);
    height: min(900px, calc(100vh - 20px));
    max-height: calc(100vh - 20px);
    height: min(900px, calc(100svh - 20px));
    max-height: calc(100svh - 20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #071d49;
    background: #f7fbff;
    border-radius: 24px;
    border: 1px solid rgba(91, 176, 255, .58);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .46);
    animation: polV8PopupIn .18s ease-out;
}

@keyframes polV8PopupIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.985);
    }

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

.pol-v8-topbar {
    position: relative;
    flex: 0 0 auto;
    min-height: 126px;
    padding: 22px 16px 17px;
    color: #fff;
    background:
        radial-gradient(circle at 100% -10%, rgba(18, 156, 255, .55) 0 23%, transparent 24%),
        radial-gradient(circle at 6% 92%, rgba(14, 128, 255, .22) 0 17%, transparent 18%),
        linear-gradient(135deg, #06193f 0%, #063276 58%, #031633 100%);
    overflow: hidden;
}

.pol-v8-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(35, 174, 255, .9), transparent);
}

.pol-v8-back {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .72);
    background: linear-gradient(180deg, rgba(22, 75, 145, .92), rgba(4, 33, 84, .92));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(57, 168, 255, .2), 0 8px 18px rgba(0, 0, 0, .22);
    cursor: pointer;
}

.pol-v8-back span {
    font-size: 30px;
    line-height: .75;
}

.pol-v8-page-title {
    position: absolute;
    left: 118px;
    right: 88px;
    top: 29px;
    z-index: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 4px 14px rgba(0, 0, 0, .32);
}

.pol-v8-slashes {
    position: absolute;
    right: 14px;
    top: 38px;
    display: flex;
    gap: 5px;
    transform: skewX(-24deg);
}

.pol-v8-slashes i {
    display: block;
    width: 18px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, #0d66d9, #15b8ff);
    opacity: .95;
}

.pol-v8-scroll {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px 20px;
    margin-top: -45px;
    background:
        radial-gradient(circle at 0% 7%, rgba(0, 92, 255, .06) 0 13%, transparent 14%),
        radial-gradient(circle at 95% 2%, rgba(11, 144, 255, .08) 0 12%, transparent 13%),
        linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.pol-v8-lotto-card {
    position: relative;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 2px 13px;
    padding: 14px 48px 14px 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(1, 86, 210, .72);
    border-radius: 5px 20px 5px 20px;
    box-shadow: 0 10px 22px rgba(0, 45, 113, .12);
    overflow: hidden;
}

.pol-v8-lotto-card::before,
.pol-v8-lotto-card::after {
    content: "";
    position: absolute;
    inset: 5px;
    pointer-events: none;
    border-radius: 4px 16px 4px 16px;
    border: 2px solid rgba(11, 151, 255, .18);
}

.pol-v8-lotto-card::after {
    inset: auto -3px 6px auto;
    width: 54px;
    height: 24px;
    border: 0;
    background: linear-gradient(135deg, transparent 0 45%, #0b70de 46% 55%, transparent 56% 100%);
    opacity: .8;
}

.pol-v8-lotto-icon {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(145deg, #063679, #0e75e8);
    border: 2px solid rgba(68, 188, 255, .76);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 8px 16px rgba(0, 78, 181, .25);
    font-size: 25px;
    font-weight: 1000;
}

.pol-v8-lotto-name {
    position: relative;
    z-index: 1;
    min-width: 0;
    color: #061f50;
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pol-v8-lotto-edge {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 3px solid #62708c;
    border-right: 3px solid #62708c;
    transform: translateY(-50%) rotate(45deg);
    opacity: .85;
}

.pol-v8-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 2px 11px;
}

.pol-v8-polno {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    color: #082557;
    white-space: nowrap;
    overflow: hidden;
}

.pol-v8-polno span {
    flex: 0 0 auto;
    font-weight: 700;
}

.pol-v8-polno b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
    font-weight: 1000;
    letter-spacing: .2px;
}

.pol-v8-status {
    flex: 0 0 auto;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 7px;
    color: white;
    font-size: 16px;
    font-weight: 1000;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .18);
}

.pol-v8-status.lose { background: linear-gradient(180deg, #ff1717, #d70505); }
.pol-v8-status.win { background: linear-gradient(180deg, #18b83a, #07851f); }
.pol-v8-status.wait { background: linear-gradient(180deg, #f59e0b, #d97706); }
.pol-v8-status.cancel { background: linear-gradient(180deg, #64748b, #334155); }

.pol-v8-status span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .23);
}

.pol-v8-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin: 0 2px 12px;
}

.pol-v8-summary-card {
    position: relative;
    min-height: 72px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border-radius: 8px;
    border: 1px solid #c7dbf6;
    background: #fff;
    color: #061f50;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 50, 132, .08);
}

.pol-v8-summary-card.stake {
    color: #ffffff;
    border-color: #0679ff;
    background: linear-gradient(145deg, #063e90 0%, #075fce 68%, #003474 100%);
    box-shadow: inset 0 0 0 2px rgba(49, 183, 255, .25), 0 8px 18px rgba(0, 66, 165, .2);
}

.pol-v8-summary-card::after,
.pol-v8-mini-card.stake::after,
.pol-v8-line-result.lose::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 44px;
    height: 28px;
    background: linear-gradient(135deg, transparent 0 50%, rgba(16, 163, 255, .85) 51% 62%, transparent 63% 100%);
    opacity: .85;
}

.pol-v8-summary-card.profit.win {
    color: #07851f;
    border-color: #b7ecc4;
    background: linear-gradient(180deg, #ffffff, #f2fff5);
}

.pol-v8-summary-card.profit.lose,
.pol-v8-summary-card.profit.cancel,
.pol-v8-summary-card.profit.wait {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.pol-v8-summary-card span {
    font-size: 15px;
    font-weight: 700;
}

.pol-v8-summary-card b {
    font-size: 29px;
    font-weight: 1000;
    line-height: 1;
}

.pol-v8-cancel-panel,
.pol-v8-cancel-done,
.pol-v8-loading-card {
    margin: 0 2px 12px;
    border-radius: 10px;
    border: 1px solid #c7dbf6;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 50, 132, .07);
}

.pol-v8-cancel-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px;
}

.pol-v8-cancel-panel div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.pol-v8-cancel-panel b {
    color: #082557;
    font-size: 13px;
    font-weight: 900;
}

.pol-v8-cancel-panel span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.pol-v8-cancel-panel button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    color: white;
    background: linear-gradient(180deg, #ef4444, #b91c1c);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.pol-v8-cancel-panel button:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.pol-v8-cancel-done {
    padding: 12px;
    color: #475569;
    font-weight: 900;
    text-align: center;
}

.pol-v8-loading-card {
    min-height: 120px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #64748b;
    font-weight: 800;
}

.pol-v8-spinner {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 3px solid #dbeafe;
    border-top-color: #0b72e7;
    animation: polV8Spin .85s linear infinite;
}

@keyframes polV8Spin {
    to { transform: rotate(360deg); }
}

.pol-v8-ticket-list {
    display: grid;
    gap: 12px;
    padding: 0 2px 4px;
}

.pol-v8-bet-card {
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #0c5ec8;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 47, 122, .11);
}

.pol-v8-bet-card.win {
    border-color: #18a43a;
    box-shadow: 0 10px 22px rgba(16, 185, 129, .12);
}

.pol-v8-bet-card.cancel {
    border-color: #94a3b8;
}

.pol-v8-bet-head {
    position: relative;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 42px 8px 12px;
    color: #ffffff;
    background: linear-gradient(180deg, #0b61ca, #054da8);
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pol-v8-bet-card.win .pol-v8-bet-head {
    background: linear-gradient(180deg, #17a83a, #087622);
}

.pol-v8-bet-card.cancel .pol-v8-bet-head {
    background: linear-gradient(180deg, #64748b, #334155);
}

.pol-v8-card-check {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #0aa12a;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .18);
}

.pol-v8-bet-body {
    display: grid;
    grid-template-columns: minmax(112px, .92fr) minmax(0, 1.08fr);
    gap: 10px;
    padding: 11px;
}

.pol-v8-number-side {
    min-width: 0;
    min-height: 166px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 7px;
    border-radius: 9px;
    border: 1px solid #96aac7;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.pol-v8-number-label {
    color: #071d49;
    font-size: 14px;
    font-weight: 700;
}

.pol-v8-number-boxes {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.pol-v8-number-boxes span {
    width: 47px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #ffffff;
    background: linear-gradient(145deg, #0755bf, #063984);
    border: 1px solid #0c73f6;
    box-shadow: inset 0 0 0 2px rgba(28, 153, 255, .25), 0 7px 12px rgba(0, 55, 139, .18);
    font-size: 30px;
    line-height: 1;
    font-weight: 1000;
}

.pol-v8-type-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #062a66;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.pol-v8-type-name::after {
    content: "";
    width: 20px;
    height: 9px;
    display: inline-block;
    background: repeating-linear-gradient(135deg, #0c9dff 0 5px, transparent 5px 9px);
    transform: skewX(-14deg);
}

.pol-v8-info-side {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 6px;
}

.pol-v8-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.pol-v8-mini-card {
    position: relative;
    min-width: 0;
    min-height: 58px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid #b9cbe3;
}

.pol-v8-mini-card.stake {
    color: #ffffff;
    border-color: #0a73ff;
    background: linear-gradient(145deg, #063e90, #075ec8 70%, #003574);
    box-shadow: inset 0 0 0 2px rgba(47, 176, 255, .22);
}

.pol-v8-mini-card.pay {
    color: #ffffff;
    border-color: #f0c04c;
    background: linear-gradient(145deg, #dca832, #c39126);
    box-shadow: inset 0 0 0 2px rgba(255, 245, 171, .25);
}

.pol-v8-mini-card span {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.pol-v8-mini-card b {
    font-size: 21px;
    font-weight: 1000;
    line-height: 1;
}

.pol-v8-result-number,
.pol-v8-line-result {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #96aac7;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    color: #071d49;
}

.pol-v8-result-number {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.pol-v8-result-number span,
.pol-v8-line-result span {
    color: #283a5d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.pol-v8-result-number b {
    color: #0b55ba;
    font-size: 19px;
    font-weight: 1000;
    line-height: 1;
}

.pol-v8-line-result {
    position: relative;
    overflow: hidden;
    min-height: 43px;
    color: #ffffff;
    background: linear-gradient(145deg, #06489c, #075fc9);
    border-color: #0a73ff;
    box-shadow: inset 0 0 0 1px rgba(78, 185, 255, .25);
}

.pol-v8-line-result.win {
    color: #07851f;
    background: linear-gradient(180deg, #f4fff6, #ffffff);
    border-color: #b6edc3;
    box-shadow: none;
}

.pol-v8-line-result.wait {
    color: #a16207;
    background: linear-gradient(180deg, #fffbeb, #ffffff);
    border-color: #fde68a;
    box-shadow: none;
}

.pol-v8-line-result.cancel {
    color: #475569;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border-color: #cbd5e1;
    box-shadow: none;
}

.pol-v8-line-result.lose span,
.pol-v8-line-result.lose b {
    color: #ffffff;
}

.pol-v8-line-result.win span,
.pol-v8-line-result.win b {
    color: #07911f;
}

.pol-v8-line-result.wait span,
.pol-v8-line-result.wait b {
    color: #a16207;
}

.pol-v8-line-result.cancel span,
.pol-v8-line-result.cancel b {
    color: #475569;
}

.pol-v8-line-result b {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 1000;
    line-height: 1;
}

.pol-v8-load-more {
    width: calc(100% - 4px);
    margin: 8px 2px 4px;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(180deg, #0b61ca, #054da8);
    box-shadow: 0 9px 18px rgba(0, 55, 139, .16);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.pol-v8-bottom-nav {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    min-height: 79px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #08275a, #041a3f);
    border-top: 1px solid rgba(62, 176, 255, .42);
    box-shadow: 0 -12px 26px rgba(3, 20, 55, .28);
}

.pol-v8-nav-item {
    position: relative;
    min-width: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: rgba(255, 255, 255, .94);
    text-decoration: none;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.pol-v8-nav-item span,
.pol-v8-nav-item em {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 19px;
    font-style: normal;
    line-height: 1;
}

.pol-v8-nav-item b {
    min-width: 0;
    max-width: 100%;
    color: inherit;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pol-v8-nav-item.active {
    transform: translateY(-14px);
    color: #ffffff;
    background: linear-gradient(180deg, #0f6fdc, #053f94);
    border: 1px solid rgba(93, 198, 255, .78);
    box-shadow: 0 8px 18px rgba(0, 45, 120, .34), inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.pol-v8-nav-item.active em {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    background: linear-gradient(145deg, #0b90ff, #053b9c);
    border: 1px solid rgba(163, 220, 255, .85);
    font-size: 22px;
    font-weight: 1000;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12);
}

@media (max-width: 480px) {
    .pol-popup-backdrop.design-v8-blue {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
        background: #031022;
    }

    .pol-v8-modal {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        height: 100svh;
        max-height: 100svh;
        border-radius: 0;
        border: 0;
    }
}

@media (max-width: 370px) {
    .pol-v8-topbar {
        min-height: 118px;
        padding: 18px 10px 15px;
    }

    .pol-v8-back {
        min-height: 36px;
        padding: 6px 9px;
        font-size: 13px;
    }

    .pol-v8-page-title {
        left: 104px;
        right: 68px;
        top: 26px;
        font-size: 15px;
    }

    .pol-v8-slashes {
        right: 9px;
    }

    .pol-v8-slashes i {
        width: 13px;
    }

    .pol-v8-scroll {
        padding-left: 7px;
        padding-right: 7px;
    }

    .pol-v8-lotto-card {
        min-height: 70px;
        padding-left: 13px;
    }

    .pol-v8-lotto-icon {
        width: 41px;
        height: 41px;
        font-size: 22px;
    }

    .pol-v8-lotto-name {
        font-size: 15px;
    }

    .pol-v8-polno {
        gap: 5px;
        font-size: 12px;
    }

    .pol-v8-polno b {
        font-size: 15px;
    }

    .pol-v8-status {
        min-height: 38px;
        padding: 8px 9px;
        font-size: 14px;
    }

    .pol-v8-summary-card {
        min-height: 65px;
    }

    .pol-v8-bet-body {
        grid-template-columns: minmax(102px, .85fr) minmax(0, 1.15fr);
        gap: 7px;
        padding: 8px;
    }

    .pol-v8-number-side {
        min-height: 156px;
        padding: 10px 5px;
    }

    .pol-v8-number-boxes span {
        width: 38px;
        height: 48px;
        font-size: 26px;
    }

    .pol-v8-mini-card b {
        font-size: 18px;
    }

    .pol-v8-bottom-nav {
        padding-left: 4px;
        padding-right: 4px;
    }

    .pol-v8-nav-item b {
        font-size: 9px;
    }
}

/* ===== Yiki 264 full-round grid page ===== */
.huay264-page {
    min-height: calc(100vh - 70px);
    padding-bottom: 82px !important;
    background:
        radial-gradient(circle at 25% 8%, rgba(255,255,255,.95), transparent 23%),
        radial-gradient(circle at 82% 18%, rgba(220,235,255,.85), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%) !important;
    color: #075fc6;
    font-family: 'Sarabun', 'Noto Sans Thai', 'Segoe UI', sans-serif;
    font-weight: 400;
}

.huay264-page * {
    font-family: 'Sarabun', 'Noto Sans Thai', 'Segoe UI', sans-serif;
}

.huay264-titlebar {
    position: sticky;
    top: 0;
    z-index: 5;
    height: 50px;
    margin: 4px 0 8px;
    border-radius: 8px;
    background: linear-gradient(180deg, #0874df 0%, #005bc2 100%);
    box-shadow: 0 3px 8px rgba(0, 67, 160, .25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.huay264-title {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: .2px;
}

.huay264-back-btn {
    position: absolute;
    left: 8px;
    top: 8px;
    height: 34px;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 400;
    padding: 0 10px 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .14);
}

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

.huay264-card {
    min-height: 88px;
    border: 1px solid #0068d9;
    border-radius: 7px;
    background:
        radial-gradient(circle at 62% 42%, rgba(232,242,255,.88), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,252,255,.98));
    box-shadow: 0 1px 4px rgba(0, 82, 190, .15);
    padding: 5px 6px;
    cursor: pointer;
    overflow: hidden;
}

.huay264-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
}

.huay264-lx-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 9px;
    background:
        radial-gradient(circle at 30% 18%, #fff2a8 0%, transparent 30%),
        linear-gradient(145deg, #ffe26b 0%, #f5b400 55%, #c78500 100%);
    color: #050505;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.65),
        0 2px 4px rgba(76,52,0,.20);
}

.huay264-card-head {
    flex: 1;
    text-align: right;
    min-width: 0;
}

.huay264-name {
    color: #005fc8;
    font-size: 14px;
    line-height: 1.08;
    font-weight: 500;
}

.huay264-round-pill {
    display: inline-flex;
    margin-top: 2px;
    padding: 2px 7px 3px;
    border-radius: 5px;
    background: linear-gradient(180deg, #0875df, #0058bc);
    color: #fff;
    font-size: 12px;
    line-height: 1.05;
    font-weight: 500;
}

.huay264-timer-row {
    margin-top: 9px;
    color: #005fc8;
    font-size: 15px;
    line-height: 1;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.huay264-timer-row.waiting {
    color: #e18a00;
    font-size: 13px;
}

.huay264-timer-row .mud-icon-root {
    color: #0068d9 !important;
    font-size: 20px !important;
}

.huay264-timer-row.waiting .mud-icon-root {
    color: #e18a00 !important;
}

.huay264-result-row {
    margin-top: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.huay264-result-box {
    min-height: 32px;
    border: 1px solid #0068d9;
    border-radius: 6px;
    background: rgba(255,255,255,.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.02;
}

.huay264-result-label {
    color: #0060c8;
    font-size: 11px;
    font-weight: 400;
}

.huay264-result-number {
    color: #005fc8;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 380px) {
    .huay264-page {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .huay264-titlebar {
        height: 48px;
        margin-bottom: 7px;
    }

    .huay264-grid {
        gap: 4px;
    }

    .huay264-card {
        min-height: 82px;
        padding: 4px 5px;
        border-radius: 6px;
    }

    .huay264-lx-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 16px;
        border-radius: 8px;
    }

    .huay264-name {
        font-size: 13px;
    }

    .huay264-round-pill {
        font-size: 11px;
        padding: 2px 6px 3px;
    }

    .huay264-timer-row {
        margin-top: 8px;
        font-size: 14px;
    }

    .huay264-timer-row .mud-icon-root {
        font-size: 18px !important;
    }

    .huay264-result-row {
        margin-top: 3px;
        gap: 3px;
    }

    .huay264-result-box {
        min-height: 29px;
        border-radius: 5px;
    }

    .huay264-result-label {
        font-size: 10px;
    }

    .huay264-result-number {
        font-size: 15px;
    }
}



/* Lucky X4: primary upcoming yiki round highlight */
/* ไฮไลต์รอบที่กำลังจะออก / รอผลออก แค่ 1 รอบ */

/* หน้า Lucky 264 / 132 / 88 แบบ grid */
.huay264-card.primary-upcoming {
    border-color: #ff7a00 !important;
    background:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,.72), transparent 22%),
        radial-gradient(circle at 78% 28%, rgba(255,233,205,.82), transparent 28%),
        linear-gradient(180deg, #fff4ea 0%, #ffe4cf 100%) !important;
    box-shadow: 0 3px 10px rgba(255, 122, 0, .24) !important;
}

.huay264-card.primary-upcoming .huay264-name {
    color: #d95c00 !important;
}

.huay264-card.primary-upcoming .huay264-round-pill {
    background: linear-gradient(180deg, #ff8f2b, #e45700) !important;
}

.huay264-card.primary-upcoming .huay264-timer-row {
    color: #d95c00 !important;
}

.huay264-card.primary-upcoming .huay264-timer-row .mud-icon-root {
    color: #f06b00 !important;
}

.huay264-card.primary-upcoming .huay264-timer-row.waiting {
    color: #d95c00 !important;
}

/* หน้า 10 นาที / 15 นาที แบบ hero + list - scope เฉพาะหน้ามันเองกันกระทบหน้าอื่น */
.lucky10-page .hero-card.primary-upcoming,
.lucky15-page .hero-card.primary-upcoming {
    background: linear-gradient(135deg, #ff8a1f, #f05a00, #b83200) !important;
    box-shadow: 0 18px 45px rgba(240, 90, 0, .35) !important;
}

.lucky10-page .next-card.primary-upcoming,
.lucky15-page .next-card.primary-upcoming {
    border: 2px solid #ff7a00 !important;
    background:
        radial-gradient(circle at 78% 24%, rgba(255, 230, 200, .86), transparent 30%),
        linear-gradient(180deg, #fff4ea 0%, #ffe4cf 100%) !important;
    box-shadow: 0 13px 24px rgba(255, 122, 0, .22) !important;
}

.lucky10-page .next-card.primary-upcoming .next-round,
.lucky10-page .next-card.primary-upcoming .next-time,
.lucky15-page .next-card.primary-upcoming .next-round,
.lucky15-page .next-card.primary-upcoming .next-time {
    color: #d95c00 !important;
}

.lucky10-page .next-card.primary-upcoming .next-pill,
.lucky10-page .next-card.primary-upcoming .closed-pill,
.lucky15-page .next-card.primary-upcoming .next-pill,
.lucky15-page .next-card.primary-upcoming .closed-pill {
    background: linear-gradient(180deg, #ff8f2b, #e45700) !important;
    color: #fff !important;
}

.lucky10-page .next-card.primary-upcoming .closed-status,
.lucky15-page .next-card.primary-upcoming .closed-status {
    color: #d95c00 !important;
}

.lucky10-page .next-card.primary-upcoming .closed-status .mud-icon-root,
.lucky15-page .next-card.primary-upcoming .closed-status .mud-icon-root {
    color: #f06b00 !important;
}

/* Login mobile single-screen fit */
@media (max-width: 600px) {
    html:has(.lx-login-page),
    body:has(.lx-login-page),
    #app:has(.lx-login-page),
    .empty-layout:has(.lx-login-page),
    .empty-main:has(.lx-login-page) {
        height: 100dvh !important;
        min-height: 100dvh !important;
        overflow: hidden !important;
    }

    .lx-login-page {
        width: 100% !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 6px !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    .lx-login-container {
        height: auto !important;
        max-height: calc(100dvh - 12px) !important;
    }

    .lx-login-card {
        min-height: 0 !important;
        max-height: calc(100dvh - 12px) !important;
        padding: 14px 14px 16px !important;
        border-radius: 18px !important;
        overflow: hidden !important;
    }

    .lx-top-bar {
        margin-bottom: 10px !important;
    }

    .lx-secure-chip {
        height: 32px !important;
        max-width: calc(100% - 42px) !important;
        padding: 0 10px !important;
        font-size: 10px !important;
        gap: 5px !important;
    }

    .lx-install-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .lx-logo-wrap {
        margin-bottom: 6px !important;
    }

    .lx-logo-glow {
        width: 104px !important;
        height: 104px !important;
        margin-top: -24px !important;
    }

    .lx-logo {
        width: 56px !important;
        height: 56px !important;
        border-radius: 16px !important;
        font-size: 23px !important;
    }

    .lx-brand {
        font-size: 31px !important;
        margin-bottom: 6px !important;
    }

    .lx-subtitle-line {
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .lx-subtitle-line p {
        font-size: 12px !important;
    }

    .lx-field-label {
        margin: 0 0 4px 4px !important;
        font-size: 12px !important;
    }

    .lx-input-shell {
        height: 44px !important;
        border-radius: 12px !important;
        margin-bottom: 9px !important;
    }

    .lx-input-icon {
        width: 42px !important;
    }

    .lx-input-icon .mud-icon-root {
        font-size: 20px !important;
    }

    .lx-input {
        padding: 0 8px !important;
    }

    .lx-input .mud-input-root,
    .lx-input .mud-input,
    .lx-input input {
        font-size: 14px !important;
    }

    .lx-options {
        margin-top: -2px !important;
        margin-bottom: 10px !important;
    }

    .lx-forgot {
        font-size: 12px !important;
    }

    .lx-login-btn {
        height: 48px !important;
        border-radius: 12px !important;
        font-size: 16px !important;
    }

    .lx-divider {
        margin: 12px 0 10px !important;
        gap: 10px !important;
    }

    .lx-divider p {
        font-size: 12px !important;
    }

    .lx-actions {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .lx-outline-btn {
        height: 42px !important;
        min-height: 42px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
        padding: 0 6px !important;
    }

    .lx-outline-btn .mud-icon-root {
        font-size: 18px !important;
    }
}

@media (max-width: 600px) and (max-height: 640px) {
    .lx-login-card {
        padding: 10px 12px 12px !important;
    }

    .lx-top-bar {
        margin-bottom: 6px !important;
    }

    .lx-logo-wrap {
        display: none !important;
    }

    .lx-brand {
        font-size: 28px !important;
        margin-bottom: 4px !important;
    }

    .lx-subtitle-line {
        display: none !important;
    }

    .lx-input-shell {
        height: 42px !important;
        margin-bottom: 7px !important;
    }

    .lx-options {
        margin-bottom: 7px !important;
    }

    .lx-login-btn {
        height: 44px !important;
    }

    .lx-divider {
        margin: 8px 0 7px !important;
    }

    .lx-outline-btn {
        height: 38px !important;
        min-height: 38px !important;
    }
}

/* Login theme: white, gold, and blue */
.lx-login-page {
    background:
        radial-gradient(circle at 18% 8%, rgba(29, 78, 216, .32), transparent 29%),
        radial-gradient(circle at 90% 18%, rgba(245, 158, 11, .24), transparent 25%),
        linear-gradient(145deg, rgba(8, 47, 116, .92) 0%, rgba(30, 64, 175, .86) 24%, rgba(239, 246, 255, .96) 25%, #ffffff 72%, #eef5ff 100%) !important;
    color: #0f2f68 !important;
}

.lx-bg-orb {
    filter: blur(22px) !important;
    opacity: .72 !important;
}

.lx-orb-1 {
    background: rgba(29, 78, 216, .38) !important;
}

.lx-orb-2 {
    background: rgba(245, 158, 11, .24) !important;
}

.lx-bg-light {
    background:
        linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(245, 158, 11, .08) 1px, transparent 1px) !important;
    background-size: 44px 44px !important;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.30), transparent 76%) !important;
}

.lx-login-card {
    color: #102a55 !important;
    background:
        linear-gradient(135deg, rgba(15, 61, 131, .96) 0%, rgba(37, 99, 235, .90) 24%, transparent 24.3%),
        radial-gradient(circle at 50% 0%, rgba(255, 213, 91, .30), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(247, 250, 255,.98)) !important;
    border: 1px solid rgba(37, 99, 235, .26) !important;
    box-shadow:
        0 0 0 1px rgba(214, 158, 46, .16),
        0 30px 80px rgba(15, 47, 104, .24),
        0 0 42px rgba(37, 99, 235, .14),
        0 10px 28px rgba(214, 158, 46, .12) !important;
}

.lx-login-card::before {
    background:
        linear-gradient(90deg, transparent, rgba(255,255,255,.70), transparent),
        radial-gradient(circle at 50% 12%, rgba(245, 158, 11, .18), transparent 20%) !important;
    opacity: .85 !important;
}

.lx-login-card::after {
    background: rgba(29, 78, 216, .16) !important;
}

.lx-card-shine,
.lx-logo-glow {
    background: radial-gradient(circle, rgba(245, 158, 11, .30), transparent 68%) !important;
}

.lx-secure-chip {
    color: #ffffff !important;
    background: rgba(15, 61, 131, .92) !important;
    border: 1px solid rgba(245, 197, 66, .46) !important;
    box-shadow: 0 10px 24px rgba(15, 61, 131, .22), inset 0 0 0 1px rgba(255,255,255,.10) !important;
}

.lx-secure-chip .mud-icon-root {
    color: #d69e2e !important;
}

.lx-install-btn {
    color: #ffffff !important;
    background: #0f3d83 !important;
    border: 1px solid rgba(245, 197, 66, .38) !important;
    box-shadow: 0 12px 26px rgba(15, 61, 131, .22) !important;
}

.lx-install-btn:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 16px 32px rgba(29, 78, 216, .24) !important;
}

.lx-logo {
    color: #0d2b5c !important;
    background:
        radial-gradient(circle at 30% 22%, #fff8c9, transparent 30%),
        linear-gradient(135deg, #fff0a8 0%, #f5c542 45%, #d69e2e 100%) !important;
    box-shadow:
        0 0 0 5px rgba(37, 99, 235, .08),
        0 16px 36px rgba(214, 158, 46, .24),
        inset 0 0 0 1px rgba(255,255,255,.72) !important;
}

.lx-brand {
    color: #0b3a82 !important;
    text-shadow: 0 2px 0 rgba(245, 197, 66, .42), 0 12px 24px rgba(29, 78, 216, .20) !important;
}

.lx-subtitle-line span,
.lx-divider span {
    background: linear-gradient(90deg, transparent, rgba(214, 158, 46, .72), transparent) !important;
}

.lx-subtitle-line p,
.lx-divider p {
    color: rgba(15, 47, 104, .72) !important;
}

.lx-field-label {
    color: rgba(15, 47, 104, .78) !important;
}

.lx-input-shell {
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    border: 1px solid rgba(37, 99, 235, .22) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.80),
        0 12px 28px rgba(15, 47, 104, .10) !important;
}

.lx-input-shell:focus-within {
    border-color: rgba(214, 158, 46, .70) !important;
    box-shadow:
        0 0 0 3px rgba(245, 197, 66, .20),
        0 14px 28px rgba(37, 99, 235, .12) !important;
}

.lx-input-icon {
    color: #ffffff !important;
    background: linear-gradient(180deg, #1d4ed8, #0f3d83) !important;
    border-right: 1px solid rgba(37, 99, 235, .18) !important;
}

.lx-input .mud-input-root,
.lx-input .mud-input,
.lx-input input {
    color: #0f2f68 !important;
}

.lx-input input::placeholder {
    color: rgba(15, 47, 104, .42) !important;
}

.lx-input .mud-input-adornment,
.lx-input .mud-input-adornment .mud-icon-button,
.lx-input .mud-input-adornment .mud-svg-icon {
    color: #0f3d83 !important;
}

.lx-login-btn {
    color: #08265a !important;
    background:
        radial-gradient(circle at 30% 20%, #fff8c9, transparent 36%),
        linear-gradient(135deg, #ffe88b 0%, #f5c542 48%, #d69e2e 100%) !important;
    box-shadow:
        0 16px 28px rgba(214, 158, 46, .25),
        0 8px 18px rgba(37, 99, 235, .10),
        inset 0 0 0 1px rgba(255,255,255,.68) !important;
}

.lx-login-btn:hover {
    box-shadow:
        0 18px 34px rgba(214, 158, 46, .34),
        0 12px 24px rgba(37, 99, 235, .14) !important;
}

.lx-outline-btn {
    color: #0f3d83 !important;
    border: 1px solid rgba(37, 99, 235, .28) !important;
    background: linear-gradient(180deg, #ffffff, #f1f7ff) !important;
    box-shadow: 0 12px 24px rgba(15, 47, 104, .09) !important;
}

.lx-outline-btn .mud-icon-root {
    color: #d69e2e !important;
}

.lx-outline-btn:hover {
    background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
    border-color: rgba(214, 158, 46, .46) !important;
    box-shadow: 0 16px 30px rgba(29, 78, 216, .16) !important;
}

.lx-input-shell input:-webkit-autofill,
.lx-input-shell input:-webkit-autofill:hover,
.lx-input-shell input:-webkit-autofill:focus,
.lx-input-shell input:-webkit-autofill:active {
    -webkit-text-fill-color: #0f2f68 !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}

/* Login redesign: premium blue-gold split composition */
.lx-login-page {
    min-height: 100dvh !important;
    padding: 28px !important;
    background:
        linear-gradient(120deg, rgba(7, 31, 83, .96) 0%, rgba(10, 57, 136, .94) 38%, rgba(238, 244, 255, .98) 38.2%, #ffffff 100%) !important;
}

.lx-bg-orb {
    display: none !important;
}

.lx-bg-light {
    background:
        linear-gradient(120deg, rgba(255,255,255,.10), transparent 30%),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.06) 1px, transparent 1px) !important;
    background-size: auto, 54px 54px, 54px 54px !important;
    mask-image: none !important;
}

.lx-login-container {
    max-width: 1120px !important;
}

.lx-login-card {
    min-height: 690px !important;
    padding: 0 !important;
    border-radius: 28px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr) !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid rgba(255,255,255,.70) !important;
    box-shadow:
        0 36px 90px rgba(7, 31, 83, .28),
        0 12px 36px rgba(214, 158, 46, .14) !important;
}

.lx-login-card::before,
.lx-login-card::after,
.lx-card-shine {
    display: none !important;
}

.lx-login-visual {
    position: relative !important;
    min-height: 690px !important;
    padding: 34px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    background:
        linear-gradient(145deg, rgba(7, 31, 83, .96), rgba(14, 82, 190, .94)),
        url("../images/home-luckyx4-banner.png") center/cover no-repeat !important;
    isolation: isolate !important;
}

.lx-login-visual::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        linear-gradient(180deg, rgba(7, 31, 83, .52), rgba(7, 31, 83, .18) 45%, rgba(7, 31, 83, .78)),
        radial-gradient(circle at 72% 20%, rgba(245, 197, 66, .42), transparent 30%) !important;
    z-index: -1 !important;
}

.lx-login-visual::after {
    content: "" !important;
    position: absolute !important;
    inset: 18px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    pointer-events: none !important;
}

.lx-visual-topline,
.lx-visual-caption {
    position: relative !important;
    z-index: 1 !important;
}

.lx-visual-topline {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

.lx-visual-topline span {
    height: 42px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
}

.lx-visual-topline b {
    color: #f8d56b !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.lx-visual-image {
    position: relative !important;
    z-index: 1 !important;
    width: min(92%, 520px) !important;
    max-height: 320px !important;
    object-fit: contain !important;
    align-self: center !important;
    filter: drop-shadow(0 28px 45px rgba(0,0,0,.34)) !important;
}

.lx-visual-caption {
    max-width: 420px !important;
    color: #ffffff !important;
}

.lx-visual-caption strong {
    display: block !important;
    margin-bottom: 8px !important;
    color: #f8d56b !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.lx-visual-caption span {
    color: rgba(255,255,255,.80) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.lx-login-form-panel {
    position: relative !important;
    z-index: 2 !important;
    padding: 34px 34px 38px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.98) 56%, #eef6ff 100%) !important;
    overflow: hidden !important;
}

.lx-login-form-panel::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.72) 42%, rgba(255,255,255,.22) 100%),
        linear-gradient(90deg, rgba(37, 99, 235, .045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(37, 99, 235, .045) 1px, transparent 1px) !important;
    background-size: auto, 62px 62px, 62px 62px !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.lx-login-form-panel::after {
    content: "" !important;
    position: absolute !important;
    top: 72px !important;
    left: 30px !important;
    right: 30px !important;
    height: 230px !important;
    border-radius: 32px !important;
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 223, 118, .36), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.56)) !important;
    border: 1px solid rgba(255,255,255,.72) !important;
    box-shadow: 0 22px 55px rgba(8, 47, 116, .10), inset 0 1px 0 rgba(255,255,255,.86) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.lx-login-form-panel > :not(.lx-number-race-bg) {
    position: relative !important;
    z-index: 2 !important;
}

.lx-number-race-bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    opacity: .22 !important;
}

.lx-number-race-bg::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.82) 44%, rgba(255,255,255,.94) 100%),
        linear-gradient(90deg, rgba(37, 99, 235, .08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(37, 99, 235, .08) 1px, transparent 1px) !important;
    background-size: auto, 48px 48px, 48px 48px !important;
}

.lx-race-track {
    position: absolute !important;
    left: -22% !important;
    right: -12% !important;
    top: 34px !important;
    height: 165px !important;
    transform: rotate(-5deg) !important;
    border-radius: 0 0 30px 30px !important;
    background:
        repeating-linear-gradient(180deg, transparent 0 19px, rgba(37, 99, 235, .16) 20px 21px),
        linear-gradient(180deg, rgba(239, 246, 255, .92), rgba(219, 234, 254, .62)) !important;
    border-bottom: 3px solid rgba(37, 99, 235, .20) !important;
}

.lx-finish-line {
    position: absolute !important;
    top: 8px !important;
    right: 13% !important;
    width: 16px !important;
    height: 142px !important;
    border-radius: 7px !important;
    background:
        conic-gradient(#0b3a82 25%, #ffffff 0 50%, #0b3a82 0 75%, #ffffff 0) 0 0 / 16px 16px !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,.72), 0 12px 24px rgba(37, 99, 235, .18) !important;
}

.lx-race-result {
    position: absolute !important;
    right: 8% !important;
    top: 56px !important;
    transform: rotate(90deg) !important;
    color: #0b3a82 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
}

.lx-runner {
    position: absolute !important;
    left: calc(4% + (var(--n) * 2.3%)) !important;
    top: calc(9px + (var(--lane) * 13px)) !important;
    width: 25px !important;
    height: 25px !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    background:
        radial-gradient(circle at 30% 24%, #ffffff 0 10%, transparent 11%),
        linear-gradient(145deg, #38bdf8 0%, #2563eb 58%, #0b3a82 100%) !important;
    box-shadow: 0 6px 13px rgba(37, 99, 235, .18) !important;
    animation: lxRunnerMove 5.6s linear infinite, lxRunnerBob .52s ease-in-out infinite alternate !important;
    animation-delay: var(--delay), var(--delay) !important;
}

.lx-runner::before,
.lx-runner::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 30px !important;
    height: 17px !important;
    transform: translate(-50%, -12%) rotate(0deg) !important;
    background:
        linear-gradient(90deg, transparent 0 7px, #0b3a82 7px 10px, transparent 10px 28px, #0b3a82 28px 31px, transparent 31px),
        linear-gradient(180deg, transparent 0 12px, #0b3a82 12px 15px, transparent 15px) !important;
    z-index: -1 !important;
    animation: lxRunnerLimbs .36s ease-in-out infinite alternate !important;
    animation-delay: var(--delay) !important;
}

.lx-runner::after {
    top: 72% !important;
    width: 25px !important;
    transform: translate(-50%, -5%) rotate(180deg) !important;
}

.lx-runner:nth-of-type(even) {
    background:
        radial-gradient(circle at 30% 24%, #ffffff 0 10%, transparent 11%),
        linear-gradient(145deg, #f5c542 0%, #2563eb 56%, #0b3a82 100%) !important;
}

@keyframes lxRunnerMove {
    0% {
        transform: translateX(0) rotate(-5deg);
    }
    100% {
        transform: translateX(74vw) rotate(5deg);
    }
}

@keyframes lxRunnerBob {
    from {
        margin-top: 0;
    }
    to {
        margin-top: -6px;
    }
}

@keyframes lxRunnerLimbs {
    from {
        rotate: -15deg;
    }
    to {
        rotate: 18deg;
    }
}

.lx-top-bar {
    margin-bottom: 18px !important;
}

.lx-secure-chip {
    height: 38px !important;
    color: #0b3a82 !important;
    background: rgba(239, 246, 255, .84) !important;
    border-color: rgba(37, 99, 235, .18) !important;
    box-shadow: 0 10px 22px rgba(8, 47, 116, .07) !important;
}

.lx-install-btn {
    width: 44px !important;
    height: 44px !important;
    background: #0b3a82 !important;
}

.lx-logo-wrap {
    margin-bottom: 12px !important;
    padding-top: 8px !important;
}

.lx-logo-glow {
    width: 150px !important;
    height: 150px !important;
    margin-top: -34px !important;
    opacity: .95 !important;
    filter: blur(18px) !important;
}

.lx-logo {
    width: 92px !important;
    height: 92px !important;
    border-radius: 26px !important;
    font-size: 36px !important;
    letter-spacing: 0 !important;
    color: #061b46 !important;
    background:
        radial-gradient(circle at 30% 18%, #fff8c9 0%, transparent 32%),
        linear-gradient(145deg, #ffe878 0%, #f8bd22 54%, #d9960d 100%) !important;
    border: 5px solid rgba(255,255,255,.86) !important;
    box-shadow:
        0 22px 44px rgba(214, 158, 46, .26),
        0 12px 24px rgba(8, 47, 116, .14),
        inset 0 1px 0 rgba(255,255,255,.70) !important;
}

.lx-brand {
    margin-bottom: 8px !important;
    color: #082f72 !important;
    font-size: 48px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-shadow:
        0 3px 0 rgba(245, 197, 66, .45),
        0 14px 30px rgba(8, 47, 116, .18) !important;
}

.lx-subtitle-line {
    margin-bottom: 30px !important;
    color: rgba(8, 47, 116, .78) !important;
}

.lx-subtitle-line p {
    padding: 0 12px !important;
    margin: 0 !important;
    color: rgba(8, 47, 116, .76) !important;
    font-weight: 900 !important;
    font-size: 14px !important;
}

.lx-subtitle-line span {
    background: linear-gradient(90deg, transparent, rgba(214, 158, 46, .55), transparent) !important;
}

.lx-field-label {
    color: #173b74 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.lx-input-shell {
    height: 58px !important;
    margin-bottom: 16px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.92) !important;
    border: 1px solid rgba(37, 99, 235, .18) !important;
    box-shadow: 0 14px 30px rgba(8, 47, 116, .08) !important;
}

.lx-input-icon {
    width: 56px !important;
    border-radius: 17px !important;
    background: linear-gradient(145deg, #0b5ee8, #083a9c) !important;
    color: #ffffff !important;
}

.lx-login-btn {
    height: 62px !important;
    margin-top: 4px !important;
    border-radius: 16px !important;
    font-size: 20px !important;
    color: #061b46 !important;
    background:
        radial-gradient(circle at 25% 20%, #fff8c9, transparent 34%),
        linear-gradient(135deg, #ffe989 0%, #f8bd22 48%, #d9960d 100%) !important;
    box-shadow:
        0 17px 30px rgba(214, 158, 46, .30),
        0 10px 20px rgba(8, 47, 116, .10),
        inset 0 1px 0 rgba(255,255,255,.72) !important;
}

.lx-divider {
    margin: 24px 0 18px !important;
}

.lx-actions {
    gap: 12px !important;
}

.lx-outline-btn {
    height: 54px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
}

@media (max-width: 960px) {
    .lx-login-page {
        padding: 14px !important;
        background: linear-gradient(180deg, #082f72 0%, #1d4ed8 18%, #eef5ff 18.2%, #ffffff 100%) !important;
    }

    .lx-login-container {
        max-width: 520px !important;
    }

    .lx-login-card {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
    }

    .lx-login-visual {
        display: none !important;
    }

    .lx-login-form-panel {
        padding: 22px 18px 24px !important;
    }
}

@media (max-width: 600px) {
    .lx-login-page {
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 8px !important;
        overflow: hidden !important;
    }

    .lx-login-card {
        max-height: calc(100dvh - 16px) !important;
        border-radius: 22px !important;
    }

    .lx-login-form-panel {
        max-height: calc(100dvh - 16px) !important;
        padding: 18px 18px 18px !important;
        overflow: hidden !important;
    }

    .lx-login-form-panel::before {
        background:
            linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.86) 48%, rgba(247,251,255,.60) 100%),
            linear-gradient(90deg, rgba(37, 99, 235, .035) 1px, transparent 1px),
            linear-gradient(180deg, rgba(37, 99, 235, .035) 1px, transparent 1px) !important;
        background-size: auto, 58px 58px, 58px 58px !important;
    }

    .lx-login-form-panel::after {
        top: 64px !important;
        left: 16px !important;
        right: 16px !important;
        height: 208px !important;
        border-radius: 28px !important;
        background:
            radial-gradient(circle at 50% 13%, rgba(255, 224, 124, .42), transparent 34%),
            linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.66)) !important;
        box-shadow: 0 18px 42px rgba(8, 47, 116, .11), inset 0 1px 0 rgba(255,255,255,.90) !important;
    }

    .lx-number-race-bg {
        opacity: .13 !important;
    }

    .lx-race-track {
        top: 54px !important;
        height: 132px !important;
        left: -34% !important;
        right: -24% !important;
        transform: rotate(-4deg) !important;
    }

    .lx-finish-line {
        height: 112px !important;
        right: 10% !important;
    }

    .lx-runner {
        width: 22px !important;
        height: 22px !important;
        top: calc(8px + (var(--lane) * 10px)) !important;
        font-size: 12px !important;
        box-shadow: 0 5px 10px rgba(37, 99, 235, .12) !important;
    }

    .lx-top-bar {
        margin-bottom: 18px !important;
    }

    .lx-secure-chip {
        height: 32px !important;
    }

    .lx-install-btn {
        width: 36px !important;
        height: 36px !important;
    }

    .lx-logo-wrap {
        margin-bottom: 10px !important;
        padding-top: 2px !important;
    }

    .lx-logo-glow {
        width: 124px !important;
        height: 124px !important;
        margin-top: -28px !important;
        opacity: .88 !important;
        filter: blur(15px) !important;
    }

    .lx-logo {
        width: 72px !important;
        height: 72px !important;
        border-radius: 22px !important;
        font-size: 30px !important;
        border-width: 4px !important;
    }

    .lx-brand {
        margin-bottom: 9px !important;
        font-size: 38px !important;
        text-shadow:
            0 2px 0 rgba(245, 197, 66, .48),
            0 12px 24px rgba(8, 47, 116, .18) !important;
    }

    .lx-subtitle-line {
        margin-bottom: 20px !important;
    }

    .lx-subtitle-line p {
        font-size: 12px !important;
        padding: 0 8px !important;
    }

    .lx-input-shell {
        height: 48px !important;
        margin-bottom: 11px !important;
        border-radius: 16px !important;
    }

    .lx-login-btn {
        height: 52px !important;
        font-size: 17px !important;
    }

    .lx-outline-btn {
        height: 40px !important;
        min-height: 40px !important;
    }
}

/* Register flow redesign: match Login premium blue-gold theme */
.lux-login-page,
.lux-register-page,
.lux-member-page,
.lux-otp-page,
.lux-bank-page,
.forgot-page {
    min-height: 100dvh !important;
    padding: 24px !important;
    position: relative !important;
    overflow-x: hidden !important;
    background:
        radial-gradient(circle at 18% 8%, rgba(245, 197, 66, .24), transparent 28%),
        radial-gradient(circle at 90% 18%, rgba(29, 78, 216, .28), transparent 28%),
        linear-gradient(120deg, #071f53 0%, #0b3a82 36%, #eef5ff 36.2%, #ffffff 100%) !important;
    font-family: 'Noto Sans Thai', 'Kanit', sans-serif !important;
}

.lux-grid-bg,
.lux-orb,
.forgot-bg-circle,
.reg-orb-a,
.reg-orb-b,
.otp-orb-a,
.otp-orb-b,
.member-orb-a,
.member-orb-b,
.bank-orb-a,
.bank-orb-b {
    display: none !important;
}

.lux-login-container,
.lux-register-wrap,
.lux-member-wrap,
.lux-otp-wrap,
.lux-bank-wrap,
.forgot-container {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.lux-bank-wrap {
    max-width: 720px !important;
}

.lux-login-card,
.lux-register-card,
.lux-member-card,
.lux-otp-card,
.lux-bank-card,
.forgot-card {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 28px !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(245, 197, 66, .16), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(247, 251, 255,.98)) !important;
    border: 1px solid rgba(255,255,255,.78) !important;
    box-shadow:
        0 34px 84px rgba(7, 31, 83, .26),
        0 12px 32px rgba(214, 158, 46, .12) !important;
    backdrop-filter: blur(18px) !important;
}

.lux-login-card::before,
.lux-register-card::before,
.lux-member-card::before,
.lux-otp-card::before,
.lux-bank-card::before,
.forgot-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 9px !important;
    background: linear-gradient(180deg, #0b3a82, #1d4ed8 50%, #f5c542) !important;
}

.lux-login-card::after,
.lux-register-card::after,
.lux-member-card::after,
.lux-otp-card::after,
.lux-bank-card::after,
.forgot-card::after {
    content: "" !important;
    position: absolute !important;
    top: -120px !important;
    right: -120px !important;
    width: 260px !important;
    height: 260px !important;
    border-radius: 50% !important;
    background: rgba(29, 78, 216, .12) !important;
    pointer-events: none !important;
}

.lux-card-glow {
    display: none !important;
}

.lux-register-content,
.lux-member-content,
.lux-otp-content {
    position: relative !important;
    z-index: 1 !important;
    padding: 32px 30px 30px !important;
}

.lux-bank-card,
.forgot-card {
    padding: 32px 30px 30px !important;
}

.lux-logo-box,
.lux-register-logo,
.lux-member-logo,
.lux-otp-logo,
.lux-bank-logo,
.forgot-logo {
    width: 76px !important;
    height: 76px !important;
    margin: 0 auto 16px !important;
    border-radius: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0d2b5c !important;
    background:
        radial-gradient(circle at 30% 22%, #fff8c9, transparent 30%),
        linear-gradient(135deg, #fff0a8 0%, #f5c542 45%, #d69e2e 100%) !important;
    box-shadow:
        0 0 0 5px rgba(37, 99, 235, .08),
        0 16px 34px rgba(214, 158, 46, .24),
        inset 0 0 0 1px rgba(255,255,255,.72) !important;
}

.lux-logo,
.lux-register-logo-icon,
.lux-member-logo-icon,
.lux-otp-logo-icon,
.lux-bank-logo-icon {
    color: #0d2b5c !important;
    font-weight: 900 !important;
}

.lux-logo {
    font-size: 30px !important;
}

.lux-brand,
.lux-register-title,
.lux-member-title,
.lux-otp-title,
.lux-bank-title,
.forgot-title {
    color: #082f72 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-shadow: 0 2px 0 rgba(245, 197, 66, .28), 0 10px 22px rgba(29, 78, 216, .12) !important;
}

.lux-subtitle,
.lux-register-subtitle,
.lux-member-subtitle,
.lux-otp-subtitle,
.lux-bank-subtitle,
.forgot-subtitle {
    color: rgba(15, 47, 104, .70) !important;
    font-weight: 600 !important;
}

.lux-input .mud-input-control,
.forgot-input .mud-input-control,
.forgot-input .mud-input-root {
    background: linear-gradient(180deg, #ffffff, #f8fbff) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 24px rgba(15, 47, 104, .08) !important;
}

.lux-input .mud-input-root,
.lux-input input,
.forgot-input .mud-input-root,
.forgot-input input,
.forgot-input .mud-input-slot {
    color: #0f2f68 !important;
    font-weight: 700 !important;
}

.lux-input .mud-input-label,
.forgot-input .mud-input-label {
    color: rgba(15, 47, 104, .56) !important;
    font-weight: 700 !important;
}

.lux-input .mud-input-outlined-border,
.forgot-input .mud-input-outlined-border {
    border-color: rgba(37, 99, 235, .22) !important;
    border-radius: 16px !important;
}

.lux-input .mud-input-outlined:hover .mud-input-outlined-border,
.forgot-input .mud-input-outlined:hover .mud-input-outlined-border {
    border-color: rgba(214, 158, 46, .55) !important;
}

.lux-input .mud-input-outlined.mud-input-focused .mud-input-outlined-border,
.forgot-input .mud-input-outlined.mud-input-focused .mud-input-outlined-border {
    border-color: #d69e2e !important;
    box-shadow: 0 0 0 3px rgba(245, 197, 66, .18) !important;
}

.lux-input .mud-input-adornment .mud-icon-root,
.forgot-input .mud-input-adornment-start,
.forgot-input .mud-input-adornment .mud-icon-root {
    color: #0b3a82 !important;
}

.lux-register-btn,
.lux-member-btn,
.lux-otp-btn,
.lux-bank-btn,
.lux-login-btn,
.forgot-next-btn {
    height: 54px !important;
    border-radius: 16px !important;
    color: #08265a !important;
    font-weight: 900 !important;
    background:
        radial-gradient(circle at 30% 20%, #fff8c9, transparent 36%),
        linear-gradient(135deg, #ffe88b 0%, #f5c542 48%, #d69e2e 100%) !important;
    box-shadow:
        0 16px 28px rgba(214, 158, 46, .25),
        0 8px 18px rgba(37, 99, 235, .10),
        inset 0 0 0 1px rgba(255,255,255,.68) !important;
    text-transform: none !important;
}

.lux-register-btn:hover,
.lux-member-btn:hover,
.lux-otp-btn:hover,
.lux-bank-btn:hover,
.lux-login-btn:hover,
.forgot-next-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        0 20px 34px rgba(214, 158, 46, .34),
        0 12px 24px rgba(37, 99, 235, .14) !important;
}

.lux-outline-btn,
.lux-otp-resend-btn,
.forgot-back-btn {
    height: 50px !important;
    border-radius: 15px !important;
    color: #0b3a82 !important;
    border: 1px solid rgba(37, 99, 235, .25) !important;
    background: linear-gradient(180deg, #ffffff, #f1f7ff) !important;
    box-shadow: 0 12px 24px rgba(15, 47, 104, .08) !important;
    font-weight: 800 !important;
    text-transform: none !important;
}

.lux-security-box,
.forgot-step-box,
.lux-alert-box {
    background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
    border: 1px solid rgba(37, 99, 235, .16) !important;
    box-shadow: 0 12px 26px rgba(15, 47, 104, .08) !important;
}

.lux-security-label,
.forgot-step-desc,
.lux-alert-box {
    color: rgba(15, 47, 104, .70) !important;
}

.lux-security-code {
    color: #0b3a82 !important;
    text-shadow: 0 2px 0 rgba(245, 197, 66, .42) !important;
}

.forgot-label,
.lux-section-title {
    color: #173b74 !important;
    font-weight: 900 !important;
}

.forgot-icon-box {
    color: #ffffff !important;
    background: linear-gradient(145deg, #0b3a82, #1d4ed8) !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .24) !important;
}

.forgot-step-title {
    color: #082f72 !important;
}

.captcha-box {
    color: #0b3a82 !important;
    background: linear-gradient(135deg, #ffffff, #eff6ff) !important;
    border: 1px solid rgba(37, 99, 235, .20) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(15, 47, 104, .08) !important;
}

.lux-otp-input .mud-input-control {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 24px rgba(15, 47, 104, .08) !important;
}

.lux-otp-input input {
    color: #0b3a82 !important;
}

.lux-otp-input .mud-input-outlined-border {
    border-color: rgba(37, 99, 235, .22) !important;
    border-radius: 16px !important;
}

.lux-bank-choice {
    background: #ffffff !important;
    border: 1px solid rgba(37, 99, 235, .18) !important;
    box-shadow: 0 10px 22px rgba(15, 47, 104, .08) !important;
}

.lux-bank-choice:hover {
    background: #eff6ff !important;
    box-shadow: 0 14px 26px rgba(15, 47, 104, .12) !important;
}

.lux-bank-choice-selected {
    background: linear-gradient(135deg, #eff6ff, #fff8d6) !important;
    border: 2px solid #d69e2e !important;
    box-shadow: 0 0 0 3px rgba(245, 197, 66, .18), 0 16px 30px rgba(15, 47, 104, .14) !important;
}

.lux-bank-choice-inner {
    color: #0f2f68 !important;
}

.user-card {
    background: #ffffff !important;
    border: 1px solid rgba(37, 99, 235, .18) !important;
    box-shadow: 0 10px 22px rgba(15, 47, 104, .08) !important;
}

.user-card.active {
    background: linear-gradient(135deg, #eff6ff, #fff8d6) !important;
    border-color: #d69e2e !important;
}

.user-avatar {
    background: linear-gradient(145deg, #0b3a82, #1d4ed8) !important;
    color: #ffffff !important;
}

.user-info,
.user-info strong,
.user-info span {
    color: #0f2f68 !important;
}

.user-check {
    color: #d69e2e !important;
}

.lux-login-page .lux-input .mud-input-label.mud-input-label-animated.mud-input-label-outlined,
.lux-register-page .lux-input .mud-input-label.mud-input-label-animated.mud-input-label-outlined,
.lux-member-page .lux-input .mud-input-label.mud-input-label-animated.mud-input-label-outlined,
.lux-otp-page .lux-input .mud-input-label.mud-input-label-animated.mud-input-label-outlined,
.lux-bank-page .lux-input .mud-input-label.mud-input-label-animated.mud-input-label-outlined,
.forgot-page .lux-input .mud-input-label.mud-input-label-animated.mud-input-label-outlined,
.lux-login-page .forgot-input .mud-input-label.mud-input-label-animated.mud-input-label-outlined,
.lux-register-page .forgot-input .mud-input-label.mud-input-label-animated.mud-input-label-outlined,
.lux-member-page .forgot-input .mud-input-label.mud-input-label-animated.mud-input-label-outlined,
.lux-otp-page .forgot-input .mud-input-label.mud-input-label-animated.mud-input-label-outlined,
.lux-bank-page .forgot-input .mud-input-label.mud-input-label-animated.mud-input-label-outlined,
.forgot-page .forgot-input .mud-input-label.mud-input-label-animated.mud-input-label-outlined {
    background: #fbfdff !important;
    color: rgba(15, 47, 104, .68) !important;
    padding: 0 6px !important;
}

@media (max-width: 600px) {
    .lux-login-page,
    .lux-register-page,
    .lux-member-page,
    .lux-otp-page,
    .lux-bank-page,
    .forgot-page {
        min-height: 100dvh !important;
        padding: 10px !important;
        background: linear-gradient(180deg, #082f72 0%, #1d4ed8 18%, #eef5ff 18.2%, #ffffff 100%) !important;
    }

    .lux-register-content,
    .lux-member-content,
    .lux-otp-content,
    .lux-bank-card,
    .forgot-card {
        padding: 22px 18px 20px !important;
        border-radius: 24px !important;
    }

    .lux-bank-choice {
        height: 92px !important;
    }
}

/* SMS advanced provider configuration */
.sms-advanced-box {
    border: 1px solid rgba(37, 99, 235, .22);
    border-radius: 18px;
    background: #f8fbff;
    overflow: hidden;
}

.sms-advanced-box > summary {
    cursor: pointer;
    list-style: none;
    padding: 15px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: #1e3a8a;
}

.sms-advanced-box > summary::-webkit-details-marker {
    display: none;
}

.sms-advanced-box[open] > summary {
    border-bottom: 1px solid rgba(37, 99, 235, .15);
    background: #eff6ff;
}

.sms-advanced-hint {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-align: right;
}

.sms-advanced-content {
    padding: 16px;
    display: grid;
    gap: 14px;
}

.sms-advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sms-advanced-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .sms-advanced-box > summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .sms-advanced-hint {
        text-align: left;
    }

    .sms-advanced-grid,
    .sms-advanced-grid-3 {
        grid-template-columns: 1fr;
    }
}
