<div id="kt_app_sidebar" class="app-sidebar flex-column smooth-sidebar" data-kt-drawer="true" data-kt-drawer-name="app-sidebar" data-kt-drawer-activate="{default: true, lg: false}" data-kt-drawer-overlay="true" data-kt-drawer-width="260px" data-kt-drawer-direction="start" data-kt-drawer-toggle="#kt_app_sidebar_mobile_toggle">

    <!--begin::Logo-->
    <div class="app-sidebar-logo px-6 py-4 smooth-logo-area" id="kt_app_sidebar_logo">
        <a href="/" class="smooth-logo-link">
            <img alt="Logo" src="<?=$lxtdev['logo'];?>" class="h-45px app-sidebar-logo-default theme-light-show smooth-logo-img" />
            <img alt="Logo" src="<?=isset($lxtdev['logo_dark']) ? $lxtdev['logo_dark'] : $lxtdev['logo'];?>" class="h-45px app-sidebar-logo-default theme-dark-show smooth-logo-img" />
            <img alt="Logo" src="<?=$lxtdev['favicon'];?>" class="h-35px app-sidebar-logo-minimize smooth-logo-img-sm" />
        </a>

        <!--begin::Sidebar toggle-->
        <div id="kt_app_sidebar_toggle" class="app-sidebar-toggle btn btn-icon btn-shadow btn-sm btn-color-muted btn-active-color-primary body-bg h-32px w-32px position-absolute top-50 start-100 translate-middle rotate smooth-toggle-btn" data-kt-toggle="true" data-kt-toggle-state="active" data-kt-toggle-target="body" data-kt-toggle-name="app-sidebar-minimize">
            <i class="ki-duotone ki-double-left fs-2 rotate-180 smooth-toggle-icon">
                <span class="path1"></span>
                <span class="path2"></span>
            </i>
        </div>
        <!--end::Sidebar toggle-->
    </div>
    <!--end::Logo-->

    <!--begin::sidebar menu-->
    <div class="app-sidebar-menu overflow-hidden flex-column-fluid">
        <!--begin::Menu wrapper-->
        <div id="kt_app_sidebar_menu_wrapper" class="app-sidebar-wrapper hover-scroll-overlay-y my-4" data-kt-scroll="true" data-kt-scroll-activate="true" data-kt-scroll-height="auto" data-kt-scroll-dependencies="#kt_app_sidebar_logo, #kt_app_sidebar_footer" data-kt-scroll-wrappers="#kt_app_sidebar_menu" data-kt-scroll-offset="5px" data-kt-scroll-save-state="true">

            <!--begin::Menu-->
            <div class="menu menu-column menu-rounded menu-sub-indention px-3" id="#kt_app_sidebar_menu" data-kt-menu="true" data-kt-menu-expand="false">

                <!--Trang Chủ-->
                <div class="menu-item smooth-item">
                    <a href="/" class="menu-link smooth-active-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="ki-duotone ki-element-11 fs-2">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span>
                            </i>
                        </span>
                        <span class="menu-title fw-semibold">Trang Chủ</span>
                    </a>
                </div>

                <!--Heading: Chức năng-->
                <div class="menu-item pt-5 smooth-item">
                    <div class="menu-content">
                        <span class="menu-heading smooth-heading fw-bold text-uppercase fs-7">Dịch Vụ Hệ Thống</span>
                    </div>
                </div>

                <!--Tài Khoản (Chỉ hiện khi chưa đăng nhập)-->
                <?php if(empty($_SESSION['session'])){ ?>
                <div data-kt-menu-trigger="click" class="menu-item menu-accordion smooth-item">
                    <span class="menu-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="ki-duotone ki-user fs-2">
                                <span class="path1"></span><span class="path2"></span>
                            </i>
                        </span>
                        <span class="menu-title">Tài Khoản</span>
                        <span class="menu-arrow smooth-arrow"></span>
                    </span>
                    <div class="menu-sub menu-sub-accordion smooth-submenu">
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/auth/login">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Đăng Nhập</span>
                            </a>
                        </div>
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/auth/register">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Đăng Ký</span>
                            </a>
                        </div>
                    </div>
                </div>
                <?php } ?>

                <!--Cloud Hosting-->
                <div data-kt-menu-trigger="click" class="menu-item menu-accordion smooth-item">
                    <span class="menu-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="ki-duotone ki-cloud-change fs-2">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span>
                            </i>
                        </span>
                        <span class="menu-title">Cloud Hosting</span>
                        <span class="menu-arrow smooth-arrow"></span>
                    </span>
                    <div class="menu-sub menu-sub-accordion smooth-submenu">
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/server-hosting">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Hosting Giá Rẻ</span>
                            </a>
                        </div>
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/history-hosting">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Lịch Sử Mua Host</span>
                            </a>
                        </div>
                    </div>
                </div>

                <!--Tạo Web-->
                <div data-kt-menu-trigger="click" class="menu-item menu-accordion smooth-item">
                    <span class="menu-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="ki-duotone ki-screen fs-2">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span>
                            </i>
                        </span>
                        <span class="menu-title">Tạo Website Tự Động</span>
                        <span class="menu-arrow smooth-arrow"></span>
                    </span>
                    <div class="menu-sub menu-sub-accordion smooth-submenu">
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/tao-web">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Khởi Tạo Web</span>
                            </a>
                        </div>
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/history-tao-web">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Lịch Sử Tạo Web</span>
                            </a>
                        </div>
                    </div>
                </div>

                <!--Mã Nguồn-->
                <div data-kt-menu-trigger="click" class="menu-item menu-accordion smooth-item">
                    <span class="menu-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="ki-duotone ki-code fs-2">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span>
                            </i>
                        </span>
                        <span class="menu-title">Cửa Hàng Mã Nguồn</span>
                        <span class="menu-arrow smooth-arrow"></span>
                    </span>
                    <div class="menu-sub menu-sub-accordion smooth-submenu">
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/ma-nguon">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Mua Mã Nguồn</span>
                            </a>
                        </div>
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/history-ma-nguon">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Lịch Sử Mua Source</span>
                            </a>
                        </div>
                    </div>
                </div>

                <!--Code Free-->
                <div class="menu-item smooth-item">
                    <a href="/pages/codefree" class="menu-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="ki-duotone ki-gift fs-2">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span>
                            </i>
                        </span>
                        <span class="menu-title">Code Miễn Phí</span>
                    </a>
                </div>

                <!--Subdomain-->
                <div data-kt-menu-trigger="click" class="menu-item menu-accordion smooth-item">
                    <span class="menu-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="fa-solid fa-link fs-2 smooth-text-accent"></i>
                        </span>
                        <span class="menu-title">Subdomain</span>
                        <span class="menu-arrow smooth-arrow"></span>
                    </span>
                    <div class="menu-sub menu-sub-accordion smooth-submenu">
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/tao-subdomain.php">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Tạo Subdomain</span>
                            </a>
                        </div>
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/quan-ly-subdomain.php">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-accent"></span></span>
                                <span class="menu-title">Quản Lý Subdomain</span>
                            </a>
                        </div>
                        <?php if(isset($user['level']) && $user['level'] == '9'){ ?>
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/duyet-subdomain.php">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-danger"></span></span>
                                <span class="menu-title smooth-text-danger">Duyệt Subdomain</span>
                                <span class="badge smooth-badge-danger ms-2 fs-8">Admin</span>
                            </a>
                        </div>
                        <?php } ?>
                    </div>
                </div>

                <!--Tên Miền (Domain)-->
                <div data-kt-menu-trigger="click" class="menu-item menu-accordion smooth-item">
                    <span class="menu-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="ki-duotone ki-geolocation fs-2">
                                <span class="path1"></span><span class="path2"></span>
                            </i>
                        </span>
                        <span class="menu-title">Tên Miền (Domain)</span>
                        <span class="menu-arrow smooth-arrow"></span>
                    </span>
                    <div class="menu-sub menu-sub-accordion smooth-submenu">
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/reg-mien">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Đăng Ký Miền</span>
                            </a>
                        </div>
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/history-mien">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Lịch Sử Mua Miền</span>
                            </a>
                        </div>
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/check-mien">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Kiểm Tra Whois</span>
                            </a>
                        </div>
                    </div>
                </div>

                <!--Cronjobs-->
                <div data-kt-menu-trigger="click" class="menu-item menu-accordion smooth-item">
                    <span class="menu-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="ki-duotone ki-time fs-2">
                                <span class="path1"></span><span class="path2"></span>
                            </i>
                        </span>
                        <span class="menu-title">Hệ Thống Cronjobs</span>
                        <span class="menu-arrow smooth-arrow"></span>
                    </span>
                    <div class="menu-sub menu-sub-accordion smooth-submenu">
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/cron-jobs">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Thuê Cron</span>
                            </a>
                        </div>
                    </div>
                </div>

                <!--Tạo Logo-->
                <div data-kt-menu-trigger="click" class="menu-item menu-accordion smooth-item">
                    <span class="menu-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="ki-duotone ki-picture fs-2">
                                <span class="path1"></span><span class="path2"></span>
                            </i>
                        </span>
                        <span class="menu-title">Thiết Kế Logo</span>
                        <span class="menu-arrow smooth-arrow"></span>
                    </span>
                    <div class="menu-sub menu-sub-accordion smooth-submenu">
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/tao-logo">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Tạo Logo</span>
                            </a>
                        </div>
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/history-logo">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Lịch Sử Tạo</span>
                            </a>
                        </div>
                    </div>
                </div>

                <!--Mã Giảm Giá & Giftcode-->
                <div class="menu-item pt-2 smooth-item">
                    <a href="/c6.php" class="menu-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="ki-duotone ki-discount fs-2">
                                <span class="path1"></span><span class="path2"></span>
                            </i>
                        </span>
                        <span class="menu-title fw-semibold">Mã Giảm Giá</span>
                        <span class="badge smooth-badge-hot ms-2 fs-8">HOT</span>
                    </a>
                </div>

                <div class="menu-item pt-2 smooth-item">
                    <a href="/gc.php" class="menu-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="ki-duotone ki-gift fs-2">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span>
                            </i>
                        </span>
                        <span class="menu-title fw-semibold">Nhập Giftcode</span>
                        <span class="badge smooth-badge-new ms-2 fs-8">NEW</span>
                    </a>
                </div>

                <!--Nạp Tiền-->
                <div data-kt-menu-trigger="click" class="menu-item menu-accordion smooth-item">
                    <span class="menu-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="ki-duotone ki-wallet fs-2">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span>
                            </i>
                        </span>
                        <span class="menu-title">Nạp Tiền Giao Dịch</span>
                        <span class="menu-arrow smooth-arrow"></span>
                    </span>
                    <div class="menu-sub menu-sub-accordion smooth-submenu">
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/nap-bank">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Nạp Qua ATM/Momo</span>
                            </a>
                        </div>
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="/nap-the">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Nạp Thẻ Tự Động</span>
                            </a>
                        </div>
                    </div>
                </div>

                <!--Heading: Help & Support-->
                <div class="menu-item pt-5 smooth-item">
                    <div class="menu-content">
                        <span class="menu-heading smooth-heading fw-bold text-uppercase fs-7">Liên Hệ Chăm Sóc</span>
                    </div>
                </div>

                <!--Hỗ Trợ-->
                <div data-kt-menu-trigger="click" class="menu-item menu-accordion smooth-item">
                    <span class="menu-link">
                        <span class="menu-icon smooth-icon-wrap">
                            <i class="ki-duotone ki-message-text-2 fs-2">
                                <span class="path1"></span><span class="path2"></span><span class="path3"></span>
                            </i>
                        </span>
                        <span class="menu-title">Hỗ Trợ Khách Hàng</span>
                        <span class="menu-arrow smooth-arrow"></span>
                    </span>
                    <div class="menu-sub menu-sub-accordion smooth-submenu">
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="<?=isset($lxtdev['facebook']) ? $lxtdev['facebook'] : '#';?>" target="_blank">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Facebook Messenger</span>
                            </a>
                        </div>
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="<?=isset($lxtdev['zalo']) ? $lxtdev['zalo'] : '#';?>" target="_blank">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Zalo Chat</span>
                            </a>
                        </div>
                        <div class="menu-item smooth-sub-item">
                            <a class="menu-link" href="<?=isset($lxtdev['telegram']) ? $lxtdev['telegram'] : '#';?>" target="_blank">
                                <span class="menu-bullet"><span class="bullet bullet-dot smooth-dot-primary"></span></span>
                                <span class="menu-title">Telegram Channel</span>
                            </a>
                        </div>
                    </div>
                </div>

                <!-- Admin Panel Link -->
                <?php if(isset($user['level']) && $user['level'] == '9'){ ?>
                <div class="menu-item pt-5 smooth-item">
                    <div class="menu-content">
                        <span class="menu-heading smooth-heading-danger fw-bold text-uppercase fs-7">Quản Trị Viên</span>
                    </div>
                </div>
                <div class="menu-item smooth-item">
                    <a href="/admin" class="menu-link smooth-admin-link">
                        <span class="menu-icon smooth-icon-wrap-admin">
                            <i class="ki-duotone ki-setting fs-2">
                                <span class="path1"></span><span class="path2"></span>
                            </i>
                        </span>
                        <span class="menu-title smooth-text-danger fw-bold">Trang Quản Trị</span>
                    </a>
                </div>
                <?php } ?>

            </div>
            <!--end::Menu-->
        </div>
        <!--end::Menu wrapper-->
    </div>
    <!--end::sidebar menu-->

    <!--begin::Footer-->
    <div class="app-sidebar-footer flex-column-auto pt-2 pb-6 px-6" id="kt_app_sidebar_footer">
        <a href="/nap-bank" class="btn btn-flex flex-center overflow-hidden text-nowrap px-0 h-52px w-100 smooth-wallet-btn" data-bs-toggle="tooltip" data-bs-trigger="hover" title="Bấm để nạp tiền nhanh">
            <span class="btn-label fw-bold fs-6 smooth-wallet-text">Số Dư : <?=tien($user['money']);?>đ</span>
            <i class="ki-duotone ki-entrance-left btn-icon fs-2 m-0 ms-2 smooth-wallet-icon">
                <span class="path1"></span><span class="path2"></span>
            </i>
        </a>
    </div>
    <!--end::Footer-->
</div>

<!-- ================= SMOOTH MODERN SIDEBAR CSS ================= -->
<style>
    /* ===== DESIGN TOKENS ===== */
    :root {
        --sm-primary: #0ea5e9;
        --sm-primary-soft: rgba(14, 165, 233, 0.08);
        --sm-primary-medium: rgba(14, 165, 233, 0.15);
        --sm-primary-glow: rgba(14, 165, 233, 0.25);
        --sm-accent: #6366f1;
        --sm-accent-soft: rgba(99, 102, 241, 0.08);
        --sm-danger: #f43f5e;
        --sm-danger-soft: rgba(244, 63, 94, 0.08);
        --sm-success: #10b981;
        --sm-bg: #ffffff;
        --sm-bg-surface: #fafbfc;
        --sm-bg-elevated: #f4f6f8;
        --sm-border: #e8ecf1;
        --sm-border-hover: #d1d9e0;
        --sm-text-main: #1a1d23;
        --sm-text-body: #3d4451;
        --sm-text-muted: #8b95a5;
        --sm-text-placeholder: #b0b8c4;
        --sm-radius-sm: 10px;
        --sm-radius: 14px;
        --sm-radius-lg: 18px;
        --sm-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
        --sm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
        --sm-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        --sm-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
        --sm-shadow-glow: 0 4px 20px var(--sm-primary-glow);
        --sm-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
        --sm-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
        --sm-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
        --sm-duration-fast: 0.15s;
        --sm-duration-normal: 0.3s;
        --sm-duration-slow: 0.5s;
    }

    /* ===== SIDEBAR BASE ===== */
    .smooth-sidebar {
        background: var(--sm-bg) !important;
        border-right: 1px solid var(--sm-border) !important;
        box-shadow: 2px 0 16px rgba(0, 0, 0, 0.03) !important;
        position: relative;
        overflow: hidden;
        transition: box-shadow var(--sm-duration-normal) var(--sm-ease-smooth);
    }

    .smooth-sidebar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 180px;
        background: linear-gradient(180deg, 
            rgba(14, 165, 233, 0.02) 0%, 
            rgba(99, 102, 241, 0.01) 50%,
            transparent 100%);
        pointer-events: none;
        z-index: 0;
    }

    .smooth-sidebar:hover {
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.05) !important;
    }

    /* ===== LOGO AREA ===== */
    .smooth-logo-area {
        border-bottom: 1px solid var(--sm-border);
        position: relative;
        z-index: 2;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(16px) saturate(1.2);
        transition: border-color var(--sm-duration-normal) var(--sm-ease-smooth);
    }

    .smooth-logo-link {
        transition: opacity var(--sm-duration-fast) var(--sm-ease-smooth);
    }

    .smooth-logo-link:hover {
        opacity: 0.85;
    }

    .smooth-logo-img {
        transition: transform var(--sm-duration-normal) var(--sm-ease-spring);
    }

    .smooth-logo-link:hover .smooth-logo-img {
        transform: scale(1.02);
    }

    /* ===== MENU ITEM ENTRANCE ===== */
    .smooth-item {
        opacity: 0;
        transform: translateY(8px);
        animation: smoothFadeIn 0.5s var(--sm-ease-out) forwards;
    }

    .smooth-item:nth-child(1) { animation-delay: 0.04s; }
    .smooth-item:nth-child(2) { animation-delay: 0.08s; }
    .smooth-item:nth-child(3) { animation-delay: 0.12s; }
    .smooth-item:nth-child(4) { animation-delay: 0.16s; }
    .smooth-item:nth-child(5) { animation-delay: 0.20s; }
    .smooth-item:nth-child(6) { animation-delay: 0.24s; }
    .smooth-item:nth-child(7) { animation-delay: 0.28s; }
    .smooth-item:nth-child(8) { animation-delay: 0.32s; }
    .smooth-item:nth-child(9) { animation-delay: 0.36s; }
    .smooth-item:nth-child(10) { animation-delay: 0.40s; }
    .smooth-item:nth-child(11) { animation-delay: 0.44s; }
    .smooth-item:nth-child(12) { animation-delay: 0.48s; }
    .smooth-item:nth-child(13) { animation-delay: 0.52s; }
    .smooth-item:nth-child(14) { animation-delay: 0.56s; }
    .smooth-item:nth-child(15) { animation-delay: 0.60s; }
    .smooth-item:nth-child(16) { animation-delay: 0.64s; }
    .smooth-item:nth-child(17) { animation-delay: 0.68s; }
    .smooth-item:nth-child(18) { animation-delay: 0.72s; }
    .smooth-item:nth-child(19) { animation-delay: 0.76s; }
    .smooth-item:nth-child(20) { animation-delay: 0.80s; }

    @keyframes smoothFadeIn {
        0% { opacity: 0; transform: translateY(8px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    /* ===== ICON WRAP ===== */
    .smooth-icon-wrap {
        position: relative;
        color: var(--sm-text-muted) !important;
        transition: 
            color var(--sm-duration-fast) var(--sm-ease-smooth),
            background var(--sm-duration-normal) var(--sm-ease-smooth),
            transform var(--sm-duration-normal) var(--sm-ease-spring),
            box-shadow var(--sm-duration-normal) var(--sm-ease-smooth);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: var(--sm-radius-sm);
        margin-right: 12px;
        flex-shrink: 0;
    }

    .menu-link:hover .smooth-icon-wrap {
        color: var(--sm-primary) !important;
        background: linear-gradient(135deg, var(--sm-primary-soft), var(--sm-accent-soft));
        transform: scale(1.08) rotate(-2deg);
        box-shadow: 0 4px 12px var(--sm-primary-glow);
    }

    .smooth-icon-wrap i {
        transition: transform var(--sm-duration-normal) var(--sm-ease-spring);
    }

    .menu-link:hover .smooth-icon-wrap i {
        transform: scale(1.1);
    }

    /* ===== MENU LINK ===== */
    .smooth-sidebar .menu-link {
        border-radius: var(--sm-radius) !important;
        margin-bottom: 2px;
        transition: 
            background var(--sm-duration-normal) var(--sm-ease-smooth),
            border-color var(--sm-duration-normal) var(--sm-ease-smooth),
            box-shadow var(--sm-duration-normal) var(--sm-ease-smooth),
            transform var(--sm-duration-normal) var(--sm-ease-spring);
        border: 1px solid transparent;
        position: relative;
        overflow: hidden;
        padding: 10px 14px !important;
        will-change: transform;
    }

    /* Soft ripple on hover */
    .smooth-sidebar .menu-link::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, var(--sm-primary-soft) 0%, transparent 60%);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.7s var(--sm-ease-out), height 0.7s var(--sm-ease-out);
        z-index: 0;
        pointer-events: none;
    }

    .smooth-sidebar .menu-link:hover::after {
        width: 280px;
        height: 280px;
    }

    .smooth-sidebar .menu-link:hover {
        background: linear-gradient(135deg, var(--sm-primary-soft), var(--sm-accent-soft)) !important;
        border-color: rgba(14, 165, 233, 0.12);
        box-shadow: var(--sm-shadow-xs);
        transform: translateX(3px);
    }

    .smooth-sidebar .menu-link .menu-title {
        transition: 
            color var(--sm-duration-fast) var(--sm-ease-smooth),
            font-weight var(--sm-duration-fast) var(--sm-ease-smooth);
        color: var(--sm-text-body);
        position: relative;
        z-index: 1;
        font-weight: 500;
    }

    .smooth-sidebar .menu-link:hover .menu-title {
        color: var(--sm-primary);
    }

    /* ===== ACTIVE LINK ===== */
    .smooth-active-link {
        background: linear-gradient(135deg, var(--sm-primary-soft), var(--sm-accent-soft)) !important;
        border: 1px solid rgba(14, 165, 233, 0.18) !important;
        box-shadow: 
            0 2px 12px var(--sm-primary-glow),
            inset 0 0 20px rgba(14, 165, 233, 0.03) !important;
        position: relative;
        overflow: hidden;
    }

    .smooth-active-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 20px;
        background: linear-gradient(180deg, var(--sm-primary), var(--sm-accent));
        border-radius: 0 3px 3px 0;
        box-shadow: 0 0 10px var(--sm-primary-glow);
        animation: activePulse 2.5s ease-in-out infinite;
    }

    @keyframes activePulse {
        0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--sm-primary-glow); }
        50% { opacity: 0.6; box-shadow: 0 0 16px var(--sm-primary-glow); }
    }

    .smooth-active-link .menu-title {
        color: var(--sm-primary) !important;
        font-weight: 600 !important;
    }

    .smooth-active-link .smooth-icon-wrap {
        color: var(--sm-primary) !important;
        background: linear-gradient(135deg, var(--sm-primary-soft), var(--sm-accent-soft));
        box-shadow: 0 4px 12px var(--sm-primary-glow);
    }

    /* ===== ARROW ===== */
    .smooth-arrow {
        transition: 
            transform var(--sm-duration-normal) var(--sm-ease-spring),
            color var(--sm-duration-fast) var(--sm-ease-smooth);
        color: var(--sm-text-placeholder) !important;
        font-size: 0.7rem;
        opacity: 0.7;
    }

    .menu-item.menu-accordion.showing > .menu-link .smooth-arrow,
    .menu-item.menu-accordion.show > .menu-link .smooth-arrow {
        transform: rotate(90deg);
        color: var(--sm-primary) !important;
        opacity: 1;
    }

    /* ===== SUBMENU ===== */
    .smooth-submenu {
        background: linear-gradient(135deg, var(--sm-bg-surface), var(--sm-bg-elevated)) !important;
        backdrop-filter: blur(24px) saturate(1.1);
        border-left: 2px solid rgba(14, 165, 233, 0.15);
        margin-left: 20px !important;
        border-radius: 0 var(--sm-radius) var(--sm-radius) 0 !important;
        box-shadow: 
            inset 4px 0 12px rgba(0, 0, 0, 0.015),
            4px 4px 16px rgba(0, 0, 0, 0.03);
        padding: 6px 0 !important;
        margin-top: 3px !important;
        margin-bottom: 3px !important;
        transition: 
            max-height var(--sm-duration-slow) var(--sm-ease-out),
            opacity var(--sm-duration-normal) var(--sm-ease-smooth);
        overflow: hidden;
    }

    .smooth-submenu .menu-link {
        padding: 8px 16px !important;
        margin: 2px 10px !important;
        border-radius: var(--sm-radius-sm) !important;
        transition: 
            background var(--sm-duration-fast) var(--sm-ease-smooth),
            transform var(--sm-duration-normal) var(--sm-ease-spring);
    }

    .smooth-submenu .menu-link:hover {
        background: linear-gradient(135deg, var(--sm-primary-soft), var(--sm-accent-soft)) !important;
        transform: translateX(5px);
    }

    .smooth-submenu .menu-link .menu-title {
        font-size: 0.88rem;
        color: var(--sm-text-muted);
        font-weight: 400;
        transition: color var(--sm-duration-fast) var(--sm-ease-smooth);
    }

    .smooth-submenu .menu-link:hover .menu-title {
        color: var(--sm-primary);
        font-weight: 500;
    }

    /* Sub-item entrance */
    .smooth-sub-item {
        opacity: 0;
        transform: translateX(-8px);
        animation: subItemSlide 0.35s var(--sm-ease-out) forwards;
    }

    .smooth-submenu .smooth-sub-item:nth-child(1) { animation-delay: 0.05s; }
    .smooth-submenu .smooth-sub-item:nth-child(2) { animation-delay: 0.1s; }
    .smooth-submenu .smooth-sub-item:nth-child(3) { animation-delay: 0.15s; }
    .smooth-submenu .smooth-sub-item:nth-child(4) { animation-delay: 0.2s; }
    .smooth-submenu .smooth-sub-item:nth-child(5) { animation-delay: 0.25s; }

    @keyframes subItemSlide {
        0% { opacity: 0; transform: translateX(-8px); }
        100% { opacity: 1; transform: translateX(0); }
    }

    /* ===== DOTS ===== */
    .smooth-dot-primary { 
        background: linear-gradient(135deg, var(--sm-primary), var(--sm-accent)) !important; 
        box-shadow: 0 0 6px var(--sm-primary-glow); 
        width: 5px !important; 
        height: 5px !important; 
        transition: 
            transform var(--sm-duration-normal) var(--sm-ease-spring),
            box-shadow var(--sm-duration-normal) var(--sm-ease-smooth); 
    }
    .smooth-dot-accent { 
        background: linear-gradient(135deg, var(--sm-accent), #8b5cf6) !important; 
        box-shadow: 0 0 6px rgba(99, 102, 241, 0.3); 
        width: 5px !important; 
        height: 5px !important; 
        transition: 
            transform var(--sm-duration-normal) var(--sm-ease-spring),
            box-shadow var(--sm-duration-normal) var(--sm-ease-smooth); 
    }
    .smooth-dot-danger { 
        background: linear-gradient(135deg, var(--sm-danger), #fb7185) !important; 
        box-shadow: 0 0 6px rgba(244, 63, 94, 0.3); 
        width: 5px !important; 
        height: 5px !important; 
        transition: 
            transform var(--sm-duration-normal) var(--sm-ease-spring),
            box-shadow var(--sm-duration-normal) var(--sm-ease-smooth); 
    }

    .smooth-submenu .menu-item:hover .smooth-dot-primary,
    .smooth-submenu .menu-item:hover .smooth-dot-accent,
    .smooth-submenu .menu-item:hover .smooth-dot-danger { 
        transform: scale(1.6); 
    }

    /* ===== TEXT COLORS ===== */
    .smooth-text-accent { color: var(--sm-accent) !important; }
    .smooth-text-danger { color: var(--sm-danger) !important; }

    /* ===== HEADINGS ===== */
    .smooth-heading {
        color: var(--sm-text-placeholder) !important;
        letter-spacing: 2px;
        position: relative;
        padding-left: 16px;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        text-transform: uppercase;
    }
    .smooth-heading::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 50%;
        background: linear-gradient(180deg, var(--sm-primary), transparent);
        border-radius: 3px;
        opacity: 0.6;
    }
    .smooth-heading-danger {
        color: rgba(244, 63, 94, 0.5) !important;
        letter-spacing: 2px;
        position: relative;
        padding-left: 16px;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
    }
    .smooth-heading-danger::before {
        background: linear-gradient(180deg, var(--sm-danger), transparent);
    }

    /* ===== BADGES ===== */
    .smooth-badge-hot {
        background: linear-gradient(135deg, #f43f5e, #fb923c) !important;
        color: white !important;
        box-shadow: 0 2px 8px rgba(244, 63, 94, 0.25);
        animation: smoothBadgePulse 2.5s ease-in-out infinite;
        border: none !important;
        font-weight: 600;
        letter-spacing: 0.5px;
        padding: 3px 8px !important;
        border-radius: 6px;
        font-size: 0.65rem !important;
    }
    .smooth-badge-new {
        background: linear-gradient(135deg, var(--sm-primary), var(--sm-accent)) !important;
        color: white !important;
        box-shadow: 0 2px 8px var(--sm-primary-glow);
        animation: smoothBadgePulse 2.5s ease-in-out infinite;
        border: none !important;
        font-weight: 600;
        letter-spacing: 0.5px;
        padding: 3px 8px !important;
        border-radius: 6px;
        font-size: 0.65rem !important;
    }
    .smooth-badge-danger {
        background: var(--sm-danger-soft) !important;
        color: var(--sm-danger) !important;
        border: 1px solid rgba(244, 63, 94, 0.15) !important;
        box-shadow: 0 1px 4px rgba(244, 63, 94, 0.08);
        font-weight: 600;
        padding: 2px 7px !important;
        border-radius: 6px;
        font-size: 0.65rem !important;
    }

    @keyframes smoothBadgePulse {
        0%, 100% { 
            transform: scale(1); 
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); 
        }
        50% { 
            transform: scale(1.04); 
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); 
        }
    }

    /* ===== WALLET BUTTON ===== */
    .smooth-wallet-btn {
        background: linear-gradient(135deg, var(--sm-bg-surface), var(--sm-bg-elevated)) !important;
        border: 1.5px solid var(--sm-border) !important;
        color: var(--sm-text-main) !important;
        transition: 
            border-color var(--sm-duration-normal) var(--sm-ease-smooth),
            box-shadow var(--sm-duration-normal) var(--sm-ease-smooth),
            transform var(--sm-duration-normal) var(--sm-ease-spring);
        position: relative;
        overflow: hidden;
        border-radius: var(--sm-radius) !important;
        box-shadow: var(--sm-shadow-xs);
    }

    /* Shimmer sweep */
    .smooth-wallet-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(14, 165, 233, 0.04), 
            transparent);
        transition: left 0.8s var(--sm-ease-out);
    }

    .smooth-wallet-btn:hover::before {
        left: 150%;
    }

    /* Bottom gradient line */
    .smooth-wallet-btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, 
            transparent, 
            var(--sm-primary), 
            var(--sm-accent), 
            transparent);
        background-size: 200% 100%;
        animation: smoothShimmer 4s linear infinite;
        opacity: 0;
        transition: opacity var(--sm-duration-normal) var(--sm-ease-smooth);
        border-radius: 2px;
    }

    .smooth-wallet-btn:hover::after {
        opacity: 0.6;
    }

    @keyframes smoothShimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    .smooth-wallet-btn:hover {
        background: linear-gradient(135deg, var(--sm-bg), var(--sm-primary-soft)) !important;
        box-shadow: 
            0 6px 20px var(--sm-primary-glow),
            0 2px 8px rgba(0, 0, 0, 0.04);
        transform: translateY(-2px);
        border-color: rgba(14, 165, 233, 0.25) !important;
    }

    .smooth-wallet-text {
        background: linear-gradient(135deg, var(--sm-primary), var(--sm-accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        transition: filter var(--sm-duration-normal) var(--sm-ease-smooth);
    }

    .smooth-wallet-btn:hover .smooth-wallet-text {
        filter: brightness(1.1);
    }

    .smooth-wallet-icon {
        color: var(--sm-primary);
        transition: 
            transform var(--sm-duration-normal) var(--sm-ease-spring),
            color var(--sm-duration-fast) var(--sm-ease-smooth);
    }

    .smooth-wallet-btn:hover .smooth-wallet-icon {
        transform: translateX(3px);
        color: var(--sm-accent);
    }

    /* ===== TOGGLE BUTTON ===== */
    .smooth-toggle-btn {
        background: var(--sm-bg) !important;
        border: 1.5px solid var(--sm-border) !important;
        box-shadow: 
            0 3px 10px rgba(0, 0, 0, 0.06),
            0 1px 3px rgba(0, 0, 0, 0.03) !important;
        transition: 
            background var(--sm-duration-normal) var(--sm-ease-smooth),
            border-color var(--sm-duration-normal) var(--sm-ease-smooth),
            box-shadow var(--sm-duration-normal) var(--sm-ease-smooth),
            transform var(--sm-duration-normal) var(--sm-ease-spring) !important;
    }
    .smooth-toggle-btn:hover {
        background: linear-gradient(135deg, var(--sm-primary), var(--sm-accent)) !important;
        border-color: transparent !important;
        box-shadow: 0 6px 20px var(--sm-primary-glow) !important;
        transform: translate(-50%, -50%) scale(1.08) !important;
    }
    .smooth-toggle-btn:hover i {
        color: #ffffff !important;
    }

    .smooth-toggle-icon {
        transition: transform var(--sm-duration-normal) var(--sm-ease-spring);
    }

    .smooth-toggle-btn:hover .smooth-toggle-icon {
        transform: rotate(-10deg);
    }

    /* ===== ADMIN LINK ===== */
    .smooth-admin-link {
        border: 1px solid rgba(244, 63, 94, 0.1) !important;
        background: linear-gradient(135deg, var(--sm-danger-soft), rgba(244, 63, 94, 0.02)) !important;
        transition: 
            border-color var(--sm-duration-normal) var(--sm-ease-smooth),
            background var(--sm-duration-normal) var(--sm-ease-smooth),
            box-shadow var(--sm-duration-normal) var(--sm-ease-smooth),
            transform var(--sm-duration-normal) var(--sm-ease-spring);
        border-radius: var(--sm-radius) !important;
    }
    .smooth-admin-link:hover {
        border-color: rgba(244, 63, 94, 0.2) !important;
        background: linear-gradient(135deg, rgba(244, 63, 94, 0.06), rgba(244, 63, 94, 0.02)) !important;
        box-shadow: 0 4px 16px rgba(244, 63, 94, 0.08);
        transform: translateX(3px);
    }
    .smooth-icon-wrap-admin {
        color: var(--sm-danger) !important;
        transition: 
            transform var(--sm-duration-normal) var(--sm-ease-spring),
            filter var(--sm-duration-normal) var(--sm-ease-smooth);
    }
    .smooth-admin-link:hover .smooth-icon-wrap-admin {
        transform: scale(1.08) rotate(-4deg);
        filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.2));
    }

    /* ===== SCROLLBAR ===== */
    .hover-scroll-overlay-y::-webkit-scrollbar {
        width: 4px;
    }
    .hover-scroll-overlay-y::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 10px;
        margin: 4px 0;
    }
    .hover-scroll-overlay-y::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--sm-primary), var(--sm-accent));
        border-radius: 10px;
        opacity: 0.4;
        transition: opacity var(--sm-duration-normal);
    }
    .hover-scroll-overlay-y::-webkit-scrollbar-thumb:hover {
        opacity: 0.8;
    }

    /* ===== MENU DIVIDER (subtle) ===== */
    .smooth-sidebar .menu-content::after {
        content: '';
        display: block;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--sm-border), transparent);
        margin-top: 8px;
        opacity: 0.5;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 991.98px) {
        .smooth-sidebar {
            box-shadow: 8px 0 32px rgba(0, 0, 0, 0.08) !important;
        }
    }

    /* ===== REDUCED MOTION ===== */
    @media (prefers-reduced-motion: reduce) {
        .smooth-item,
        .smooth-sub-item {
            animation: none;
            opacity: 1;
            transform: none;
        }
        .smooth-sidebar .menu-link,
        .smooth-icon-wrap,
        .smooth-arrow,
        .smooth-wallet-btn,
        .smooth-toggle-btn,
        .smooth-admin-link {
            transition: none;
        }
    }
</style>