@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

/* ==== Base ==== */
body {
    font-family: IBM Plex Sans Thai, sans-serif;
    background: #000;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    overflow-x: hidden;
    position: relative;
    padding-top: 50px;
}

/* glow bg (เหมือนเดิม) */
.blur-radius-darin-x,
.blur-radius-darin-xxx {
    pointer-events: none;
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(150px)
}

.blur-radius-darin-xx,
.blur-radius-darin-xxxx {
    pointer-events: none;
    position: fixed;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    filter: blur(150px)
}

.blur-radius-darin-x {
    top: 15%;
    left: 25%;
    background: var(--background-main);
    opacity: .75
}

.blur-radius-darin-xx {
    bottom: 15%;
    right: 25%;
    background: var(--background-main);
    opacity: .75
}

.blur-radius-darin-xxx {
    top: 65%;
    left: 25%;
    background: var(--background-main);
    opacity: .75
}

.blur-radius-darin-xxxx {
    bottom: 85%;
    right: 25%;
    background: var(--background-main);
    opacity: .75
}

/* ==== Navbar ==== */
.custom-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1)
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative
}

.logo img {
    height: 60px
}

.center-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px
}

.center-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.center-menu a:hover {
    color: var(--background-main)
}

.auth-buttons .btn {
    margin-left: 10px;
    font-weight: 500
}

/* ==== Left sidebar (ของเก่า) ==== */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, .15);
    z-index: 2000;
    padding: 60px 20px 20px;
    transition: left .3s ease
}

.sidebar.active {
    left: 0
}

.sidebar a {
    display: block;
    margin-bottom: 15px;
    color: #333;
    text-decoration: none;
    font-weight: 500
}

.sidebar a:hover {
    color: var(--background-main)
}

.breadcrumb {
    font-size: 14px;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: rgba(255, 255, 255, .75);
}

.breadcrumb-item.active {
    color: #fff;
    font-weight: bold;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .45);
}

.breadcrumb-item:hover a {
    color: #fff;
}

/* ==== Buttons ==== */
.btn-darinplus {
    text-decoration: none;
    background: var(--background-main);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .2s ease, transform .1s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.btn-darinplus:hover {
    background: var(--background-second);
    border: 1px solid var(--background-main) !important;
    color: var(--background-main);
    transform: translateY(-1px)
}

.btn-darinplus:active {
    transform: scale(.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2)
}

.btn-darinplus:disabled {
    opacity: .6;
    pointer-events: none
}

/* ==== Auth form ==== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px
}

.auth-form {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 30px 25px;
    border: 1px solid var(--background-main);
    color: #fff;
    border-radius: 1rem !important
}

.auth-form h3 {
    color: var(--background-main);
    font-weight: bold
}

.auth-form .auth-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2vh;
}

.auth-form a {
    color: var(--background-main);
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
}

.auth-form span {
    font-size: 13px;
}

.auth-form .form-label {
    color: #fff;
    font-weight: 400
}

.auth-form .form-control {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff
}

.auth-form .form-control::placeholder {
    color: #ccc
}

.auth-form .form-control:focus {
    background: rgba(255, 255, 255, .25);
    color: #fff;
    border-color: var(--background-main);
    box-shadow: none
}

/* ==== Social Login ==== */
.social-login {
    margin: 18px 0 10px;
}

.social-login .social-title {
    text-align: center;
    margin: 0 0 12px;
    color: #fff;
    font-size: 13px;
}

.social-login .social-title span {
    position: relative;
    display: inline-block;
    padding: 0 10px;
}

.social-login .social-title span::before,
.social-login .social-title span::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 46px;
    height: 1px;
    background: rgba(255, 255, 255, .25);
}

.social-login .social-title span::before {
    left: -52px;
    transform: translateY(-50%);
}

.social-login .social-title span::after {
    right: -52px;
    transform: translateY(-50%);
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 480px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    color: #fff;
    border: 1px solid transparent;
    transition: transform .08s ease, filter .15s ease, box-shadow .15s ease, opacity .15s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    background: #444;
    /* fallback */
}

.btn-social i {
    font-size: 1.05rem;
    line-height: 1;
}

.btn-social:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
}

.btn-social:active {
    transform: translateY(1px);
}

.btn-social.is-loading {
    opacity: .7;
    pointer-events: none;
}

/* Brand colors */
.btn-google {
    background: #DB4437;
}

.btn-google:hover {
    filter: brightness(1.05);
}

.btn-google:active {
    filter: brightness(.95);
}

.btn-line {
    background: #06C755;
}

.btn-line:hover {
    filter: brightness(1.05);
}

.btn-line:active {
    filter: brightness(.95);
}

.btn-discord {
    background: #5865F2;
}

.btn-discord:hover {
    filter: brightness(1.05);
}

.btn-discord:active {
    filter: brightness(.95);
}

.auth-form .btn-social {
    border-color: rgba(255, 255, 255, .12);
}

/* ==== User Sidebar (ขวา โปร่งใส/เบลอ) ==== */
.sidebar-user-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: rgba(25, 25, 25, .45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, .1);
    box-shadow: -3px 0 10px rgba(0, 0, 0, .4);
    transition: right .35s ease;
    z-index: 7000;
    color: #fff;
    padding: 25px;
    overflow-y: auto
}

.sidebar-user-panel.active {
    right: 0
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.sidebar-header h5 {
    color: #fff;
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.btn-close-sidebar {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer
}

.user-info p {
    margin: 0;
    color: #ddd;
    font-size: .95rem
}

.user-info strong {
    color: var(--background-main)
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px
}

.sidebar-links a {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    transition: all .2s ease
}

.sidebar-links a:hover {
    color: var(--background-main);
    transform: translateX(3px)
}

.sidebar-user-panel::-webkit-scrollbar {
    width: 6px
}

.sidebar-user-panel::-webkit-scrollbar-thumb {
    background: var(--background-main);
    border-radius: 3px
}

/* Overlay เวลาเปิด user sidebar */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 6500
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible
}

/* ==== SweetAlert2 อยู่บนสุด ==== */
.swal2-container {
    z-index: 10000 !important
}

/* ==== Mobile layout ==== */
@media (max-width: 991.98px) {
    .center-menu {
        display: none
    }

    /* แสดงปุ่ม auth บนมือถือเป็นแถวเดียว */
    .auth-buttons {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 10px
    }

    .auth-buttons .btn {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
        font-size: .95rem
    }
}

.mobile-main-menu {
    display: none !important
}

/* --- ให้ปุ่มในแถบ actions อยู่เหนือองค์ประกอบอื่น ๆ ของ navbar --- */
.actions-bar {
    position: relative;
    z-index: 3;
    /* กันถูกของอื่นบัง */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

/* --- ปุ่มในแถบ actions ให้จัดกลางและไม่ล้น --- */
.actions-bar .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- ตัดชื่อผู้ใช้ยาวด้วย ... --- */
.actions-bar .user-btn-label {
    display: inline-block;
    max-width: 130px;
    /* ปรับตามพื้นที่จริง */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* --- บังคับสีปุ่ม admin ให้ชนะ Bootstrap --- */
.btn-admin {
    text-decoration: none;
    background-color: var(--background-main) !important;
    color: #fff !important;
    border-color: var(--background-main) !important;
    border-radius: 8px;
    padding: 10px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transition: all .2s ease;
}

.btn-admin:hover {
    background-color: var(--background-second) !important;
    color: var(--background-main) !important;
}

/* --- มือถือ: คงอยู่แถวเดียวกัน 2 ปุ่ม ครึ่งๆ --- */
@media (max-width: 575.98px) {
    .actions-bar {
        justify-content: center;
        gap: 8px;
    }

    .actions-bar .btn {
        flex: 0 1 48%;
        font-size: .9rem;
        padding: 8px 12px;
    }

    .actions-bar .user-btn-label {
        max-width: 80px;
    }
}

.dash-grid {
    margin-top: .5rem;
}

.dash-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 110px;
    width: 100%;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #fff;
    transition: transform .12s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.dash-tile i {
    font-size: 1.4rem;
    line-height: 1;
    opacity: .95;
}

.dash-tile span {
    font-weight: 600;
    letter-spacing: .2px;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.dash-tile:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--background-main);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
    color: #fff;
}

@media (max-width: 575.98px) {
    .dash-tile {
        height: 100px;
    }

    .dash-tile i {
        font-size: 1.25rem;
    }

    .dash-tile span {
        font-size: .9rem;
    }
}

/* การ์ดฟอร์ม/พรีวิวแบบแก้ว */
.glass-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    color: #fff;
}

/* หัวข้อย่อยในฟอร์ม */
.section-title {
    font-weight: 700;
    letter-spacing: .2px;
    color: #fff;
}

/* input ให้เข้าธีม */
.glass-card .form-label {
    color: #fff;
    font-weight: 500;
}

.glass-card .form-control,
.glass-card .form-select {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
}

.glass-card .form-control::placeholder {
    color: #ccc;
}

.glass-card .form-control:focus,
.glass-card .form-select:focus {
    background: rgba(255, 255, 255, .25);
    color: #fff;
    border-color: var(--background-main);
    box-shadow: none;
}

.glass-card p {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #fff;
    font-size: 1.05rem;
    margin: 0;
}

.glass-card i {
    font-size: 1.1rem;
}

.glass-card textarea {
    height: 100px;
}

.glass-card>img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(0, 0, 0, .25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 1px rgba(255, 255, 255, .15);
    object-fit: cover;
    max-height: 560px;
    overflow: hidden;
}

/* ปุ่มบันทึก */
.btn-save {
    background: linear-gradient(135deg, #ff7a00, #ff3100);
    color: #fff !important;
    border: 0;
    border-radius: 10px;
    padding: .75rem 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-save:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.btn-save:active {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.btn-ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--background-main);
    color: var(--background-main);
}

.btn-ghost:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(.98);
}

.form-actions {
    position: static;
    z-index: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: .75rem;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.form-actions-top {
    position: static;
    z-index: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: .75rem;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* พรีวิวแบบคอมแพค (ไม่มี hero) */
.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-logo {
    height: 96px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.preview-name {
    font-weight: 700;
    font-size: 1.15rem;
}

.preview-tagline {
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
}

.preview-list {
    color: rgba(255, 255, 255, .75);
    font-size: .9rem;
}

.preview-list i {
    width: 18px;
    text-align: center;
    opacity: .9;
}

.BtnWebsite:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===== Custom Select Dark Style ===== */
.glass-card .form-select {
    background-color: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    border-radius: 8px;
    padding: .55rem 2.2rem .55rem .75rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    transition: border-color .15s ease, background-color .15s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ff7a00' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    background-size: 14px 14px;
}

.glass-card .form-select:hover {
    background-color: rgba(255, 255, 255, .18);
    border-color: var(--background-main);
}

.glass-card .form-select:focus {
    background-color: rgba(255, 255, 255, .22);
    border-color: var(--background-main);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 122, 0, .25);
}

.glass-card select option {
    background-color: #111 !important;
    color: #fff !important;
}

.glass-card select option:hover,
.glass-card select option:focus,
.glass-card select option:checked {
    background-color: var(--background-second) !important;
    color: #fff !important;
}

select:focus-visible {
    outline: none !important;
}

.glass-card select {
    color-scheme: dark;
}

.section-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .25rem;
}

.btn-save {
    background: linear-gradient(135deg, #ff7a00, #ff3100);
    color: #fff !important;
    border: 0;
    border-radius: 10px;
    padding: .75rem 1.25rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-save:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-save:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
}

.btn-ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    padding: .65rem 1rem;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--background-main);
    color: var(--background-main) !important;
}

.form-actions {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

/* =========================
   Badge Darin (Theme-based)
   ========================= */
.badge-darin {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .55rem;
    /* ลด padding */
    border-radius: 999px;
    line-height: 1;
    font-weight: 600;
    font-size: 0.65rem;
    /* ฟอนต์เล็กลง */
    letter-spacing: 0.2px;
    color: #fff;
    background: var(--background-main);
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow:
        inset 0 0 4px rgba(255, 255, 255, .05),
        0 0 4px rgba(0, 0, 0, .35);
    transition: all 0.2s ease;
}

/* จุดเล็กด้านหน้า */
.badge-darin::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--background-second);
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Hover effect นิด ๆ */
.badge-darin:hover {
    filter: brightness(1.05);
    box-shadow:
        inset 0 0 5px rgba(255, 255, 255, .08),
        0 0 6px rgba(0, 0, 0, .4);
}

/* เวอร์ชันปิด (is-off) */
.badge-darin.is-off {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: none;
}

.badge-darin.is-off::before {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.badge-darin-admin {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .55rem;
    border-radius: 999px;
    line-height: 1;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.2px;
    color: #FFF;
    background: var(--background-main);
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow:
        inset 0 0 4px rgba(255, 255, 255, .05),
        0 0 4px rgba(0, 0, 0, .35);
    transition: all 0.2s ease;
}

.badge-darin-agent {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .55rem;
    border-radius: 999px;
    line-height: 1;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.2px;
    color: #FFF;
    background: #7700FF;
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow:
        inset 0 0 4px rgba(255, 255, 255, .05),
        0 0 4px rgba(0, 0, 0, .35);
    transition: all 0.2s ease;
}

.badge-darin-member {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .55rem;
    border-radius: 999px;
    line-height: 1;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.2px;
    color: #FFF;
    background: #008cff;
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow:
        inset 0 0 4px rgba(255, 255, 255, .05),
        0 0 4px rgba(0, 0, 0, .35);
    transition: all 0.2s ease;
}

.table-responsive {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
}

.table-responsive::-webkit-scrollbar {
    display: none;
}

.table {
    width: 100%;
    table-layout: auto;
    background-color: rgba(0, 0, 0, 0.1);
    border: none !important;
    color: #FFF;
    border-radius: 12px !important;
}

.table th {
    white-space: nowrap;
    text-align: center;
    background: transparent;
    padding: 10px;
    color: #FFF;
    text-align: center;
    border-radius: 12px !important;
}

.table thred {
    background: transparent;
}

.table td {
    color: #FFF;
    background-color: transparent;
    border: none;
    text-align: center;
    justify-content: center;
}

table.dataTable>thead>tr>th,
table.dataTable>thead>tr>td {
    border-bottom: none !important;
}

.dataTables_filter,
.dataTables_info {
    display: none;
}

table.dataTable>thead>tr>th,
table.dataTable>thead>tr>td {
    border-bottom: none !important;
}

.dataTables_wrapper .page-link {
    background-color: var(--background-second);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 4px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.dataTables_wrapper .page-link:hover {
    background-color: var(--background-main);
    color: #000;
}

.dataTables_wrapper .page-item.active .page-link {
    background-color: var(--background-main);
    color: #fff;
    font-weight: bold;
    cursor: default;
}

.dataTables_wrapper .page-item.disabled .page-link {
    background-color: #111 !important;
    color: #fff !important;
    cursor: not-allowed;
}

.dataTables_wrapper li.paginate_button.page-item {
    background-color: transparent;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 4px 12px;
    margin: 0px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.dataTables_wrapper li.paginate_button.page-item:hover {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
}

.dataTables_wrapper li.paginate_button.page-item.active {
    background-color: transparent !important;
    color: #fff !important;
    font-weight: bold !important;
}

.table .col-img {
    width: 140px;
    text-align: center;
}

.table .img-preview-table {
    width: 192px;
    height: 128px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    display: inline-block;
}

.table td,
.table th {
    vertical-align: middle !important;
}

.table .btn-darin {
    text-decoration: none;
    border: transparent !important;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}

.table .btn-edit {
    background: linear-gradient(135deg, #00d47e, #019553);
}

.table .btn-edit:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.table .btn-delete {
    background: linear-gradient(135deg, #ff3d3d, #c70000);
}

.table .btn-delete:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.table .btn-darin:active {
    transform: scale(0.96);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.glass-card .form-control[readonly],
.glass-card .form-control:read-only {
    background-color: rgba(255, 255, 255, .10) !important;
    border: 1px dashed rgba(255, 255, 255, .35) !important;
    color: #cfd3d8 !important;
    cursor: not-allowed;
}

.glass-card .form-control[readonly]:focus,
.glass-card .form-control:read-only:focus {
    background-color: rgba(255, 255, 255, .12) !important;
    border-color: rgba(255, 255, 255, .45) !important;
    box-shadow: none !important;
}

.glass-card .form-control[readonly]::placeholder,
.glass-card .form-control:read-only::placeholder {
    color: rgba(255, 255, 255, .45);
}

.glass-card .form-control:disabled,
.glass-card .form-select:disabled {
    background-color: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .20) !important;
    color: rgba(255, 255, 255, .55) !important;
    cursor: not-allowed;
    opacity: 1;
}

.api-summary {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    padding: 1rem;
}

.api-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.api-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
}

.api-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: .5rem 0;
}

.api-label {
    color: #ddd;
    font-weight: 500;
}

.api-value {
    color: #fff;
    font-weight: 700;
}

.btn-xs {
    padding: .4rem .75rem;
    font-size: .85rem;
    border-radius: 8px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .2px;
    border: 1px solid transparent;
    line-height: 1;
}

.badge-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-status.is-online {
    background: rgba(34, 197, 94, .15);
    color: #86efac;
    border-color: rgba(34, 197, 94, .35);
}

.badge-status.is-online::before {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, .6);
}

.badge-status.is-offline {
    background: rgba(239, 68, 68, .12);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, .35);
}

.badge-status.is-offline::before {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, .6);
}

.menu-tile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 110px;
    width: 100%;
    padding: 1rem 1.25rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #fff;
    transition: all 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.menu-tile:hover {
    background: var(--background-second);
    border-color: var(--background-main);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
    color: #fff;
}

.menu-tile:hover i {
    color: var(--background-main);
    filter: drop-shadow(0 0 6px var(--background-second));
}

.menu-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-text .title {
    font-size: 1.2rem;
    font-weight: 700;
}

.menu-text .subtitle {
    font-size: 0.9rem;
    color: #ccc;
}

.menu-icon {
    font-size: 2.5rem;
    line-height: 1;
    opacity: .95;
    transition: filter 0.2s ease, color 0.2s ease;
}

.category-card {
    display: block;
    /* ให้คลิกได้ทั้งการ์ด */
    text-decoration: none !important;
    /* ตัดเส้นขีดล่าง */
    color: inherit !important;
    /* ใช้สีข้อความตาม parent */
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    padding: 10px;
    transition: all .5s ease;
}

/* hover */
.category-card:hover {
    background: var(--background-second);
    border-color: var(--background-main);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
    text-decoration: none !important;
    /* กันขีดตอน hover */
    color: #fff !important;
}

.category-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* รูป */
.category-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: none;
    background: rgba(0, 0, 0, .25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35),
        inset 0 0 1px rgba(255, 255, 255, .15);
    object-fit: cover;
    max-height: 560px;
    transition: transform 0.6s ease;
}

/* 🔍 ซูมเฉพาะในขอบภาพ */
.category-card:hover .category-img {
    transform: scale(1.1);
}

/* ส่วนชื่อหมวด */
.category-footer-center {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0 4px;
    text-align: center;
}

.category-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
}

/* ============ Header Topic ============ */
.header-topic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin: 18px 0 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18) inset, 0 6px 18px rgba(0, 0, 0, .15);
}

/* ซ้าย: เส้นเรืองแสง + ข้อความ */
.topic-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topic-glow {
    width: 6px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--background-main), var(--background-second));
    box-shadow: 0 0 12px var(--background-main), 0 0 28px rgba(255, 255, 255, .08) inset;
}

.topic-text {
    min-width: 0;
}

.topic-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: .2px;
}

.topic-sub {
    font-size: .9rem;
    color: #cfcfcf;
    opacity: .85;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.topic-actions {
    flex: 0 0 auto;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #cbb86e;
    color: #1b1b1b;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    transition: transform .15s ease, filter .15s ease;
}

.btn-more:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-more i {
    font-size: .9rem;
}

.header-topic+.section-body {
    border-top: 1px dashed rgba(255, 255, 255, .10);
    margin-top: 10px;
    padding-top: 16px;
}

@media (max-width: 576px) {
    .header-topic {
        padding: 12px 12px;
    }

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

    .topic-sub {
        display: none;
    }

}

.btn-theme {
    background: var(--background-main);
    color: #fff;
    font-weight: 600;
    border: 1px solid var(--background-main);
    border-radius: 10px;
    padding: 6px 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15),
        inset 0 0 8px rgba(255, 255, 255, .08);
}

.btn-theme:hover {
    background: var(--background-second);
    color: var(--background-main);
    border-color: var(--background-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25),
        inset 0 0 12px rgba(255, 255, 255, .1);
}

.btn-theme i {
    font-size: 0.9rem;
    opacity: 0.85;
    transition: transform 0.25s ease;
}

.btn-theme:hover i {
    transform: translateX(3px);
    opacity: 1;
}

.hero-swiper {
    width: 100%;
    height: clamp(300px, 60vh, 820px);
    position: relative;
    background: #000;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-media .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.1s ease;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 25%),
        linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 25%),
        linear-gradient(to right, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, 0) 20%),
        linear-gradient(to left, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, 0) 20%),
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%);
    background-blend-mode: multiply;
}

.swiper-slide:hover .hero-media .hero-img {
    transform: scale(1.04);
}

.hero-caption {
    position: absolute;
    z-index: 3;
    left: clamp(16px, 6vw, 100px);
    bottom: clamp(20px, 6vh, 80px);
    color: #fff;
    max-width: min(60vw, 600px);
}

.hero-title {
    font-size: clamp(22px, 3.8vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 .3rem;
    text-shadow: 0 3px 16px rgba(0, 0, 0, .7);
}

.hero-sub {
    margin: 0 0 1rem;
    opacity: .9;
    font-size: clamp(13px, 1.4vw, 17px);
}

.btn-hero {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: var(--background-main);
    border: 1px solid transparent;
    padding: .7rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .4);
    transition: all .25s ease;
}

.btn-hero:hover {
    background: var(--background-second);
    color: var(--background-main);
    border: 1px solid var(--background-main);
    transform: translateY(-2px);
}

@media (max-width:576px) {
    .hero-caption {
        left: 18px;
        right: 18px;
        bottom: 28px;
        max-width: 100%;
    }
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff !important;
    width: 48px !important;
    height: 48px !important;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .5)) !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 22px !important;
}

.swiper-pagination {
    right: clamp(10px, 5vw, 80px) !important;
    left: auto !important;
    bottom: clamp(10px, 4vh, 40px) !important;
    width: auto !important;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, .6) !important;
    opacity: 1 !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 3px !important;
    transition: all .3s ease !important;
}

.swiper-pagination-bullet-active {
    background: var(--background-main) !important;
    transform: scale(1.4) !important;
}

/* เดสก์ท็อป (ค่าเดิม) */
.hero-swiper {
    height: clamp(300px, 60vh, 820px);
}

/* iPad / แท็บเล็ต แนวตั้ง–แนวนอน */
@media (max-width: 1024px) {
    .hero-swiper {
        height: clamp(260px, 48vh, 560px);
    }
}

/* แท็บเล็ตเล็ก / มือถือจอใหญ่ */
@media (max-width: 768px) {
    .hero-swiper {
        height: clamp(220px, 44vh, 480px);
    }

    .hero-caption {
        bottom: 22px;
    }

    .btn-hero {
        padding: .6rem 1.1rem;
        border-radius: 9px;
    }
}

/* มือถือ */
@media (max-width: 576px) {
    .hero-swiper {
        height: clamp(180px, 32vh, 360px);
    }

    .hero-title {
        font-size: clamp(18px, 5.2vw, 26px);
    }

    .hero-sub {
        font-size: clamp(12px, 3.4vw, 14px);
        margin-bottom: .8rem;
    }
}

/* จอเตี้ยแนวนอน (มือถือ/แท็บเล็ตแนวนอน) */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-swiper {
        height: 55vh;
    }

    .hero-caption {
        bottom: 18px;
    }
}

.container-darin {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.5rem;
}

@media (max-width: 575.98px) {
    .container-darin {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 576px) {
    .container-darin {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container-darin {
        max-width: 740px;
    }
}

@media (min-width: 992px) {
    .container-darin {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container-darin {
        max-width: 1240px;
    }
}

@media (min-width: 1400px) {
    .container-darin {
        max-width: 1560px;
    }
}

@media (min-width: 1800px) {
    .container-darin {
        max-width: 1680px;
    }
}

.category-hero {
    width: 100%;
    height: clamp(140px, 18vw, 220px);
    position: relative;
    background: #000;
    overflow: hidden;
    border-radius: 12px;
}

.category-hero .media,
.category-hero .media::after,
.category-hero .img {
    border-radius: inherit;
}

.category-hero .media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
}

.category-hero .img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.1s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.category-hero .media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 30%),
        linear-gradient(to top, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%);
    opacity: .3;
    transition: opacity .3s ease;
}

.category-hero:hover .media::after {
    opacity: .6;
}

@media (min-width: 992px) {
    .category-hero {
        height: clamp(150px, 16vw, 220px);
    }
}

@media (min-width: 1400px) {
    .category-hero {
        height: clamp(150px, 14vw, 210px);
    }
}

.container-darin {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

@media (min-width: 576px) {
    .container-darin {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container-darin {
        max-width: 740px;
    }
}

@media (min-width: 992px) {
    .container-darin {
        max-width: 960px;
    }
}

@media (min-width:1200px) {
    .container-darin {
        max-width: 1240px;
    }
}

@media (min-width:1400px) {
    .container-darin {
        max-width: 1560px;
    }
}

@media (min-width:1800px) {
    .container-darin {
        max-width: 1680px;
    }
}

.products-grid {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* === การ์ด === */
.product-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    color: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all .2s ease;
}

.product-card:hover {
    background: var(--background-second);
    border: 1px solid var(--background-main);
    transform: translateY(-2px);
}

.pc-media {
    position: relative;
}

.pc-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(0, 0, 0, .25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 1px rgba(255, 255, 255, .15);
}

.pc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2px;
    border-radius: 9px;
    background: #ea4335;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.pc-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.pc-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
}

.pc-pill {
    font-size: .70rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--background-main) !important;
    color: #fff;
}

.pc-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ราคา */
.pc-price {
    display: flex;
    justify-content: space-between;
    font-size: .98rem;
    font-weight: 600;
    color: #fff;
    opacity: .9;
}

/* ปุ่ม */
.pc-btn {
    text-decoration: none;
    background-color: var(--background-main) !important;
    color: #fff !important;
    border: 1px solid var(--background-main) !important;
    border-radius: 12px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transition: all .2s ease;
    text-align: center;
}

.pc-btn:hover {
    background-color: var(--background-second) !important;
    color: var(--background-main) !important;
    border-color: 1px solid var(--background-second) !important;
    /* transform: translateY(-1px); */
}

.pc-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* ปุ่มเมื่อสินค้าหมด */
.pc-btn.soldout {
    background-color: var(--background-second) !important;
    border-color: var(--background-main) !important;
    color: var(--background-main) !important;
    cursor: not-allowed;
    box-shadow: none;
}

.soldout-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.pc-stock {
    margin-top: auto;
    font-size: .88rem;
    opacity: .85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.out-of-stock-text {}

.pc-stock i {
    font-size: .95rem;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .15s ease;
}

.product-link.is-soldout {
    pointer-events: none;
    opacity: 0.9;
    cursor: not-allowed;
}

.product-link.is-soldout .product-card {
    filter: grayscale(0.3) brightness(0.85);
    transform: none !important;
}

.product-info-card {
    background: var(--background-second);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    color: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all .25s ease;
}

.product-info-media {
    position: relative;
}

.product-info-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(0, 0, 0, .25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 1px rgba(255, 255, 255, .15);
    transition: transform .6s ease;
}

.product-info-media:hover img {
    transform: scale(1.03);
}

.product-info-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.product-info-text {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.6;
    white-space: normal;
    word-break: break-word;
}

.product-info-body h5 {
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
    margin-top: 10px;
}

/* ===== Product Info Footer ===== */
.product-info-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(to top, rgba(255, 255, 255, .04), transparent);
    border-radius: 0 0 12px 12px;
}

/* ===== ราคา ===== */
.product-info-price {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    gap: 8px;
}

.product-info-price i {
    color: var(--background-main);
    font-size: 1.15rem;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4));
}

.product-info-price span {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: .45rem 1rem;
    letter-spacing: .2px;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
    transition: all .25s ease;
}

.product-info-text ul,
.product-info-text ol {
    margin: .5rem 0 .75rem 1.25rem !important;
}

.product-info-text li {
    margin-left: 1.5rem !important;
}

.product-info-text a {
    color: var(--background-main) !important;
    text-decoration: underline !important;
    transition: 0.2s ease !important;
}

.product-info-text a:hover {
    color: var(--background-second);
}

/* ===== ปุ่มซื้อสินค้า ===== */
.product-info-btn {
    text-decoration: none;
    background-color: var(--background-main) !important;
    color: #fff !important;
    border: 1px solid var(--background-main) !important;
    border-radius: 10px;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transition: all .25s ease;
    width: 100%;
    /* ให้เต็มบรรทัด */
    text-align: center;
}

.product-info-btn:hover {
    background-color: var(--background-second) !important;
    color: var(--background-main) !important;
    border-color: var(--background-main) !important;
    transform: translateY(-2px);
}

.product-info-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .product-info-footer {
        gap: 10px;
    }

    .product-info-price span {
        font-size: 1rem;
        padding: .4rem .8rem;
    }

    .product-info-btn {
        width: 100%;
    }
}

.btn-darin-success {
    text-decoration: none;
    background-color: var(--background-main) !important;
    color: #fff !important;
    border: 1px solid var(--background-main) !important;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transition: all .2s ease;
    cursor: pointer;
}

.btn-darin-success i {
    font-size: .75rem;
}

.btn-darin-success:hover {
    background-color: var(--background-second) !important;
    color: var(--background-main) !important;
    border-color: var(--background-main) !important;
    transform: translateY(-2px);
}

.btn-darin-success:active,
.btn-darin-cancel:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.btn-darin-success.btn-sm {
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.btn-darin-success.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.btn-darin-cancel {
    text-decoration: none;
    background-color: #575757 !important;
    color: #fff !important;
    border: 1px solid #575757 !important;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transition: all .2s ease;
    cursor: pointer;
}

.btn-darin-cancel:hover {
    background-color: var(--background-second) !important;
    color: var(--background-main) !important;
    border-color: var(--background-second) !important;
    transform: translateY(-2px);
}

.btn-darin-cancel.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.btn-darin-cancel.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.menu-header {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 1024px) {
    .menu-header {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .menu-header {
        grid-template-columns: 1fr;
    }
}

.menu-header .mh-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 32px 24px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
}

.menu-header .mh-card:hover {
    border-color: var(--background-main);
}

.menu-header .mh-tip {
    position: absolute;
    top: 12px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 200, 0, .12);
    border: 1px solid rgba(255, 200, 0, .28);
    color: #ffd36b;
    font-size: .75rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 3;
}

.menu-header .mh-tip i {
    font-size: .95rem;
}

.menu-header .mh-icon {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    overflow: hidden;
}

.menu-header .mh-icon img {
    width: 66px;
    height: 66px;
    object-fit: contain;
}

.menu-header .mh-body {
    flex: 1;
    min-width: 0;
    margin-top: 16px;
}

.menu-header .mh-title {
    font-weight: 800;
    font-size: 1.08rem;
    line-height: 1.25;
    margin: 0 0 6px;
}

.menu-header .mh-sub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .92rem;
    opacity: .9;
}

.menu-header .mh-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 255, 156, .15);
    border: 1px solid rgba(0, 255, 156, .35);
    font-weight: 700;
    font-size: .85rem;
    color: #00ff6aff;
    text-shadow: 0 0 6px rgba(0, 255, 156, .4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.menu-header .mh-check {
    position: absolute;
    top: 74px;
    left: 94px;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(4px);
}

.menu-header .mh-check.is-on {
    background: rgba(0, 255, 150, .25);
    border-color: rgba(0, 255, 150, .45);
    color: #c9ffdd;
}

.menu-header .mh-card.is-disabled {
    opacity: .55;
    filter: grayscale(.15);
    cursor: not-allowed;
    pointer-events: none;
}

.btn-darin {
    text-decoration: none;
    background-color: var(--background-main) !important;
    color: #fff !important;
    border: 1px solid var(--background-main) !important;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    transition: all .2s ease;
    cursor: pointer;
}

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

.btn-darin:hover {
    background-color: var(--background-second) !important;
    color: var(--background-main) !important;
    border-color: var(--background-main) !important;
    transform: translateY(-2px);
}

.btn-darin:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.btn-darin.btn-sm {
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.btn-darin.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.darin-header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    text-align: center;
}

.darin-header .mh-card {
    margin: 0 auto;
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 480px;
    transition: all .25s ease;
}

.mh-card .icon {
    width: 196px;
    height: 196px;
    object-fit: contain;
    border-radius: 14px;
}

.mh-card .qrcode {
    width: 256px;
    height: 324px;
    border-radius: 2vh;
}

.darin-header .mh-title {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.darin-header .mh-sub {
    opacity: 1;
    font-size: 1rem;
}

.darin-header input {
    width: 100%;
    max-width: 380px;
    padding: 10px 14px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    outline: none;
    transition: border-color .25s ease, background .25s ease;
}

.darin-header input:focus {
    border-color: var(--background-main);
    background: rgba(255, 255, 255, .12);
}

.darin-is-disabled {
    opacity: .55;
    filter: grayscale(.25);
    pointer-events: none;
    cursor: not-allowed;
}

.file-upload {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 12px;
    color: #fff;
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.file-upload .file-drop {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 12px;
    border: 2px dotted var(--background-main);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.file-upload .file-drop:hover {
    border-color: var(--background-main);
    background: var(--background-second);
}

.file-upload.dragover .file-drop {
    border-color: #fff;
    background: rgba(255, 255, 255, .14);
    box-shadow: 0 0 8px rgba(255, 255, 255, .25);
}

.file-upload .file-drop:focus,
.file-upload .file-drop:focus-visible {
    outline: 2px solid var(--background-main);
    outline-offset: 2px;
}

.file-upload .file-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.file-upload .file-left i {
    font-size: 1.05rem;
    opacity: .9;
}

.file-upload .file-btn {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.75rem;
    background: var(--background-second);
    border: 1px solid var(--background-main);
    color: #fff;
    transition: all .25s ease;
}

.file-upload .file-drop:hover .file-btn {
    color: var(--background-main);
    border-color: var(--background-main);
}

.file-upload .file-btn.btn-sm {
    padding: 5px 8px;
    font-size: 0.82rem;
    border-radius: 6px;
}

.file-upload .file-name {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    opacity: .9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-upload .file-hint {
    display: block;
    margin-top: 8px;
    opacity: .75;
    font-size: .85rem;
}

/* ===== Floating Support FAB (with Overlay) ===== */

/* ที่วางคอมโพเนนต์ทั้งหมด */
.fab-support {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 8500;
    font-family: inherit;
}

/* ม่านเงาทั้งหน้า */
.fab-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    z-index: -1;
}

/* เพิ่มโฟกัสบริเวณเมนูด้วยรัศมีไฮไลต์ */
.fab-support.open .fab-overlay {
    /* ต้องการเอฟเฟกต์รัศมีให้ปลดคอมเมนต์บรรทัดถัดไป */
    /* background: radial-gradient(300px 220px at right 40px bottom 110px, rgba(0,0,0,.15), rgba(0,0,0,.6) 60%), rgba(0,0,0,.55); */
    opacity: 1;
    pointer-events: auto;
    z-index: 0;
}

/* ปุ่มหลัก */
.fab-main {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: var(--background-main);
    font-size: 22px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .12);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
    z-index: 2;
}

.fab-main:hover {
    filter: brightness(1.06);
}

.fab-main:active {
    transform: translateY(1px) scale(.98);
}

.fab-main:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .25);
    outline-offset: 2px;
}

/* กล่องเมนู */
.fab-menu {
    position: absolute;
    right: 0;
    bottom: 70px;
    display: grid;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px) scale(.98);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
    z-index: 1;
}

/* รายการเมนู */
.fab-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 10px 18px rgba(0, 0, 0, .2), inset 0 0 0 1px rgba(255, 255, 255, .06);
    transform: translateX(6px);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, opacity .18s ease;
    white-space: nowrap;
}

.fab-item i {
    font-size: 18px;
    line-height: 1;
}

.fab-item:hover {
    filter: brightness(1.06);
    transform: translateX(0);
}

/* สีแบรนด์ */
.fab-line {
    background: #06C755;
}

/* LINE */
.fab-fb {
    background: #1877F2;
}

/* Facebook */

/* สถานะเปิด */
.fab-support.open .fab-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.fab-support.open .fab-item {
    animation: fab-pop .24s both;
}

.fab-support.open .fab-item:nth-child(1) {
    animation-delay: .02s;
}

.fab-support.open .fab-item:nth-child(2) {
    animation-delay: .08s;
}

@keyframes fab-pop {
    0% {
        opacity: 0;
        transform: translateX(12px) scale(.96);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ลดแอนิเมชันสำหรับผู้ใช้ที่ไม่ต้องการเอฟเฟกต์ */
@media (prefers-reduced-motion: reduce) {

    .fab-main,
    .fab-menu,
    .fab-item,
    .fab-overlay {
        transition: none;
        animation: none;
    }
}