/* =========================================
   🌟 Custom Scrollbar (มินิมอล: น้ำเงิน ฟ้า เหลือง)
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--glass-bg, rgba(255,255,255,0.05));
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--theme-lightblue, #00aaff), var(--theme-blue, #003366));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--theme-yellow, #ffcc00);
}

@font-face {
    font-family: 'PrachasonNeueLite';
    src: url('../assets/fonts/prachasonneuelite.woff2') format('woff2'),
         url('../assets/fonts/prachasonneuelite.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DBAdman-Bold';
    src: url('../assets/fonts/DBAdman-Bold.woff2') format('woff2'),
         url('../assets/fonts/DBAdman-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

.ql-font-DBAdman-Bold {
    font-family: 'DBAdman-Bold', sans-serif !important;
}

/* =========================================
   🎨 ตัวแปรสี (Variables) - รวมให้เป็นระเบียบ
   ========================================= */
:root {
    /* คุมโทนสี: น้ำเงิน ฟ้า เหลือง */
    --theme-blue: #003366;      
    --theme-lightblue: #00aaff; 
    --theme-yellow: #ffcc00;    
    
    /* โหมดสว่าง (Light Mode) - ค่าเริ่มต้น */
    --bg-color: #f8f9fa;
    --text-primary: #1a1a1a; 
    --text-secondary: #555555;
    --menu-bg: rgba(255, 255, 255, 0.9);
    --menu-hover: rgba(0, 0, 0, 0.05);

    /* เอฟเฟกต์กระจก */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.25);
}

body.dark-mode {
    /* โหมดมืด (Dark Mode) */
    --bg-color: #0f172a;
    --text-primary: #ffffff; 
    --text-secondary: #cbd5e1;
    --menu-bg: rgba(15, 23, 42, 0.9);
    --menu-hover: rgba(255, 255, 255, 0.1);
}

/* =========================================
   🌐 ตั้งค่าพื้นฐาน (Global Reset)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PrachasonNeueLite', sans-serif; 
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* แอนิเมชันตอนเลื่อนจอ (Lazy Load) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* =========================================
   🪞 คลาสสำหรับเปิด/ปิด ธีม Liquid Glass
   ========================================= */
body.theme-liquid-glass .glass-card,
body.theme-liquid-glass .glass-board {
    background: rgba(150, 150, 150, 0.1) !important;
    backdrop-filter: blur(30px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(150%) !important;
    border: 1px solid rgba(150, 150, 150, 0.2) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}
body.dark-mode.theme-liquid-glass .glass-card,
body.dark-mode.theme-liquid-glass .glass-board {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4) !important;
}

/* --- เปลี่ยนสีแสงออร่าด้านหลังให้เข้าโทน --- */
.ambient-background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    filter: blur(90px);
}

.orb {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 { width: 400px; height: 400px; background: var(--theme-blue); top: -10%; left: -10%; }
.orb-2 { width: 500px; height: 500px; background: var(--theme-lightblue); bottom: -20%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 350px; height: 350px; background: var(--theme-yellow); top: 40%; left: 30%; animation-delay: -10s; opacity: 0.6; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* =========================================
   📱 iOS 26 Liquid Glass Panel (ฟอร์มและปุ่ม)
   ========================================= */
.glass-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    perspective: 1000px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%); 
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px; /* ใช้ค่าคงที่แทนตัวแปรที่หายไป */
    padding: 40px 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 var(--glass-highlight); 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-header { text-align: center; margin-bottom: 40px; }
.brand-header h1 { font-size: 24px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 8px; }
.brand-header p { font-size: 14px; color: var(--text-secondary); }

/* --- Inputs --- */
.input-group { margin-bottom: 20px; }

input {
    width: 100%;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

input::placeholder { color: rgba(255, 255, 255, 0.4); }

input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), inset 0 2px 4px rgba(0,0,0,0.2);
}

/* --- Button --- */
.glass-btn {
    width: 100%;
    padding: 18px;
    margin-top: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid var(--glass-highlight);
    border-radius: 20px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.glass-btn:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);
    transform: scale(0.98); 
}
.glass-btn:active { transform: scale(0.95); }

/* --- Error & Loader --- */
.error-text { color: #ff453a; font-size: 13px; text-align: center; margin-bottom: 15px; min-height: 20px; }
.loader { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================
   🎯 ระบบ Sidebar Menu (ส่วนกลาง) - อัปเดตตามรูปภาพ
   ========================================= */

.glass-side-menu {
    position: fixed;
    top: 75px; /* 🎯 ขยับลงมาให้อยู่ใต้ Navbar */
    left: 15px; /* 🎯 ขยับออกจากขอบซ้าย ให้ดูลอยตัว */
    width: 320px; /* 🎯 ขนาดกำลังดี ไม่กว้างเกินไป */
    max-width: calc(100vw - 30px); /* เผื่อจอมือถือเล็ก */
    max-height: calc(100vh - 100px); /* 🎯 ไม่ให้ยาวทะลุขอบล่างจอ */
    border-radius: 24px; /* 🎯 ขอบโค้งมนแบบในรูปภาพ */
    
    background: rgba(255, 255, 255, var(--user-glass-alpha, 0.15));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    z-index: 1000;

    /* 🎯 แอนิเมชันสไลด์ลงและเฟดเข้าแบบนุ่มนวล */
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* ซ่อน Scrollbar ของเมนูให้ดูสะอาดตาแบบในรูป */
.glass-side-menu::-webkit-scrollbar { 
    width: 0px; 
}

body.dark-mode .glass-side-menu {
    background: rgba(0, 0, 0, var(--user-glass-alpha, 0.4));
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* ตอนเปิดเมนู */
.glass-side-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* 🎯 ลดพื้นที่ซ้าย-ขวา ให้ข้อความเต็มกรอบมากขึ้น */
.menu-category-header {
    padding: 12px 15px; /* 🎯 ลดขอบซ้ายขวาลง */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--theme-blue);
    font-weight: bold;
    transition: 0.3s;
    font-size: 16px;
}
body.dark-mode .menu-category-header { color: var(--theme-lightblue); }

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.menu-list.open { max-height: 1200px; }

.menu-list li a {
    display: block;
    padding: 12px 15px 12px 25px; /* 🎯 ลดขอบซ้ายขวา ให้ข้อความชิดขอบมากขึ้น */
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    
    /* บังคับไม่ให้ตัดขึ้นบรรทัดใหม่ */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-list li a:hover {
    background: rgba(128,128,128,0.1);
    transform: translateX(4px); /* เลื่อนนิดเดียวพอ ไม่ให้ล้นกรอบ */
}

.menu-list a.active-menu {
    color: var(--theme-blue) !important;
    background: rgba(0, 170, 255, 0.1) !important;
    border-left: 4px solid var(--theme-blue) !important;
    font-weight: bold;
}
body.dark-mode .menu-list a.active-menu {
    color: var(--theme-yellow) !important;
    background: rgba(255, 215, 0, 0.1) !important;
    border-left: 4px solid var(--theme-yellow) !important;
}
.menu-list a.active-menu i { color: var(--theme-blue) !important; }
body.dark-mode .menu-list a.active-menu i { color: var(--theme-yellow) !important; }

/* =========================================
   🔘 ปุ่ม Log In / Log Out ใน Sidebar
   ========================================= */
.sidebar-auth-btn {
    width: 100%; 
    padding: 12px; 
    border-radius: 12px; 
    font-size: 16px; 
    font-weight: bold;
    cursor: pointer; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ปุ่ม Log In (สีฟ้า/เหลือง) */
.sidebar-login-btn {
    border: 1px solid var(--theme-blue);
    background: rgba(0, 170, 255, 0.1);
    color: var(--theme-blue);
}
body.dark-mode .sidebar-login-btn {
    border-color: var(--theme-yellow);
    color: var(--theme-yellow);
    background: rgba(255, 204, 0, 0.1);
}
.sidebar-login-btn:hover { 
    background: rgba(0, 170, 255, 0.2); 
    transform: translateY(-2px); 
}
body.dark-mode .sidebar-login-btn:hover { 
    background: rgba(255, 204, 0, 0.2); 
}

/* ปุ่ม Log Out (สีแดง) */
.sidebar-logout-btn {
    border: 1px solid #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}
.sidebar-logout-btn:hover { 
    background: rgba(231, 76, 60, 0.2); 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

/* =========================================
   📱 ปรับแต่งเฉพาะหน้าจอมือถือ (Mobile Adjustments)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. ลดขนาดชื่อศูนย์ (Brand Name) ให้เล็กลง */
    #navBrandName {
        font-size: 18px !important; /* ปรับตัวเลขนี้ได้ตามต้องการ (ค่าเดิมมักจะ 24px-26px) */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px; /* ป้องกันชื่อยาวเกินไปจนดันปุ่มอื่นตกขอบ */
    }

    /* 2. ซ่อนไอคอนในปุ่ม Log In / Log Out */
    #authBtn i {
        display: none !important;
    }

    /* 3. ปรับขนาดและระยะห่างของปุ่มให้พอดีเมื่อไม่มีไอคอน */
    #authBtn {
        padding: 6px 14px !important;
        font-size: 14px !important;
        gap: 0 !important; /* เอาช่องว่างระหว่างไอคอนกับข้อความออก */
    }
}

/* =========================================
   📱 ปรับขนาดชื่อหน้าตรงกลางแถบบน (เฉพาะมือถือ)
   ========================================= */
@media (max-width: 768px) {
    .center-name {
        font-size: 18px !important; /* ปรับขนาดฟอนต์ให้เล็กลง (ค่าเดิมมักจะ 24px-26px) */
        white-space: nowrap;        /* บังคับไม่ให้ตกบรรทัด */
        overflow: hidden;           /* ซ่อนข้อความที่ล้น */
        text-overflow: ellipsis;    /* ถ้าชื่อยาวเกินไปให้ใส่จุดไข่ปลา (...) */
        max-width: 180px;           /* จำกัดความกว้างไม่ให้ไปดันปุ่มซ้าย-ขวาตกขอบ */
    }
}

/* ========================================================= */
/* 📱 Mobile & iPad Bottom Navigation (Liquid Glass) */
/* ========================================================= */

.bottom-nav {
    display: none; /* ซ่อนบนจอคอมพิวเตอร์ */
}

@media (max-width: 1180px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        z-index: 99999;
        transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        
        /* 🪟 ดึงค่า Liquid Glass จากระบบ Theme Settings */
        background: rgba(255, 255, 255, var(--user-glass-alpha, 0.45)) !important;
        backdrop-filter: blur(var(--user-glass-blur, 25px)) saturate(180%) !important;
        -webkit-backdrop-filter: blur(var(--user-glass-blur, 25px)) saturate(180%) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 -5px 25px rgba(0,0,0,0.08) !important;
    }

    /* 🌙 โหมดมืด */
    body.dark-mode .bottom-nav {
        background: rgba(15, 23, 42, var(--user-glass-alpha, 0.5)) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 -5px 25px rgba(0,0,0,0.5) !important;
    }

    /* 🚫 กรณีผู้ใช้ปิดเอฟเฟกต์กระจก */
    body.disable-glass .bottom-nav {
        background: var(--bg-color) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-top: 1px solid rgba(128, 128, 128, 0.2) !important;
    }

/* ========================================================= */
/* 📱 Mobile & iPad Bottom Navigation (Floating Capsule) */
/* ========================================================= */

/* ซ่อนแถบเมนูล่างบนจอคอมพิวเตอร์ (Desktop) */
.bottom-nav {
    display: none !important; 
}

/* 🎯 ตั้งค่าสำหรับ มือถือ และ iPad (หน้าจอ <= 1180px) */
@media (max-width: 1180px) {
    
    /* 1. ซ่อนปุ่มเมนู (Hamburger) มุมซ้ายบน และเมนูด้านข้างทิ้งไปเลย */
    #menuBtn, 
    #menu-toggle-btn, 
    #sideMenu, 
    #profile-dropdown,
    .glass-side-menu {
        display: none !important;
    }

    /* 2. บังคับแสดง Bottom Navigation แบบลอยตัว (Floating) */
    .bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 20px !important; /* ลอยขึ้นมาจากขอบล่าง 20px */
        left: 50% !important;
        transform: translateX(-50%) !important; /* จัดให้อยู่กึ่งกลางเป๊ะ */
        width: 92% !important; /* ความกว้าง 92% ของจอ */
        max-width: 420px !important; /* ไม่ให้กว้างเกินไปบน iPad */
        height: 65px !important;
        padding: 0 10px !important;
        border-radius: 35px !important; /* ขอบโค้งมนทรงแคปซูล */
        z-index: 999999 !important; /* ล็อกให้อยู่บนสุดเสมอ */
        
        /* 🪟 เอฟเฟกต์ Liquid Glass ดึงค่าจากการตั้งค่าธีม */
        background: rgba(255, 255, 255, var(--user-glass-alpha, 0.65)) !important;
        backdrop-filter: blur(var(--user-glass-blur, 25px)) saturate(200%) !important;
        -webkit-backdrop-filter: blur(var(--user-glass-blur, 25px)) saturate(200%) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important; /* เงาฟุ้งๆ ให้ดูลอย */
        
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* 🌙 โหมดมืด (Dark Mode) */
    body.dark-mode .bottom-nav {
        background: rgba(15, 23, 42, var(--user-glass-alpha, 0.75)) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.5) !important;
    }

    /* 🚫 กรณีผู้ใช้ปิดเอฟเฟกต์กระจก */
    body.disable-glass .bottom-nav {
        background: var(--bg-color, #ffffff) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(128, 128, 128, 0.2) !important;
    }

    /* 3. ตกแต่งปุ่มกดด้านใน */
    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        
        color: #000000; 
        
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        -webkit-tap-highlight-color: transparent;
    }

    /* 🌙 เปลี่ยนสีเป็นสีขาว (โหมดมืด) */
    body.dark-mode .bottom-nav-item {
        color: #ffffff;
    }

    .bottom-nav-item i {
        font-size: 22px;
        margin-bottom: 4px;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .bottom-nav-item span {
        font-size: 12px !important;
        font-weight: bold;
        text-align: center;
        line-height: 1;
        white-space: nowrap;
    }

    /* 🎯 เอฟเฟกต์ตอนปุ่มถูกเลือก (Active) ให้ความสำคัญสูงสุดด้วย !important */
    .bottom-nav-item.active {
        color: var(--theme-blue, #00aaff) !important;
    }
    body.dark-mode .bottom-nav-item.active {
        color: var(--theme-yellow, #ffcc00) !important;
    }
    .bottom-nav-item.active i {
        transform: translateY(-4px) scale(1.2); /* ไอคอนเด้งขึ้นและขยาย */
    }
/* ========================================================= */
/* 📱 Mobile & iPad Bottom Navigation (Floating Capsule) */
/* ========================================================= */

/* ซ่อนแถบเมนูล่างบนจอคอมพิวเตอร์ (Desktop) */
.bottom-nav {
    display: none !important; 
}

/* 🎯 ตั้งค่าสำหรับ มือถือ และ iPad (หน้าจอ <= 1180px) */
@media (max-width: 1180px) {
    
    /* 1. ซ่อนปุ่มเมนู (Hamburger) มุมซ้ายบน และเมนูด้านข้างทิ้งไปเลย */
    #menuBtn, 
    #menu-toggle-btn, 
    #sideMenu, 
    #profile-dropdown,
    .glass-side-menu {
        display: none !important;
    }

    /* 2. บังคับแสดง Bottom Navigation แบบลอยตัว (Floating Capsule) */
    .bottom-nav {
        display: flex !important;
        position: fixed !important; /* ล็อกไม่ให้เลื่อนตามจอ */
        bottom: 20px !important; /* ลอยขึ้นมาจากขอบล่าง 20px */
        left: 50% !important;
        transform: translateX(-50%) !important; /* จัดให้อยู่กึ่งกลางเป๊ะ */
        width: 92% !important; /* ความกว้าง 92% ของจอ */
        max-width: 420px !important; /* ไม่ให้กว้างเกินไปบน iPad */
        height: 65px !important;
        padding: 0 10px !important;
        border-radius: 35px !important; /* ขอบโค้งมนทรงแคปซูล */
        z-index: 999999 !important; /* ล็อกให้อยู่บนสุดเสมอ */
        
        /* 🪟 เอฟเฟกต์ Liquid Glass ดึงค่าจากการตั้งค่าธีม */
        background: rgba(255, 255, 255, var(--user-glass-alpha, 0.65)) !important;
        backdrop-filter: blur(var(--user-glass-blur, 25px)) saturate(200%) !important;
        -webkit-backdrop-filter: blur(var(--user-glass-blur, 25px)) saturate(200%) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important; /* เงาฟุ้งๆ ให้ดูลอย */
        
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* 🌙 โหมดมืด (Dark Mode) */
    body.dark-mode .bottom-nav {
        background: rgba(15, 23, 42, var(--user-glass-alpha, 0.75)) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.5) !important;
    }

    /* 🚫 กรณีผู้ใช้ปิดเอฟเฟกต์กระจก */
    body.disable-glass .bottom-nav {
        background: var(--bg-color, #ffffff) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid rgba(128, 128, 128, 0.2) !important;
    }

    /* 3. ตกแต่งปุ่มกดด้านใน */
    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: var(--text-muted, #7f8c8d);
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav-item i {
        font-size: 22px;
        margin-bottom: 4px;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .bottom-nav-item span {
        font-size: 12px !important;
        font-weight: bold;
        text-align: center;
        line-height: 1;
        white-space: nowrap;
    }

    /* 🎯 เอฟเฟกต์ตอนปุ่มถูกเลือก (Active) */
    .bottom-nav-item.active {
        color: var(--theme-blue, #00aaff);
    }
    body.dark-mode .bottom-nav-item.active {
        color: var(--theme-yellow, #ffcc00);
    }
    .bottom-nav-item.active i {
        transform: translateY(-4px) scale(1.2); /* ไอคอนเด้งขึ้นและขยาย */
    }

    /* 4. ดันเนื้อหาเว็บขึ้น ไม่ให้โดนเมนูลอยบัง */
    .main-content, .main-wrapper {
        padding-bottom: 110px !important;
    }
    
    /* 5. ขยับปุ่มลอยอื่นๆ ให้หนีเมนูแคปซูล */
    .fab-btn, .cart-fab, #fab-edit-toggle-btn, .floating-line-btn {
        bottom: 100px !important;
    }
}
}
}