/* Account Mega Menu Rebuild */
.account-mega-menu {
    position: absolute;
    top: calc(100% + 24px); /* Pushed down a bit more */
    right: 0;
    width: 380px;
    background: rgba(13, 19, 33, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 9999;
    transform-origin: top right;
}

.account-mega-menu.is-open,
.group-account-trigger:hover .account-mega-menu,
.account-mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Typography & Colors */
.menu-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

.column-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
    font-weight: 700;
}

/* Lists */
.clean-list, .icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clean-list li, .icon-list li {
    margin-bottom: 12px;
}

.clean-list a, .icon-list a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    font-weight: 500;
}

.clean-list a:hover, .icon-list a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.icon-list .dashicons {
    color: rgba(255,255,255,0.3);
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: color 0.2s;
}

.icon-list a:hover .dashicons {
    color: var(--accent-primary);
}

/* Feature List (Why Join?) */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    margin-bottom: 12px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

/* Layout Utilities in CSS */
.menu-grid {
    display: flex;
    gap: 32px;
}

.menu-column {
    flex: 1;
}

/* Divider */
.menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    width: 100%;
}

/* User Profile */
.user-avatar-lg {
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.bg-white-10 { background: rgba(255,255,255,0.1); }
.border-white-10 { border-color: rgba(255,255,255,0.1); }
.text-accent { color: var(--accent-primary); }

/* Buttons */
.btn-ghost {
    background: transparent;
    text-align: left;
    padding-left: 0;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.hover-text-danger:hover {
    color: #ff5f5f !important;
}

.hover-text-danger:hover .dashicons {
    color: #ff5f5f !important;
}

/* Flex Utilities for this file */
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.pb-md { padding-bottom: 16px; }
.border-b { border-bottom-width: 1px; border-style: solid; }
.block { display: block; }
.rounded-full { border-radius: 50%; }
.border-2 { border-width: 2px; }
.border-accent { border-color: var(--accent-primary); }
.text-primary { color: #fff; }
.text-secondary { color: rgba(255,255,255,0.6); }

/* Mobile Response */
@media (max-width: 768px) {
    .account-mega-menu {
        position: fixed;
        width: 100%;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 24px 24px 0 0;
        padding-bottom: 80px; /* Safe area */
        transform: translateY(100%);
        opacity: 1;
        visibility: hidden;
    }
    
    .account-mega-menu.is-open {
        transform: translateY(0);
        visibility: visible;
    }

    .close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        color: #fff;
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
