/* User header dropdown (tách từ templates/layout/header.php) */
.user-dropdown-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 6px 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.user-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 20px;
    color: #ffffff;
}

.user-name-text {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-menu {
    min-width: 320px;
    max-width: 380px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(46, 58, 117, 0.15);
    padding: 0;
    margin-top: 10px;
    overflow: hidden;
}

.user-dropdown-header {
    background: linear-gradient(89deg, #2e3a75 0.24%, #5fb9c1 100%);
    color: #ffffff;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.user-dropdown-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.user-avatar-large {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info-main {
    text-align: left;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.user-email,
.user-username {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.user-email i,
.user-username i {
    font-size: 11px;
    opacity: 0.8;
}

.user-dropdown-referral {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.referral-label {
    font-size: 12px;
    font-weight: 600;
    color: #2e3a75;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-label i {
    color: #5fb9c1;
}

.referral-code-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
}

.referral-code-text {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1.5px;
    color: #2e3a75;
    flex: 1;
}

.btn-copy-referral-code {
    background: linear-gradient(89deg, #2e3a75 0.24%, #5fb9c1 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.btn-copy-referral-code:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(46, 58, 117, 0.3);
}

.btn-copy-referral-code.copied {
    background: linear-gradient(89deg, #28a745 0%, #20c997 100%);
}

.user-dropdown-stats {
    padding: 15px 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(89deg, #2e3a75 0.24%, #5fb9c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, #5fb9c1, transparent);
    margin: 0 10px;
}

.stat-value-small {
    font-size: 20px;
    font-weight: 700;
    color: #2e3a75;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label-small {
    font-size: 10px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
}

.user-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    transition: all 0.2s ease;
    color: #495057;
    font-weight: 500;
}

.user-menu-item:hover {
    background: linear-gradient(90deg, rgba(46, 58, 117, 0.05) 0%, rgba(95, 185, 193, 0.05) 100%);
    color: #2e3a75;
}

.user-menu-item i {
    width: 20px;
    color: #5fb9c1;
    font-size: 14px;
}

.user-menu-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.user-menu-item.disabled:hover {
    background: transparent;
    padding-left: 20px;
}

.user-menu-item .badge {
    background: linear-gradient(89deg, #2e3a75 0.24%, #5fb9c1 100%);
    border: none;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
}

.user-menu-item.text-danger {
    color: #dc3545 !important;
}

.user-menu-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545 !important;
}

.user-menu-item.text-danger i {
    color: #dc3545;
}

.user-dropdown-menu .dropdown-divider {
    margin: 0;
    border-color: #e9ecef;
}

@media (max-width: 576px) {
    .user-dropdown-menu {
        min-width: 280px;
        max-width: 90vw;
    }

    .user-dropdown-header {
        padding: 15px;
    }

    .user-avatar-large {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .user-name {
        font-size: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-value-small {
        font-size: 18px;
    }
}