.profile-wrapper {
    position: relative;
    display: inline-block;
}

/* 1. Phần nút bấm (Trigger) */
.profile-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 5px;
}

.profile-trigger .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.greeting {
    font-size: 12px;
    color: white;
    margin-bottom: 2px;
}

.name-trigger {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-sec);
    /* Màu đỏ */
}

.chevron {
    width: 18px;
    height: 18px;
    color: white;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* 2. Phần Menu Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    /* Cách nút trigger một đoạn */
    right: 0;
    max-width: calc(100vw - 3rem);
    width: 25rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Hiệu ứng ẩn/hiện */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

/* Hiển thị dropdown và xoay icon mũi tên khi hover */
.profile-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-wrapper:hover .chevron {
    transform: rotate(180deg);
}

/* 3. Header bên trong Dropdown */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.avatar-large {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
}

.name-vip {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.name-vip h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    /* Tên màu đen */
}

.vip-badge {
    background: #f97316;
    /* Màu cam */
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 5px;
    border-radius: 4px;
}

.balance {
    margin: 0;
    color: #22c55e;
    /* Màu xanh lá */
    font-size: 14px;
    font-weight: 500;
}

/* Đường kẻ ngang */
.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0;
}

/* 4. Danh sách menu */
.dropdown-list {
    list-style: none;
    padding: 12px 0;
    margin: 0;
}

.dropdown-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-list li a:hover {
    background: #f9fafb;
}

.dropdown-list li a .icon {
    width: 28px;
    height: 28px;
    color: #374151;
}

/* Style riêng cho nút Đăng xuất */
.logout-item a {
    color: #ef4444 !important;
    /* Text đỏ */
    font-weight: 600;
}

.logout-item a .icon {
    color: #ef4444 !important;
    /* Icon đỏ */
}

.fake-header img {
    filter: none !important;
}